gtkatlantic-0.6.1/0000755000175000017500000000000012554762544011042 500000000000000gtkatlantic-0.6.1/COPYING0000644000175000017500000004325411352247755012022 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. gtkatlantic-0.6.1/ltmain.sh0000644000175000017500000105203012554747214012600 00000000000000 # libtool (GNU libtool) 2.4.2 # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --no-quiet, --no-silent # print informational messages (default) # --no-warn don't display warning messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print more informational messages than default # --no-verbose don't print the extra informational messages # --version print version information # -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. When passed as first option, # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.11 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.2 Debian-2.4.2-1.11" TIMESTAMP="" package_revision=1.3337 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL $lt_unset CDPATH # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" : ${CP="cp -f"} test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_dirname may be replaced by extended shell implementation # func_basename file func_basename () { func_basename_result=`$ECHO "${1}" | $SED "$basename"` } # func_basename may be replaced by extended shell implementation # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` } # func_dirname_and_basename may be replaced by extended shell implementation # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname may be replaced by extended shell implementation # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' pathcdr='s,^/[^/]*,,' removedotparts=':dotsl s@/\./@/@g t dotsl s,/\.$,/,' collapseslashes='s@/\{1,\}@/@g' finalslash='s,/*$,/,' # func_normal_abspath PATH # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. # value returned in "$func_normal_abspath_result" func_normal_abspath () { # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` while :; do # Processed it all yet? if test "$func_normal_abspath_tpath" = / ; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result" ; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_relative_path SRCDIR DSTDIR # generates a relative path from SRCDIR to DSTDIR, with a trailing # slash if non-empty, suitable for immediately appending a filename # without needing to append a separator. # value returned in "$func_relative_path_result" func_relative_path () { func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=${func_dirname_result} if test "x$func_relative_path_tlibdir" = x ; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test "x$func_stripname_result" != x ; then func_relative_path_result=${func_relative_path_result}/${func_stripname_result} fi # Normalisation. If bindir is libdir, return empty string, # else relative path ending with a slash; either way, target # file name can be directly appended. if test ! -z "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result/" func_relative_path_result=$func_stripname_result fi } # The name of this program: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' # Sed substitution that converts a w32 file name or path # which contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_tr_sh # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_version # Echo version message to standard output and exit. func_version () { $opt_debug $SED -n '/(C)/!b go :more /\./!{ N s/\n# / / b more } :go /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help [NOEXIT] # Echo long help message to standard output and exit, # unless 'noexit' is passed as argument. func_help () { $opt_debug $SED -n '/^# Usage:/,/# Report bugs to/ { :print s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # func_split_short_opt shortopt # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. func_split_short_opt () { my_sed_short_opt='1s/^\(..\).*$/\1/;q' my_sed_short_rest='1s/^..\(.*\)$/\1/;q' func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` } # func_split_short_opt may be replaced by extended shell implementation # func_split_long_opt longopt # Set func_split_long_opt_name and func_split_long_opt_arg shell # variables after splitting LONGOPT at the `=' sign. func_split_long_opt () { my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^--[^=]*=//' func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` } # func_split_long_opt may be replaced by extended shell implementation exit_cmd=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` } # func_len may be replaced by extended shell implementation # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` } # func_lo2o may be replaced by extended shell implementation # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` } # func_xform may be replaced by extended shell implementation # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Option defaults: opt_debug=: opt_dry_run=false opt_config=false opt_preserve_dup_deps=false opt_features=false opt_finish=false opt_help=false opt_help_all=false opt_silent=: opt_warning=: opt_verbose=: opt_silent=false opt_verbose=false # Parse options once, thoroughly. This comes as soon as possible in the # script to make things like `--version' happen as quickly as we can. { # this just eases exit handling while test $# -gt 0; do opt="$1" shift case $opt in --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" $opt_debug ;; --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) opt_config=: func_config ;; --dlopen|-dlopen) optarg="$1" opt_dlopen="${opt_dlopen+$opt_dlopen }$optarg" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) opt_features=: func_features ;; --finish) opt_finish=: set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help_all=: opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_mode="$optarg" case $optarg in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_silent=false func_append preserve_args " $opt" ;; --no-warning|--no-warn) opt_warning=false func_append preserve_args " $opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $opt" ;; --silent|--quiet) opt_silent=: func_append preserve_args " $opt" opt_verbose=false ;; --verbose|-v) opt_verbose=: func_append preserve_args " $opt" opt_silent=false ;; --tag) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_tag="$optarg" func_append preserve_args " $opt $optarg" func_enable_tag "$optarg" shift ;; -\?|-h) func_usage ;; --help) func_help ;; --version) func_version ;; # Separate optargs to long options: --*=*) func_split_long_opt "$opt" set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-n*|-v*) func_split_short_opt "$opt" set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # preserve --debug test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test "$opt_mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$opt_mode' for more information." } # Bail if the options were screwed $exit_cmd $EXIT_FAILURE } ## ----------- ## ## Main. ## ## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case "$lt_sysroot:$1" in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result="=$func_stripname_result" ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$lt_sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $opt_debug # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result="" if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result" ; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $opt_debug if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $opt_debug # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $opt_debug if test -z "$2" && test -n "$1" ; then func_error "Could not determine host file name corresponding to" func_error " \`$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result="$1" fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $opt_debug if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " \`$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result="$3" fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $opt_debug case $4 in $1 ) func_to_host_path_result="$3$func_to_host_path_result" ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via `$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $opt_debug $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $opt_debug case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result="$1" } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result="$func_convert_core_msys_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via `$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $opt_debug if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd="func_convert_path_${func_stripname_result}" fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $opt_debug func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result="$1" } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_msys_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test "$opt_help" = :; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | sed -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | sed '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "\`$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument \`$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and \`=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test "x$prev" = x-m && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename="" if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname" ; then func_basename "$dlprefile_dlname" dlprefile_dlbasename="$func_basename_result" else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename" ; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $opt_debug sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $opt_debug match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive which possess that section. Heuristic: eliminate # all those which have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $opt_debug if func_cygming_gnu_implib_p "$1" ; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1" ; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result="" fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" if test "$lock_old_archive_extraction" = yes; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test "$lock_old_archive_extraction" = yes; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ which is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options which match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include /* declarations of non-ANSI functions */ #if defined(__MINGW32__) # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined(__CYGWIN__) # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined (other platforms) ... */ #endif /* portability defines, excluding path handling macros */ #if defined(_MSC_VER) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC # ifndef _INTPTR_T_DEFINED # define _INTPTR_T_DEFINED # define intptr_t int # endif #elif defined(__MINGW32__) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined(__CYGWIN__) # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined (other platforms) ... */ #endif #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $opt_debug case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test "$prefer_static_libs" = yes || test "$prefer_static_libs,$installed" = "built,no"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib="$l" done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi case "$host" in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$absdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type \`$version_type'" ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then # Remove ${wl} instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test "$try_normal_branch" = yes \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " ${wl}-bind_at_load" func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=no ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" func_resolve_sysroot "$deplib" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test "x$bindir" != x ; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 gtkatlantic-0.6.1/INSTALL0000644000175000017500000001722712501106134011777 00000000000000Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. gtkatlantic-0.6.1/src/0000755000175000017500000000000012554762544011631 500000000000000gtkatlantic-0.6.1/src/client.h0000644000175000017500000000224112554754152013173 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef CLIENT_H #define CLIENT_H #include /* ** prototypes for connect/disconnect to server */ void client_connect(guint8 type, gchar* host, gint32 port, gchar *cmd); void client_disconnect(connection *c); gboolean client_event(GIOChannel *channel, GIOCondition condition, connection *c); void client_send(connection *c, gchar *data); #endif /* CLIENT_H */ gtkatlantic-0.6.1/src/callback.h0000644000175000017500000000621212554754155013456 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef CALLBACK_H #define CALLBACK_H void Callback_ShowConfiguration(GtkWidget* menuitem); void Callback_ConnectMetaServer(GtkWidget* button); void Callback_GetGame_Select(GtkTreeSelection *selection, gpointer data); void Callback_ConnectButton(GtkWidget* clist); void Callback_StartButton(GtkWidget* button); void Callback_SendButton(GtkWidget* Button, GtkWidget *entry); void CallBack_ok_button_configwindow(GtkWidget* widget); void CallBack_configwindow_destroyed(GtkWidget* widget); void CallBack_button_command_pressed(GtkWidget* button); void Callback_AuctionButton_Absolute(GtkWidget* button, GtkWidget* entry); void Callback_AuctionButton_Relative(GtkWidget* button); void Callback_ClicOnEstate(GtkWidget* widget, GdkEvent *event); void CallBack_PopupMenuEstate(GtkWidget* widget); void Callback_EnterAnEstate(GtkWidget* widget); void Callback_LeaveAnEstate(GtkWidget* widget); void Callback_ClicOnPlayer(GtkWidget* widget, GdkEvent *event); void CallBack_PopupMenuPlayer(GtkWidget* widget); void Callback_toggle_boolean_gameoption(GtkWidget* widget); void CallBack_menu_connect_to_server(GtkWidget* widget); void CallBack_response_connect_to_server_window(GtkWidget* widget, gint response, GtkWidget *Win); void CallBack_menu_public_server_list(GtkWidget* widget); void CallBack_menu_change_nickname(GtkWidget* widget); void CallBack_response_changenick_window(GtkWidget* widget, gint response, GtkWidget *Win); void CallBack_menu_reconnect(GtkWidget* widget); void CallBack_menu_AddPlayer(GtkWidget *widget); void CallBack_trade_button(GtkWidget *button); void CallBack_trade_sub_component(GtkWidget *combo); void CallBack_trade_update_component(GtkWidget *button); void CallBack_get_games_page_destroyed(GtkWidget *widget); void CallBack_menu_LeaveGame(GtkWidget* widget); void CallBack_estates_tree(GtkWidget* widget); void CallBack_EstateTree_SelectRow(GtkTreeSelection *selection, gpointer data); void CallBack_EstateTree_Destroyed(GtkWidget *widget); void Callback_ProposalList_Select(GtkTreeSelection *selection, gpointer data); void CallBack_HelpWin_Destroyed(GtkWidget *widget); void Callback_menu_Themes(GtkWidget *widget); void CallBack_ThemeWin_Delete(GtkWidget *widget); void CallBack_ThemeWin_Destroyed(GtkWidget *widget); void Callback_ThemeList_Select(GtkTreeSelection *selection, gpointer data); void CallBack_Theme_Apply(GtkWidget* button); #endif /* CALLBACK_H */ gtkatlantic-0.6.1/src/xmlparse.c0000644000175000017500000013126612550307555013552 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include #include #include "engine.h" #include "xmlparse.h" #include "game.h" #include "client.h" #include "interface.h" #include "global.h" #include "load.h" #include "callback.h" #include "display.h" #include "trade.h" /* ok server ok client ok msg ok display dep updateplayerlist dep updategamelist ok playerupdate ok deleteplayer ok estateupdate ok cardupdate ok estategroupupdate ok tradeupdate ok auctionupdate ok gameupdate ok deletegame dep commandlist ok configupdate */ /* ok .R ok .gn no-need .gl ok .gj ok .gx todo .gk todo .gu ok .gc todo .gS ok .Tn ok .Tc ok .Te ok .Tm ok .Ta ok .Tr ok .r ok .E ok .t ok .D no-need .p ok .eb ok .es ok .ea ok .hb ok .hs ok .em ok .ab ok .jc ok .jp ok .jr ok .T$ ok .T% no-need .pi todo .gd ok .gs no-need .d ok .n no-need .f */ void xmlparse_getgamelist_plugger(connection *c, gchar *buffer) { xmlDocPtr doc; xmlNodePtr cur; doc = xmlParseMemory(buffer, strlen(buffer)); if (doc == NULL) { return; } cur = xmlDocGetRootElement(doc); if (cur == NULL) { xmlFreeDoc(doc); return; } if( xmlStrcmp(cur->name, SERVER_XMLROOTELEMENT) ) { xmlFreeDoc(doc); return; } for( cur = cur->xmlChildrenNode ; cur != NULL ; cur = cur -> next) { if(! xmlStrcmp(cur->name, (xmlChar*)"server") ) xmlparse_server(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"gameupdate") ) xmlparse_gamelist_gameupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"deletegame") ) xmlparse_gamelist_deletegame(c, doc, cur); } xmlFreeDoc(doc); } void xmlparse_game_plugger(connection *c, gchar *buffer) { xmlDocPtr doc; xmlNodePtr cur; doc = xmlParseMemory(buffer, strlen(buffer)); if (doc == NULL) { return; } cur = xmlDocGetRootElement(doc); if (cur == NULL) { xmlFreeDoc(doc); return; } if( xmlStrcmp(cur->name, SERVER_XMLROOTELEMENT) ) { xmlFreeDoc(doc); return; } for(cur = cur->xmlChildrenNode ; cur != NULL ; cur = cur -> next) { if(! xmlStrcmp(cur->name, (xmlChar*)"gameupdate") ) xmlparse_gameupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"deletegame") ) xmlparse_deletegame(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"server") ) xmlparse_server(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"client") ) xmlparse_client(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"msg") ) xmlparse_message(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"estateupdate") ) xmlparse_estateupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"playerupdate") ) xmlparse_playerupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"auctionupdate") ) xmlparse_auctionupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"display") ) xmlparse_display(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"configupdate") ) xmlparse_configupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"tradeupdate") ) xmlparse_tradeupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"cardupdate") ) xmlparse_cardupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"estategroupupdate") ) xmlparse_estategroupupdate(c, doc, cur); if(! xmlStrcmp(cur->name, (xmlChar*)"deleteplayer") ) xmlparse_deleteplayer(c, doc, cur); } xmlFreeDoc(doc); } void xmlparse_server(connection *c, xmlDocPtr doc, xmlNodePtr cur) { (void)doc; c->server_version = (gchar*)xmlGetProp(cur, (xmlChar*)"version"); } void xmlparse_client(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlChar *tmp; (void)c; (void)doc; tmp = xmlGetProp(cur, (xmlChar*)"playerid"); if( tmp ) { global->my_playerid = atoi( (gchar*)tmp ); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"cookie"); if( tmp ) { if(global->cookie) g_free(global->cookie); global->cookie = (gchar*)tmp; } } void xmlparse_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlChar *tmp; struct timeval tv; gint32 gameid; game *game; guint8 newstatus; (void)c; (void)doc; tmp = xmlGetProp(cur, (xmlChar*)"gameid"); if (tmp) { gameid = atoi((gchar*)tmp); g_free(tmp); } else { return; } /* We do not need game templates */ if (gameid < 0) { return; } game = game_find(gameid); if (!game) { game = game_new(gameid); if (!game) { return; } } tmp = xmlGetProp(cur, (xmlChar*)"status"); if(tmp) { if(!xmlStrcmp(tmp, (xmlChar*)"config") ) { newstatus = GAME_STATUS_CONFIG; } else if(!xmlStrcmp(tmp, (xmlChar*)"init") ) { newstatus = GAME_STATUS_INIT; } else if(!xmlStrcmp(tmp, (xmlChar*)"run") ) { newstatus = GAME_STATUS_RUN; } else if(!xmlStrcmp(tmp, (xmlChar*)"end") ) { newstatus = GAME_STATUS_END; } else { g_free(tmp); return; } if (game->status != newstatus) { game->status = newstatus; if (newstatus == GAME_STATUS_RUN) { gettimeofday(&tv, NULL); game->start_time = tv.tv_sec; } if (currentgame == game) { game_switch_status(); } } } g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"master"); if (tmp) { game->master = atoi((gchar*)tmp); g_free(tmp); if (game->GameConfigBox) { GList *list = gtk_container_get_children(GTK_CONTAINER(game->GameConfigBox)); for (list = g_list_first(list); list; list = g_list_next(list)) { gtk_widget_set_sensitive(GTK_WIDGET(list->data), (global->my_playerid == game->master)); } g_list_free(list); } /* set sensitive mode of start button */ if (currentgame == game && game->status == GAME_STATUS_CONFIG) { GtkWidget *StartButton = g_object_get_data(G_OBJECT(global->MainVerticalBox), "start_button"); gtk_widget_set_sensitive(StartButton, (global->my_playerid == game->master)); } } } void xmlparse_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlChar *tmp; gint32 gameid; (void)c; (void)doc; tmp = xmlGetProp(cur, (xmlChar*)"gameid"); if (tmp) { gameid = atoi((gchar*)tmp); g_free(tmp); } else { return; } if (!currentgame || currentgame->gameid != gameid) { game_free(gameid); } } void xmlparse_message(connection *c, xmlDocPtr doc, xmlNodePtr cur) { gchar *type, *text, *author, *value; (void)c; (void)doc; type = (gchar*)xmlGetProp(cur, (xmlChar*)"type"); if (!g_ascii_strncasecmp(type, "chat", 4)) { author = (gchar*)xmlGetProp(cur, (xmlChar*)"author"); value = (gchar*)xmlGetProp(cur, (xmlChar*)"value"); if(value && author) { if(! strncmp("[ACTION]", value, 8) ) text = g_strdup_printf("* %s%s", author, value + 8); else if(! strncmp("/me", value, 3) ) text = g_strdup_printf("* %s%s", author, value + 3); else text = g_strdup_printf("<%s> %s", author, value); text_insert_chat(text, strlen(text)); g_free(text); } if(value[0] == '!') parse_specific_chat_message(value); if(author) g_free(author); if(value) g_free(value); } else { value = (gchar*)xmlGetProp(cur, (xmlChar*)"value"); if (!g_ascii_strncasecmp(type, "error", 5)) { interface_set_infolabel(value, "b00000", false); } else { interface_set_infolabel(value, "808000", false); } g_free(value); } g_free(type); } void xmlparse_estateupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { guint32 color[3], i; xmlChar *tmp; eng_obj *pic; gint32 star, id, t, u; gboolean refresh = FALSE; gboolean owner_mortgage_changed = FALSE; (void)c; (void)doc; if (!currentgame) { return; } tmp = xmlGetProp(cur, (xmlChar*)"estateid"); if(!tmp) return; id = atoi( (gchar*)tmp ); g_free(tmp); if(id < 0) return; tmp = xmlGetProp(cur, (xmlChar*)"name"); if(tmp) currentgame->estate[id].name = (gchar*)tmp; tmp = xmlGetProp(cur, (xmlChar*)"color"); if(tmp) { sscanf((gchar*)tmp, "#%2X%2X%2X", &color[0], &color[1], &color[2]); currentgame->estate[id].color[0] = color[0]; currentgame->estate[id].color[1] = color[1]; currentgame->estate[id].color[2] = color[2]; g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"bgcolor"); if(tmp) { sscanf((gchar*)tmp, "#%2X%2X%2X", &color[0], &color[1], &color[2]); currentgame->estate[id].bgcolor[0] = color[0]; currentgame->estate[id].bgcolor[1] = color[1]; currentgame->estate[id].bgcolor[2] = color[2]; g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"owner"); if(tmp) { t = currentgame->estate[id].owner = atoi((gchar*)tmp); g_free(tmp); owner_mortgage_changed = TRUE; } tmp = xmlGetProp(cur, (xmlChar*)"mortgaged"); if(tmp) { u = currentgame->estate[id].mortgaged = atoi((gchar*)tmp); g_free(tmp); owner_mortgage_changed = TRUE; } if(owner_mortgage_changed) { gint32 cardid = get_playerlistcard_id_with_estate(id); t = currentgame->estate[id].owner; u = currentgame->estate[id].mortgaged; /* reset unowned cards of this estate to all players */ if (cardid >= 0) { player *p; for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; pic = p->playerlist_cards_pic[cardid]; eng_pic_set_alpha(pic, data->playerlist_cards_alphaunowned); } } if(t > 0 && !u) { /* star */ star = player_from_id(t)->tokenid; pic = currentgame->estate[id].star_pic; eng_pic_set_width(pic, data->pngfile_star_width[star]); eng_pic_set_height(pic, data->pngfile_star_height[star]); eng_pic_set_buf(pic, data->pngfile_star_buf[star]); eng_pic_show(pic); /* playerlist card */ if (cardid >= 0) { pic = player_from_id(t)->playerlist_cards_pic[cardid]; } eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolor); eng_pic_set_alpha(pic, data->playerlist_cards_alphaowned); } else if(t > 0 && u) { /* star */ star = player_from_id(t)->tokenid; pic = currentgame->estate[id].star_pic; eng_pic_set_width(pic, data->pngfile_star_m_width[star]); eng_pic_set_height(pic, data->pngfile_star_m_height[star]); eng_pic_set_buf(pic, data->pngfile_star_m_buf[star]); eng_pic_show(pic); /* playerlist card */ if (cardid >= 0) { pic = player_from_id(t)->playerlist_cards_pic[cardid]; } eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolormortgage); eng_pic_set_alpha(pic, data->playerlist_cards_alphamortgage); } else /* if( t <= 0 ) */ { /* star */ eng_pic_unshow(currentgame->estate[id].star_pic); } /* update estatelist in trade panel */ for(i = 0 ; i < MAX_TRADES ; i++) { if(! currentgame->trade[i].open) continue; if(currentgame->trade[i].current_component != TRADE_TYPE_ESTATE) continue; trade_rebuild_subcomponent(i); } refresh = TRUE; } tmp = xmlGetProp(cur, (xmlChar*)"houses"); if(tmp) { t = currentgame->estate[id].houses = atoi((gchar*)tmp); g_free(tmp); if(t <= 0) { /* houses */ pic = currentgame->estate[id].house_pic; eng_pic_unshow(pic); } else if(t > 0 && data->estate[id].type_house == TYPE_HOUSE_HORIZONTAL) { /* houses */ pic = currentgame->estate[id].house_pic; eng_pic_set_width(pic, data->pngfile_horiz_house_width[t]); eng_pic_set_height(pic, data->pngfile_horiz_house_height[t]); eng_pic_set_buf(pic, data->pngfile_horiz_house_buf[t]); eng_pic_show(pic); } else if(t > 0 && data->estate[id].type_house == TYPE_HOUSE_VERTICAL) { /* houses */ pic = currentgame->estate[id].house_pic; eng_pic_set_width(pic, data->pngfile_vert_house_width[t]); eng_pic_set_height(pic, data->pngfile_vert_house_height[t]); eng_pic_set_buf(pic, data->pngfile_vert_house_buf[t]); eng_pic_show(pic); } refresh = TRUE; } tmp = xmlGetProp(cur, (xmlChar*)"houseprice"); if(tmp) { currentgame->estate[id].houseprice = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"sellhouseprice"); if(tmp) { currentgame->estate[id].sellhouseprice = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"mortgageprice"); if(tmp) { currentgame->estate[id].mortgageprice = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"unmortgageprice"); if(tmp) { currentgame->estate[id].unmortgageprice = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"group"); if(tmp) { currentgame->estate[id].group = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"can_be_owned"); if(tmp) { currentgame->estate[id].can_be_owned = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"can_toggle_mortgage"); if(tmp) { currentgame->estate[id].can_toggle_mortgage = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"can_buy_houses"); if(tmp) { currentgame->estate[id].can_buy_houses = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"can_sell_houses"); if(tmp) { currentgame->estate[id].can_sell_houses = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"money"); if(tmp) { currentgame->estate[id].money = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"price"); if(tmp) { currentgame->estate[id].price = atoi((gchar*)tmp); g_free(tmp); } for(i = 0 ; i <= 5 ; i++) { xmlChar *key = (xmlChar*)g_strdup_printf("rent%d", i); tmp = xmlGetProp(cur, key); if(tmp) { currentgame->estate[id].rent[i] = atoi((gchar*)tmp); g_free(tmp); } g_free(key); } if (refresh) { update_display(); } } void xmlparse_playerupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { gint32 id, i; player *p; xmlChar *tmp; gboolean refresh = FALSE; (void)c; (void)doc; tmp = xmlGetProp(cur, (xmlChar*)"playerid"); if(!tmp) return; id = atoi((gchar*)tmp); g_free(tmp); if(!id) return; /* create new player */ p = player_from_id(id); if (p == NULL) { p = game_new_player(id); if (!p) { return; } } tmp = xmlGetProp(cur, (xmlChar*)"game"); if(tmp) { p->game = atoi((gchar*)tmp); g_free(tmp); if (id == global->my_playerid) { if (p->game < 0) { if (currentgame) { game_quit(); } } else { if (!currentgame) { game *game = game_find(p->game); if (game) { currentgame = game; printf("Current game: %d\n", game->gameid); game_switch_status(); } } } } else if (p->game < 0) { interface_gameboard_remove_player(p); refresh = TRUE; } } tmp = xmlGetProp(cur, (xmlChar*)"host"); if(tmp) { if(p->host) g_free(p->host); p->host = (gchar*)tmp; } tmp = xmlGetProp(cur, (xmlChar*)"image"); if(tmp) { if(p->image) g_free(p->image); p->image = (gchar*)tmp; } tmp = xmlGetProp(cur, (xmlChar*)"name"); if(tmp) { if(p->name) g_free(p->name); p->name = (char*)tmp; if (currentgame && p->game == currentgame->gameid) { /* playerlist name */ /* FIXME: handle hasturn color */ if(p->playerlist_LabelNamePlayer) gtk_label_set_text(GTK_LABEL(p->playerlist_LabelNamePlayer), p->name); /* playerlist in trade panel */ for(i = 0 ; i < MAX_TRADES ; i++) { if(! currentgame->trade[i].open) continue; trade_rebuild_playerlist(i); } /* update sub component players in trade panel */ for(i = 0 ; i < MAX_TRADES ; i++) { if(! currentgame->trade[i].open) continue; trade_rebuild_subcomponent(i); } } } tmp = xmlGetProp(cur, (xmlChar*)"money"); if(tmp) { p->money = atoi((gchar*)tmp); g_free(tmp); if (currentgame && p->game == currentgame->gameid) { if(p->playerlist_LabelMoneyPlayer) { if(p->hasturn) { gchar *tmp = g_markup_printf_escaped("%d", p->money); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp); g_free(tmp); } else { gchar *tmp = g_markup_printf_escaped("%d", p->money); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp); g_free(tmp); } } } } tmp = xmlGetProp(cur, (xmlChar*)"location"); if(tmp) { p->location_to = atoi((gchar*)tmp); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"directmove"); if (tmp) { p->directmove = atoi((gchar*)tmp); g_free(tmp); } if (currentgame && p->game == currentgame->gameid) { refresh = TRUE; } } tmp = xmlGetProp(cur, (xmlChar*)"jailed"); if(tmp) { gboolean jailed = atoi((gchar*)tmp); g_free(tmp); if (jailed != p->jailed) { p->jailed = jailed; p->directmove = TRUE; /* force directmove when player is going to or leaving jail */ } if (currentgame && p->game == currentgame->gameid) { refresh = TRUE; } } tmp = xmlGetProp(cur, (xmlChar*)"bankrupt"); if(tmp) { p->bankrupt = atoi((gchar*)tmp); g_free(tmp); if (currentgame && p->game == currentgame->gameid) { /* remove token */ if(p->bankrupt) { eng_pic_unshow(p->token_pic); refresh = TRUE; } } } tmp = xmlGetProp(cur, (xmlChar*)"hasturn"); if(tmp) { p->hasturn = atoi((gchar*)tmp); g_free(tmp); if (currentgame && p->game == currentgame->gameid) { /* set has turn attributes */ if(p->hasturn) { if (p->playerlist_LabelNamePlayer) { gchar *tmp = g_markup_printf_escaped("%s", p->name); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelNamePlayer), tmp); g_free(tmp); tmp = g_markup_printf_escaped("%d", p->money); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp); g_free(tmp); } eng_pic_unset_alpha(p->token_pic); } else { if (p->playerlist_LabelNamePlayer) { gchar *tmp = g_markup_printf_escaped("%s", p->name); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelNamePlayer), tmp); g_free(tmp); tmp = g_markup_printf_escaped("%d", p->money); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp); g_free(tmp); } if(config->game_token_transparency) eng_pic_set_alpha(p->token_pic, 0x7f); } refresh = TRUE; } } tmp = xmlGetProp(cur, (xmlChar*)"can_roll"); if(tmp) { p->can_roll = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"can_buyestate"); if(tmp) { p->can_buyestate = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"turnorder"); if(tmp) { p->turnorder = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"spectator"); if(tmp) { p->spectator = atoi((gchar*)tmp); g_free(tmp); if (currentgame && p->game == currentgame->gameid && !p->spectator) { /* note: turnorder must be fetched before */ game_sort_playerlist_by_turnorder(); interface_gameboard_add_player(p); game_update_tokens(); } } game_buildplayerlist(); if (refresh) { game_initiate_token_movement(); update_display(); } } void xmlparse_auctionupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { guint32 auctionid, highbid = 0; xmlChar *tmp; (void)c; (void)doc; if (!currentgame || currentgame->status != GAME_STATUS_RUN) { return; } tmp = xmlGetProp(cur, (xmlChar*)"auctionid"); if(!tmp) return; auctionid = atoi((gchar*)tmp); g_free(tmp); /* initialise auction */ tmp = xmlGetProp(cur, (xmlChar*)"estateid"); if (tmp && g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auctionbox") == NULL) { guint32 estateid = atoi((gchar*)tmp); g_free(tmp); display_hide(); interface_create_auctionbox(auctionid, estateid); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_highbid", 0); } if (g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auctionbox") == NULL) { return; } /* bid */ tmp = xmlGetProp(cur, (xmlChar*)"highbid"); if(tmp) { highbid = atoi((gchar*)tmp); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_highbid", GINT_TO_POINTER(highbid)); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"highbidder"); if(tmp) { guint32 highbidder = atoi((gchar*)tmp); g_free(tmp); GtkListStore *store; GtkTreeIter iter; gboolean valid; store = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_store"); valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter); while (valid) { guint32 eplayerid; gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, AUCTIONPLAYERLIST_COLUMN_PLAYERID, &eplayerid, -1); if (eplayerid == highbidder) { gtk_list_store_set(store, &iter, AUCTIONPLAYERLIST_COLUMN_BID, highbid, AUCTIONPLAYERLIST_WEIGHT, PANGO_WEIGHT_BOLD, -1); } else { gtk_list_store_set(store, &iter, AUCTIONPLAYERLIST_WEIGHT, PANGO_WEIGHT_NORMAL, -1); } valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); } } /* status */ tmp = xmlGetProp(cur, (xmlChar*)"status"); if(tmp) { guint32 status = atoi((gchar*)tmp); g_free(tmp); GtkWidget *label = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_statuslabel"); switch (status) { case 0: gtk_label_set_text(GTK_LABEL(label), NULL); break; case 1: gtk_label_set_text(GTK_LABEL(label), "Going once…"); break; case 2: gtk_label_set_text(GTK_LABEL(label), "Going twice…"); break; case 3: gtk_widget_destroy(g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auctionbox")); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auctionbox", NULL); display_show(); break; } } } void xmlparse_display(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlNodePtr cur2; gint32 estateid; xmlChar *tmp; gchar *caption, *command; gboolean enable; (void)c; (void)doc; if (!currentgame || currentgame->status < GAME_STATUS_INIT) { return; } tmp = xmlGetProp(cur, (xmlChar*)"cleartext"); if(tmp) { if( atoi((gchar*)tmp) ) display_clear_text(); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"clearbuttons"); if(tmp) { if( atoi((gchar*)tmp) ) display_clear_buttons(); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"estateid"); if(tmp) { estateid = atoi((gchar*)tmp); g_free(tmp); display_estate(estateid); } tmp = xmlGetProp(cur, (xmlChar*)"text"); if(tmp) { if( strlen((gchar*)tmp) > 0) display_text((gchar*)tmp); g_free(tmp); } /* buttons */ for(cur2 = cur->xmlChildrenNode ; cur2 != NULL ; cur2 = cur2 -> next) { if(! xmlStrcmp(cur2->name, (xmlChar*)"button") ) { caption = (gchar*)xmlGetProp(cur2, (xmlChar*)"caption"); command = (gchar*)xmlGetProp(cur2, (xmlChar*)"command"); tmp = xmlGetProp(cur2, (xmlChar*)"enabled"); enable = atoi((gchar*)tmp); g_free(tmp); display_add_button((gchar*)caption, (gchar*)command, enable); g_free(caption); g_free(command); } } } void xmlparse_configupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { GtkWidget *CButton; gchar *description; guint32 signalid; xmlChar *tmp; game *game; gint32 id; (void)c; (void)doc; tmp = xmlGetProp(cur, (xmlChar*)"gameid"); if (!tmp) { return; } game = game_find(atoi((gchar*)tmp)); g_free(tmp); if (!game) { return; } tmp = xmlGetProp(cur, (xmlChar*)"configid"); if (!tmp) { return; } id = atoi((gchar*)tmp); g_free(tmp); if (id <= 0) { return; } /* We are going to receive events before we know in which game we are * therefore we create the config box before the config panel is created */ if (!game->GameConfigBox) { game->GameConfigBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); } /* create it if not created */ gchar *strid = g_strdup_printf("%d", id); if ( !(CButton = g_object_get_data(G_OBJECT(game->GameConfigBox), strid)) ) { /* We only handle boolean type for now */ tmp = xmlGetProp(cur, (xmlChar*)"type"); if (!tmp) { goto abort; } if(xmlStrcmp(tmp, (xmlChar*)"bool") ) { g_free(tmp); goto abort; } g_free(tmp); description = (gchar*)xmlGetProp(cur, (xmlChar*)"description"); if (!description) { goto abort; } CButton = gtk_check_button_new_with_label(description); signalid = g_signal_connect(G_OBJECT(CButton), "toggled", G_CALLBACK(Callback_toggle_boolean_gameoption), NULL); gtk_widget_set_sensitive(CButton, (global->my_playerid == game->master)); gtk_box_pack_start(GTK_BOX(game->GameConfigBox), CButton, FALSE, FALSE, 0); /* store signal identifier */ g_object_set_data(G_OBJECT(CButton), "signal", GINT_TO_POINTER(signalid)); /* store id under CButton */ g_object_set_data(G_OBJECT(CButton), "id", GINT_TO_POINTER(id)); /* save the pointer of button to use in the future */ g_object_set_data(G_OBJECT(game->GameConfigBox), strid, CButton); g_free(description); } /* modify */ tmp = xmlGetProp(cur, (xmlChar*)"value"); if (tmp) { /* disconnect signal */ signalid = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(CButton), "signal")); g_signal_handler_disconnect(G_OBJECT(CButton), signalid); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), (atoi((gchar*)tmp) != 0)); g_free(tmp); /* reconnect signal */ signalid = g_signal_connect(G_OBJECT(CButton), "toggled", G_CALLBACK(Callback_toggle_boolean_gameoption), NULL); g_object_set_data(G_OBJECT(CButton), "signal", GINT_TO_POINTER(signalid)); } /* tmp = xmlGetProp(cur, (xmlChar*)"edit"); USELESS */ abort: g_free(strid); gtk_widget_show_all(game->GameConfigBox); } void xmlparse_tradeupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlNodePtr cur2; xmlChar *tmp; guint32 tradeid = 0, playerid = 0, cardid = 0, estateid = 0; guint32 targetplayer = 0, playerfrom = 0, playerto = 0, money = 0; gboolean accept = FALSE; (void)c; (void)doc; if (!currentgame || currentgame->status != GAME_STATUS_RUN) { return; } tmp = xmlGetProp(cur, (xmlChar*)"tradeid"); if(tmp) { tradeid = atoi((gchar*)tmp); g_free(tmp); } else return; // tmp = xmlGetProp(cur, (xmlChar*)"actor"); // if(tmp) { // actor = atoi((gchar*)tmp); // g_free(tmp); // } tmp = xmlGetProp(cur, (xmlChar*)"type"); if(tmp) { if (!xmlStrcmp(tmp, (xmlChar*)"rejected") || !xmlStrcmp(tmp, (xmlChar*)"accepted") || !xmlStrcmp(tmp, (xmlChar*)"completed")) { trade_destroy(tradeid); g_free(tmp); return; } if (!xmlStrcmp(tmp, (xmlChar*)"new")) { trade_initnew(tradeid); } g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"revision"); if (tmp) { trade_update_revision(tradeid, atoi((gchar*)tmp)); g_free(tmp); } for(cur2 = cur->xmlChildrenNode ; cur2 != NULL ; cur2 = cur2 -> next) { /* -- player -- */ if(! xmlStrcmp(cur2->name, (xmlChar*)"tradeplayer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"playerid"); if(tmp) { playerid = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur2, (xmlChar*)"accept"); if(tmp) { accept = atoi((gchar*)tmp); g_free(tmp); } trade_update_player(tradeid, playerid, accept); } /* -- card -- */ if(! xmlStrcmp(cur2->name, (xmlChar*)"tradecard") ) { tmp = xmlGetProp(cur2, (xmlChar*)"cardid"); if(tmp) { cardid = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur2, (xmlChar*)"targetplayer"); if(tmp) { targetplayer = atoi((gchar*)tmp); g_free(tmp); } trade_update_card(tradeid, cardid, targetplayer); } /* -- estate -- */ if(! xmlStrcmp(cur2->name, (xmlChar*)"tradeestate") ) { tmp = xmlGetProp(cur2, (xmlChar*)"estateid"); if(tmp) { estateid = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur2, (xmlChar*)"targetplayer"); if(tmp) { targetplayer = atoi((gchar*)tmp); g_free(tmp); } trade_update_estate(tradeid, estateid, targetplayer); } /* -- money -- */ if(! xmlStrcmp(cur2->name, (xmlChar*)"trademoney") ) { tmp = xmlGetProp(cur2, (xmlChar*)"playerfrom"); if(tmp) { playerfrom = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur2, (xmlChar*)"playerto"); if(tmp) { playerto = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur2, (xmlChar*)"money"); if(tmp) { money = atoi((gchar*)tmp); g_free(tmp); } trade_update_money(tradeid, playerfrom, playerto, money); } } } void xmlparse_cardupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlChar *tmp; gint32 cardid, owner, i, cardslot; (void)c; (void)doc; if (!currentgame || currentgame->status < GAME_STATUS_INIT) { return; } tmp = xmlGetProp(cur, (xmlChar*)"cardid"); if (!tmp) { return; } cardid = atoi((gchar*)tmp); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"owner"); if (!tmp) { return; } owner = atoi((gchar*)tmp); g_free(tmp); cardslot = get_card_slot_with_cardid(cardid); /* create new or update card slot */ if (owner >= 0) { if (cardslot < 0 && !game_get_valid_card_slot(&cardslot)) { return; } currentgame->card[cardslot].cardid = cardid; currentgame->card[cardslot].owner = owner; xmlChar *title = xmlGetProp(cur, (xmlChar*)"title"); if (title) { if (currentgame->card[cardslot].title) { g_free(currentgame->card[cardslot].title); } currentgame->card[cardslot].title = (gchar*)title; } } /* destroy a card slot */ else { if (cardslot < 0) { return; } currentgame->card[cardslot].cardid = 0; currentgame->card[cardslot].owner = 0; if (currentgame->card[cardslot].title) { g_free(currentgame->card[cardslot].title); currentgame->card[cardslot].title = NULL; } } /* update component list in trade panel */ for(i = 0 ; i < MAX_TRADES ; i++) { if(! currentgame->trade[i].open) continue; trade_rebuild_component(i); trade_rebuild_subcomponent(i); } } void xmlparse_estategroupupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlChar *tmp; gint32 groupid = -1; (void)c; (void)doc; if (!currentgame) { return; } tmp = xmlGetProp(cur, (xmlChar*)"groupid"); if(tmp) { groupid = atoi((gchar*)tmp); g_free(tmp); } if(groupid < 0) return; if(currentgame->group[groupid].name) g_free(currentgame->group[groupid].name); currentgame->group[groupid].name = (gchar*)xmlGetProp(cur, (xmlChar*)"name"); } void xmlparse_deleteplayer(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlChar *tmp; gint32 id; player *p; (void)c; (void)doc; tmp = xmlGetProp(cur, (xmlChar*)"playerid"); if (!tmp) return; id = atoi((gchar*)tmp); g_free(tmp); if (id < 0) return; p = player_from_id(id); if (p == NULL) return; interface_gameboard_remove_player(p); update_display(); game_free_player(p); game_buildplayerlist(); } void xmlparse_gamelist_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlChar *tmp; gchar *players = NULL; gint32 id; GtkTreeIter iter; gboolean valid; gboolean update = FALSE; gchar *status = NULL; gint32 canbejoined = -1, canbewatched = -1; (void)doc; tmp = xmlGetProp(cur, (xmlChar*)"gameid"); id = atoi((gchar*)tmp); g_free(tmp); /* lookup if gameid on same server already exist */ if (id > 0) { valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter); while (valid) { gint32 source; gint32 eid; gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_GAMEID, &eid, GAMELIST_COLUMN_SOURCE, &source, -1); if (eid == id && source == GAMELIST_SOURCE_CUSTOM) { update = TRUE; break; } valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); } } /* ONLY TEMPORARY ! */ tmp = xmlGetProp(cur, (xmlChar*)"gametype"); if (tmp && xmlStrcmp(tmp, (xmlChar*)"city") && xmlStrcmp(tmp, (xmlChar*)"french_city") ) { g_free(tmp); return; } tmp = xmlGetProp(cur, (xmlChar*)"turn"); if(tmp) { int turn = atoi((gchar*)tmp); g_free(tmp); if (turn >= 1) { status = g_strdup_printf("Playing, turn %d", turn); } } tmp = xmlGetProp(cur, (xmlChar*)"status"); if(tmp) { if (!xmlStrcmp(tmp, (xmlChar*)"config") ) { if (status) { g_free(status); } status = g_strdup("Waiting for players"); } else if (!xmlStrcmp(tmp, (xmlChar*)"end") ) { if (status) { g_free(status); } status = g_strdup("Finished"); } g_free(tmp); } // game template if (id < 0) { canbejoined = true; canbewatched = false; } tmp = xmlGetProp(cur, (xmlChar*)"canbejoined"); if (tmp) { canbejoined = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur, (xmlChar*)"canbewatched"); if (tmp) { canbewatched = atoi((gchar*)tmp); g_free(tmp); } players = (gchar*)xmlGetProp(cur, (xmlChar*)"players"); if (update) { if (status) { gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_STATUS, status, -1); } if (players) { gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_PLAYERS, players, -1); } if (canbejoined >= 0) { gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_CANBEJOINED, canbejoined, -1); } if (canbewatched >= 0) { gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_CANBEWATCHED, canbewatched, -1); } if (canbejoined >= 0 || canbewatched >= 0) { gint32 joined, watched; gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_CANBEJOINED, &joined, GAMELIST_COLUMN_CANBEWATCHED, &watched, -1); gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_BGCOLOR, (joined || watched) ? "#c8ffc8" : "#ffc8c8", -1); } } else { gchar *game = NULL; gchar *gametype = (gchar*)xmlGetProp(cur, (xmlChar*)"gametype"); tmp = xmlGetProp(cur, (xmlChar*)"name"); if (tmp) { if (id < 0) { game = g_strdup_printf("Create new %s game", (gchar*)tmp); } else { game = g_strdup_printf("%s game %d", (gchar*)tmp, id); } g_free(tmp); } gtk_list_store_append(global->game_store, &iter); gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_HOST, c->host, GAMELIST_COLUMN_VERSION, c->server_version, GAMELIST_COLUMN_GAME, game, GAMELIST_COLUMN_STATUS, status, GAMELIST_COLUMN_PLAYERS, players, GAMELIST_COLUMN_PORT, c->port, GAMELIST_COLUMN_GAMETYPE, gametype, GAMELIST_COLUMN_GAMEID, id, GAMELIST_COLUMN_CANBEJOINED, canbejoined, GAMELIST_COLUMN_CANBEWATCHED, canbewatched, GAMELIST_COLUMN_BGCOLOR, (canbejoined || canbewatched) ? "#c8ffc8" : "#ffc8c8", GAMELIST_COLUMN_SOURCE, GAMELIST_SOURCE_CUSTOM, -1); g_free(gametype); g_free(game); } if(players) g_free(players); if(status) g_free(status); } void xmlparse_gamelist_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur) { xmlChar *tmp; gint32 id; GtkTreeIter iter; gboolean valid; (void)doc; (void)c; tmp = xmlGetProp(cur, (xmlChar*)"gameid"); id = atoi((gchar*)tmp); g_free(tmp); valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter); while (valid) { gint32 source; gint32 eid; GtkTreeIter curiter = iter; valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); /* get next iter so we can remove the current entry safely */ gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &curiter, GAMELIST_COLUMN_GAMEID, &eid, GAMELIST_COLUMN_SOURCE, &source, -1); if (eid == id && source == GAMELIST_SOURCE_CUSTOM) { gtk_list_store_remove(global->game_store, &curiter); } } } void xmlparse_metaserver(connection *c, gchar *buffer) { xmlChar *tmp; xmlDocPtr doc; xmlNodePtr cur, cur2; (void)c; doc = xmlParseMemory(buffer, strlen(buffer) ); if(doc == NULL) return; cur = xmlDocGetRootElement(doc); if (cur == NULL) { xmlFreeDoc(doc); return; } if( xmlStrcmp(cur->name, METASERVER_XMLROOTELEMENT) ) { xmlFreeDoc(doc); return; } for(cur = cur->xmlChildrenNode ; cur != NULL ; cur = cur -> next) { if(! xmlStrcmp(cur->name, (xmlChar*)"metaserver") ) { gchar *text; tmp = xmlGetProp(cur, (xmlChar*)"version"); text = g_strdup_printf("Atlantic metaserver version %s", tmp); g_free(tmp); interface_set_infolabel(text, "008000", false); g_free(text); } if(! xmlStrcmp(cur->name, (xmlChar*)"msg") ) { gchar *text; tmp = xmlGetProp(cur, (xmlChar*)"value"); text = g_strdup_printf("%s", tmp); g_free(tmp); interface_create_messagewin(text); g_free(text); } if(!xmlStrcmp(cur->name, (xmlChar*)"server") ) { gint32 serverid, users = -1; GtkTreeIter serveriter; bool valid, update = false; tmp = xmlGetProp(cur, (xmlChar*)"id"); if (!tmp) { continue; } serverid = atoi((gchar*)tmp); g_free(tmp); /* lookup if server already exist */ valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->server_store), &serveriter); while (valid) { gint32 eid; gtk_tree_model_get(GTK_TREE_MODEL(global->server_store), &serveriter, SERVERLIST_COLUMN_SERVERID, &eid, -1); if (eid == serverid) { update = true; break; } valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->server_store), &serveriter); } tmp = xmlGetProp(cur, (xmlChar*)"users"); if (tmp) { users = atoi((gchar*)tmp); g_free(tmp); if (update == true) { gtk_list_store_set(global->server_store, &serveriter, SERVERLIST_COLUMN_USERS, users, -1); } } if (update == false) { gchar *host, *version; gint32 port = -1; host = (gchar*)xmlGetProp(cur, (xmlChar*)"host"); tmp = xmlGetProp(cur, (xmlChar*)"port"); if (tmp) { port = atoi((gchar*)tmp); g_free(tmp); } version = (gchar*)xmlGetProp(cur, (xmlChar*)"version"); if (! (host && version && port >= 0 && users >= 0)) { continue; } gtk_list_store_append(global->server_store, &serveriter); gtk_list_store_set(global->server_store, &serveriter, SERVERLIST_COLUMN_HOST, host, SERVERLIST_COLUMN_PORT, port, SERVERLIST_COLUMN_VERSION, version, SERVERLIST_COLUMN_USERS, users, SERVERLIST_COLUMN_SERVERID, serverid, -1); g_free(host); g_free(version); } for(cur2 = cur->xmlChildrenNode ; cur2 != NULL ; cur2 = cur2 -> next ) { if (!xmlStrcmp(cur2->name, (xmlChar*)"game") ) { gchar *players; gint32 gameid; GtkTreeIter iter; bool valid, update = false; gchar *status = NULL; gint32 canbejoined = -1, canbewatched = -1; /* ONLY TEMPORARY ! */ tmp = xmlGetProp(cur2, (xmlChar*)"gametype"); if (tmp && xmlStrcmp(tmp, (xmlChar*)"city") && xmlStrcmp(tmp, (xmlChar*)"french_city") ) { g_free(tmp); continue; } tmp = xmlGetProp(cur2, (xmlChar*)"id"); if (!tmp) { continue; } gameid = atoi((gchar*)tmp); g_free(tmp); /* lookup if gameid on same server already exist */ if (gameid > 0) { valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter); while (valid) { gint32 source; gint32 egameid, eserverid; gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_GAMEID, &egameid, GAMELIST_COLUMN_SERVERID, &eserverid, GAMELIST_COLUMN_SOURCE, &source, -1); if (source == GAMELIST_SOURCE_METASERVER && egameid == gameid && eserverid == serverid) { update = true; break; } valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); } } tmp = xmlGetProp(cur2, (xmlChar*)"turn"); if(tmp) { int turn = atoi((gchar*)tmp); g_free(tmp); if (turn >= 1) { status = g_strdup_printf("Playing, turn %d", turn); } } tmp = xmlGetProp(cur2, (xmlChar*)"status"); if(tmp) { if (!xmlStrcmp(tmp, (xmlChar*)"config") ) { if (status) { g_free(status); } status = g_strdup("Waiting for players"); } else if (!xmlStrcmp(tmp, (xmlChar*)"end") ) { if (status) { g_free(status); } status = g_strdup("Finished"); } g_free(tmp); } // game template if (gameid < 0) { canbejoined = true; canbewatched = false; } tmp = xmlGetProp(cur2, (xmlChar*)"canbejoined"); if (tmp) { canbejoined = atoi((gchar*)tmp); g_free(tmp); } tmp = xmlGetProp(cur2, (xmlChar*)"canbewatched"); if (tmp) { canbewatched = atoi((gchar*)tmp); g_free(tmp); } players = (gchar*)xmlGetProp(cur2, (xmlChar*)"players"); if (update) { if (status) { gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_STATUS, status, -1); } if (players) { gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_PLAYERS, players, -1); } if (canbejoined >= 0) { gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_CANBEJOINED, canbejoined, -1); } if (canbewatched >= 0) { gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_CANBEWATCHED, canbewatched, -1); } if (canbejoined >= 0 || canbewatched >= 0) { gint32 joined, watched; gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_CANBEJOINED, &joined, GAMELIST_COLUMN_CANBEWATCHED, &watched, -1); gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_BGCOLOR, (joined || watched) ? "#c8ffc8" : "#ffc8c8", -1); } } else { gchar *host, *version, *game, *gametype; gint32 port; tmp = xmlGetProp(cur2, (xmlChar*)"name"); if (!tmp) { continue; } if(gameid < 0) { game = g_strdup_printf("Create new %s game", (gchar*)tmp); } else { game = g_strdup_printf("%s game %d", (gchar*)tmp, gameid); } g_free(tmp); gametype = (gchar*)xmlGetProp(cur2, (xmlChar*)"gametype"); gtk_tree_model_get(GTK_TREE_MODEL(global->server_store), &serveriter, SERVERLIST_COLUMN_HOST, &host, SERVERLIST_COLUMN_PORT, &port, SERVERLIST_COLUMN_VERSION, &version, -1); gtk_list_store_append(global->game_store, &iter); gtk_list_store_set(global->game_store, &iter, GAMELIST_COLUMN_HOST, host, GAMELIST_COLUMN_VERSION, version, GAMELIST_COLUMN_GAME, game, GAMELIST_COLUMN_STATUS, status, GAMELIST_COLUMN_PLAYERS, players, GAMELIST_COLUMN_PORT, port, GAMELIST_COLUMN_GAMETYPE, gametype, GAMELIST_COLUMN_GAMEID, gameid, GAMELIST_COLUMN_SERVERID, serverid, GAMELIST_COLUMN_CANBEJOINED, canbejoined, GAMELIST_COLUMN_CANBEWATCHED, canbewatched, GAMELIST_COLUMN_BGCOLOR, (canbejoined || canbewatched) ? "#c8ffc8" : "#ffc8c8", GAMELIST_COLUMN_SOURCE, GAMELIST_SOURCE_METASERVER, -1); g_free(host); g_free(version); g_free(game); g_free(gametype); } if (players) g_free(players); if (status) g_free(status); } else if (!xmlStrcmp(cur2->name, (xmlChar*)"deletegame") ) { gint32 gameid; GtkTreeIter iter; bool valid; tmp = xmlGetProp(cur2, (xmlChar*)"id"); if (!tmp) { continue; } gameid = atoi((gchar*)tmp); g_free(tmp); valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter); while (valid) { gint32 source; gint32 egameid, eserverid; gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_GAMEID, &egameid, GAMELIST_COLUMN_SERVERID, &eserverid, GAMELIST_COLUMN_SOURCE, &source, -1); if (source == GAMELIST_SOURCE_METASERVER && egameid == gameid && eserverid == serverid) { gtk_list_store_remove(global->game_store, &iter); break; } valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); } } } } else if(!xmlStrcmp(cur->name, (xmlChar*)"deleteserver") ) { gint32 id; GtkTreeIter iter; bool valid; tmp = xmlGetProp(cur, (xmlChar*)"id"); if (!tmp) { continue; } id = atoi((gchar*)tmp); g_free(tmp); valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->server_store), &iter); while (valid) { gint32 eid; gtk_tree_model_get(GTK_TREE_MODEL(global->server_store), &iter, SERVERLIST_COLUMN_SERVERID, &eid, -1); if (eid == id) { gtk_list_store_remove(global->server_store, &iter); break; } valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->server_store), &iter); } valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter); while (valid) { gint32 source; gint32 eid; GtkTreeIter curiter = iter; valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); /* get next iter so we can safely remove the current entry */ gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &curiter, GAMELIST_COLUMN_SERVERID, &eid, GAMELIST_COLUMN_SOURCE, &source, -1); if (source == GAMELIST_SOURCE_METASERVER && eid == id) { gtk_list_store_remove(global->game_store, &curiter); } } } } xmlFreeDoc(doc); } gtkatlantic-0.6.1/src/game.h0000644000175000017500000000442712550311252012620 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef GAME_H #define GAME_H #include "global.h" void create_home_directory(void); void read_config_files(); void create_connection_metaserver(void); void create_connection_get_games(gchar *host, gint32 port); void text_insert_chat(gchar* text, gint32 lenght); game *game_new(gint32 id); void game_free(gint32 id); game *game_find(gint32 id); void game_quit(); player *game_new_player(guint32 id); player *player_from_id(gint32 playerid); player *player_from_name(gchar *name); gint32 get_playerlistcard_id_with_estate(gint32 estate); gboolean game_get_valid_command_slot(gint32 *commandslot); gint32 get_command_button_slot_with_command(gchar *command); void parse_specific_chat_message(gchar *message); void parse_specific_send_message(gchar *message); void game_sort_playerlist_by_playerid(void); void game_sort_playerlist_by_turnorder(void); void game_switch_status(); void game_write_cookie(); void game_delete_cookie(void); gboolean game_cookie_available(void); gboolean game_get_valid_card_slot(gint32 *cardslot); gint32 get_card_slot_with_cardid(gint32 cardid); gint32 game_nb_players(); gboolean game_get_valid_trade_slot(gint32 *tradeslot); gint32 get_trade_slot_with_tradeid(gint32 tradeid); gint32 get_estateid_by_estatename(gchar *name); void game_buildplayerlist(); gint32 game_get_assets_player(gint32 playerid); void game_update_tokens(); void game_initiate_token_movement(); gboolean game_move_tokens(gpointer data); void game_free_player(player *p); void game_exit(void); #endif /* GAME_H */ gtkatlantic-0.6.1/src/interface.h0000644000175000017500000000406112550311257013646 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef INTERFACE_H #define INTERFACE_H #include #define BORDER 3 /* prototypes of interface.c */ void interface_create_mainwindow(); void interface_create_getgamespage(bool autoconnect); void interface_create_gameconfigpage(); void interface_create_gameinitpage(); void interface_create_gameboardpage(); void interface_gameboard_add_player(player *p); void interface_gameboard_remove_player(player *p); gboolean interface_chat_scroll_to_the_end(gpointer data); void interface_create_chat(GtkWidget *container); void interface_unparent_chat(); void interface_create_auctionbox(gint32 auctionid, gint32 estateid); void interface_create_aboutwin(); void interface_create_config_panel(); void interface_create_connectoserver(void); void interface_create_publicserverlist(void); void interface_create_nicknamewin(); void interface_create_estates_tree(); void interface_create_helpwin(); void interface_set_infolabel(gchar *text, gchar *color, gboolean eternal); void interface_create_messagewin(gchar *msg); void on_board_draw(GtkWidget *widget, cairo_t *cr, gpointer data); void on_playertoken_draw(GtkWidget *widget, cairo_t *cr, gpointer data); void on_playercards_draw(GtkWidget *widget, cairo_t *cr, gpointer data); void update_display(); #endif /* INTERFACE_H */ gtkatlantic-0.6.1/src/main.c0000644000175000017500000000321112550307501012616 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include #include "global.h" #include "interface.h" #include "load.h" #include "client.h" #include "game.h" #include "engine.h" #include "parser.h" #ifdef WIN32 #include #endif int main(int argc, char **argv) { #ifdef WIN32 WSADATA wsaData; if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0) exit(-1); #endif global = g_malloc0( sizeof(_global) ); data = g_malloc0( sizeof(_data) ); config = g_malloc0( sizeof(_config) ); create_home_directory(); read_config_files(); gtk_init(&argc, &argv); eng_init(); if( xmlparse_file_interface() ) exit(-1); interface_create_mainwindow(); interface_create_getgamespage(true); gtk_main(); game_exit(); #ifdef WIN32 WSACleanup(); #endif return 0; } gtkatlantic-0.6.1/src/client.c0000644000175000017500000002324112550307374013165 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ /* ** functions for connect/disconnect server, receive/send data to/from server */ #include "config.h" #include #include #include #include #include #ifndef WIN32 #include #include #include #include #include #include #define closesocket close #define my_io_channel_socket_new g_io_channel_unix_new #else /* WIN32 */ #undef _WIN32_WINNT #define _WIN32_WINNT _WIN32_WINNT_WINXP /* getaddrinfo() is only supported since WinXP */ #include #include #define my_io_channel_socket_new g_io_channel_win32_new_socket #ifndef SHUT_RDWR #define SHUT_RDWR SD_BOTH #endif /* SHUT_RDWR */ #endif /* WIN32 */ #include #include #include #include "xmlparse.h" #include "global.h" #include "client.h" #include "game.h" #include "interface.h" static void client_connect_async(connection *c); static gboolean client_connect_finish(connection *c); static gboolean client_connect_failed(gchar *msg); static void client_connect_free(connection *c); /* -- connect to server > > return false if: > - max number of connection reached > - can't resolve host > - can't open port or socket */ #if DEBUG static guint32 nextid; #endif /* DEBUG */ void client_connect(guint8 type, gchar* host, gint32 port, gchar *cmd) { connection *c; GThread *t; gchar *msg; switch (type) { case CONNECT_TYPE_MONOPD_GETGAME: client_disconnect(global->customserver_connect); break; case CONNECT_TYPE_MONOPD_GAME: client_disconnect(global->game_connect); break; case CONNECT_TYPE_METASERVER: client_disconnect(global->metaserver_connect); break; } c = g_malloc0(sizeof(connection)); #if DEBUG c->id = nextid++; #endif /* DEBUG */ c->type = type; c->host = g_strdup(host); c->port = port; c->buffer_out = cmd; msg = g_strdup_printf("Connecting to %s:%d…", c->host, c->port); interface_set_infolabel(msg, "008000", true); g_free(msg); t = g_thread_new("connect", (GThreadFunc)client_connect_async, c); g_thread_unref(t); } static void client_connect_async(connection *c) { struct addrinfo hints; struct addrinfo *result, *addrinfo; char port_str[6]; int r; char ip_str[INET6_ADDRSTRLEN]; int sock; memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; snprintf(port_str, sizeof(port_str), "%d", c->port); r = getaddrinfo(c->host, port_str, &hints, &result); if (r != 0) { gchar *msg = g_strdup_printf("Can't resolve host %s:%d: %s", c->host, c->port, gai_strerror(r)); g_idle_add((GSourceFunc)client_connect_failed, msg); goto failed; } for (addrinfo = result; addrinfo != NULL; addrinfo = addrinfo->ai_next) { sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); if (sock < 0) { gchar *msg = g_strdup_printf("Socket failed %s:%d: %s", c->host, c->port, strerror(errno)); g_idle_add((GSourceFunc)client_connect_failed, msg); continue; } ip_str[0] = '\0'; #ifndef WIN32 if (addrinfo->ai_family == AF_INET) { inet_ntop(addrinfo->ai_family, &(((struct sockaddr_in *)addrinfo->ai_addr)->sin_addr), ip_str, INET6_ADDRSTRLEN); } else if (addrinfo->ai_family == AF_INET6) { inet_ntop(addrinfo->ai_family, &(((struct sockaddr_in6 *)addrinfo->ai_addr)->sin6_addr), ip_str, INET6_ADDRSTRLEN); } #else /* WIN32 */ if (addrinfo->ai_family == AF_INET) { DWORD len = INET6_ADDRSTRLEN; WSAAddressToString(addrinfo->ai_addr, (DWORD)sizeof(struct sockaddr_in), NULL, ip_str, &len); } else if (addrinfo->ai_family == AF_INET6) { DWORD len = INET6_ADDRSTRLEN; WSAAddressToString(addrinfo->ai_addr, (DWORD)sizeof(struct sockaddr_in6), NULL, ip_str, &len); } #endif /* WIN32 */ r = connect(sock, addrinfo->ai_addr, addrinfo->ai_addrlen); if (r < 0) { gchar *msg = g_strdup_printf("Connect failed to %s:%d, %s: %s", c->host, c->port, ip_str, strerror(errno)); g_idle_add((GSourceFunc)client_connect_failed, msg); close(sock); continue; } break; } freeaddrinfo(result); if (addrinfo == NULL) { goto failed; } #ifndef WIN32 /* set socket to non-blocking */ int flags = fcntl(sock, F_GETFL); if (flags >= 0) { flags |= O_NONBLOCK; fcntl(sock, F_SETFL, flags); } #else /* WIN32 */ u_long on = 1; ioctlsocket(sock, FIONBIO, &on); #endif /* WIN32 */ /* Disable Nagle's algorithm */ #ifndef WIN32 int flag = 1; #else /* WIN32 */ char flag = 1; #endif /* WIN32 */ setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(int)); c->ip = g_strdup(ip_str); c->socket = sock; g_idle_add((GSourceFunc)client_connect_finish, c); return; failed: g_free(c->host); if (c->buffer_out) { g_free(c->buffer_out); } g_free(c); } static gboolean client_connect_finish(connection *c) { GIOChannel *channel; gchar *msg; /* we are a bit too late */ if ( (c->type == CONNECT_TYPE_MONOPD_GETGAME && global->customserver_connect) || (c->type == CONNECT_TYPE_MONOPD_GETGAME && global->phase != PHASE_GETGAMES) || (c->type == CONNECT_TYPE_METASERVER && global->metaserver_connect) || (c->type == CONNECT_TYPE_METASERVER && global->phase != PHASE_GETGAMES) || (c->type == CONNECT_TYPE_MONOPD_GAME && global->game_connect) ) { client_connect_free(c); return G_SOURCE_REMOVE; } channel = my_io_channel_socket_new(c->socket); g_io_channel_set_encoding(channel, NULL, NULL); c->channel = channel; c->event_source_id = g_io_add_watch(channel, G_IO_IN|G_IO_ERR|G_IO_HUP, (GIOFunc)client_event, c); msg = g_strdup_printf("Connected to %s:%d, using %s", c->host, c->port, c->ip); interface_set_infolabel(msg, "008000", false); g_free(msg); if (c->buffer_out) { client_send(c, c->buffer_out); g_free(c->buffer_out); c->buffer_out = NULL; } switch (c->type) { case CONNECT_TYPE_MONOPD_GETGAME: global->customserver_connect = c; break; case CONNECT_TYPE_MONOPD_GAME: global->game_connect = c; break; case CONNECT_TYPE_METASERVER: global->metaserver_connect = c; break; } return G_SOURCE_REMOVE; } static gboolean client_connect_failed(gchar *msg) { interface_set_infolabel(msg, "b00000", true); g_free(msg); return G_SOURCE_REMOVE; } /* -- close the connection */ void client_disconnect(connection *c) { if (!c) return; switch (c->type) { case CONNECT_TYPE_MONOPD_GETGAME: global->customserver_connect = NULL; break; case CONNECT_TYPE_MONOPD_GAME: global->game_connect = NULL; break; case CONNECT_TYPE_METASERVER: global->metaserver_connect = NULL; break; } client_connect_free(c); } static void client_connect_free(connection *c) { if (c->event_source_id) g_source_remove(c->event_source_id); if (c->channel) g_io_channel_unref(c->channel); shutdown(c->socket, SHUT_RDWR); closesocket(c->socket); if (c->buffer_in) { g_free(c->buffer_in); } g_free(c->host); g_free(c->ip); g_free(c->server_version); g_free(c); } gboolean client_event(GIOChannel *channel, GIOCondition condition, connection *c) { if (condition == G_IO_IN) { GIOStatus status; gchar chunk[1024 +1]; gsize bytes_read; GError *err = NULL; gchar *buffer, *beg, *cur; status = g_io_channel_read_chars(channel, chunk, 1024, &bytes_read, &err); switch (status) { case G_IO_STATUS_NORMAL: break; case G_IO_STATUS_AGAIN: return TRUE; case G_IO_STATUS_ERROR: case G_IO_STATUS_EOF: client_disconnect(c); interface_set_infolabel("Connection to server lost.", "b00000", true); return TRUE; } chunk[bytes_read] = '\0'; if(c->buffer_in == NULL) { buffer = g_strdup(chunk); } else { buffer = g_strconcat(c->buffer_in, chunk, NULL); g_free(c->buffer_in); c->buffer_in = NULL; } /* parse data */ for(beg = cur = buffer; *cur; cur++) { if( *cur == '\n') { *cur = '\0'; #if DEBUG fprintf(stdout, "\033[32mID(%.2d): RECV(%.4d): [%s]\033[m\n", c->id, (int)strlen(beg), beg); #endif /* DEBUG */ switch(c->type) { case CONNECT_TYPE_MONOPD_GETGAME: xmlparse_getgamelist_plugger(c, beg); break; case CONNECT_TYPE_MONOPD_GAME: xmlparse_game_plugger(c, beg); break; case CONNECT_TYPE_METASERVER: xmlparse_metaserver(c, beg); break; } beg = cur+1; } } /* bufferise remaining data */ if (beg != cur) { c->buffer_in = g_strdup(beg); } g_free(buffer); } else /* if (condition == G_IO_ERR || condition == G_IO_HUP) */ { client_disconnect(c); interface_set_infolabel("Connection to server lost.", "b00000", true); return TRUE; } return TRUE; } /* -- send data to server >> get from send_tmp buffer >> flush send_tmp buffer */ void client_send(connection *c, gchar *data) { size_t len; ssize_t s; if (!c) return; len = strlen(data); s = send(c->socket, data, len, 0); if (s < 0 || (size_t)s != len) { return; } #if DEBUG fprintf(stdout, "\033[31mID(%.2d): SEND(%.4d): [%s]\033[m\n", c->id, (int)len, data); #endif /* DEBUG */ } gtkatlantic-0.6.1/src/parser.h0000644000175000017500000000172712550311265013207 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef PARSER_H #define PARSER_H #include gchar *parser_get_identifier(gchar *str); gchar *parser_get_data(gchar *str, gchar *key); #endif /* PARSER_H */ gtkatlantic-0.6.1/src/eng_main.h0000644000175000017500000001320512550311243013456 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef ENG_MAIN_H #define ENG_MAIN_H /* ENG_MAIN: main functions for engine * * * all int functions return 0 if error occur * return >0 when sucess * * all functions kill process if error occurs when allocate memory */ /* ---- info about: x, y, z * * o-------- x * /| * / | * / | * / | * z | * y * * z = ground, 0 is background * */ /* ---- struct hierarchy * * eng > global engine variables * `-> eng_alpha > alpha tables * eng_frame > property of frames (height, width, ...) * |-> eng_zone_upd > display zone to update (x1, y1, x2, y1) * `-> eng_obj > property of pictures (x, y, height, width, ...) */ #include #include "eng_list.h" #define MAX_HEIGHT 0xffff #define MAX_WIDTH 0xffff #define ENG_DEBUG FALSE /* -- prototypes for eng_main.c -- */ typedef struct eng_coord_ eng_coord; typedef struct eng_alpha_ eng_alpha; typedef struct _eng_ _eng; _eng *eng; typedef struct eng_frame_ eng_frame; typedef struct eng_obj_ eng_obj; typedef struct eng_zone_ eng_zone; void eng_init(); void eng_close(); eng_frame* eng_frame_create(); void eng_frame_destroy (eng_frame *f); void eng_frame_destroy_all(); void eng_frame_reset (eng_frame *f); void eng_frame_free_zoneupd (eng_frame *f); void eng_frame_set_compute (eng_frame *f); void eng_frame_unset_compute (eng_frame *f); void eng_frame_clean (eng_frame *f); void eng_frame_set_height (eng_frame *f, guint16 height); void eng_frame_set_width (eng_frame *f, guint16 width); void eng_frame_showarg (eng_frame *f); eng_obj* eng_pic_create (eng_frame *f); void eng_pic_destroy (eng_obj *o); //sent a call to destroy pic void eng_pic_free (eng_obj *o); //real destruction, never use is directly void eng_pic_reset (eng_obj *o); void eng_pic_show (eng_obj *o); void eng_pic_unshow (eng_obj *o); void eng_pic_redraw (eng_obj *o); void eng_pic_set_x (eng_obj *o, guint16 x); void eng_pic_set_y (eng_obj *o, guint16 y); void eng_pic_set_z (eng_obj *o, guint16 z); void eng_pic_set_height (eng_obj *o, guint16 height); void eng_pic_set_width (eng_obj *o, guint16 width); void eng_pic_set_alpha (eng_obj *o, guint8 alpha); void eng_pic_unset_alpha (eng_obj *o); void eng_pic_set_bgcolor (eng_obj *o, guint32 bgcolor); void eng_pic_unset_bgcolor (eng_obj *o); void eng_pic_set_buf (eng_obj *o, guchar * buff); void eng_pic_showarg (eng_obj *o); gboolean eng_pic_test (eng_obj *o); /* -- end of prototypes -- */ struct eng_coord_ { gint32 x1; gint32 y1; gint32 x2; gint32 y2; gint32 x; gint32 y; gint32 width; gint32 height; gint32 stride; eng_list_e *entry; }; struct _eng_ { eng_alpha *alpha; // alpha tables eng_list *obj; eng_list *frame; } ; struct eng_alpha_ { guint8 fg[256][256]; // foreground [alpha][fg] guint8 bg[256][256]; // background [alpha][bg] } ; struct eng_frame_ { gboolean compute; // compute/or not the frame guint16 width; // set the width of out buffer guint16 height; // set the height of out buffer guchar * bufout; // bufout contain image would you want to draw // PRIVATE guint32 memalloc; // how much mem is allocated for buf guint16 num_zone; // number of zones to update guint16 x_min; // min/max of zone to refresh guint16 y_min; guint16 x_max; guint16 y_max; eng_list *obj; eng_list *zone_upd; eng_list_e *entry; // entry in frame list }; struct eng_obj_ { eng_frame *frame; gboolean show; // show/hide the pic gboolean destroy; // destroy this picture guint16 x; // x position guint16 y; // y position guint16 z; // z position (ground) guint16 width; // width of img guint16 height; // height of img gboolean have_alpha; // have an alpha gboolean have_bgcolor; // have a backgroundcolor guint8 alpha; // alpha value guint8 bgcolor[3]; // background color guchar * buf; // buf contain data pixel color // PRIVATE gboolean change; // if pic arg has changed guint16 x_old; // x position old guint16 y_old; // y position old guint16 width_old; // width of img old guint16 height_old; // height of img old eng_list_e *entry; // entry in frame object list eng_list_e *entry_main; // entry in general object list eng_list_e *entry_valid; // entry in tmp valid list eng_list_e *entry_show; // entry in tmp show list eng_list_e *entry_modif; // entry in tmp modif list eng_list_e *entry_zone; // entry in zone modif list }; struct eng_zone_ { gint32 x1; gint32 y1; gint32 x2; gint32 y2; gint32 height; gint32 width; guchar *aux; }; #endif /* ENG_MAIN_H */ gtkatlantic-0.6.1/src/callback.c0000644000175000017500000007044612554755266013467 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include "global.h" #include "callback.h" #include "client.h" #include "game.h" #include "interface.h" #include "trade.h" #include "load.h" #include "theme.h" #include "display.h" #include "engine.h" /* **** Show Configuration Panel */ void Callback_ShowConfiguration(GtkWidget* menuitem) { (void)menuitem; interface_create_config_panel(); } /* **** Get games from all monopd server */ void Callback_ConnectMetaServer(GtkWidget* button) { (void)button; if (global->phase < PHASE_GAMECREATE) { if (global->phase < PHASE_GETGAMES) { interface_create_getgamespage(false); } create_connection_metaserver(); } } /* get games: event "row_select" */ void Callback_GetGame_Select(GtkTreeSelection *selection, gpointer data) { GtkTreeModel *model; gint32 gameid, canbejoined, canbewatched; (void)data; GtkWidget *button = g_object_get_data(G_OBJECT(global->MainVerticalBox), "connect_button"); if (!gtk_tree_selection_get_selected(selection, &model, &global->selected_game)) { if (button) { gtk_button_set_label(GTK_BUTTON(button), "Select a game"); gtk_widget_set_sensitive(button, FALSE); } return; } gtk_tree_model_get(model, &global->selected_game, GAMELIST_COLUMN_GAMEID, &gameid, GAMELIST_COLUMN_CANBEJOINED, &canbejoined, GAMELIST_COLUMN_CANBEWATCHED, &canbewatched, -1); if (button) { if (gameid < 0) { gtk_button_set_label(GTK_BUTTON(button), "Create game"); gtk_widget_set_sensitive(button, TRUE); } else { if (canbejoined) { gtk_button_set_label(GTK_BUTTON(button), "Join game"); gtk_widget_set_sensitive(button, TRUE); } else if (canbewatched) { gtk_button_set_label(GTK_BUTTON(button), "Watch game"); gtk_widget_set_sensitive(button, TRUE); } else { gtk_button_set_label(GTK_BUTTON(button), "This game does not allow spectators"); gtk_widget_set_sensitive(button, FALSE); } } } } /* **** Join/create a game */ void Callback_ConnectButton(GtkWidget* button) { (void)button; gchar *cmd; gchar *host, *gametype; gint32 port, gameid, canbejoined, canbewatched; gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &global->selected_game, GAMELIST_COLUMN_HOST, &host, GAMELIST_COLUMN_PORT, &port, GAMELIST_COLUMN_GAMETYPE, &gametype, GAMELIST_COLUMN_GAMEID, &gameid, GAMELIST_COLUMN_CANBEJOINED, &canbejoined, GAMELIST_COLUMN_CANBEWATCHED, &canbewatched, -1); if (! (gameid < 0 || canbejoined || canbewatched)) { return; } /* create a game */ if (gameid < 0) { cmd = g_strdup_printf(".n%s\n.gn%s\n", config->nickname, gametype); } /* join a game */ else if (canbejoined) { cmd = g_strdup_printf(".n%s\n.gj%d\n", config->nickname, gameid); } /* watch a game */ else { cmd = g_strdup_printf(".n%s\n.gS%d\n", config->nickname, gameid); } client_connect(CONNECT_TYPE_MONOPD_GAME, host, port, cmd); } /* **** Start the game :) */ void Callback_StartButton(GtkWidget* button) { (void)button; client_send(global->game_connect, ".gs\n"); } /* *** send data to server */ void Callback_SendButton(GtkWidget* Button, GtkWidget *entry) { (void)Button; gchar *tmp, *tmp2; tmp = g_strdup( gtk_entry_get_text( GTK_ENTRY(entry) ) ); g_strstrip(tmp); if(tmp[0] != '/') { tmp2 = g_strconcat(tmp, "\n", NULL); g_free(tmp); tmp = tmp2; client_send(global->game_connect, tmp); } else parse_specific_send_message(tmp); g_free(tmp); gtk_entry_set_text(GTK_ENTRY(entry), ""); } /* *** save and apply the config */ void CallBack_ok_button_configwindow(GtkWidget* widget) { (void)widget; gchar *filename, *errormsg; FILE *file; if (!global->path_home) { return; } filename = g_strconcat(global->path_home, "/gtkatlantic.conf", NULL); file = fopen(filename, "wt"); if (!file) { errormsg = g_strdup_printf("Can't write config file at \"%s\"", filename); interface_set_infolabel(errormsg, "b00000", false); g_free(errormsg); g_free(filename); return; } g_free(filename); fprintf(file, "player nickname=\"%s\"\n", gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_player_nickname") ) ) ); fprintf(file, "metaserver autoconnect=\"%d\" sendclientversion=\"%d\"\n", gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_metaserver_autoconnect") ) ), gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_metaserver_sendclientversion") ) ) ); fprintf(file, "customserver host=\"%s\" port=\"%d\" autoconnect=\"%d\"\n", gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_customserver_host") ) ), atoi( gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_customserver_port") ) ) ), gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_customserver_autoconnect") ) ) ); fprintf(file, "interface playerlist=\"%s\" token_speed=\"%d\" token_transparency=\"%d\"\n", gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT( g_object_get_data(G_OBJECT(global->ConfigWin), "config_gameinterface_playerlistposition") ) ), (guint32)gtk_adjustment_get_value(GTK_ADJUSTMENT( g_object_get_data(G_OBJECT(global->ConfigWin), "config_gameinterface_tokenanimatespeed") ) ), gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_gameinterface_tokentransparency") ) ) ); fclose(file); read_config_files(); gtk_widget_destroy(global->ConfigWin); } /* *** reallow show config panel */ void CallBack_configwindow_destroyed(GtkWidget* widget) { (void)widget; global->ConfigWin = 0; } /* *** button command pressed */ void CallBack_button_command_pressed(GtkWidget* button) { gchar *ptr = g_object_get_data(G_OBJECT(button), "command"); client_send(global->game_connect, ptr); } /* *** button command pressed */ void Callback_AuctionButton_Absolute(GtkWidget* button, GtkWidget* entry) { gchar *tosend; gint32 auction, money; auction = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "auctionid")); money = atoi(gtk_entry_get_text(GTK_ENTRY(entry))); gtk_entry_set_text(GTK_ENTRY(entry), ""); tosend = g_strdup_printf(".ab%d:%d\n", auction, money); client_send(global->game_connect, tosend); g_free(tosend); } /* *** button command pressed */ void Callback_AuctionButton_Relative(GtkWidget* button) { gchar *tosend; gint32 auction, money; auction = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "auctionid")); money = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_highbid")) + GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "value_add")); tosend = g_strdup_printf(".ab%d:%d\n", auction, money); client_send(global->game_connect, tosend); g_free(tosend); } /* *** callback clic on estate */ void Callback_ClicOnEstate(GtkWidget* widget, GdkEvent *event) { if (event->type != GDK_BUTTON_PRESS) { return; } GtkWidget *menu = g_object_get_data(G_OBJECT(widget), "menu"); GdkEventButton *button_event = (GdkEventButton *)event; gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, button_event->button, button_event->time); } /* *** callback clic on estate */ void CallBack_PopupMenuEstate(GtkWidget* widget) { guint32 id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(gtk_widget_get_parent(widget)), "estateid")); gint32 action = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "action")); gchar *cmd = NULL; switch (action) { case ESTATE_ACTION_BUILDHOUSE: cmd = g_strdup_printf(".hb%d\n", id); break; case ESTATE_ACTION_SELLHOUSE: cmd = g_strdup_printf(".hs%d\n", id); break; case ESTATE_ACTION_MORTGAGE: cmd = g_strdup_printf(".em%d\n", id); break; case ESTATE_ACTION_SELL: cmd = g_strdup_printf(".es%d\n", id); break; } if (cmd) { client_send(global->game_connect, cmd); g_free(cmd); } } /* *** callback enter an estate */ void Callback_EnterAnEstate(GtkWidget* widget) { gint32 id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "estateid")); eng_obj *pic = currentgame->estate[id].pic; eng_pic_set_bgcolor(pic, 0x000000); eng_pic_set_alpha(pic, 170); update_display(); } /* *** callback leave an estate */ void Callback_LeaveAnEstate(GtkWidget* widget) { gint32 id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "estateid")); eng_obj *pic = currentgame->estate[id].pic; eng_pic_unset_alpha(pic); update_display(); } /* *** callback clic on player */ void Callback_ClicOnPlayer(GtkWidget* widget, GdkEvent *event) { if (event->type != GDK_BUTTON_PRESS) { return; } GtkWidget *menu = g_object_get_data(G_OBJECT(widget), "menu"); GdkEventButton *button_event = (GdkEventButton *)event; gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, button_event->button, button_event->time); } /* *** callback clic on player */ void CallBack_PopupMenuPlayer(GtkWidget* widget) { player *p = g_object_get_data(G_OBJECT(gtk_widget_get_parent(widget)), "player"); gint32 action = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "action")); gchar *cmd = NULL; switch (action) { case PLAYER_ACTION_TRADE: cmd = g_strdup_printf(".Tn%d\n", p->playerid); break; case PLAYER_ACTION_VERSION: cmd = g_strdup_printf("!version %s\n", p->name); break; case PLAYER_ACTION_DATE: cmd = g_strdup_printf("!date %s\n", p->name); break; case PLAYER_ACTION_PING: cmd = g_strdup_printf("!ping %s\n", p->name); break; } if (cmd) { client_send(global->game_connect, cmd); g_free(cmd); } } /* *** callback for game option type bool */ void Callback_toggle_boolean_gameoption(GtkWidget* widget) { gchar *text, *cmd; gint32 id; /* commands using the new configupdate protocol */ id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "id")); if (id > 0) { text = g_strdup_printf(".gc%d:%d\n", id, gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(widget) ) ); client_send(global->game_connect, text); g_free(text); return; } /* commands using the old configupdate protocol */ cmd = g_object_get_data(G_OBJECT(widget), "command"); if (cmd) { text = g_strdup_printf("%s%d\n", cmd, gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(widget) ) ); client_send(global->game_connect, text); g_free(text); } } /* *** callback for the entry menu connect to server */ void CallBack_menu_connect_to_server(GtkWidget* widget) { (void)widget; if (global->phase < PHASE_GAMECREATE) interface_create_connectoserver(); } /* *** callback for the connect to server menu entry */ void CallBack_response_connect_to_server_window(GtkWidget* widget, gint response, GtkWidget *Win) { (void)widget; if (global->phase < PHASE_GAMECREATE && response == GTK_RESPONSE_OK) { GtkWidget *host = g_object_get_data(G_OBJECT(Win), "host"); GtkWidget *port = g_object_get_data(G_OBJECT(Win), "port"); if (global->phase < PHASE_GETGAMES) { interface_create_getgamespage(false); } create_connection_get_games((gchar*)gtk_entry_get_text(GTK_ENTRY(host)), atoi(gtk_entry_get_text(GTK_ENTRY(port)))); } gtk_widget_destroy(Win); } /* *** callback for the entry menu connect to server */ void CallBack_menu_public_server_list(GtkWidget* widget) { (void)widget; if (global->phase == PHASE_GETGAMES) interface_create_publicserverlist(); } /* *** callback for the entry menu change nickname */ void CallBack_menu_change_nickname(GtkWidget* widget) { (void)widget; if(global->phase >= PHASE_GAMECREATE) interface_create_nicknamewin(); } /* *** callback for the ok button of window change nickname */ void CallBack_response_changenick_window(GtkWidget* widget, gint response, GtkWidget *Win) { (void)widget; if(response == GTK_RESPONSE_OK) { GtkWidget *Entry = g_object_get_data(G_OBJECT(Win), "nickname"); gchar *nickname, *sendstr; nickname = g_strdup( gtk_entry_get_text(GTK_ENTRY( Entry ) ) ); if (strcmp(player_from_id(global->my_playerid)->name, nickname)) { sendstr = g_strdup_printf(".n%s\n", nickname); client_send(global->game_connect, sendstr); g_free(sendstr); } g_free(nickname); } gtk_widget_destroy(Win); } /* *** callback for the entry menu reconnect */ void CallBack_menu_reconnect(GtkWidget* widget) { (void)widget; gchar buf[64]; gchar *filename, *host = NULL, *cmd; guint32 port; FILE *file; size_t len; if (global->phase > PHASE_GETGAMES) { return; } if (!global->path_home) { return; } /* read cookie file */ filename = g_strconcat(global->path_home, "/cookie", NULL); file = fopen(filename, "rt"); g_free(filename); if (!file) { return; } if (fgets(buf, sizeof(buf), file) == NULL) { goto free_and_return; } len = strlen(buf); if (buf[len-1] != '\n') { goto free_and_return; } buf[len-1] = '\0'; host = g_strdup(buf); if (fgets(buf, sizeof(buf), file) == NULL) { goto free_and_return; } len = strlen(buf); if (buf[len-1] != '\n') { goto free_and_return; } buf[len-1] = '\0'; port = atoi(buf); if (fgets(buf, sizeof(buf), file) == NULL) { goto free_and_return; } len = strlen(buf); if (buf[len-1] != '\n') { goto free_and_return; } buf[len-1] = '\0'; cmd = g_strdup_printf(".R%s\n", buf); /* rejoin game */ client_connect(CONNECT_TYPE_MONOPD_GAME, host, port, cmd); free_and_return: fclose(file); if (host) g_free(host); } void CallBack_menu_AddPlayer(GtkWidget *widget) { player *p = g_object_get_data(G_OBJECT(widget), "player"); if (!p) { return; } gchar *cmd = g_strdup_printf(".gu%d\n", p->playerid); client_send(global->game_connect, cmd); g_free(cmd); } /* *** callback for all trades buttons */ void CallBack_trade_button(GtkWidget *button) { gchar *sendstr = 0; gint32 command = GPOINTER_TO_INT(g_object_get_data( G_OBJECT(button), "command" )); guint32 tradeid = GPOINTER_TO_INT( g_object_get_data( G_OBJECT(button), "tradeid" ) ); guint32 tradeslot = get_trade_slot_with_tradeid(tradeid); switch(command) { case TRADE_ACTION_REJECT: sendstr = g_strdup_printf(".Tr%d\n", tradeid); client_send(global->game_connect, sendstr); g_free(sendstr); break; case TRADE_ACTION_ACCEPT: sendstr = g_strdup_printf(".Ta%d:%d\n", tradeid, currentgame->trade[tradeslot].revision); client_send(global->game_connect, sendstr); g_free(sendstr); break; case TRADE_ACTION_REMOVE: if(currentgame->trade[tradeslot].select_type == TRADE_TYPE_MONEY) sendstr = g_strdup_printf(".Tm%d:%d:%d:%d\n", tradeid, currentgame->trade[tradeslot].select_from, currentgame->trade[tradeslot].select_to, 0); if(currentgame->trade[tradeslot].select_type == TRADE_TYPE_ESTATE) sendstr = g_strdup_printf(".Te%d:%d:%d\n", tradeid, currentgame->trade[tradeslot].select_aux, currentgame->trade[tradeslot].select_from); if(currentgame->trade[tradeslot].select_type == TRADE_TYPE_CARD) sendstr = g_strdup_printf(".Tc%d:%d:%d\n", tradeid, currentgame->trade[tradeslot].select_aux, currentgame->trade[tradeslot].select_from); if(sendstr) { client_send(global->game_connect, sendstr); g_free(sendstr); } break; } } /* *** callback for all trade component */ void CallBack_trade_sub_component(GtkWidget *combo) { gchar *text; gint32 tradeslot; tradeslot = get_trade_slot_with_tradeid( GPOINTER_TO_INT( g_object_get_data( G_OBJECT(combo), "tradeid" ) ) ); if(tradeslot < 0) return; text = gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(combo) ); if( !strcmp(text, "Money")) { currentgame->trade[tradeslot].current_component = TRADE_TYPE_MONEY; } else if( !strcmp(text, "Estate")) { currentgame->trade[tradeslot].current_component = TRADE_TYPE_ESTATE; } else { currentgame->trade[tradeslot].current_component = TRADE_TYPE_CARD; } trade_rebuild_subcomponent(tradeslot); } /* *** callback for all update component */ void CallBack_trade_update_component(GtkWidget *button) { gchar *sendstr; guint32 tradeid, estateid, cardid, tradeslot, money; player *target, *from, *to; tradeslot = get_trade_slot_with_tradeid( GPOINTER_TO_INT( g_object_get_data( G_OBJECT(button), "tradeid" ) ) ); tradeid = currentgame->trade[tradeslot].tradeid; switch(currentgame->trade[tradeslot].current_component) { case TRADE_TYPE_ESTATE: estateid = get_estateid_by_estatename( (gchar*)gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_estate" ) )) ); target = player_from_name((gchar*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(g_object_get_data(G_OBJECT(button), "name_target_player")))); sendstr = g_strdup_printf(".Te%d:%d:%d\n", tradeid, estateid, target->playerid); client_send(global->game_connect, sendstr); g_free(sendstr); break; case TRADE_TYPE_MONEY: from = player_from_name((gchar*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(g_object_get_data(G_OBJECT(button), "name_from_player")))); to = player_from_name((gchar*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(g_object_get_data(G_OBJECT(button), "name_to_player")))); money = atoi( gtk_entry_get_text( g_object_get_data( G_OBJECT(button), "amount_money" ) ) ); sendstr = g_strdup_printf(".Tm%d:%d:%d:%d\n", tradeid, from->playerid, to->playerid, money); client_send(global->game_connect, sendstr); g_free(sendstr); break; case TRADE_TYPE_CARD: cardid = atoi( gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_card" ) )) ); target = player_from_name((gchar*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(g_object_get_data(G_OBJECT(button), "name_target_player")))); sendstr = g_strdup_printf(".Tc%d:%d:%d\n", tradeid, cardid, target->playerid); client_send(global->game_connect, sendstr); g_free(sendstr); break; } } void CallBack_get_games_page_destroyed(GtkWidget *widget) { (void)widget; g_object_unref(global->server_store); global->game_store = NULL; global->server_store = NULL; } /* *** callback for the entry menu leave game */ void CallBack_menu_LeaveGame(GtkWidget* widget) { (void)widget; if (global->phase < PHASE_GAMECREATE) { return; } client_send(global->game_connect, ".gx\n"); game_quit(); } /* *** Show estates tree */ void CallBack_estates_tree(GtkWidget* widget) { (void)widget; if(global->phase != PHASE_GAMEPLAY) return; interface_create_estates_tree(); } void CallBack_EstateTree_SelectRow(GtkTreeSelection *selection, gpointer data) { GtkTreeIter iter; GtkTreeModel *model; gint32 id = -1; GtkWidget *parent, *info, *Label; gchar *Text; (void)data; if (!gtk_tree_selection_get_selected(selection, &model, &iter)) { return; } parent = g_object_get_data(G_OBJECT(currentgame->WinEstateTree), "parent_box"); info = g_object_get_data(G_OBJECT(currentgame->WinEstateTree), "info_box"); if(info) gtk_widget_destroy(info); /* info box */ info = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); g_object_set_data(G_OBJECT(currentgame->WinEstateTree), "info_box", info); gtk_container_set_border_width(GTK_CONTAINER(info), 10); gtk_box_pack_start(GTK_BOX(parent), info, TRUE, TRUE, 0); gtk_tree_model_get(model, &iter, 1, &id, -1); if(id < 0) { /* info box */ info = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); g_object_set_data(G_OBJECT(currentgame->WinEstateTree), "info_box", info); gtk_container_set_border_width(GTK_CONTAINER(info), 10); gtk_box_pack_start(GTK_BOX(parent), info, TRUE, TRUE, 0); /* default text */ Label = gtk_label_new("Select an estate..."); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); gtk_widget_show_all(info); return; } /* name */ Text = g_strdup_printf("%s", currentgame->estate[id].name); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); /* group */ if(currentgame->estate[id].group >= 0) Text = g_strdup_printf("%s\n", currentgame->group[ currentgame->estate[id].group ].name); else Text = g_strdup("\n"); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); /* state (for sale, owned, mortgaged, unknow?) */ if(currentgame->estate[id].price) { if(currentgame->estate[id].owner <= 0) Text = g_strdup("State: for sale"); else if(currentgame->estate[id].owner > 0 && currentgame->estate[id].mortgaged) Text = g_strdup("State: mortgaged"); else if(currentgame->estate[id].owner > 0) Text = g_strdup("State: owned"); else Text = g_strdup("State: unknow"); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } /* owner */ if(currentgame->estate[id].price) { if(currentgame->estate[id].owner <= 0) Text = g_strdup("Owner: no"); else Text = g_strdup_printf("Owner: %s", player_from_id(currentgame->estate[id].owner)->name); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } /* price */ if(currentgame->estate[id].price) { Text = g_strdup_printf("\nPrice: %d", currentgame->estate[id].price); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } /* money */ if(currentgame->estate[id].money) { Text = g_strdup_printf("Money: %d", currentgame->estate[id].money); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } /* rent */ if(currentgame->estate[id].rent[5]) { Text = g_strdup_printf("\nRent with no house: %d", currentgame->estate[id].rent[0]); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); Text = g_strdup_printf("Rent with 1 house: %d", currentgame->estate[id].rent[1]); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); Text = g_strdup_printf("Rent with 2 houses: %d", currentgame->estate[id].rent[2]); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); Text = g_strdup_printf("Rent with 3 houses: %d", currentgame->estate[id].rent[3]); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); Text = g_strdup_printf("Rent with 4 houses: %d", currentgame->estate[id].rent[4]); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); Text = g_strdup_printf("Rent with a hotel: %d", currentgame->estate[id].rent[5]); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } /* houses prices */ if(currentgame->estate[id].houseprice) { Text = g_strdup_printf("\nBuy house price: %d", currentgame->estate[id].houseprice); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } if(currentgame->estate[id].sellhouseprice) { Text = g_strdup_printf("Sell house price: %d", currentgame->estate[id].sellhouseprice); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } /* number of houses */ if(currentgame->estate[id].houseprice) { Text = g_strdup_printf("Number of houses: %d", currentgame->estate[id].houses); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } /* (un)mortgage value */ if(currentgame->estate[id].mortgageprice) { Text = g_strdup_printf("\nMortgage price: %d", currentgame->estate[id].mortgageprice); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } if(currentgame->estate[id].unmortgageprice) { Text = g_strdup_printf("Unmortgage price: %d", currentgame->estate[id].unmortgageprice); Label = gtk_label_new(Text); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0); g_free(Text); } gtk_widget_show_all(info); } void CallBack_EstateTree_Destroyed(GtkWidget *widget) { (void)widget; currentgame->WinEstateTree = 0; } /* proposal list: event "row_select" */ void Callback_ProposalList_Select(GtkTreeSelection *selection, gpointer data) { GtkTreeIter iter; GtkTreeModel *model; gint32 tradeid, tradeslot, typeid, fromid, toid, auxid; (void)data; tradeid = GPOINTER_TO_INT( g_object_get_data( G_OBJECT(selection), "tradeid" ) ); tradeslot = get_trade_slot_with_tradeid(tradeid); if (!gtk_tree_selection_get_selected(selection, &model, &iter)) { /* Nothing selected */ currentgame->trade[tradeslot].select_type = 0; currentgame->trade[tradeslot].select_from = 0; currentgame->trade[tradeslot].select_to = 0; currentgame->trade[tradeslot].select_aux = 0; return; } gtk_tree_model_get(model, &iter, TRADEPROPOSALLIST_COLUMN_TYPE_ID, &typeid, TRADEPROPOSALLIST_COLUMN_FROM_ID, &fromid, TRADEPROPOSALLIST_COLUMN_TO_ID, &toid, TRADEPROPOSALLIST_COLUMN_AUX_ID, &auxid, -1); currentgame->trade[tradeslot].select_type = typeid; currentgame->trade[tradeslot].select_from = fromid; currentgame->trade[tradeslot].select_to = toid; currentgame->trade[tradeslot].select_aux = auxid; } void CallBack_HelpWin_Destroyed(GtkWidget *widget) { (void)widget; global->HelpWin = 0; } void Callback_menu_Themes(GtkWidget *widget) { (void)widget; if(global->ThemeWin) return; theme_build_selection_win(); theme_build_database(); theme_fill_selection_list(); } void CallBack_ThemeWin_Delete(GtkWidget *widget) { (void)widget; theme_preview_free(); gtk_widget_destroy(global->ThemeWin); } void CallBack_ThemeWin_Destroyed(GtkWidget *widget) { (void)widget; global->ThemeWin = 0; } /* theme list: event "row_select" */ void Callback_ThemeList_Select(GtkTreeSelection *selection, gpointer data) { GtkTreeIter iter; GtkTreeModel *model; gint32 themeid; (void)data; if (!gtk_tree_selection_get_selected(selection, &model, &iter)) { return; } gtk_tree_model_get(model, &iter, THEMELIST_COLUMN_ID, &themeid, -1); theme_display(themeid); } /* select/apply a theme */ void CallBack_Theme_Apply(GtkWidget* button) { (void)button; theme_load( atoi( g_object_get_data(G_OBJECT(global->ThemeWin), "theme_preview_selected") ) ); } gtkatlantic-0.6.1/src/interface.c0000644000175000017500000022775012554743455013672 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include "global.h" #include "interface.h" #include "callback.h" #include "game.h" #include "client.h" #include "display.h" #include "engine.h" void interface_create_mainwindow() { // GtkWidget *HandleBar; //global->Menu GtkWidget *Button; GtkWidget *Menu; GtkWidget *MenuItem; GdkPixbuf *pixbuf; global->MainWin = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(global->MainWin), "GtkAtlantic"); gtk_widget_set_size_request(global->MainWin, 700, 487); /* icons */ GList *iconlist = NULL; pixbuf = gdk_pixbuf_new_from_file (PACKAGE_ICON_DIR "/128x128" ICON_PATH_SUFFIX, NULL); if (pixbuf) iconlist = g_list_append(iconlist, pixbuf); pixbuf = gdk_pixbuf_new_from_file (PACKAGE_ICON_DIR "/64x64" ICON_PATH_SUFFIX, NULL); if (pixbuf) iconlist = g_list_append(iconlist, pixbuf); pixbuf = gdk_pixbuf_new_from_file (PACKAGE_ICON_DIR "/48x48" ICON_PATH_SUFFIX, NULL); if (pixbuf) iconlist = g_list_append(iconlist, pixbuf); pixbuf = gdk_pixbuf_new_from_file (PACKAGE_ICON_DIR "/32x32" ICON_PATH_SUFFIX, NULL); if (pixbuf) iconlist = g_list_append(iconlist, pixbuf); pixbuf = gdk_pixbuf_new_from_file (PACKAGE_ICON_DIR "/16x16" ICON_PATH_SUFFIX, NULL); if (pixbuf) iconlist = g_list_append(iconlist, pixbuf); gtk_window_set_default_icon_list(iconlist); g_signal_connect(G_OBJECT(global->MainWin), "delete-event", G_CALLBACK(gtk_main_quit), NULL); global->MainBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_add(GTK_CONTAINER(global->MainWin), global->MainBox); global->Menu = gtk_menu_bar_new(); gtk_box_pack_start(GTK_BOX(global->MainBox), global->Menu, FALSE, FALSE, 0); /* GAME MENU */ Button = gtk_menu_item_new_with_label("Game"); gtk_menu_shell_append(GTK_MENU_SHELL(global->Menu), Button); Menu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(Button), Menu); MenuItem = gtk_menu_item_new_with_label("Connect to server..."); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_object_set_data(G_OBJECT(global->Menu), "connect_to_server", MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_connect_to_server), NULL); MenuItem = gtk_menu_item_new_with_label("Connect to metaserver"); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_object_set_data(G_OBJECT(global->Menu), "connect_to_metaserver", MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(Callback_ConnectMetaServer), NULL); MenuItem = gtk_menu_item_new_with_label("Public server list..."); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_object_set_data(G_OBJECT(global->Menu), "public_server_list", MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_public_server_list), NULL); MenuItem = gtk_menu_item_new(); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); MenuItem = gtk_menu_item_new_with_label("Change nickname..."); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_object_set_data(G_OBJECT(global->Menu), "change_nickname", MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_change_nickname), NULL); MenuItem = gtk_menu_item_new_with_label("Show estates tree..."); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_object_set_data(G_OBJECT(global->Menu), "show_estate_tree", MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_estates_tree), NULL); MenuItem = gtk_menu_item_new_with_label("Add player"); g_object_set_data(G_OBJECT(global->Menu), "upgrade_spectator", MenuItem); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); GtkWidget *SubMenu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(MenuItem), SubMenu); MenuItem = gtk_menu_item_new(); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); MenuItem = gtk_menu_item_new_with_label("Reconnect (after client crash)"); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_object_set_data(G_OBJECT(global->Menu), "reconnect", MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_reconnect), NULL); MenuItem = gtk_menu_item_new_with_label("Leave game (disconnect)"); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_object_set_data(G_OBJECT(global->Menu), "leave_game", MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_LeaveGame), NULL); MenuItem = gtk_menu_item_new(); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); MenuItem = gtk_menu_item_new_with_label("Exit"); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(gtk_main_quit), NULL); /* CONFIG MENU */ Button = gtk_menu_item_new_with_label("Settings"); gtk_menu_shell_append(GTK_MENU_SHELL(global->Menu), Button); Menu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(Button), Menu); MenuItem = gtk_menu_item_new_with_label("Preferences..."); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(Callback_ShowConfiguration), NULL); // MenuItem = gtk_menu_item_new_with_label("Themes (unavailable yet)"); // gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); // g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(Callback_menu_Themes), NULL); /* HELP MENU */ Button = gtk_menu_item_new_with_label("Help"); gtk_menu_shell_append(GTK_MENU_SHELL(global->Menu), Button); Menu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(Button), Menu); MenuItem = gtk_menu_item_new_with_label("Index..."); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(interface_create_helpwin), NULL); MenuItem = gtk_menu_item_new_with_label("About..."); gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(interface_create_aboutwin), NULL); global->InfoLabel = gtk_label_new(NULL); gtk_widget_set_margin_top(global->InfoLabel, 0); gtk_widget_set_margin_bottom(global->InfoLabel, 3); #if GTK_CHECK_VERSION(3,12,0) gtk_widget_set_margin_start(global->InfoLabel, 3); gtk_widget_set_margin_end(global->InfoLabel, 3); #else /* GTK_CHECK_VERSION(3,12,0) */ gtk_widget_set_margin_left(global->InfoLabel, 3); gtk_widget_set_margin_right(global->InfoLabel, 3); #endif /* GTK_CHECK_VERSION(3,12,0) */ gtk_widget_set_halign(global->InfoLabel, GTK_ALIGN_START); gtk_widget_set_valign(global->InfoLabel, GTK_ALIGN_CENTER); gtk_box_pack_end(GTK_BOX(global->MainBox), global->InfoLabel, FALSE, FALSE, 0); gtk_widget_show_all(global->MainWin); } void interface_create_getgamespage(bool autoconnect) { //global->MainBox //global->MainVerticalBox GtkWidget *GameFrame; GtkWidget *GameListVBox; GtkWidget *GameScrollwin; GtkWidget *GameList; GtkWidget *ConnectButton; GtkTreeSelection *select; GtkCellRenderer *renderer; GtkTreeViewColumn *column; global->phase = PHASE_GETGAMES; interface_unparent_chat(); if (global->MainVerticalBox) gtk_widget_destroy(global->MainVerticalBox); global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3); gtk_container_set_border_width(GTK_CONTAINER(global->MainVerticalBox), 3); gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0); g_signal_connect(G_OBJECT(global->MainVerticalBox), "destroy", G_CALLBACK(CallBack_get_games_page_destroyed), NULL); /* list of open game & gametype */ GameFrame = gtk_frame_new("Create or join a monopd game"); gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), GameFrame, TRUE, TRUE, 0); GameListVBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_add(GTK_CONTAINER(GameFrame), GameListVBox); /* Game list container */ GameScrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(GameScrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_set_border_width(GTK_CONTAINER(GameScrollwin), 2); gtk_box_pack_start(GTK_BOX(GameListVBox), GameScrollwin, TRUE, TRUE, 0); /* Game list */ GameList = gtk_tree_view_new(); gtk_container_add(GTK_CONTAINER(GameScrollwin), GameList); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(GameList)); gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE); g_signal_connect(G_OBJECT(select), "changed", G_CALLBACK(Callback_GetGame_Select), NULL); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes("Host", renderer, "text", GAMELIST_COLUMN_HOST, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column); column = gtk_tree_view_column_new_with_attributes("Version", renderer, "text", GAMELIST_COLUMN_VERSION, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column); column = gtk_tree_view_column_new_with_attributes("Game", renderer, "text", GAMELIST_COLUMN_GAME, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column); column = gtk_tree_view_column_new_with_attributes("Status", renderer, "text", GAMELIST_COLUMN_STATUS, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column); column = gtk_tree_view_column_new_with_attributes("Players", renderer, "text", GAMELIST_COLUMN_PLAYERS, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column); global->game_store = gtk_list_store_new(GAMELIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT); gtk_tree_view_set_model(GTK_TREE_VIEW(GameList), GTK_TREE_MODEL(global->game_store)); g_object_unref(global->game_store); /* Server list */ global->server_store = gtk_list_store_new(SERVERLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT); /* big connect button */ ConnectButton = gtk_button_new_with_label("Select a game"); gtk_widget_set_size_request(ConnectButton, 150, -1); gtk_container_set_border_width(GTK_CONTAINER(ConnectButton), 3); gtk_widget_set_sensitive(ConnectButton, FALSE); gtk_box_pack_start(GTK_BOX(GameListVBox), ConnectButton, FALSE, FALSE, 0); g_signal_connect(G_OBJECT(ConnectButton), "clicked", G_CALLBACK(Callback_ConnectButton), NULL); g_object_set_data(G_OBJECT(global->MainVerticalBox), "connect_button", ConnectButton); GtkWidget *MenuItem; MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_server"); gtk_widget_set_sensitive(MenuItem, TRUE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_metaserver"); gtk_widget_set_sensitive(MenuItem, TRUE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "public_server_list"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "change_nickname"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "show_estate_tree"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "upgrade_spectator"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "reconnect"); gtk_widget_set_sensitive(MenuItem, game_cookie_available()); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "leave_game"); gtk_widget_set_sensitive(MenuItem, FALSE); gtk_widget_show_all(global->MainVerticalBox); /* autoconnect to server */ if (autoconnect) { if (config->metaserver_autoconnect) { create_connection_metaserver(); } if (config->getgames_autoconnect) { create_connection_get_games(config->getgames_host, config->getgames_port); } } } void interface_create_gameconfigpage() { //global->MainBox //global->MainVerticalBox GtkWidget *HorizontalBox; GtkWidget *VerticalBoxLeft; GtkWidget *ChatFrame; //currentgame->ChatBox GtkWidget *VerticalBoxRight; GtkWidget *PlayerScrollwin; GtkWidget *PlayerListFrame; GtkWidget *ConfigurationFrame; //currentgame->GameConfigBox GtkWidget *HorizontalBoxButton; GtkWidget *StartButton; GtkWidget *LeaveButton; GtkTreeSelection *select; GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkListStore *store; global->phase = PHASE_GAMECREATE; interface_unparent_chat(); gtk_widget_destroy(global->MainVerticalBox); global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(global->MainVerticalBox), 3); gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0); /* main horizontal box */ HorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3); gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), HorizontalBox, TRUE, TRUE, 0); VerticalBoxLeft = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3); gtk_box_pack_start(GTK_BOX(HorizontalBox), VerticalBoxLeft, TRUE, TRUE, 0); /* player list frame */ PlayerListFrame = gtk_frame_new("Players"); gtk_widget_set_size_request(PlayerListFrame, -1, 180); gtk_box_pack_start(GTK_BOX(VerticalBoxLeft), PlayerListFrame, FALSE, FALSE, 0); PlayerScrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_container_set_border_width(GTK_CONTAINER(PlayerScrollwin), 2); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(PlayerScrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(PlayerListFrame), PlayerScrollwin); /* player list */ currentgame->PlayerList = gtk_tree_view_new(); gtk_container_add(GTK_CONTAINER(PlayerScrollwin), currentgame->PlayerList); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(currentgame->PlayerList)); gtk_tree_selection_set_mode(select, GTK_SELECTION_NONE); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes("Name", renderer, "text", PLAYERLIST_COLUMN_NAME, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(currentgame->PlayerList), column); column = gtk_tree_view_column_new_with_attributes("Host", renderer, "text", PLAYERLIST_COLUMN_HOST, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(currentgame->PlayerList), column); store = gtk_list_store_new(PLAYERLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_STRING); gtk_tree_view_set_model(GTK_TREE_VIEW(currentgame->PlayerList), GTK_TREE_MODEL(store)); g_object_unref(store); /* chat frame */ ChatFrame = gtk_frame_new("Chat"); gtk_box_pack_start(GTK_BOX(VerticalBoxLeft), ChatFrame, TRUE, TRUE, 0); interface_create_chat(ChatFrame); /* vertical box right */ VerticalBoxRight = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3); gtk_box_pack_start(GTK_BOX(HorizontalBox), VerticalBoxRight, FALSE, FALSE, 0); /* game configuration frame */ ConfigurationFrame = gtk_frame_new("Game configuration"); gtk_box_pack_start(GTK_BOX(VerticalBoxRight), ConfigurationFrame, FALSE, FALSE, 0); /* config box might already been created by early events */ if (!currentgame->GameConfigBox) { currentgame->GameConfigBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); } gtk_container_set_border_width(GTK_CONTAINER(currentgame->GameConfigBox), 5); gtk_container_add(GTK_CONTAINER(ConfigurationFrame), currentgame->GameConfigBox); /* horizontal box button */ HorizontalBoxButton = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3); gtk_box_pack_end(GTK_BOX(VerticalBoxRight), HorizontalBoxButton, FALSE, FALSE, 0); /* leave button */ LeaveButton = gtk_button_new_with_label("Leave game"); gtk_box_pack_start(GTK_BOX(HorizontalBoxButton), LeaveButton, TRUE, TRUE, 0); g_signal_connect(G_OBJECT(LeaveButton), "clicked", G_CALLBACK(CallBack_menu_LeaveGame), NULL); /* start button */ StartButton = gtk_button_new_with_label("Start game"); gtk_widget_set_sensitive(StartButton, (global->my_playerid == currentgame->master)); gtk_box_pack_start(GTK_BOX(HorizontalBoxButton), StartButton, TRUE, TRUE, 0); g_signal_connect(G_OBJECT(StartButton), "clicked", G_CALLBACK(Callback_StartButton), NULL); g_object_set_data(G_OBJECT(global->MainVerticalBox), "start_button", StartButton); GtkWidget *MenuItem; MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_server"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_metaserver"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "public_server_list"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "change_nickname"); gtk_widget_set_sensitive(MenuItem, TRUE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "show_estate_tree"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "upgrade_spectator"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "reconnect"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "leave_game"); gtk_widget_set_sensitive(MenuItem, TRUE); gtk_widget_show_all(global->MainVerticalBox); } void interface_create_gameinitpage() { //global->MainBox //global->MainVerticalBox GtkWidget *Label; global->phase = PHASE_GAMEINIT; interface_unparent_chat(); gtk_widget_destroy(global->MainVerticalBox); global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0); /* text */ Label = gtk_label_new("Please wait while loading..."); gtk_widget_set_halign(Label, GTK_ALIGN_CENTER); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), Label, TRUE, TRUE, 0); gtk_widget_show_all(global->MainVerticalBox); /* We are going to receive events before game is in running state */ currentgame->BoardCenter = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); display_init(); while(gtk_events_pending()) gtk_main_iteration(); } void interface_create_gameboardpage() { //global->MainBox //global->MainVerticalBox GtkWidget *MainHorizontalBox; GtkWidget *VerticalBoxPlayerlistChat; //currentgame->PlayerList GtkWidget *PlayerSeparator; GtkWidget *ChatFrame; //call interface_create_chat GtkWidget *FixedBoard; GtkWidget *EventBox; //currentgame->BoardCenter; //currentgame->estate[].gdkrgb GtkWidget *EstatePopupMenu; eng_frame *board_frame; eng_obj *pic; gint32 i, j, star, houses; gchar *text, *tmp1, *tmp2; player *p; GtkWidget *MenuItem; global->phase = PHASE_GAMEPLAY; interface_unparent_chat(); gtk_widget_destroy(global->MainVerticalBox); global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3); gtk_container_set_border_width(GTK_CONTAINER(global->MainVerticalBox), 3); gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0); /* horizontal box for board / player status */ MainHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3); gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), MainHorizontalBox, TRUE, TRUE, 0); /* vertical box for player and chat */ VerticalBoxPlayerlistChat = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3); if(config->game_playerlist_position == GAME_PLAYERLIST_POS_RIGHT) gtk_box_pack_end(GTK_BOX(MainHorizontalBox), VerticalBoxPlayerlistChat, TRUE, FALSE, 0); else /* left (default) */ gtk_box_pack_start(GTK_BOX(MainHorizontalBox), VerticalBoxPlayerlistChat, TRUE, TRUE, 0); gtk_widget_set_hexpand(VerticalBoxPlayerlistChat, TRUE); gtk_widget_set_vexpand(VerticalBoxPlayerlistChat, TRUE); /* players */ currentgame->PlayerList = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start(GTK_BOX(VerticalBoxPlayerlistChat), currentgame->PlayerList, FALSE, FALSE, 0); /* first player separator */ PlayerSeparator = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(currentgame->PlayerList), PlayerSeparator, FALSE, FALSE, 0); /* chat */ ChatFrame = gtk_frame_new("Chat"); gtk_box_pack_start(GTK_BOX(VerticalBoxPlayerlistChat), ChatFrame, TRUE, TRUE, 0); interface_create_chat(ChatFrame); /* board */ board_frame = currentgame->board_frame = eng_frame_create(); eng_frame_set_width(board_frame, data->board_width); eng_frame_set_height(board_frame, data->board_height); /* add players */ game_sort_playerlist_by_turnorder(); for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; interface_gameboard_add_player(p); } game_update_tokens(); FixedBoard = gtk_fixed_new(); gtk_box_pack_start(GTK_BOX(MainHorizontalBox), FixedBoard, FALSE, FALSE, 0); /* board center */ if (!currentgame->BoardCenter) { currentgame->BoardCenter = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); display_init(); } gtk_container_set_border_width(GTK_CONTAINER(currentgame->BoardCenter), 0); gtk_widget_set_size_request( GTK_WIDGET(currentgame->BoardCenter), data->board_center_width, data->board_center_height); gtk_fixed_put(GTK_FIXED(FixedBoard), currentgame->BoardCenter, data->board_center_x, data->board_center_y); /* board estates */ for(i = 0 ; i < data->number_estates ; i++) { j = data->estate[i].buffer_board; EventBox = gtk_event_box_new(); gtk_fixed_put(GTK_FIXED(FixedBoard), EventBox, data->estate[i].x, data->estate[i].y); currentgame->estate[i].gdkrgb = gtk_drawing_area_new(); gtk_widget_set_size_request( GTK_WIDGET(currentgame->estate[i].gdkrgb), data->pngfile_board_width[j], data->pngfile_board_height[j] ); gtk_widget_set_events(GTK_WIDGET(currentgame->estate[i].gdkrgb), GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK); g_object_set_data(G_OBJECT(EventBox), "estateid", GINT_TO_POINTER(i)); g_object_set_data(G_OBJECT(currentgame->estate[i].gdkrgb), "estateid", GINT_TO_POINTER(i)); g_signal_connect_after(G_OBJECT(EventBox), "enter_notify_event", G_CALLBACK(Callback_EnterAnEstate), NULL); g_signal_connect(G_OBJECT(EventBox), "leave_notify_event", G_CALLBACK(Callback_LeaveAnEstate), NULL); g_signal_connect(G_OBJECT(EventBox), "button_press_event", G_CALLBACK(Callback_ClicOnEstate), NULL); g_signal_connect(G_OBJECT(currentgame->estate[i].gdkrgb), "draw", G_CALLBACK(on_board_draw), NULL); gtk_container_add(GTK_CONTAINER(EventBox), currentgame->estate[i].gdkrgb); /* building estate popup menu */ EstatePopupMenu = gtk_menu_new(); g_object_set_data(G_OBJECT(EstatePopupMenu), "estateid", GINT_TO_POINTER(i)); g_object_set_data(G_OBJECT(EventBox), "menu", EstatePopupMenu); MenuItem = gtk_menu_item_new_with_label("Build house"); gtk_menu_shell_append(GTK_MENU_SHELL(EstatePopupMenu), MenuItem); g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(ESTATE_ACTION_BUILDHOUSE)); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuEstate), NULL); gtk_widget_show(MenuItem); MenuItem = gtk_menu_item_new_with_label("Sell house"); gtk_menu_shell_append(GTK_MENU_SHELL(EstatePopupMenu), MenuItem); g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(ESTATE_ACTION_SELLHOUSE)); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuEstate), NULL); gtk_widget_show(MenuItem); MenuItem = gtk_menu_item_new_with_label("(Un)mortage"); gtk_menu_shell_append(GTK_MENU_SHELL(EstatePopupMenu), MenuItem); g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(ESTATE_ACTION_MORTGAGE)); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuEstate), NULL); gtk_widget_show(MenuItem); MenuItem = gtk_menu_item_new_with_label("Sell property"); gtk_menu_shell_append(GTK_MENU_SHELL(EstatePopupMenu), MenuItem); g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(ESTATE_ACTION_SELL)); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuEstate), NULL); gtk_widget_show(MenuItem); /* set ToolTips */ text = g_strdup_printf("%s", currentgame->estate[i].name); if(currentgame->estate[i].group >= 0) { tmp1 = text; tmp2 = g_strdup_printf(" (%s)", currentgame->group[ currentgame->estate[i].group ].name); text = g_strconcat(tmp1, tmp2, NULL); g_free(tmp1); g_free(tmp2); } if(currentgame->estate[i].price > 0) { tmp1 = text; tmp2 = g_strdup_printf("\nPrice: %d", currentgame->estate[i].price); text = g_strconcat(tmp1, tmp2, NULL); g_free(tmp1); g_free(tmp2); } if(currentgame->estate[i].rent[5] > 0) { tmp1 = text; tmp2 = g_strdup_printf( "\nNo house: %d, One: %d, Two: %d, Three: %d, Four: %d, Hotel: %d" "\nHouse price: %d", currentgame->estate[i].rent[0], currentgame->estate[i].rent[1], currentgame->estate[i].rent[2], currentgame->estate[i].rent[3], currentgame->estate[i].rent[4], currentgame->estate[i].rent[5], currentgame->estate[i].houseprice ); text = g_strconcat(tmp1, tmp2, NULL); g_free(tmp1); g_free(tmp2); } if(currentgame->estate[i].mortgageprice > 0) { tmp1 = text; tmp2 = g_strdup_printf("\nMortgage value: %d", currentgame->estate[i].mortgageprice); text = g_strconcat(tmp1, tmp2, NULL); g_free(tmp1); g_free(tmp2); } gtk_widget_set_tooltip_text(EventBox, text); g_free(text); /* pic for estates / stars / houses */ /* estate */ pic = currentgame->estate[i].pic = eng_pic_create(board_frame); eng_pic_set_x(pic, data->estate[i].x); eng_pic_set_y(pic, data->estate[i].y); eng_pic_set_z(pic, 0); eng_pic_set_width(pic, data->pngfile_board_width[j]); eng_pic_set_height(pic, data->pngfile_board_height[j]); eng_pic_set_buf(pic, data->pngfile_board_buf[j]); /* star */ pic = currentgame->estate[i].star_pic = eng_pic_create(board_frame); eng_pic_set_x(pic, data->estate[i].xstar); eng_pic_set_y(pic, data->estate[i].ystar); eng_pic_set_z(pic, 1); /* if estate owned && not mortgaged */ if(currentgame->estate[i].owner > 0 && !currentgame->estate[i].mortgaged) { star = player_from_id(currentgame->estate[i].owner)->tokenid; pic = currentgame->estate[i].star_pic; eng_pic_set_width(pic, data->pngfile_star_width[star]); eng_pic_set_height(pic, data->pngfile_star_height[star]); eng_pic_set_buf(pic, data->pngfile_star_buf[star]); eng_pic_show(pic); } /* if estate owned && mortgaged */ else if(currentgame->estate[i].owner > 0 && currentgame->estate[i].mortgaged) { star = player_from_id(currentgame->estate[i].owner )->tokenid; pic = currentgame->estate[i].star_pic; eng_pic_set_width(pic, data->pngfile_star_m_width[star]); eng_pic_set_height(pic, data->pngfile_star_m_height[star]); eng_pic_set_buf(pic, data->pngfile_star_m_buf[star]); eng_pic_show(pic); } /* if estate unowned */ else /* if( currentgame->estate[i].owner <= 0 ) */ { pic = currentgame->estate[i].star_pic; eng_pic_unshow(pic); } /* house image */ pic = currentgame->estate[i].house_pic = eng_pic_create(board_frame); eng_pic_set_x(pic, data->estate[i].xhouse); eng_pic_set_y(pic, data->estate[i].yhouse); eng_pic_set_z(pic, 1); houses = currentgame->estate[i].houses; if(houses <= 0) { pic = currentgame->estate[i].house_pic; eng_pic_unshow(pic); } else if(houses > 0 && data->estate[i].type_house == TYPE_HOUSE_HORIZONTAL) { pic = currentgame->estate[i].house_pic; eng_pic_set_width(pic, data->pngfile_horiz_house_width[ houses ]); eng_pic_set_height(pic, data->pngfile_horiz_house_height[ houses ]); eng_pic_set_buf(pic, data->pngfile_horiz_house_buf[ houses ]); eng_pic_show(pic); } else if(houses > 0 && data->estate[i].type_house == TYPE_HOUSE_VERTICAL) { pic = currentgame->estate[i].house_pic; eng_pic_set_width(pic, data->pngfile_vert_house_width[ houses ]); eng_pic_set_height(pic, data->pngfile_vert_house_height[ houses ]); eng_pic_set_buf(pic, data->pngfile_vert_house_buf[ houses ]); eng_pic_show(pic); } } /* board first draw */ eng_create_frame(board_frame); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_server"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_metaserver"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "public_server_list"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "change_nickname"); gtk_widget_set_sensitive(MenuItem, TRUE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "show_estate_tree"); gtk_widget_set_sensitive(MenuItem, TRUE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "reconnect"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "leave_game"); gtk_widget_set_sensitive(MenuItem, TRUE); gtk_widget_show_all(global->MainVerticalBox); } void interface_gameboard_add_player(player *p) { GtkWidget *PlayerHorizontalBox; GtkWidget *PlayerGrid; GtkWidget *PlayerPopupMenu; GtkWidget *PlayerSeparator; GtkWidget *EventBox; GtkWidget *MenuItem; gint32 i; eng_obj *pic; if (global->phase < PHASE_GAMEPLAY) return; if (p->spectator) return; if (p->game != currentgame->gameid) return; if (p->playerlist_LabelNamePlayer) return; /* already created */ /* select a token which is not already chosen */ for (i = 0; i <= data->token_max; i++) { player *q; for (q = player_h; q; q = q->next) { if (q->spectator) continue; if (q->game != currentgame->gameid) continue; if (q->tokenid == i) break; } if (!q) { p->tokenid = i; break; } } if (p->tokenid < 0) { return; } p->playerlist_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start(GTK_BOX(currentgame->PlayerList), p->playerlist_box, FALSE, FALSE, 0); /* event box */ EventBox = gtk_event_box_new(); gtk_widget_set_halign(EventBox, GTK_ALIGN_START); gtk_widget_set_valign(EventBox, GTK_ALIGN_CENTER); g_signal_connect(G_OBJECT(EventBox), "button_press_event", G_CALLBACK(Callback_ClicOnPlayer), NULL); gtk_box_pack_start(GTK_BOX(p->playerlist_box), EventBox, FALSE, FALSE, 0); /* box which contain all widgets for a player */ PlayerHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add(GTK_CONTAINER(EventBox), PlayerHorizontalBox); /* building popup player menu */ PlayerPopupMenu = gtk_menu_new(); g_object_set_data(G_OBJECT(PlayerPopupMenu), "player", p); g_object_set_data(G_OBJECT(EventBox), "menu", PlayerPopupMenu); MenuItem = gtk_menu_item_new_with_label("Initiate a trade"); gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem); g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_TRADE)); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL); gtk_widget_show(MenuItem); MenuItem = gtk_menu_item_new(); gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem); gtk_widget_show(MenuItem); MenuItem = gtk_menu_item_new_with_label("Request version"); gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem); g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_VERSION)); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL); gtk_widget_show(MenuItem); MenuItem = gtk_menu_item_new_with_label("Request date"); gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem); g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_DATE)); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL); gtk_widget_show(MenuItem); MenuItem = gtk_menu_item_new_with_label("Request ping"); gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem); g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_PING)); g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL); gtk_widget_show(MenuItem); /* token player in playerlist */ p->playerlist_token_gdkrgb = gtk_drawing_area_new(); gtk_widget_set_size_request(p->playerlist_token_gdkrgb, data->playerlist_token_width, data->playerlist_token_height ); gtk_widget_set_halign(p->playerlist_token_gdkrgb, GTK_ALIGN_CENTER); gtk_widget_set_valign(p->playerlist_token_gdkrgb, GTK_ALIGN_CENTER); gtk_box_pack_start(GTK_BOX(PlayerHorizontalBox), p->playerlist_token_gdkrgb, TRUE, TRUE, 0); g_signal_connect(G_OBJECT(p->playerlist_token_gdkrgb), "draw", G_CALLBACK(on_playertoken_draw), NULL); g_object_set_data(G_OBJECT(p->playerlist_token_gdkrgb), "player", p); /* name, money, cards owned by player */ PlayerGrid = gtk_grid_new(); gtk_grid_set_row_spacing(GTK_GRID(PlayerGrid), 0); gtk_grid_set_column_spacing(GTK_GRID(PlayerGrid), 0); gtk_box_pack_start(GTK_BOX(PlayerHorizontalBox), PlayerGrid, FALSE, FALSE, 0); /* cards */ p->playerlist_cards_gdkrgb = gtk_drawing_area_new(); gtk_widget_set_size_request( GTK_WIDGET(p->playerlist_cards_gdkrgb), data->playerlist_cards_width, data->playerlist_cards_height ); gtk_grid_attach(GTK_GRID(PlayerGrid), p->playerlist_cards_gdkrgb, 0, 1, 2, 1); g_signal_connect(G_OBJECT(p->playerlist_cards_gdkrgb), "draw", G_CALLBACK(on_playercards_draw), NULL); g_object_set_data(G_OBJECT(p->playerlist_cards_gdkrgb), "player", p); /* name */ p->playerlist_LabelNamePlayer = gtk_label_new(NULL); gtk_widget_set_halign(p->playerlist_LabelNamePlayer, GTK_ALIGN_START); gtk_widget_set_valign(p->playerlist_LabelNamePlayer, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(PlayerGrid), p->playerlist_LabelNamePlayer, 0, 0, 1, 1); if(p->hasturn) { gchar *tmp = g_markup_printf_escaped("%s", p->name); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelNamePlayer), tmp); g_free(tmp); } else { gchar *tmp = g_markup_printf_escaped("%s", p->name); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelNamePlayer), tmp); g_free(tmp); } /* money */ p->playerlist_LabelMoneyPlayer = gtk_label_new(NULL); gtk_widget_set_halign(p->playerlist_LabelMoneyPlayer, GTK_ALIGN_END); gtk_widget_set_valign(p->playerlist_LabelMoneyPlayer, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(PlayerGrid), p->playerlist_LabelMoneyPlayer, 1, 0, 1, 1); if(p->hasturn) { gchar *tmp = g_markup_printf_escaped("%d", p->money); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp); g_free(tmp); } else { gchar *tmp = g_markup_printf_escaped("%d", p->money); gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp); g_free(tmp); } /* playerlist token frame */ eng_frame *token_frame = p->playerlist_token_frame = eng_frame_create(); eng_frame_set_width(token_frame, data->playerlist_token_width); eng_frame_set_height(token_frame, data->playerlist_token_height); /* playerlist token pic */ pic = p->playerlist_token_pic = eng_pic_create(token_frame); eng_pic_set_x(pic, (data->playerlist_token_width - data->pngfile_token_width[p->tokenid]) / 2); eng_pic_set_y(pic, (data->playerlist_token_height - data->pngfile_token_height[p->tokenid]) / 2); eng_pic_set_z(pic, 0); eng_pic_set_width(pic, data->pngfile_token_width[p->tokenid]); eng_pic_set_height(pic, data->pngfile_token_height[p->tokenid]); eng_pic_set_buf(pic, data->pngfile_token_buf[p->tokenid]); /* draw token */ eng_create_frame(token_frame); /* engine frame cards */ eng_frame *card_frame = p->playerlist_cards_frame = eng_frame_create(); eng_frame_set_width(card_frame, data->playerlist_cards_width); eng_frame_set_height(card_frame, data->playerlist_cards_height); /* cards */ for(i = 0; i < data->number_playerlist_card; i++) { gint32 t; pic = p->playerlist_cards_pic[i] = eng_pic_create(card_frame); eng_pic_set_x(pic, data->playerlist_card[i].x); eng_pic_set_y(pic, data->playerlist_card[i].y); eng_pic_set_z(pic, data->playerlist_card[i].z); t = data->playerlist_card[i].buffer_card; eng_pic_set_width(pic, data->pngfile_card_width[t]); eng_pic_set_height(pic, data->pngfile_card_height[t]); if(currentgame->estate[ data->playerlist_card[i].estateid ].owner == (gint32)p->playerid) { if(currentgame->estate[ data->playerlist_card[i].estateid ].mortgaged) { eng_pic_set_alpha(pic, data->playerlist_cards_alphamortgage); eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolormortgage); } else { eng_pic_set_alpha(pic, data->playerlist_cards_alphaowned); eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolor); } } else { eng_pic_set_alpha(pic, data->playerlist_cards_alphaunowned); eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolor); } eng_pic_set_buf(pic, data->pngfile_card_buf[t]); } /* draw cards */ eng_create_frame(card_frame); /* token on board */ pic = p->token_pic = eng_pic_create(currentgame->board_frame); eng_pic_set_z(pic, 1); eng_pic_set_width(pic, data->pngfile_token_width[p->tokenid]); eng_pic_set_height(pic, data->pngfile_token_height[p->tokenid]); eng_pic_set_buf(pic, data->pngfile_token_buf[p->tokenid]); if (p->bankrupt) { eng_pic_unshow(pic); } /* set token location to target location */ p->location = p->location_to; /* separator */ PlayerSeparator = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start(GTK_BOX(p->playerlist_box), PlayerSeparator, FALSE, FALSE, 0); gtk_widget_show_all(p->playerlist_box); } void interface_gameboard_remove_player(player *p) { gint32 i; if (global->phase < PHASE_GAMEPLAY) return; if (p->spectator) return; eng_pic_destroy(p->token_pic); p->token_pic = NULL; p->tokenid = -1; if (p->playerlist_box) { gtk_widget_destroy(p->playerlist_box); p->playerlist_box = NULL; p->playerlist_LabelNamePlayer = NULL; p->playerlist_LabelMoneyPlayer = NULL; p->playerlist_cards_gdkrgb = NULL; p->playerlist_token_gdkrgb = NULL; } eng_frame_destroy(p->playerlist_token_frame); p->playerlist_token_frame = NULL; p->playerlist_token_pic = NULL; eng_frame_destroy(p->playerlist_cards_frame); p->playerlist_cards_frame = NULL; for (i = 0; i < MAX_PLAYERLIST_CARDS; i++) { p->playerlist_cards_pic[i] = NULL; } } gboolean interface_chat_scroll_to_the_end(gpointer data) { GtkWidget *widget = GTK_WIDGET(data); GtkTextBuffer *textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(widget)); GtkTextMark *textmark = gtk_text_buffer_get_mark(textbuff, "endmark"); gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(widget), textmark, 0.0, FALSE, 0.0, 0.0); return FALSE; } void interface_create_chat(GtkWidget *container) { //currentgame->ChatBox GtkWidget *ChatScrolledWindow; //currentgame->Chat GtkWidget *SendEntry; GtkTextBuffer *textbuff; GtkTextIter textiter; if(! currentgame) return; /* already created */ if(currentgame->ChatBox) { gtk_container_add(GTK_CONTAINER(container), currentgame->ChatBox); g_object_unref(G_OBJECT(currentgame->ChatBox)); /* This is a bit ugly but I could not find a better way */ g_timeout_add(100, interface_chat_scroll_to_the_end, currentgame->Chat); return; } currentgame->ChatBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_widget_set_size_request(currentgame->ChatBox, -1, 160); gtk_container_add(GTK_CONTAINER(container), currentgame->ChatBox); /* Create a scrolled window and put the textview in it */ ChatScrolledWindow = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ChatScrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_box_pack_start(GTK_BOX(currentgame->ChatBox), ChatScrolledWindow, TRUE, TRUE, 0); currentgame->Chat = gtk_text_view_new(); gtk_text_view_set_editable(GTK_TEXT_VIEW(currentgame->Chat), FALSE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(currentgame->Chat), GTK_WRAP_CHAR); textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(currentgame->Chat)); gtk_text_buffer_get_end_iter(textbuff, &textiter); gtk_text_buffer_create_mark(textbuff, "endmark", &textiter, FALSE); gtk_container_add(GTK_CONTAINER(ChatScrolledWindow), currentgame->Chat); /* send entry */ SendEntry = gtk_entry_new(); gtk_box_pack_start(GTK_BOX(currentgame->ChatBox), SendEntry, FALSE, FALSE, 0); g_signal_connect(G_OBJECT(SendEntry), "activate", G_CALLBACK(Callback_SendButton), (gpointer)SendEntry); } void interface_unparent_chat() { if(! currentgame) return; if(! currentgame->ChatBox) return; GtkWidget *parent = gtk_widget_get_parent(currentgame->ChatBox); if (parent == NULL) { return; } g_object_ref(G_OBJECT(currentgame->ChatBox)); gtk_container_remove(GTK_CONTAINER(parent), currentgame->ChatBox); } void interface_create_auctionbox(gint32 auctionid, gint32 estateid) { GtkWidget *vbox; GtkWidget *PlayerScrollwin; GtkWidget *PlayerList; GtkWidget *hbox_entry; GtkWidget *entry; GtkWidget *hbox_buttons; GtkWidget *button; GtkWidget *label; GtkTreeIter iter; GtkTreeSelection *select; GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkListStore *store; vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(vbox), 15); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auctionbox", vbox); gtk_box_pack_start(GTK_BOX(currentgame->BoardCenter), vbox, TRUE, TRUE, 0); label = gtk_label_new(NULL); gtk_label_set_use_markup(GTK_LABEL(label), TRUE); gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); gtk_widget_set_halign(label, GTK_ALIGN_CENTER); gtk_widget_set_valign(label, GTK_ALIGN_CENTER); gtk_widget_set_margin_bottom(label, 15); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); gchar *tmp = g_markup_printf_escaped("%s", currentgame->estate[estateid].name); gtk_label_set_markup(GTK_LABEL(label), tmp); g_free(tmp); /* player list */ PlayerScrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(PlayerScrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_box_pack_start(GTK_BOX(vbox), PlayerScrollwin, TRUE, TRUE, 0); PlayerList = gtk_tree_view_new(); gtk_container_add(GTK_CONTAINER(PlayerScrollwin), PlayerList); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(PlayerList)); gtk_tree_selection_set_mode(select, GTK_SELECTION_NONE); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes("Player", renderer, "text", AUCTIONPLAYERLIST_COLUMN_NAME, "weight", AUCTIONPLAYERLIST_WEIGHT, "weight-set", AUCTIONPLAYERLIST_WEIGHTSET, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(PlayerList), column); column = gtk_tree_view_column_new_with_attributes("Bid", renderer, "text", AUCTIONPLAYERLIST_COLUMN_BID, "weight", AUCTIONPLAYERLIST_WEIGHT, "weight-set", AUCTIONPLAYERLIST_WEIGHTSET, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(PlayerList), column); store = gtk_list_store_new(AUCTIONPLAYERLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_store", store); gtk_tree_view_set_model(GTK_TREE_VIEW(PlayerList), GTK_TREE_MODEL(store)); g_object_unref(store); player *p; for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, AUCTIONPLAYERLIST_COLUMN_NAME, p->name, AUCTIONPLAYERLIST_COLUMN_BID, 0, AUCTIONPLAYERLIST_COLUMN_PLAYERID, p->playerid, AUCTIONPLAYERLIST_WEIGHT, PANGO_WEIGHT_NORMAL, AUCTIONPLAYERLIST_WEIGHTSET, TRUE, -1); } /* Status label */ label = gtk_label_new(NULL); gtk_widget_set_halign(label, GTK_ALIGN_START); gtk_widget_set_valign(label, GTK_ALIGN_CENTER); gtk_widget_set_margin_top(label, 2); gtk_widget_set_margin_bottom(label, 2); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_statuslabel", label); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); /* commands */ hbox_entry = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); /* send entry */ entry = gtk_entry_new(); gtk_box_pack_start(GTK_BOX(hbox_entry), entry, FALSE, FALSE, 0); gtk_entry_set_width_chars(GTK_ENTRY(entry), 4); g_object_set_data(G_OBJECT(entry), "auctionid", GINT_TO_POINTER(auctionid)); g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(Callback_AuctionButton_Absolute), (gpointer)entry); button = gtk_button_new_with_label("Bid"); gtk_box_pack_start(GTK_BOX(hbox_entry), button, FALSE, FALSE, 0); g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid)); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Absolute), (gpointer)entry); /* quick button */ hbox_buttons = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); button = gtk_button_new_with_label("+1"); g_object_set_data(G_OBJECT(button), "value_add", GINT_TO_POINTER(1)); g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid)); gtk_box_pack_start(GTK_BOX(hbox_buttons), button, FALSE, FALSE, 0); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Relative), NULL); button = gtk_button_new_with_label("+10"); g_object_set_data(G_OBJECT(button), "value_add", GINT_TO_POINTER(10)); g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid)); gtk_box_pack_start(GTK_BOX(hbox_buttons), button, FALSE, FALSE, 0); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Relative), NULL); button = gtk_button_new_with_label("+50"); g_object_set_data(G_OBJECT(button), "value_add", GINT_TO_POINTER(50)); g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid)); gtk_box_pack_start(GTK_BOX(hbox_buttons), button, FALSE, FALSE, 0); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Relative), NULL); button = gtk_button_new_with_label("+100"); g_object_set_data(G_OBJECT(button), "value_add", GINT_TO_POINTER(100)); g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid)); gtk_box_pack_start(GTK_BOX(hbox_buttons), button, FALSE, FALSE, 0); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Relative), NULL); gtk_box_pack_start(GTK_BOX(vbox), hbox_buttons, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox_entry, FALSE, FALSE, 0); gtk_widget_show_all(vbox); } /* create about window */ void interface_create_aboutwin() { GtkWidget *AboutDlg; GtkWidget *Label; GtkWidget *VBox; gchar *text; AboutDlg = gtk_dialog_new_with_buttons("About gtkAtlantic", NULL, GTK_DIALOG_MODAL, "_OK", GTK_RESPONSE_ACCEPT, NULL); gtk_window_set_default_size(GTK_WINDOW(AboutDlg), 200, 0); gtk_window_set_transient_for(GTK_WINDOW(AboutDlg), GTK_WINDOW(global->MainWin)); g_signal_connect_swapped(G_OBJECT(AboutDlg), "response", G_CALLBACK(gtk_widget_destroy), G_OBJECT(AboutDlg)); /* Create a VBox with a border */ VBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(VBox), 10); gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(AboutDlg))), VBox); /* name */ text = g_strdup_printf("GtkAtlantic %s", VERSION); Label = gtk_label_new(text); gtk_label_set_use_markup(GTK_LABEL(Label), TRUE); gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, FALSE, 5); g_free(text); /* web site */ Label = gtk_label_new("http://gtkatlantic.gradator.net"); gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, FALSE, 5); /* license */ Label = gtk_label_new("This software is distributed under the GPL Version 2 or any later version"); gtk_label_set_line_wrap(GTK_LABEL(Label), TRUE); gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, FALSE, 10); /* author */ Label = gtk_label_new("Authors:"); gtk_label_set_use_markup(GTK_LABEL(Label), TRUE); gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, FALSE, 0); Label = gtk_label_new("Sylvain Rochet (gradator@gradator.net)"); gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, FALSE, 0); Label = gtk_label_new("Xavier Amado (xavier@blackbloodstudios.com)"); gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, FALSE, 0); /* IRC */ Label = gtk_label_new("irc.freenode.net #gtkatlantic"); gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, FALSE, 10); gtk_widget_show_all(AboutDlg); } /* create config panel */ void interface_create_config_panel() { //global->ConfigWin; GtkWidget *vbox; GtkWidget *hbox; GtkWidget *Frame; GtkWidget *hboxFrame; GtkWidget *vboxFrame; GtkWidget *Label; GtkWidget *CButton; GtkWidget *Entry; GtkWidget *Combo; GtkAdjustment *Adjust; GtkWidget *Scale; GtkWidget *Button; gchar *text; if(global->ConfigWin) return; global->ConfigWin = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(global->ConfigWin), "GtkAtlantic: Configuration"); g_signal_connect(G_OBJECT(global->ConfigWin), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL); g_signal_connect(G_OBJECT(global->ConfigWin), "destroy", G_CALLBACK(CallBack_configwindow_destroyed), NULL); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width(GTK_CONTAINER(vbox), BORDER); gtk_container_add(GTK_CONTAINER(global->ConfigWin), vbox); /* PLAYER CONFIG (such has nickname) */ Frame = gtk_frame_new("Player"); gtk_container_set_border_width(GTK_CONTAINER(Frame), BORDER); gtk_box_pack_start(GTK_BOX(vbox), Frame, FALSE, FALSE, 0); vboxFrame = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(vboxFrame), BORDER); gtk_container_add(GTK_CONTAINER(Frame), vboxFrame); hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0); Label = gtk_label_new("Nickname"); gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0); Entry = gtk_entry_new(); gtk_box_pack_start(GTK_BOX(hboxFrame), Entry, FALSE, FALSE, 0); g_object_set_data(G_OBJECT(global->ConfigWin), "config_player_nickname", Entry); gtk_entry_set_text(GTK_ENTRY(Entry), config->nickname); /* METASERVER */ Frame = gtk_frame_new("Meta server"); gtk_container_set_border_width(GTK_CONTAINER(Frame), BORDER); gtk_box_pack_start(GTK_BOX(vbox), Frame, TRUE, TRUE, 0); vboxFrame = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(vboxFrame), BORDER); gtk_container_add(GTK_CONTAINER(Frame), vboxFrame); CButton = gtk_check_button_new_with_label("Check new releases of GtkAtlantic"); g_object_set_data(G_OBJECT(global->ConfigWin), "config_metaserver_sendclientversion", CButton); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->metaserver_sendclientversion); gtk_box_pack_start(GTK_BOX(vboxFrame), CButton, FALSE, FALSE, 0); CButton = gtk_check_button_new_with_label("Autoconnect"); g_object_set_data(G_OBJECT(global->ConfigWin), "config_metaserver_autoconnect", CButton); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->metaserver_autoconnect); gtk_box_pack_start(GTK_BOX(vboxFrame), CButton, FALSE, FALSE, 0); /* DEFAULT CUSTOM SERVER */ Frame = gtk_frame_new("Default server"); gtk_container_set_border_width(GTK_CONTAINER(Frame), BORDER); gtk_box_pack_start(GTK_BOX(vbox), Frame, TRUE, TRUE, 0); vboxFrame = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(vboxFrame), BORDER); gtk_container_add(GTK_CONTAINER(Frame), vboxFrame); hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0); Label = gtk_label_new("Host"); gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0); Entry = gtk_entry_new(); g_object_set_data(G_OBJECT(global->ConfigWin), "config_customserver_host", Entry); gtk_entry_set_text(GTK_ENTRY(Entry), config->getgames_host); gtk_box_pack_start(GTK_BOX(hboxFrame), Entry, FALSE, FALSE, 0); hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0); Label = gtk_label_new("Port"); gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0); Entry = gtk_entry_new(); g_object_set_data(G_OBJECT(global->ConfigWin), "config_customserver_port", Entry); text = g_strdup_printf("%d", config->getgames_port); gtk_entry_set_text(GTK_ENTRY(Entry), text); g_free(text); gtk_widget_set_size_request(Entry, 45, -1); gtk_box_pack_start(GTK_BOX(hboxFrame), Entry, FALSE, FALSE, 0); CButton = gtk_check_button_new_with_label("Autoconnect"); g_object_set_data(G_OBJECT(global->ConfigWin), "config_customserver_autoconnect", CButton); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->getgames_autoconnect); gtk_box_pack_start(GTK_BOX(vboxFrame), CButton, FALSE, FALSE, 0); /* INTERFACE GAME CONFIG */ Frame = gtk_frame_new("Game interface"); gtk_container_set_border_width(GTK_CONTAINER(Frame), BORDER); gtk_box_pack_start(GTK_BOX(vbox), Frame, FALSE, FALSE, 0); vboxFrame = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(vboxFrame), BORDER); gtk_container_add(GTK_CONTAINER(Frame), vboxFrame); hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0); Label = gtk_label_new("Display player list at "); gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0); Combo = gtk_combo_box_text_new(); g_object_set_data(G_OBJECT(global->ConfigWin), "config_gameinterface_playerlistposition", Combo); gtk_widget_set_size_request(Combo, 60, -1); gtk_box_pack_start(GTK_BOX(hboxFrame), Combo, FALSE, FALSE, 0); gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), "left"); gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), "right"); if(config->game_playerlist_position == GAME_PLAYERLIST_POS_LEFT) gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0); else gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 1); hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0); Label = gtk_label_new("Token speed (in ms per estate) : "); gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0); Adjust = gtk_adjustment_new (config->game_token_animation_speed, 25, 500, 25, 25, 0); g_object_set_data(G_OBJECT(global->ConfigWin), "config_gameinterface_tokenanimatespeed", Adjust); Scale = gtk_scale_new(GTK_ORIENTATION_HORIZONTAL, GTK_ADJUSTMENT(Adjust)); gtk_widget_set_size_request(Scale, 200, -1); gtk_scale_set_value_pos (GTK_SCALE (Scale), GTK_POS_TOP); gtk_scale_set_digits (GTK_SCALE (Scale), 0); gtk_box_pack_start (GTK_BOX (hboxFrame), Scale, FALSE, FALSE, 0); CButton = gtk_check_button_new_with_label("Show in transparency the tokens of players who are not moving now"); g_object_set_data(G_OBJECT(global->ConfigWin), "config_gameinterface_tokentransparency", CButton); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->game_token_transparency); gtk_box_pack_start(GTK_BOX(vboxFrame), CButton, FALSE, FALSE, 0); /* CANCEL/OK BUTTON */ /* horizontal box buttons */ hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); Button = gtk_button_new_with_label("CANCEL"); gtk_widget_set_size_request(Button, 130, 45); gtk_container_set_border_width(GTK_CONTAINER(Button), 10); gtk_box_pack_start(GTK_BOX(hbox), Button, TRUE, FALSE, 0); g_signal_connect_object(G_OBJECT(Button), "clicked", G_CALLBACK(gtk_widget_destroy), global->ConfigWin, G_CONNECT_SWAPPED); Button = gtk_button_new_with_label("OK"); gtk_widget_set_size_request(Button, 130, 45); gtk_container_set_border_width(GTK_CONTAINER(Button), 10); gtk_box_pack_start(GTK_BOX(hbox), Button, TRUE, FALSE, 0); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_ok_button_configwindow), NULL); gtk_widget_show_all(global->ConfigWin); } /* create the little window connect to server */ void interface_create_connectoserver(void) { GtkWidget *win; GtkWidget *grid; GtkWidget *Entry; GtkWidget *Label; gchar *text; win = gtk_dialog_new_with_buttons("GtkAtlantic: Connect to server", GTK_WINDOW(global->MainWin), GTK_DIALOG_MODAL, "Close", GTK_RESPONSE_CLOSE, "Connect", GTK_RESPONSE_OK, NULL); grid = gtk_grid_new(); gtk_grid_set_column_spacing(GTK_GRID(grid), 5); gtk_grid_set_row_spacing(GTK_GRID(grid), 2); gtk_container_set_border_width(GTK_CONTAINER(grid), 10); gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(win))), grid); Label = gtk_label_new("Hostname:"); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(grid), Label, 0, 0, 1, 1); Entry = gtk_entry_new(); gtk_widget_set_size_request(Entry, 150, -1); g_object_set_data(G_OBJECT(win), "host", Entry); gtk_entry_set_text(GTK_ENTRY(Entry), config->getgames_host); gtk_grid_attach(GTK_GRID(grid), Entry, 1, 0, 1, 1); Label = gtk_label_new("Port:"); gtk_widget_set_halign(Label, GTK_ALIGN_END); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(grid), Label, 0, 1, 1, 1); Entry = gtk_entry_new(); gtk_widget_set_size_request(Entry, 150, -1); g_object_set_data(G_OBJECT(win), "port", Entry); text = g_strdup_printf("%d", config->getgames_port); gtk_entry_set_text(GTK_ENTRY(Entry), text); g_free(text); gtk_grid_attach(GTK_GRID(grid), Entry, 1, 1, 1, 1); g_signal_connect(G_OBJECT(win), "response", G_CALLBACK(CallBack_response_connect_to_server_window), win); gtk_widget_show_all(win); } /* create the public server list window */ void interface_create_publicserverlist(void) { GtkWidget *win; GtkWidget *frame; GtkWidget *scrollwin; GtkWidget *ServerList; GtkCellRenderer *renderer; GtkTreeSelection *select; GtkTreeViewColumn *column; win = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request(win, 700, 300); gtk_window_set_title(GTK_WINDOW(win), "GtkAtlantic: Public server list"); g_signal_connect(G_OBJECT(win), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL); frame = gtk_frame_new("Public server list"); gtk_container_set_border_width(GTK_CONTAINER(frame), 5); gtk_container_add(GTK_CONTAINER(win), frame); scrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_set_border_width(GTK_CONTAINER(scrollwin), 5); gtk_container_add(GTK_CONTAINER(frame), scrollwin); ServerList = gtk_tree_view_new(); gtk_container_add(GTK_CONTAINER(scrollwin), ServerList); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(ServerList)); gtk_tree_selection_set_mode(select, GTK_SELECTION_NONE); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes("Host", renderer, "text", SERVERLIST_COLUMN_HOST, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ServerList), column); column = gtk_tree_view_column_new_with_attributes("Port", renderer, "text", SERVERLIST_COLUMN_PORT, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ServerList), column); column = gtk_tree_view_column_new_with_attributes("Version", renderer, "text", SERVERLIST_COLUMN_VERSION, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ServerList), column); column = gtk_tree_view_column_new_with_attributes("Users", renderer, "text", SERVERLIST_COLUMN_USERS, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ServerList), column); gtk_tree_view_set_model(GTK_TREE_VIEW(ServerList), GTK_TREE_MODEL(global->server_store)); gtk_widget_show_all(win); } /* create the little window change nickname */ void interface_create_nicknamewin() { GtkWidget *NicknameWin; GtkWidget *HBox; GtkWidget *Entry; GtkWidget *Label; NicknameWin = gtk_dialog_new_with_buttons("GtkAtlantic: Nickname", GTK_WINDOW(global->MainWin), GTK_DIALOG_MODAL, "_OK", GTK_RESPONSE_OK, NULL); HBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width(GTK_CONTAINER(HBox), 10); gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(NicknameWin))), HBox); Label = gtk_label_new("Nickname:"); gtk_box_pack_start(GTK_BOX(HBox), Label, FALSE, FALSE, 5); Entry = gtk_entry_new(); gtk_widget_set_size_request(Entry, 150, -1); g_object_set_data(G_OBJECT(NicknameWin), "nickname", Entry); gtk_entry_set_text(GTK_ENTRY(Entry), player_from_id(global->my_playerid)->name); gtk_box_pack_start(GTK_BOX(HBox), Entry, TRUE, TRUE, 0); g_signal_connect(G_OBJECT(NicknameWin), "response", G_CALLBACK(CallBack_response_changenick_window), NicknameWin); gtk_widget_show_all(NicknameWin); } /* create estates tree */ void interface_create_estates_tree() { GtkWidget *EstateWin; GtkWidget *HBox; GtkWidget *ScrollWin; GtkWidget *EstateTree; GtkWidget *VBox; GtkWidget *Label; GtkTreeViewColumn *estateTreeCol; GtkCellRenderer *estateTreeRenderer; GtkTreeStore *stateTreestore; GtkTreeIter stateTreeIterGroup[MAX_GROUPS], stateTreeIterOther, stateTreeIterChild; GtkTreeSelection *select; guint32 i; if(currentgame->WinEstateTree) return; currentgame->WinEstateTree = EstateWin = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request(EstateWin, 450, 400); gtk_window_set_title(GTK_WINDOW(EstateWin), "GtkAtlantic: Estates Tree"); g_signal_connect(G_OBJECT(EstateWin), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL); g_signal_connect(G_OBJECT(EstateWin), "destroy", G_CALLBACK(CallBack_EstateTree_Destroyed), NULL); HBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); g_object_set_data(G_OBJECT(currentgame->WinEstateTree), "parent_box", HBox); // gtk_container_set_border_width(GTK_CONTAINER(HBox), 10); gtk_container_add(GTK_CONTAINER(EstateWin), HBox); /* ScrollWin win */ ScrollWin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ScrollWin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_widget_set_size_request(ScrollWin, 250, -1); gtk_box_pack_start(GTK_BOX(HBox), ScrollWin, FALSE, TRUE, 0); /* estate tree */ EstateTree = gtk_tree_view_new(); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(EstateTree)); gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE); g_signal_connect(G_OBJECT(select), "changed", G_CALLBACK(CallBack_EstateTree_SelectRow), NULL); gtk_container_add(GTK_CONTAINER(ScrollWin), EstateTree); estateTreeCol = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(estateTreeCol, "Estates"); gtk_tree_view_append_column(GTK_TREE_VIEW(EstateTree), estateTreeCol); estateTreeRenderer = gtk_cell_renderer_text_new(); gtk_tree_view_column_pack_start(estateTreeCol, estateTreeRenderer, TRUE); gtk_tree_view_column_add_attribute(estateTreeCol, estateTreeRenderer, "text", 0); stateTreestore = gtk_tree_store_new(2, G_TYPE_STRING, G_TYPE_INT); /* create groups node */ for(i = 0 ; i < MAX_GROUPS ; i++) { if(! currentgame->group[i].name) continue; gtk_tree_store_append(stateTreestore, &stateTreeIterGroup[i], NULL); gtk_tree_store_set(stateTreestore, &stateTreeIterGroup[i], 0, currentgame->group[i].name, 1, -1, -1); } gtk_tree_store_append(stateTreestore, &stateTreeIterOther, NULL); gtk_tree_store_set(stateTreestore, &stateTreeIterOther, 0, "Other", 1, -1, -1); /* create estates node */ for(i = 0 ; i < data->number_estates ; i++) { if(currentgame->estate[i].group >= 0) { gtk_tree_store_append(stateTreestore, &stateTreeIterChild, &stateTreeIterGroup[currentgame->estate[i].group]); } else { gtk_tree_store_append(stateTreestore, &stateTreeIterChild, &stateTreeIterOther); } gtk_tree_store_set(stateTreestore, &stateTreeIterChild, 0, currentgame->estate[i].name, 1, i, -1); } gtk_tree_view_set_model(GTK_TREE_VIEW(EstateTree), GTK_TREE_MODEL(stateTreestore)); g_object_unref(stateTreestore); /* the TreeView creates its own reference */ /* Expand groups */ for(i = 0 ; i < MAX_GROUPS ; i++) { GtkTreePath *path; if(! currentgame->group[i].name) continue; path = gtk_tree_model_get_path(GTK_TREE_MODEL(stateTreestore), &stateTreeIterGroup[i]); if(path) { gtk_tree_view_expand_row(GTK_TREE_VIEW(EstateTree), path, FALSE); gtk_tree_path_free(path); } } /* info box */ VBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); g_object_set_data(G_OBJECT(currentgame->WinEstateTree), "info_box", VBox); gtk_container_set_border_width(GTK_CONTAINER(VBox), 10); gtk_box_pack_start(GTK_BOX(HBox), VBox, TRUE, TRUE, 0); /* default text */ Label = gtk_label_new("Select an estate..."); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_START); gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, TRUE, 0); gtk_widget_show_all(EstateWin); } /* create help window */ void interface_create_helpwin() { GtkWidget *HelpWin; GtkWidget *Scrolled; GtkWidget *label; if(global->HelpWin) return; global->HelpWin = HelpWin = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request(HelpWin, 700, 500); gtk_window_set_title(GTK_WINDOW(HelpWin), "GtkAtlantic: Help"); g_signal_connect(G_OBJECT(HelpWin), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL); g_signal_connect(G_OBJECT(HelpWin), "destroy", G_CALLBACK(CallBack_HelpWin_Destroyed), NULL); Scrolled = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(Scrolled), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(global->HelpWin), Scrolled); label = gtk_label_new(NULL); gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); gtk_container_add(GTK_CONTAINER(Scrolled), label); gchar *tmp = g_markup_printf_escaped( "GtkAtlantic Help\n" "\n" "Contents\n" "\n" "1) About Atlantic\n" " i. What is the Atlantic game?\n" " ii. What is GtkAtlantic?\n" "2) How to play\n" "3) Fun chat macros\n" " i. Remote Macros\n" " ii. Local Macros\n" "\n" "\n" "1) About Atlantic\n" "\n" "i. What is the Atlantic game?\n" "\n" "The goal in playing Atlantic is to Get rich quick and win! The richest player is the winner :)\n" "\n" "In order to win, you need to buy properties quickly and profitably. To succeed, you need at least one set of the same group of " "properties, so that you can build Houses and ultimately Hotels upon them.\n" "\n" "Play begins from Start square. Players move their tokens around the board by clicking the Roll Dice button. When a player lands " "on an unowned estate, he may Buy it from the bank or put it up for Auction. When a player lands on a estate owned by custom " "player, he must pay rent to the owner.\n" "\n" "Building houses or hotels dramatically increase payable rents - so much so that it may force other players to declare 'Bankruptcy'. " "To raise money, you can mortgage any owned estate to the bank.\n" "\n" "The Chance and Community squares give you a card whose instructions must be followed. Sometimes you are sent to Jail! :(\n" "\n" "Atlantic is a game that combines subtlety and a sense of business - a good mood helps if you are losing! :)\n" "\n" "ii. What is GtkAtlantic?\n" "\n" "GtkAtlantic is a network client to play the Atlantic game on monopd servers. The Atlantic game looks like a Monopoly® game.\n" "\n" "\n" "2) How to Play\n" "\n" "Well, it is quite easy to play with GtkAtlantic. If you know how to play Monopoly® you can probably play without problem.\n" "\n" "Roll dice: Clic the Roll button.\n" "\n" "Buy a house: Clic on the estate on which you want to build a house then choose Build house.\n" "Sell a house: Clic on the estate on which you want to sell a house then choose Sell house.\n" "Mortgage an estate: Clic on the estate you want to mortgage then choose (Un)mortgage.\n" "\n" "Start a trade with a player: Clic on the player you want to trade with, then select Initiate a trade.\n" "\n" "\n" "3) Fun chat commands\n" "\n" "i. Remote commands\n" "\n" "Note that all players will know what you are doing, and all players will receive what you have requested. " "Please do not flood chat - use with care because some players don't like receiving this information. " "Only a GtkAtlantic client will answer these requests.\n" "\n" "!version [player]\n" "Returns player client version. If no player is specified, returns client version of all players.\n" "\n" "!date [player]\n" "Returns player local time. If no player is specified, returns date of all players.\n" "\n" "!ping [player]\n" "Returns pong if player is still connected. If no player is specified, returns pong of all players\n" "\n" "ii. Local commands\n" "\n" "Local commands to use whenever you want and as often as you need.\n" "\n" "/me msg\n" "Sends an action message\n" "\n" "/date\n" "Returns local time\n" "\n" "/nick [new nick]\n" "Changes nick\n" "\n" "/assets [player]\n" "Returns player assets. If no player is specified, returns assets of all players.\n" "\n" "/elapsed\n" "Returns elapsed time since game start.\n" "\n" ); gtk_label_set_markup(GTK_LABEL(label), tmp); g_free(tmp); gtk_widget_show_all(HelpWin); } static gboolean infolabel_timeout(gpointer data) { (void)data; gtk_label_set_text(GTK_LABEL(global->InfoLabel), NULL); global->timeout_InfoLabel = 0; return FALSE; } void interface_set_infolabel(gchar *text, gchar *color, gboolean eternal) { gchar *tmp = g_markup_printf_escaped("%s", color, text); gtk_label_set_markup(GTK_LABEL(global->InfoLabel), tmp); g_free(tmp); if (global->timeout_InfoLabel) { g_source_remove(global->timeout_InfoLabel); global->timeout_InfoLabel = 0; } if (!eternal) { global->timeout_InfoLabel = g_timeout_add_seconds(5, infolabel_timeout, NULL); } } /* generic window with a label into */ void interface_create_messagewin(gchar *msg) { (void)msg; #if 0 GtkWidget *MessageWin; GtkWidget *VBox; GtkWidget *Label; GtkWidget *Button; MessageWin = gtk_window_new(GTK_WINDOW_DIALOG); gtk_window_set_title(GTK_WINDOW(MessageWin), "GtkAtlantic: Message"); gtk_window_set_position(GTK_WINDOW(MessageWin), GTK_WIN_POS_CENTER); gtk_window_set_transient_for(GTK_WINDOW(MessageWin), GTK_WINDOW(global->MainWin)); gtk_window_set_modal(GTK_WINDOW(MessageWin), TRUE); gtk_widget_set_size_request(MessageWin, -1, -1); g_signal_connect(G_OBJECT(MessageWin), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL); VBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(VBox), 10); gtk_container_add(GTK_CONTAINER(MessageWin), VBox); /* text */ Label = gtk_label_new(msg); gtk_label_set_line_wrap(GTK_LABEL(Label), TRUE); gtk_box_pack_start(GTK_BOX(VBox), Label, TRUE, TRUE, 0); /* ok button */ Button = gtk_button_new_with_label("OK"); gtk_widget_set_halign(Button, GTK_ALIGN_CENTER); gtk_widget_set_valign(Button, GTK_ALIGN_CENTER); gtk_widget_set_size_request(Button, 70, -1); gtk_box_pack_start(GTK_BOX(VBox), Button, FALSE, FALSE, 0); g_signal_connect_object(G_OBJECT(Button), "clicked", G_CALLBACK(gtk_widget_destroy), MessageWin, G_CONNECT_SWAPPED); gtk_widget_show_all(MessageWin); #endif } /* when receive event: redraw an estate */ void on_board_draw(GtkWidget *widget, cairo_t *cr, gpointer d) { (void)d; gint32 id; eng_frame *frame; gint32 width, height, stride; eng_coord coord; cairo_surface_t *surface; guint8 *buf; gint32 bufferid; id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "estateid")); frame = currentgame->board_frame; bufferid = data->estate[id].buffer_board; width = data->pngfile_board_width[bufferid]; height = data->pngfile_board_height[bufferid]; stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width); coord.x = data->estate[id].x; coord.y = data->estate[id].y; coord.width = width; coord.height = height; coord.stride = stride; buf = eng_get_zone(frame, &coord); surface = cairo_image_surface_create_for_data((unsigned char*)buf, CAIRO_FORMAT_ARGB32, width, height, stride); cairo_set_source_surface(cr, surface, 0, 0); cairo_paint(cr); cairo_surface_destroy(surface); g_free(buf); } /* when receive event: redraw player token */ void on_playertoken_draw(GtkWidget *widget, cairo_t *cr, gpointer d) { (void)d; eng_frame *frame; gint32 width, height, stride; eng_coord coord; cairo_surface_t *surface; guint8 *buf; player *p = g_object_get_data(G_OBJECT(widget), "player"); frame = p->playerlist_token_frame; width = data->playerlist_token_width; height = data->playerlist_token_height; stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width); coord.x = 0; coord.y = 0; coord.width = width; coord.height = height; coord.stride = stride; buf = eng_get_zone(frame, &coord); surface = cairo_image_surface_create_for_data((unsigned char*)buf, CAIRO_FORMAT_ARGB32, width, height, stride); cairo_set_source_surface(cr, surface, 0, 0); cairo_paint(cr); cairo_surface_destroy(surface); g_free(buf); } /* when receive event: redraw player cards */ void on_playercards_draw(GtkWidget *widget, cairo_t *cr, gpointer d) { (void)d; eng_frame *frame; gint32 width, height, stride; eng_coord coord; cairo_surface_t *surface; guint8 *buf; player *p = g_object_get_data(G_OBJECT(widget), "player"); frame = p->playerlist_cards_frame; width = data->playerlist_cards_width; height = data->playerlist_cards_height; stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width); coord.x = 0; coord.y = 0; coord.width = width; coord.height = height; coord.stride = stride; buf = eng_get_zone(frame, &coord); surface = cairo_image_surface_create_for_data((unsigned char*)buf, CAIRO_FORMAT_ARGB32, width, height, stride); cairo_set_source_surface(cr, surface, 0, 0); cairo_paint(cr); cairo_surface_destroy(surface); g_free(buf); } /* update display */ void update_display() { guint32 i; eng_frame *frame; if (global->phase != PHASE_GAMEPLAY) { return; } /* draw the board */ frame = currentgame->board_frame; eng_create_frame(frame); for(i = 0 ; i < data->number_estates ; i++) { eng_coord coord; gint32 width, height; gint32 bufferid; if(! currentgame->estate[i].gdkrgb) continue; if(! frame) continue; bufferid = data->estate[i].buffer_board; width = data->pngfile_board_width[bufferid]; height = data->pngfile_board_height[bufferid]; coord.x1 = data->estate[i].x; coord.y1 = data->estate[i].y; coord.x2 = coord.x1 + width -1; coord.y2 = coord.y1 + height -1; /* force draw event */ if (eng_zone_is_modified(frame, &coord) ) { gtk_widget_queue_draw_area(currentgame->estate[i].gdkrgb, 0, 0, width, height); } } /* draw playerlist */ player *p; for (p = player_h; p; p = p->next) { eng_frame *frame; gint32 width, height; eng_coord coord; if (p->spectator) continue; if (p->game != currentgame->gameid) continue; if (!p->playerlist_cards_gdkrgb) continue; /* playerlist cards */ frame = p->playerlist_cards_frame; eng_create_frame(frame); width = data->playerlist_cards_width; height = data->playerlist_cards_height; coord.x1 = 0; coord.y1 = 0; coord.x2 = width -1; coord.y2 = height -1; /* force draw event */ if ( eng_zone_is_modified(frame, &coord) ) { gtk_widget_queue_draw_area(p->playerlist_cards_gdkrgb, 0, 0, width, height); } /* playerlist token */ frame = p->playerlist_token_frame; eng_create_frame(frame); width = data->playerlist_token_width; height = data->playerlist_token_height; coord.x1 = 0; coord.y1 = 0; coord.x2 = width -1; coord.y2 = height -1; /* force draw event */ if ( eng_zone_is_modified(frame, &coord) ) { gtk_widget_queue_draw_area(p->playerlist_token_gdkrgb, 0, 0, width, height); } } } gtkatlantic-0.6.1/src/trade.h0000644000175000017500000000305512550311276013010 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef TRADE_H #define TRADE_H #include void trade_initnew(gint32 tradeid); void trade_destroy(gint32 tradeid); void trade_destroy_slot(gint32 tradeslot); void trade_create_panel(gint32 tradeslot); void trade_rebuild_playerlist(gint32 tradeslot); void trade_rebuild_component(gint32 tradeslot); void trade_rebuild_subcomponent(gint32 tradeslot); void trade_update_revision(gint32 tradeid, gint32 revision); void trade_update_player(gint32 tradeid, gint32 playerid, gboolean accept); void trade_update_card(gint32 tradeid, gint32 cardid, gint32 targetplayer); void trade_update_estate(gint32 tradeid, gint32 estateid, gint32 targetplayer); void trade_update_money(gint32 tradeid, gint32 playerfrom, gint32 playerto, gint32 money); #endif /* TRADE_H */ gtkatlantic-0.6.1/src/global.h0000644000175000017500000003051312554755273013165 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef GLOBAL_H #define GLOBAL_H /* ** contain global variables */ #include #include #include #include "engine.h" #ifndef WIN32 typedef int socket_t; #define ICON_PATH_SUFFIX "/apps/gtkatlantic.png" #else /* WIN32 */ #include typedef SOCKET socket_t; #undef PACKAGE_DATA_DIR #undef PACKAGE_ICON_DIR #define PACKAGE_DATA_DIR "./data" #define PACKAGE_ICON_DIR "./data/icons" #define ICON_PATH_SUFFIX ".png" #endif /* WIN32 */ /* -- hierarchy * * player[] > player game data * game[] > game data * |-> estate[] > estate game data * |-> group[] > group game data * |-> card[] > card removed from stack (needed for trade) * |-> trade[] > current trades data * `-> command[] > command game data * data > interface datas * |-> estate[] > interface estates data (tablepos, sizes, ...) * |-> playerlist_card[] > interface playerlist cards data (tablepos, sizes, ...) * `-> theme[] > themes database * global > main data * `-> connection > connections status * config > config data */ /* -- game data */ #define MAX_ESTATES 50 #define MAX_GROUPS 50 #define MAX_CARDS 16 #define MAX_TRADES 64 #define MAX_COMMANDS 20 #define MAX_PLAYERLIST_CARDS 30 /* -- player data */ #define PLAYER_ACTION_TRADE 0 #define PLAYER_ACTION_VERSION 1 #define PLAYER_ACTION_DATE 2 #define PLAYER_ACTION_PING 3 struct player_ { struct player_ *next; guint32 playerid; gint32 game; gchar *image; gchar *name; gchar *host; gint32 money; guint16 location; gboolean jailed; gboolean directmove; gboolean bankrupt; gboolean hasturn; gboolean can_roll; gboolean can_buyestate; gboolean spectator; gint32 turnorder; guint16 location_to; /* playerlist */ GtkWidget *playerlist_box; GtkWidget *playerlist_LabelNamePlayer; GtkWidget *playerlist_LabelMoneyPlayer; GtkWidget *playerlist_cards_gdkrgb; eng_frame *playerlist_cards_frame; eng_obj *playerlist_cards_pic[MAX_PLAYERLIST_CARDS]; GtkWidget *playerlist_token_gdkrgb; eng_frame *playerlist_token_frame; eng_obj *playerlist_token_pic; /* board */ gint32 tokenid; eng_obj *token_pic; }; typedef struct player_ player; player *player_h; /* Player list */ /* -- estate data */ #define ESTATE_ACTION_BUILDHOUSE 0 #define ESTATE_ACTION_SELLHOUSE 1 #define ESTATE_ACTION_MORTGAGE 2 #define ESTATE_ACTION_SELL 3 typedef struct { gchar *name; guint8 color[3]; // R, G, B guint8 bgcolor[3]; // R, G, B gint32 owner; guint8 houses; guint32 houseprice; guint32 sellhouseprice; gint32 mortgageprice; gint32 unmortgageprice; gboolean mortgaged; gint16 group; gboolean can_be_owned; gboolean can_toggle_mortgage; gboolean can_buy_houses; gboolean can_sell_houses; guint32 money; guint32 price; guint32 rent[6]; /* board */ GtkWidget *gdkrgb; eng_obj *pic; eng_obj *star_pic; eng_obj *house_pic; } _estate; /* -- group data */ typedef struct { gchar *name; } _group; /* -- card data */ typedef struct { gint32 cardid; gint32 owner; gchar *title; } _card; #define TRADE_MAX_PLAYER 9 #define TRADE_ACTION_REJECT 0 #define TRADE_ACTION_ACCEPT 1 #define TRADE_ACTION_REMOVE 2 #define TRADE_TYPE_NONE 0 #define TRADE_TYPE_MONEY 1 #define TRADE_TYPE_ESTATE 2 #define TRADE_TYPE_CARD 3 enum { TRADEPROPOSALLIST_COLUMN_TYPE, TRADEPROPOSALLIST_COLUMN_FROM, TRADEPROPOSALLIST_COLUMN_GIVES, TRADEPROPOSALLIST_COLUMN_TO, TRADEPROPOSALLIST_COLUMN_WHAT, TRADEPROPOSALLIST_COLUMN_TYPE_ID, TRADEPROPOSALLIST_COLUMN_FROM_ID, TRADEPROPOSALLIST_COLUMN_TO_ID, TRADEPROPOSALLIST_COLUMN_AUX_ID, TRADEPROPOSALLIST_COLUMN_NUM }; enum { TRADEPLAYERLIST_COLUMN_NAME, TRADEPLAYERLIST_BGCOLOR_NAME, TRADEPLAYERLIST_COLUMN_NUM }; /* -- trade data */ struct trade_player_ { player *player; gboolean accept; }; typedef struct trade_player_ trade_player; typedef struct { gboolean open; gint32 tradeid; gint32 revision; trade_player player[TRADE_MAX_PLAYER]; guint8 current_component; GtkWidget *TradeWin; GtkWidget *PlayerList; GtkWidget *FrameComponent; GtkWidget *ProposalList; GtkWidget *ComponentBox; GtkWidget *SubComponentBox; guint8 select_type; // money, estate, card guint32 select_from; guint32 select_to; guint32 select_aux; // estateid, cardid } _trade; /* -- command data */ typedef struct { gboolean open; GtkWidget *Frame; GtkWidget *gdkrgb; gboolean redraw; gchar *command; } _command; #define GAME_STATUS_NONE 0 #define GAME_STATUS_CONFIG 1 #define GAME_STATUS_INIT 2 #define GAME_STATUS_RUN 3 #define GAME_STATUS_END 4 enum { PLAYERLIST_COLUMN_NAME, PLAYERLIST_COLUMN_HOST, PLAYERLIST_COLUMN_NUM }; enum { AUCTIONPLAYERLIST_COLUMN_NAME, AUCTIONPLAYERLIST_COLUMN_BID, AUCTIONPLAYERLIST_COLUMN_PLAYERID, AUCTIONPLAYERLIST_WEIGHT, AUCTIONPLAYERLIST_WEIGHTSET, AUCTIONPLAYERLIST_COLUMN_NUM }; struct game_ { struct game_ *next; guint8 status; gint32 gameid; gint32 master; _estate estate[MAX_ESTATES]; _group group[MAX_GROUPS]; _card card[MAX_CARDS]; _trade trade[MAX_TRADES]; _command command[MAX_COMMANDS]; time_t start_time; eng_frame *board_frame; GtkWidget *PlayerList; GtkWidget *ChatBox, *Chat; GtkWidget *GameConfigBox; GtkWidget *BoardCenter; GtkWidget *WinEstateTree; guint32 timeout_token; }; typedef struct game_ game; game *currentgame; /* Currently played game entry */ game *game_h; /* Game list */ /* -- connect data */ #define CONNECT_TYPE_MONOPD_GETGAME 1 #define CONNECT_TYPE_MONOPD_GAME 2 #define CONNECT_TYPE_METASERVER 3 struct connection_ { #if DEBUG guint32 id; #endif /* DEBUG */ guint8 type; gchar *host; gchar *ip; gint32 port; socket_t socket; GIOChannel *channel; gint event_source_id; gchar *server_version; gchar *buffer_in; gchar *buffer_out; }; typedef struct connection_ connection; /* interface card */ typedef struct { guint16 x; guint16 y; guint8 z; guint8 buffer_card; guint8 estateid; } _interface_playerlist_card; /* interface estate */ #define TYPE_HOUSE_NONE 0 #define TYPE_HOUSE_HORIZONTAL 1 #define TYPE_HOUSE_VERTICAL 2 typedef struct { guint16 x; guint16 y; guint8 buffer_board; guint16 x1token; guint16 y1token; guint16 x2token; guint16 y2token; guint16 x1jail; guint16 y1jail; guint16 x2jail; guint16 y2jail; guint16 xstar; guint16 ystar; guint16 xhouse; guint16 yhouse; guint8 type_house; } _interface_estate; /* themes database */ enum { THEMELIST_COLUMN_NAME, THEMELIST_COLUMN_ID, THEMELIST_COLUMN_NUM }; typedef struct { gboolean open; gchar *path; gchar *path_preview; gchar *path_conf; gchar *name; gchar *type; gchar *version; gchar *author; gchar *email; } _theme; /* interface / pngfiles */ #define MAX_PLAYERS 20 #define MAX_COMMANDS 20 #define MAX_HOUSES 10 #define MAX_THEMES 256 typedef struct { /* pngfile board */ gchar *pngfile_board_filename; guint16 pngfile_board_x[MAX_ESTATES], pngfile_board_y[MAX_ESTATES]; guint16 pngfile_board_width[MAX_ESTATES], pngfile_board_height[MAX_ESTATES]; guint8 *pngfile_board_buf[MAX_ESTATES]; /* pngfile_tokens */ gchar *pngfile_token_filename; guint16 pngfile_token_x[MAX_PLAYERS], pngfile_token_y[MAX_PLAYERS]; guint16 pngfile_token_width[MAX_PLAYERS], pngfile_token_height[MAX_PLAYERS]; guint8 *pngfile_token_buf[MAX_PLAYERS]; /* pngfile_stars */ gchar *pngfile_star_filename; guint16 pngfile_star_x[MAX_PLAYERS], pngfile_star_y[MAX_PLAYERS]; guint16 pngfile_star_width[MAX_PLAYERS], pngfile_star_height[MAX_PLAYERS]; guint8 *pngfile_star_buf[MAX_PLAYERS]; /* pngfile_stars_m (mortgaged) */ gchar *pngfile_star_m_filename; guint16 pngfile_star_m_x[MAX_PLAYERS], pngfile_star_m_y[MAX_PLAYERS]; guint16 pngfile_star_m_width[MAX_PLAYERS], pngfile_star_m_height[MAX_PLAYERS]; guint8 *pngfile_star_m_buf[MAX_PLAYERS]; /* pngfile_cards */ gchar *pngfile_card_filename; guint16 pngfile_card_x[MAX_PLAYERLIST_CARDS], pngfile_card_y[MAX_PLAYERLIST_CARDS]; guint16 pngfile_card_width[MAX_PLAYERLIST_CARDS], pngfile_card_height[MAX_PLAYERLIST_CARDS]; guint8 *pngfile_card_buf[MAX_PLAYERLIST_CARDS]; /* pngfile_commands */ gchar *pngfile_command_filename; guint16 pngfile_command_x[MAX_COMMANDS], pngfile_command_y[MAX_COMMANDS]; guint16 pngfile_command_width[MAX_COMMANDS], pngfile_command_height[MAX_COMMANDS]; guint8 *pngfile_command_buf[MAX_COMMANDS]; /* pngfile_horiz_houses */ gchar *pngfile_horiz_house_filename; guint16 pngfile_horiz_house_x[MAX_HOUSES], pngfile_horiz_house_y[MAX_HOUSES]; guint16 pngfile_horiz_house_width[MAX_HOUSES], pngfile_horiz_house_height[MAX_HOUSES]; guint8 *pngfile_horiz_house_buf[MAX_HOUSES]; /* pngfile_vert_houses */ gchar *pngfile_vert_house_filename; guint16 pngfile_vert_house_x[MAX_HOUSES], pngfile_vert_house_y[MAX_HOUSES]; guint16 pngfile_vert_house_width[MAX_HOUSES], pngfile_vert_house_height[MAX_HOUSES]; guint8 *pngfile_vert_house_buf[MAX_HOUSES]; /* load flags */ gboolean png_game_loaded; /* interface estate */ guint16 board_height, board_width; guint16 board_center_x, board_center_y, board_center_width, board_center_height; guint8 number_estates; _interface_estate estate[MAX_ESTATES]; /* interface playerlist token */ guint16 playerlist_token_width, playerlist_token_height; guint8 token_max; /* interface playerlist cards */ guint16 playerlist_cards_width, playerlist_cards_height; guint8 playerlist_cards_alphaunowned, playerlist_cards_alphaowned, playerlist_cards_alphamortgage; gint32 playerlist_cards_cardbgcolor, playerlist_cards_cardbgcolormortgage; guint8 number_playerlist_card; _interface_playerlist_card playerlist_card[MAX_PLAYERLIST_CARDS]; /* themes database */ _theme theme[MAX_THEMES]; } _data; _data *data; /* -- main data */ #define PHASE_GETGAMES 1 #define PHASE_GAMECREATE 2 #define PHASE_GAMEINIT 3 #define PHASE_GAMEPLAY 4 enum { GAMELIST_COLUMN_HOST, GAMELIST_COLUMN_VERSION, GAMELIST_COLUMN_GAME, GAMELIST_COLUMN_STATUS, GAMELIST_COLUMN_PLAYERS, GAMELIST_COLUMN_PORT, GAMELIST_COLUMN_GAMETYPE, GAMELIST_COLUMN_GAMEID, GAMELIST_COLUMN_SERVERID, GAMELIST_COLUMN_CANBEJOINED, GAMELIST_COLUMN_CANBEWATCHED, GAMELIST_COLUMN_BGCOLOR, GAMELIST_COLUMN_SOURCE, GAMELIST_COLUMN_NUM }; enum { GAMELIST_SOURCE_METASERVER, GAMELIST_SOURCE_CUSTOM, }; enum { SERVERLIST_COLUMN_HOST, SERVERLIST_COLUMN_PORT, SERVERLIST_COLUMN_VERSION, SERVERLIST_COLUMN_USERS, SERVERLIST_COLUMN_SERVERID, SERVERLIST_COLUMN_NUM }; typedef struct { gchar *path_home; guint8 phase; GtkWidget *MainWin; GtkWidget *MainBox; GtkWidget *Menu; GtkWidget *MainVerticalBox; GtkWidget *InfoLabel; guint32 timeout_InfoLabel; connection *customserver_connect; connection *metaserver_connect; connection *game_connect; GtkListStore *game_store; GtkListStore *server_store; GtkTreeIter selected_game; GtkWidget *ConfigWin; GtkWidget *HelpWin; GtkWidget *ThemeWin; gint32 my_playerid; gchar *cookie; } _global; _global *global; /* all configuration */ #define METASERVER_HOST "meta.atlanticd.net" #define METASERVER_PORT 1240 #define GAME_PLAYERLIST_POS_LEFT 0 #define GAME_PLAYERLIST_POS_RIGHT 1 typedef struct { gchar *nickname; gboolean metaserver_autoconnect; gboolean metaserver_sendclientversion; gchar *getgames_host; guint32 getgames_port; gboolean getgames_autoconnect; guint32 chat_max_lines; guint8 game_playerlist_position; guint32 game_token_animation_speed; gboolean game_token_transparency; } _config; _config *config; #endif /* GLOBAL_H */ gtkatlantic-0.6.1/src/eng_list.c0000644000175000017500000000730712550307425013515 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include "eng_list.h" eng_list *eng_list_new() { eng_list *l; l = g_malloc0( sizeof(eng_list) ); return l; } eng_list *eng_list_destroy(eng_list *l) { if(!l) return NULL; eng_list_clean(l); g_free(l); return NULL; } eng_list_e *eng_list_element_new(eng_list *l, void *d) { eng_list_e *le; if(!l) return NULL; le = g_malloc0( sizeof(eng_list_e) ); if(!l->length) l->first = l->last = le; le->list = l; le->data = d; l->length++; return le; } eng_list_e *eng_list_append(eng_list *l, void *d) { eng_list_e *le; le = eng_list_element_new(l, d); if(l->last != le) { le->prev = l->last; le->prev->next = le; l->last = le; } else le->prev = NULL; le->next = NULL; return le; } eng_list_e *eng_list_prepend(eng_list *l, void *d) { eng_list_e *le; le = eng_list_element_new(l, d); if(l->first != le) { le->next = l->first; le->next->prev = le; l->first = le; } else le->next = NULL; le->prev = NULL; return le; } void eng_list_remove_fast(eng_list_e *le) { eng_list *l; if(!le) return; l = le->list; l->length--; if(!le->prev) { if(le->next) { // prev = 0, next = 1 l->first = le->next; le->next->prev = NULL; } else /* if(!le->next) */ { // prev = 0, next = 0 l->first = l->last = NULL; } } else /* if(le->prev) */ { // prev = 1, next = 0 if(!le->next) { l->last = le->prev; le->prev->next = NULL; } else /* if(le->next) */ { // prev = 1, next = 1 le->next->prev = le->prev; le->prev->next = le->next; } } g_free(le); } void eng_list_remove(eng_list *l, void *d) { eng_list_e *le; if(!l) return; if( (le = eng_list_find(l, d)) ) eng_list_remove_fast(le); } eng_list_e *eng_list_first(eng_list *l) { if(!l) return NULL; return(l->first); } eng_list_e *eng_list_last(eng_list *l) { if(!l) return NULL; return(l->last); } eng_list_e *eng_list_previous(eng_list_e *le) { if(!le) return NULL; return(le->prev); } eng_list_e *eng_list_next(eng_list_e *le) { if(!le) return NULL; return(le->next); } void eng_list_clean(eng_list *l) { if(!l) return; while(l->first) eng_list_remove_fast(l->first); } guint32 eng_list_length(eng_list *l) { if(!l) return 0; return(l->length); } eng_list_e *eng_list_find(eng_list *l, void *d) { eng_list_e *le; if(!l) return NULL; for(le = l->first ; le ; le = le->next) if(le->data == d) { return le; } return NULL; } GList *eng_list_libevlist_to_glist(eng_list *l) { eng_list_e *le; GList *gl = NULL; for(le = eng_list_first(l); le; le = le->next) gl = g_list_append(gl, le->data); return g_list_first(gl); } eng_list *eng_list_glist_to_libevlist(GList *gl) { eng_list *l; GList *gle; l = eng_list_new(); for(gle = g_list_first(gl); gle; gle = gle->next) eng_list_append(l, gle->data); return l; } gtkatlantic-0.6.1/src/eng_frame.h0000644000175000017500000000261012550311234013622 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef ENG_FRAME_H #define ENG_FRAME_H #include /* -- prototypes for eng_frame.c -- */ void eng_create_frame_all(); void eng_create_frame(eng_frame *f); eng_coord* eng_pic_get_zone_old(eng_obj *o); eng_coord* eng_pic_get_zone_new(eng_obj *o); void eng_update_bufout(eng_frame *f, eng_coord *zone, eng_list *obj_show); void eng_clear_bufout(eng_frame *f, eng_coord *zone); gboolean eng_zone_is_modified(eng_frame *f, eng_coord *zone); guchar *eng_get_zone(eng_frame *f, eng_coord *zone); eng_zone *eng_get_next_zone(eng_frame *f); /* -- end of prototypes -- */ #endif /* ENG_FRAME_H */ gtkatlantic-0.6.1/src/eng_main.c0000644000175000017500000002431312550307435013463 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include "eng_main.h" /* ---- initialise engine */ void eng_init() { guint32 alpha, bright; #if ENG_DEBUG fprintf(stdout, "Initializing engine...\n"); #endif eng = g_malloc0( sizeof(_eng) ); eng->obj = eng_list_new(); eng->frame = eng_list_new(); /* init alpha tables */ eng->alpha = g_malloc( sizeof(eng_alpha) ); for(alpha = 0 ; alpha < 256 ; alpha++) { for(bright = 0 ; bright < 256 ; bright++) { guint8 v = (bright * (alpha+1)) >> 8; /* alpha+1: 255*256 >> 8 = 255 */ eng->alpha->fg[alpha][bright] = v; eng->alpha->bg[alpha][bright] = bright - v; } } } /* ---- close engine */ void eng_close() { if(!eng) return; eng_frame_destroy_all(); eng_list_destroy(eng->obj); eng_list_destroy(eng->frame); if(eng->alpha) g_free(eng->alpha); g_free(eng); #if ENG_DEBUG fprintf(stdout, "Closing engine...\n"); #endif } /* ---- create a new frame */ eng_frame* eng_frame_create() { eng_frame *f; f = g_malloc0( sizeof(eng_frame) ); eng_frame_reset(f); f->compute = 1; f->obj = eng_list_new(); f->zone_upd = eng_list_new(); f->entry = eng_list_append(eng->frame, f); #if ENG_DEBUG fprintf(stdout, "New Frame\n"); #endif return(f); } /* ---- destroy a frame * * close also all pics */ void eng_frame_destroy(eng_frame *f) { eng_list_e *lst; if(!f) return; eng_list_remove_fast(f->entry); while( (lst = eng_list_first(f->obj))) eng_pic_free(lst->data); eng_frame_reset(f); eng_list_destroy(f->obj); eng_list_destroy(f->zone_upd); g_free(f); #if ENG_DEBUG fprintf(stdout, "Destroy frame\n"); #endif } /* ---- destroy all frames */ void eng_frame_destroy_all() { eng_list_e *lst; while( (lst = eng_list_first(eng->frame))) eng_frame_destroy(lst->data); } /* ---- set to 0 all elements in struct */ void eng_frame_reset(eng_frame *f) { if(!f) return; f->compute = 0; f->width = 0; f->height = 0; if(f->memalloc > 0) g_free(f->bufout); f->memalloc = 0; eng_frame_free_zoneupd(f); f->num_zone = 0; f->x_min = 0; f->y_min = 0; f->x_max = 0; f->y_max = 0; } /* ---- free all zone update */ void eng_frame_free_zoneupd(eng_frame *f) { eng_list_e *lst; if(!f) return; if(!f->zone_upd) return; for(lst = eng_list_first(f->zone_upd) ; lst ; lst=lst->next) g_free(lst->data); eng_list_clean(f->zone_upd); } /* ---- compute yes this frame (for eng_create_frame_all() ) */ void eng_frame_set_compute(eng_frame *f) { if(!f) return; f->compute = 1; } /* ---- compute no this frame (for eng_create_frame_all() ) */ void eng_frame_unset_compute(eng_frame *f) { if(!f) return; f->compute = 0; } /* ---- clean this frame * * * * In the same concept of minimizing memory usage, * * with this function you can clean all memory * * used for out buffer. * * * * Don't use between frame often drawed, * * because engine do remake all frame, and not * * just update this, finally engine can become * * extremely slow. * * * * This is not dependant with minimizing memory mode * * */ void eng_frame_clean(eng_frame *f) { if(!f) return; if(f->memalloc > 0) g_free(f->bufout); f->memalloc = 0; eng_frame_free_zoneupd(f); /* for(i = 1 ; i <= frame[frame_id]->lastpic ; i++ ) { if(engine->active_frame[i]) frame[frame_id]->obj[i]->change = 1; } */ } /* ---- set HEIGHT of a frame */ void eng_frame_set_height(eng_frame *f, guint16 height) { if(!f) return; f->height = height; } /* ---- set WIDTH of a frame */ void eng_frame_set_width(eng_frame *f, guint16 width) { if(!f) return; f->width = width; } /* ---- put in terminal all arguments of a frame */ void eng_frame_showarg(eng_frame *f) { if(!f) return; fprintf(stdout, "====== FRAME ======\n"); fprintf(stdout, " compute -> %d\n", f->compute); fprintf(stdout, " width -> %d\n", f->width); fprintf(stdout, " height -> %d\n", f->height); fprintf(stdout, " ------\n"); fprintf(stdout, " memalloc -> %d bytes\n", f->memalloc); fprintf(stdout, " num_zone -> %d\n", f->num_zone); fprintf(stdout, "====================\n"); } /* ---- create a new pic */ eng_obj* eng_pic_create(eng_frame *f) { eng_obj *o; o = g_malloc0( sizeof(eng_obj) ); eng_pic_reset(o); o->show = 1; o->frame = f; o->entry_main = eng_list_append(eng->obj, o); o->entry = eng_list_append(f->obj, o); #if ENG_DEBUG fprintf(stdout, "New Pic\n"); #endif return(o); } /* ---- sent a call to destroy pic */ void eng_pic_destroy(eng_obj *o) { if(!o) return; o->destroy = 1; o->change = 1; } /* ---- destroy pic */ void eng_pic_free(eng_obj *o) { if(!o) return; eng_list_remove_fast(o->entry); eng_list_remove_fast(o->entry_main); eng_pic_reset(o); g_free(o); o = NULL; #if ENG_DEBUG fprintf(stdout, "Destroy pic\n"); #endif } /* ---- set to 0 all elements in struct */ void eng_pic_reset(eng_obj *o) { if(!o) return; o->show = 0; o->destroy = 0; o->x = 0; o->y = 0; o->z = 0; o->width = 0; o->height = 0; o->have_alpha = 0; o->have_bgcolor = 0; o->alpha = 0; o->bgcolor[0] = 0; o->bgcolor[1] = 0; o->bgcolor[2] = 0; o->change = 0; o->x_old = 0; o->y_old = 0; o->height_old = 0; o->width_old = 0; } /* ---- show this pic */ void eng_pic_show(eng_obj *o) { if(!o) return; if(!o->show) { o->show = 1; o->change = 1; } } /* ---- unshow this pic */ void eng_pic_unshow(eng_obj *o) { if(!o) return; if(o->show) { o->show = 0; o->change = 1; } } /* ---- redraw this pic */ void eng_pic_redraw(eng_obj *o) { if(!o) return; o->change = 1; } /* ---- set X pos of pic */ void eng_pic_set_x(eng_obj *o, guint16 x) { if(!o) return; if(x != o->x) { o->x = x; o->change = 1; } } /* ---- set Y pos of pic */ void eng_pic_set_y(eng_obj *o, guint16 y) { if(!o) return; if(y != o->y) { o->y = y; o->change = 1; } } /* ---- set Z pos of pic */ void eng_pic_set_z(eng_obj *o, guint16 z) { if(!o) return; if(z != o->z) { o->z = z; o->change = 1; } } /* ---- set HEIGHT of pic */ void eng_pic_set_height(eng_obj *o, guint16 height) { if(!o) return; if(height != o->height) { o->height = height; o->change = 1; } } /* ---- set WIDTH of pic */ void eng_pic_set_width(eng_obj *o, guint16 width) { if(!o) return; if(width != o->width) { o->width = width; o->change = 1; } } /* ---- set ALPHA value */ void eng_pic_set_alpha(eng_obj *o, guint8 alpha) { if(!o) return; if( !o->have_alpha || alpha != o->alpha) { if(alpha == 0xff) { /* 100% opacity */ eng_pic_unset_alpha(o); return; } o->alpha = alpha; o->have_alpha = 1; o->change = 1; } } /* ---- UNset ALPHA value */ void eng_pic_unset_alpha(eng_obj *o) { if(!o) return; if(o->have_alpha) { o->alpha = 0; o->have_alpha = 0; o->change = 1; } } /* ---- set BGCOLOR value */ void eng_pic_set_bgcolor(eng_obj *o, guint32 bgcolor) { guint8 rgb[3]; if(!o) return; rgb[0] = (bgcolor >> 16) & 0xff; // red rgb[1] = (bgcolor >> 8) & 0xff; // green rgb[2] = bgcolor & 0xff; // blue if( !o->have_bgcolor || memcmp(&rgb, o->bgcolor, 3) ) { memcpy(o->bgcolor, &rgb, 3); o->have_bgcolor = 1; o->change = 1; } } /* ---- UNset BGCOLOR value */ void eng_pic_unset_bgcolor(eng_obj *o) { if(!o) return; if(o->have_bgcolor) { o->bgcolor[0] = 0; o->bgcolor[1] = 0; o->bgcolor[2] = 0; o->have_bgcolor = 0; o->change = 1; } } /* ---- set pic buffer */ void eng_pic_set_buf(eng_obj *o, guchar * buff) { if(!o) return; if(!buff) return; o->buf = buff; o->change = 1; } /* ---- put in terminal all arguments of a pic */ void eng_pic_showarg(eng_obj *o) { if(!o) return; fprintf(stdout, "== PIC ==\n"); fprintf(stdout, " show -> %d\n", o->show); fprintf(stdout, " x -> %d\n", o->x); fprintf(stdout, " y -> %d\n", o->y); fprintf(stdout, " z -> %d\n", o->z); fprintf(stdout, " width -> %d\n", o->width); fprintf(stdout, " height -> %d\n", o->height); fprintf(stdout, " have_alpha -> %d\n", o->have_alpha); fprintf(stdout, " have_bgcolor -> %d\n", o->have_bgcolor); fprintf(stdout, " alpha -> %d\n", o->alpha); fprintf(stdout, " bgcolor[R] -> 0x%.2X\n", o->bgcolor[0]); fprintf(stdout, " bgcolor[G] -> 0x%.2X\n", o->bgcolor[1]); fprintf(stdout, " bgcolor[B] -> 0x%.2X\n", o->bgcolor[2]); fprintf(stdout, " ------\n"); fprintf(stdout, " change -> %d\n", o->change); fprintf(stdout, " x old -> %d\n", o->x_old); fprintf(stdout, " y old -> %d\n", o->y_old); fprintf(stdout, " width old -> %d\n", o->width_old); fprintf(stdout, " height old -> %d\n", o->height_old); fprintf(stdout, " ------\n"); if(eng_pic_test(o) ) fprintf(stdout, " test -> SUCCESS\n"); else fprintf(stdout, " test -> ERROR\n"); fprintf(stdout, "====================\n"); } /* ---- test if pic is good */ gboolean eng_pic_test(eng_obj *o) { if(!o) return(FALSE); /* test x & width */ if(o->x > o->frame->width - o->width) return(FALSE); /* test y & height */ if(o->y > o->frame->height - o->height) return(FALSE); return(TRUE); } gtkatlantic-0.6.1/src/readpng.h0000644000175000017500000000261012550311270013317 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef READPNG_H #define READPNG_H #include #include typedef struct { gint32 width; gint32 height; guint8 *rgba; gboolean rgba_needed; } _png_imagedata; gint8 readpng_read(gchar *path, _png_imagedata *png_imagedata); gint32 readpng_get_width(_png_imagedata *png_imagedata); gint32 readpng_get_height(_png_imagedata *png_imagedata); guint8 *readpng_get_rgba(_png_imagedata *png_imagedata); guint8 *readpng_get_rgba_crop(_png_imagedata *png_imagedata, gint32 x, gint32 y, gint32 width, gint32 height); void readpng_cleanup(_png_imagedata *png_imagedata); #endif /* READPNG_H */ gtkatlantic-0.6.1/src/parser.c0000644000175000017500000000345412550307515013204 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include "parser.h" /* get identifier in a string to parse, identifier is the first word */ gchar *parser_get_identifier(gchar *str) { gint32 i, len; gchar *str2 = NULL; len = strlen(str); for(i = 0 ; i < len ; i++) { if(str[i] == ' ') { str2 = g_strndup(str, i); break; } } return(str2); } /* get a data from a key in a string to parse */ gchar *parser_get_data(gchar *str, gchar *key) { gint32 i, len, len_key2, start = 0; gchar *key2, *str2 = NULL; gboolean get_data = 0; len = strlen(str); key2 = g_strconcat(key, "=\"", NULL); len_key2 = strlen(key2); for(i = 0 ; i < len ; i++) { if(!get_data) { if(! strncmp(str + i, key2, len_key2) ) { get_data = TRUE; i += len_key2 -1; start = i +1; } } else { if(str[i] == '"') { str2 = g_strndup(str + start, i - start); break; } } } g_free(key2); return str2; } gtkatlantic-0.6.1/src/eng_list.h0000644000175000017500000000346112550311237013513 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef ENG_LIST_H #define ENG_LIST_H #include typedef struct eng_list_ eng_list; typedef struct eng_list_e_ eng_list_e; struct eng_list_ { eng_list_e *first, *last; guint32 length; }; struct eng_list_e_ { eng_list *list; eng_list_e *prev; eng_list_e *next; void *data; }; eng_list *eng_list_new(); eng_list *eng_list_destroy(eng_list *l); eng_list_e *eng_list_element_new(eng_list *l, void *d); eng_list_e *eng_list_append(eng_list *l, void *d); eng_list_e *eng_list_prepend(eng_list *l, void *d); void eng_list_remove_fast(eng_list_e *le); void eng_list_remove(eng_list *l, void *d); eng_list_e *eng_list_first(eng_list *l); eng_list_e *eng_list_last(eng_list *l); eng_list_e *eng_list_previous(eng_list_e *le); eng_list_e *eng_list_next(eng_list_e *le); void eng_list_clean(eng_list *l); guint32 eng_list_length(eng_list *l); eng_list_e *eng_list_find(eng_list *l, void *d); GList *eng_list_libevlist_to_glist(eng_list *l); eng_list *eng_list_glist_to_libevlist(GList *gl); #endif /* ENG_LIST_H */ gtkatlantic-0.6.1/src/load.c0000644000175000017500000005661412554753774012655 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include #include #include #include "load.h" #include "global.h" #include "readpng.h" #include "parser.h" /* parse a config file */ gint8 parse_file_config(gchar *filename) { gchar str[512], *ident, *tmp; FILE *file; char *ret; file = fopen(filename, "r"); if (!file) return -1; for (ret = fgets(str, 512, file); ret && !feof(file); ret = fgets(str, 512, file)) { ident = parser_get_identifier(str); if(!ident) continue; if(! strcmp(ident, "player") ) { tmp = parser_get_data(str, "nickname"); if (tmp) { if(config->nickname) g_free(config->nickname); config->nickname = tmp; } } else if(! strcmp(ident, "metaserver") ) { tmp = parser_get_data(str, "autoconnect"); if (tmp) { config->metaserver_autoconnect = atoi( (gchar*)tmp ); g_free(tmp); } tmp = parser_get_data(str, "sendclientversion"); if (tmp) { config->metaserver_sendclientversion = atoi( (gchar*)tmp ); g_free(tmp); } } else if(! strcmp(ident, "customserver") ) { tmp = parser_get_data(str, "host"); if (tmp) { if(config->getgames_host) g_free(config->getgames_host); config->getgames_host = tmp; } tmp = parser_get_data(str, "port"); if (tmp) { config->getgames_port = atoi( (gchar*)tmp ); g_free(tmp); } tmp = parser_get_data(str, "autoconnect"); if (tmp) { config->getgames_autoconnect = atoi( (gchar*)tmp ); g_free(tmp); } } else if(! strcmp(ident, "interface") ) { tmp = parser_get_data(str, "playerlist"); if (tmp) { if(! strcmp( tmp, "left") ) config->game_playerlist_position = GAME_PLAYERLIST_POS_LEFT; if(! strcmp( tmp, "right") ) config->game_playerlist_position = GAME_PLAYERLIST_POS_RIGHT; g_free(tmp); } tmp = parser_get_data(str, "token_speed"); if (tmp) { config->game_token_animation_speed = atoi( (gchar*)tmp ); g_free(tmp); } tmp = parser_get_data(str, "token_transparency"); if (tmp) { config->game_token_transparency = atoi( (gchar*)tmp ); g_free(tmp); } } g_free(ident); } fclose(file); return 0; } /* parse the data file interface.xml */ gint8 xmlparse_file_interface() { xmlDocPtr doc; xmlNodePtr cur, cur2; guint8 ident; guint32 color; gint32 xoffset, yoffset; xmlChar *tmp; doc = xmlParseFile(PACKAGE_DATA_DIR "/interface.xml"); if (doc == NULL) return -1; cur = xmlDocGetRootElement(doc); if (cur == NULL) { xmlFreeDoc(doc); return -1; } if( xmlStrcmp(cur->name, DATAFILE_XMLROOTELEMENT) ) { xmlFreeDoc(doc); return -1; } cur = cur->xmlChildrenNode; do { /* ===== PNGFILES ===== */ /* ==================== */ /* parse pngfile_board */ if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_board") ) { data->pngfile_board_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename"); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->pngfile_board_x[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->pngfile_board_y[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"width"); data->pngfile_board_width[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"height"); data->pngfile_board_height[ident] = atoi( (gchar*)tmp ); g_free(tmp); } cur2 = cur2 -> next; } while(cur2 != NULL); } /* parse pngfile_tokens */ if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_tokens") ) { data->pngfile_token_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename"); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); if (ident > data->token_max) { data->token_max = ident; } tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->pngfile_token_x[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->pngfile_token_y[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"width"); data->pngfile_token_width[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"height"); data->pngfile_token_height[ident] = atoi( (gchar*)tmp ); g_free(tmp); } cur2 = cur2 -> next; } while(cur2 != NULL); } /* parse pngfile_cards */ if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_cards") ) { data->pngfile_card_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename"); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->pngfile_card_x[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->pngfile_card_y[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"width"); data->pngfile_card_width[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"height"); data->pngfile_card_height[ident] = atoi( (gchar*)tmp ); g_free(tmp); } cur2 = cur2 -> next; } while(cur2 != NULL); } /* parse pngfile_stars */ if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_stars") ) { data->pngfile_star_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename"); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->pngfile_star_x[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->pngfile_star_y[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"width"); data->pngfile_star_width[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"height"); data->pngfile_star_height[ident] = atoi( (gchar*)tmp ); g_free(tmp); } cur2 = cur2 -> next; } while(cur2 != NULL); } /* parse pngfile_stars_m (mortgaged) */ if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_stars_m") ) { data->pngfile_star_m_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename"); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->pngfile_star_m_x[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->pngfile_star_m_y[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"width"); data->pngfile_star_m_width[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"height"); data->pngfile_star_m_height[ident] = atoi( (gchar*)tmp ); g_free(tmp); } cur2 = cur2 -> next; } while(cur2 != NULL); } /* parse pngfile_commands */ if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_commands") ) { data->pngfile_command_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename"); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->pngfile_command_x[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->pngfile_command_y[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"width"); data->pngfile_command_width[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"height"); data->pngfile_command_height[ident] = atoi( (gchar*)tmp ); g_free(tmp); } cur2 = cur2 -> next; } while(cur2 != NULL); } /* parse pngfile_horiz_houses */ if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_horiz_houses") ) { data->pngfile_horiz_house_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename"); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->pngfile_horiz_house_x[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->pngfile_horiz_house_y[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2,(xmlChar*) "width"); data->pngfile_horiz_house_width[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"height"); data->pngfile_horiz_house_height[ident] = atoi( (gchar*)tmp ); g_free(tmp); } cur2 = cur2 -> next; } while(cur2 != NULL); } /* parse pngfile_vert_houses */ if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_vert_houses") ) { data->pngfile_vert_house_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename"); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->pngfile_vert_house_x[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->pngfile_vert_house_y[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"width"); data->pngfile_vert_house_width[ident] = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"height"); data->pngfile_vert_house_height[ident] = atoi( (gchar*)tmp ); g_free(tmp); } cur2 = cur2 -> next; } while(cur2 != NULL); } /* ===== INTERFACE ===== */ /* ===================== */ /* parse board interface data */ if(! xmlStrcmp(cur->name, (xmlChar*)"display_board") ) { data->number_estates = 0; tmp = xmlGetProp(cur, (xmlChar*)"width"); data->board_width = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"height"); data->board_height = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"center_x"); data->board_center_x = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"center_y"); data->board_center_y = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"center_width"); data->board_center_width = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"center_height"); data->board_center_height = atoi( (gchar*)tmp ); g_free(tmp); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"estate") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->estate[ident].x = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->estate[ident].y = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"buffer_board"); data->estate[ident].buffer_board = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x1token"); data->estate[ident].x1token = data->estate[ident].x + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y1token"); data->estate[ident].y1token = data->estate[ident].y + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x2token"); data->estate[ident].x2token = data->estate[ident].x + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y2token"); data->estate[ident].y2token = data->estate[ident].y + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x1jail"); data->estate[ident].x1jail = data->estate[ident].x + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y1jail"); data->estate[ident].y1jail = data->estate[ident].y + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x2jail"); data->estate[ident].x2jail = data->estate[ident].x + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y2jail"); data->estate[ident].y2jail = data->estate[ident].y + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"xstar"); data->estate[ident].xstar = data->estate[ident].x + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"ystar"); data->estate[ident].ystar = data->estate[ident].y + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"xhouse"); data->estate[ident].xhouse = data->estate[ident].x + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"yhouse"); data->estate[ident].yhouse = data->estate[ident].y + atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"type_house"); if(! xmlStrcmp(tmp, (xmlChar*)"horizontal") ) data->estate[ident].type_house = TYPE_HOUSE_HORIZONTAL; else if(! xmlStrcmp(tmp, (xmlChar*)"vertical") ) data->estate[ident].type_house = TYPE_HOUSE_VERTICAL; else data->estate[ident].type_house = TYPE_HOUSE_NONE; g_free(tmp); data->number_estates++; } cur2 = cur2 -> next; } while(cur2 != NULL); } /* parse player token interface data */ if(! xmlStrcmp(cur->name, (xmlChar*)"display_playertoken") ) { tmp = xmlGetProp(cur, (xmlChar*)"width"); data->playerlist_token_width = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"height"); data->playerlist_token_height = atoi( (gchar*)tmp ); g_free(tmp); } /* parse player cards interface data */ if(! xmlStrcmp(cur->name, (xmlChar*)"display_playercard") ) { data->number_playerlist_card = 0; tmp = xmlGetProp(cur, (xmlChar*)"width"); data->playerlist_cards_width = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"height"); data->playerlist_cards_height = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"xoffset"); xoffset = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"yoffset"); yoffset = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"alphaunowned"); if(! g_ascii_strncasecmp((gchar*)tmp, "0x", 2) ) { sscanf((gchar*)tmp, "0x%2X", &color); data->playerlist_cards_alphaunowned = color; } else data->playerlist_cards_alphaunowned = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"alphaowned"); if(! g_ascii_strncasecmp((gchar*)tmp, "0x", 2) ) { sscanf((gchar*)tmp, "0x%2X", &color); data->playerlist_cards_alphaowned = color; } else data->playerlist_cards_alphaowned = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"alphamortgage"); if(! g_ascii_strncasecmp((gchar*)tmp, "0x", 2) ) { sscanf((gchar*)tmp, "0x%2X", &color); data->playerlist_cards_alphamortgage = color; } else data->playerlist_cards_alphamortgage = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"cardbgcolor"); sscanf((gchar*)tmp, "0x%6X", &color); data->playerlist_cards_cardbgcolor = color; g_free(tmp); tmp = xmlGetProp(cur, (xmlChar*)"cardbgcolormortgage"); sscanf((gchar*)tmp, "0x%6X", &color); data->playerlist_cards_cardbgcolormortgage = color; g_free(tmp); cur2 = cur->xmlChildrenNode; do { if(! xmlStrcmp(cur2->name, (xmlChar*)"card") ) { tmp = xmlGetProp(cur2, (xmlChar*)"id"); ident = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"x"); data->playerlist_card[ident].x = atoi( (gchar*)tmp ) + xoffset; g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"y"); data->playerlist_card[ident].y = atoi( (gchar*)tmp ) + yoffset; g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"z"); data->playerlist_card[ident].z = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"buffer_card"); data->playerlist_card[ident].buffer_card = atoi( (gchar*)tmp ); g_free(tmp); tmp = xmlGetProp(cur2, (xmlChar*)"estateid"); data->playerlist_card[ident].estateid = atoi( (gchar*)tmp ); g_free(tmp); data->number_playerlist_card++; } cur2 = cur2 -> next; } while(cur2 != NULL); } cur = cur -> next; } while(cur != NULL); xmlFreeDoc(doc); return 0; } /* read all game pngs images */ gint8 game_load_pngs() { _png_imagedata png_imagedata; gchar *filename; guint32 i; gint8 ret = 0; if (data->png_game_loaded) { return 0; } /* ---- load board file */ filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_board_filename, NULL); if (readpng_read(filename, &png_imagedata)) { ret = -1; goto free_and_return; } for (i = 0 ; data->pngfile_board_width[i] ; i++) { data->pngfile_board_buf[i] = readpng_get_rgba_crop(&png_imagedata, data->pngfile_board_x[i], data->pngfile_board_y[i], data->pngfile_board_width[i], data->pngfile_board_height[i]); } g_free(filename); readpng_cleanup(&png_imagedata); /* ---- load token file */ filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_token_filename, NULL); if (readpng_read(filename, &png_imagedata)) { ret = -1; goto free_and_return; } for (i = 0 ; data->pngfile_token_width[i] ; i++) { data->pngfile_token_buf[i] = readpng_get_rgba_crop(&png_imagedata, data->pngfile_token_x[i], data->pngfile_token_y[i], data->pngfile_token_width[i], data->pngfile_token_height[i]); } g_free(filename); readpng_cleanup(&png_imagedata); /* ---- load star file */ filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_star_filename, NULL); if (readpng_read(filename, &png_imagedata)) { ret = -1; goto free_and_return; } for (i = 0 ; data->pngfile_star_width[i] ; i++) { data->pngfile_star_buf[i] = readpng_get_rgba_crop(&png_imagedata, data->pngfile_star_x[i], data->pngfile_star_y[i], data->pngfile_star_width[i], data->pngfile_star_height[i]); } g_free(filename); readpng_cleanup(&png_imagedata); /* ---- load star_m file (mortgaged) */ filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_star_m_filename, NULL); if (readpng_read(filename, &png_imagedata)) { ret = -1; goto free_and_return; } for (i = 0 ; data->pngfile_star_m_width[i] ; i++) { data->pngfile_star_m_buf[i] = readpng_get_rgba_crop(&png_imagedata, data->pngfile_star_m_x[i], data->pngfile_star_m_y[i], data->pngfile_star_m_width[i], data->pngfile_star_m_height[i]); } g_free(filename); readpng_cleanup(&png_imagedata); /* ---- load cards file */ filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_card_filename, NULL); if (readpng_read(filename, &png_imagedata)) { ret = -1; goto free_and_return; } for (i = 0 ; data->pngfile_card_width[i] ; i++) { data->pngfile_card_buf[i] = readpng_get_rgba_crop(&png_imagedata, data->pngfile_card_x[i], data->pngfile_card_y[i], data->pngfile_card_width[i], data->pngfile_card_height[i]); } g_free(filename); readpng_cleanup(&png_imagedata); /* ---- load command file */ filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_command_filename, NULL); if (readpng_read(filename, &png_imagedata)) { ret = -1; goto free_and_return; } for (i = 0 ; data->pngfile_command_width[i] ; i++) { data->pngfile_command_buf[i] = readpng_get_rgba_crop(&png_imagedata, data->pngfile_command_x[i], data->pngfile_command_y[i], data->pngfile_command_width[i], data->pngfile_command_height[i]); } g_free(filename); readpng_cleanup(&png_imagedata); /* ---- load horiz_houses file */ filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_horiz_house_filename, NULL); if (readpng_read(filename, &png_imagedata)) { ret = -1; goto free_and_return; } for (i = 0 ; data->pngfile_horiz_house_width[i] ; i++) { data->pngfile_horiz_house_buf[i] = readpng_get_rgba_crop(&png_imagedata, data->pngfile_horiz_house_x[i], data->pngfile_horiz_house_y[i], data->pngfile_horiz_house_width[i], data->pngfile_horiz_house_height[i]); } g_free(filename); readpng_cleanup(&png_imagedata); /* ---- load vert_houses file */ filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_vert_house_filename, NULL); if (readpng_read(filename, &png_imagedata)) { ret = -1; goto free_and_return; } for (i = 0 ; data->pngfile_vert_house_width[i] ; i++) { data->pngfile_vert_house_buf[i] = readpng_get_rgba_crop(&png_imagedata, data->pngfile_vert_house_x[i], data->pngfile_vert_house_y[i], data->pngfile_vert_house_width[i], data->pngfile_vert_house_height[i]); } data->png_game_loaded = TRUE; free_and_return: readpng_cleanup(&png_imagedata); if(filename) g_free(filename); return ret; } /* free all game pngs images */ void game_free_pngs() { guint32 i; if(! data->png_game_loaded) return; for(i = 0 ; data->pngfile_board_width[i] ; i++) { if(data->pngfile_board_buf[i]) { g_free(data->pngfile_board_buf[i]); data->pngfile_board_buf[i] = NULL; } } for(i = 0 ; data->pngfile_token_width[i] ; i++) { if(data->pngfile_token_buf[i]) { g_free(data->pngfile_token_buf[i]); data->pngfile_token_buf[i] = NULL; } } for(i = 0 ; data->pngfile_star_width[i] ; i++) { if(data->pngfile_star_buf[i]) { g_free(data->pngfile_star_buf[i]); data->pngfile_star_buf[i] = NULL; } } for(i = 0 ; data->pngfile_star_m_width[i] ; i++) { if(data->pngfile_star_m_buf[i]) { g_free(data->pngfile_star_m_buf[i]); data->pngfile_star_m_buf[i] = NULL; } } for(i = 0 ; data->pngfile_card_width[i] ; i++) { if(data->pngfile_card_buf[i]) { g_free(data->pngfile_card_buf[i]); data->pngfile_card_buf[i] = NULL; } } for(i = 0 ; data->pngfile_command_width[i] ; i++) { if(data->pngfile_command_buf[i]) { g_free(data->pngfile_command_buf[i]); data->pngfile_command_buf[i] = NULL; } } for(i = 0 ; data->pngfile_horiz_house_width[i] ; i++) { if(data->pngfile_horiz_house_buf[i]) { g_free(data->pngfile_horiz_house_buf[i]); data->pngfile_horiz_house_buf[i] = NULL; } } for(i = 0 ; data->pngfile_vert_house_width[i] ; i++) { if(data->pngfile_vert_house_buf[i]) { g_free(data->pngfile_vert_house_buf[i]); data->pngfile_vert_house_buf[i] = NULL; } } data->png_game_loaded = FALSE; } gtkatlantic-0.6.1/src/load.h0000644000175000017500000000205312554754114012633 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef LOAD_H #define LOAD_H #include #define DATAFILE_XMLROOTELEMENT (xmlChar*)"gtkatlantic" gint8 parse_file_config(gchar *filename); gint8 xmlparse_file_interface(); gint8 game_load_pngs(); void game_free_pngs(); #endif /* LOAD_H */ gtkatlantic-0.6.1/src/trade.c0000644000175000017500000005444312550307543013014 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include "global.h" #include "trade.h" #include "game.h" #include "client.h" #include "interface.h" #include "callback.h" void trade_initnew(gint32 tradeid) { gint32 tradeslot; gchar *sendstr; /* already created */ if(get_trade_slot_with_tradeid(tradeid) >= 0) return; if(! game_get_valid_trade_slot(&tradeslot) ) { /* no trade slot valid -> reject trade */ sendstr = g_strdup_printf(".Tr%d\n", tradeid); client_send(global->game_connect, sendstr); g_free(sendstr); return; } currentgame->trade[tradeslot].open = TRUE; currentgame->trade[tradeslot].tradeid = tradeid; trade_create_panel(tradeslot); } void trade_destroy(gint32 tradeid) { gint32 tradeslot; tradeslot = get_trade_slot_with_tradeid(tradeid); if(tradeslot < 0) return; trade_destroy_slot(tradeslot); } void trade_destroy_slot(gint32 tradeslot) { if(!currentgame->trade[tradeslot].open) return; gtk_widget_destroy(currentgame->trade[tradeslot].TradeWin); memset(¤tgame->trade[tradeslot], 0, sizeof(_trade) ); } void trade_create_panel(gint32 tradeslot) { GtkWidget *TradeWin; GtkWidget *VBox; //components GtkWidget *HBox; GtkWidget *ScrollWinPlayer; GtkWidget *PlayerList; GtkWidget *VboxProposalButtons; GtkWidget *ScrollWinProposal; GtkWidget *ProposalList; GtkWidget *HBox_buttons; GtkWidget *Button; GtkTreeSelection *select; GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkListStore *store; TradeWin = currentgame->trade[tradeslot].TradeWin = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request(TradeWin, 600, 220); gtk_window_set_title(GTK_WINDOW(TradeWin), "GtkAtlantic: Trade"); g_object_set_data(G_OBJECT(TradeWin), "command", GINT_TO_POINTER(TRADE_ACTION_REJECT)); g_object_set_data(G_OBJECT(TradeWin), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); g_signal_connect(G_OBJECT(TradeWin), "delete_event", G_CALLBACK(CallBack_trade_button), NULL); /* component / hbox / buttons */ VBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_add(GTK_CONTAINER(TradeWin), VBox); /* component */ currentgame->trade[tradeslot].FrameComponent = gtk_frame_new("Add Component"); gtk_container_set_border_width(GTK_CONTAINER(currentgame->trade[tradeslot].FrameComponent), BORDER); gtk_box_pack_start(GTK_BOX(VBox), currentgame->trade[tradeslot].FrameComponent, FALSE, FALSE, 0); trade_rebuild_component(tradeslot); trade_rebuild_subcomponent(tradeslot); /* player / current proposal */ HBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_container_set_border_width(GTK_CONTAINER(HBox), BORDER); gtk_box_pack_start(GTK_BOX(VBox), HBox, TRUE, TRUE, 0); /* player list */ ScrollWinPlayer = gtk_scrolled_window_new(NULL, NULL); gtk_widget_set_size_request(ScrollWinPlayer, 130, -1); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ScrollWinPlayer), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_box_pack_start(GTK_BOX(HBox), ScrollWinPlayer, FALSE, FALSE, 0); PlayerList = currentgame->trade[tradeslot].PlayerList = gtk_tree_view_new(); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(PlayerList), FALSE); gtk_container_add(GTK_CONTAINER(ScrollWinPlayer), PlayerList); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(PlayerList)); gtk_tree_selection_set_mode(select, GTK_SELECTION_NONE); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes("Player", renderer, "text", TRADEPLAYERLIST_COLUMN_NAME, "cell-background", TRADEPLAYERLIST_BGCOLOR_NAME, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(PlayerList), column); store = gtk_list_store_new(TRADEPLAYERLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_STRING); gtk_tree_view_set_model(GTK_TREE_VIEW(PlayerList), GTK_TREE_MODEL(store)); g_object_unref(store); trade_rebuild_playerlist(tradeslot); trade_rebuild_subcomponent(tradeslot); /* vbox for proposal & buttons */ VboxProposalButtons = gtk_box_new(GTK_ORIENTATION_VERTICAL, BORDER); gtk_box_pack_start(GTK_BOX(HBox), VboxProposalButtons, TRUE, TRUE, 0); /* current proposal */ ScrollWinProposal = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ScrollWinProposal), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_box_pack_start(GTK_BOX(VboxProposalButtons), ScrollWinProposal, TRUE, TRUE, 0); ProposalList = currentgame->trade[tradeslot].ProposalList = gtk_tree_view_new(); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(ProposalList), FALSE); gtk_container_add(GTK_CONTAINER(ScrollWinProposal), ProposalList); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(ProposalList)); g_object_set_data(G_OBJECT(select), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE); g_signal_connect(G_OBJECT(select), "changed", G_CALLBACK(Callback_ProposalList_Select), NULL); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes("Type", renderer, "text", TRADEPROPOSALLIST_COLUMN_TYPE, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ProposalList), column); column = gtk_tree_view_column_new_with_attributes("From", renderer, "text", TRADEPROPOSALLIST_COLUMN_FROM, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ProposalList), column); column = gtk_tree_view_column_new_with_attributes("Gives", renderer, "text", TRADEPROPOSALLIST_COLUMN_GIVES, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ProposalList), column); column = gtk_tree_view_column_new_with_attributes("To", renderer, "text", TRADEPROPOSALLIST_COLUMN_TO, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ProposalList), column); column = gtk_tree_view_column_new_with_attributes("What", renderer, "text", TRADEPROPOSALLIST_COLUMN_WHAT, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ProposalList), column); store = gtk_list_store_new(TRADEPROPOSALLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT); gtk_tree_view_set_model(GTK_TREE_VIEW(ProposalList), GTK_TREE_MODEL(store)); g_object_unref(store); /* buttons */ HBox_buttons = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 10); gtk_box_pack_end(GTK_BOX(VboxProposalButtons), HBox_buttons, FALSE, FALSE, 0); /* remove button */ Button = gtk_button_new_with_label("Remove"); g_object_set_data(G_OBJECT(Button), "command", GINT_TO_POINTER(TRADE_ACTION_REMOVE)); g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_button), NULL); gtk_box_pack_start(GTK_BOX(HBox_buttons), Button, FALSE, FALSE, 0); /* accept button */ Button = gtk_button_new_with_label("Accept"); g_object_set_data(G_OBJECT(Button), "command", GINT_TO_POINTER(TRADE_ACTION_ACCEPT)); g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_button), NULL); gtk_box_pack_end(GTK_BOX(HBox_buttons), Button, FALSE, FALSE, 0); /* reject button */ Button = gtk_button_new_with_label("Reject"); g_object_set_data(G_OBJECT(Button), "command", GINT_TO_POINTER(TRADE_ACTION_REJECT)); g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_button), NULL); gtk_box_pack_end(GTK_BOX(HBox_buttons), Button, FALSE, FALSE, 0); gtk_widget_show_all(TradeWin); } void trade_rebuild_playerlist(gint32 tradeslot) { GtkWidget *PlayerList; gint32 i; GtkListStore *store; if(!currentgame->trade[tradeslot].open) return; PlayerList = currentgame->trade[tradeslot].PlayerList; if(!PlayerList) return; store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(PlayerList))); gtk_list_store_clear(store); for (i = 0; i < TRADE_MAX_PLAYER; i++) { trade_player *p = ¤tgame->trade[tradeslot].player[i]; GtkTreeIter iter; if (!p->player) continue; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, TRADEPLAYERLIST_COLUMN_NAME, p->player->name, TRADEPLAYERLIST_BGCOLOR_NAME, p->accept ? "#c8ffc8" : "#ffc8c8", -1); } } void trade_rebuild_component(gint32 tradeslot) { GtkWidget *box; GtkWidget *Combo; guint32 i; currentgame->trade[tradeslot].current_component = TRADE_TYPE_MONEY; if(currentgame->trade[tradeslot].ComponentBox) { gtk_widget_destroy(currentgame->trade[tradeslot].ComponentBox); currentgame->trade[tradeslot].ComponentBox = 0; currentgame->trade[tradeslot].SubComponentBox = 0; } box = currentgame->trade[tradeslot].ComponentBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_set_border_width(GTK_CONTAINER(box), 5); gtk_container_add(GTK_CONTAINER(currentgame->trade[tradeslot].FrameComponent), currentgame->trade[tradeslot].ComponentBox); /* Choice component: Estate/Money/Card */ Combo = gtk_combo_box_text_new(); g_object_set_data(G_OBJECT(Combo), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); g_signal_connect(G_OBJECT(Combo), "changed", G_CALLBACK(CallBack_trade_sub_component), NULL); gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0); gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), "Money"); gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0); for(i = 0 ; i < data->number_estates ; i++) { if(currentgame->estate[i].owner <= 0) continue; gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), "Estate"); break; } for(i = 0 ; i < MAX_CARDS ; i++) { if(!currentgame->card[i].owner) continue; gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), "Card"); break; } gtk_widget_show_all(currentgame->trade[tradeslot].ComponentBox); } void trade_rebuild_subcomponent(gint32 tradeslot) { GtkWidget *box; GtkWidget *Label; GtkWidget *Entry; GtkWidget *Combo; GtkWidget *Button; guint32 i; player *p; if(!currentgame->trade[tradeslot].ComponentBox) return; if(currentgame->trade[tradeslot].SubComponentBox) { gtk_widget_destroy(currentgame->trade[tradeslot].SubComponentBox); currentgame->trade[tradeslot].SubComponentBox = 0; } box = currentgame->trade[tradeslot].SubComponentBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER); gtk_box_pack_start(GTK_BOX(currentgame->trade[tradeslot].ComponentBox), box, TRUE, TRUE, 0); switch(currentgame->trade[tradeslot].current_component) { case TRADE_TYPE_ESTATE: /* update button */ Button = gtk_button_new_with_label("Update"); g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_update_component), NULL); gtk_widget_set_halign(Button, GTK_ALIGN_CENTER); gtk_widget_set_valign(Button, GTK_ALIGN_CENTER); gtk_box_pack_end(GTK_BOX(box), Button, FALSE, FALSE, 0); /* valid estates */ Combo = gtk_combo_box_text_new(); g_object_set_data(G_OBJECT(Button), "name_estate", Combo); gtk_widget_set_hexpand(Combo, TRUE); gtk_box_pack_start(GTK_BOX(box), Combo, TRUE, TRUE, 0); for(i = 0 ; i < data->number_estates ; i++) { if(currentgame->estate[i].owner <= 0) continue; gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), currentgame->estate[i].name); } gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0); /* target label */ Label = gtk_label_new("Target"); gtk_box_pack_start(GTK_BOX(box), Label, FALSE, FALSE, 0); /* valid target players */ Combo = gtk_combo_box_text_new(); g_object_set_data(G_OBJECT(Button), "name_target_player", Combo); gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0); for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), p->name); } gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0); break; case TRADE_TYPE_MONEY: /* update button */ Button = gtk_button_new_with_label("Update"); g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_update_component), NULL); gtk_widget_set_halign(Button, GTK_ALIGN_CENTER); gtk_widget_set_valign(Button, GTK_ALIGN_CENTER); gtk_box_pack_end(GTK_BOX(box), Button, FALSE, FALSE, 0); /* amount of money */ Entry = gtk_entry_new(); gtk_widget_set_hexpand(Entry, TRUE); g_object_set_data(G_OBJECT(Button), "amount_money", Entry); gtk_box_pack_start(GTK_BOX(box), Entry, TRUE, TRUE, 0); /* from label */ Label = gtk_label_new("From"); gtk_box_pack_start(GTK_BOX(box), Label, FALSE, FALSE, 0); /* valid from players */ Combo = gtk_combo_box_text_new(); g_object_set_data(G_OBJECT(Button), "name_from_player", Combo); gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0); for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), p->name); } gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0); /* to label */ Label = gtk_label_new("To"); gtk_box_pack_start(GTK_BOX(box), Label, FALSE, FALSE, 0); /* valid to players */ Combo = gtk_combo_box_text_new(); g_object_set_data(G_OBJECT(Button), "name_to_player", Combo); gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0); for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), p->name); } gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0); break; case TRADE_TYPE_CARD: /* update button */ Button = gtk_button_new_with_label("Update"); g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid)); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_update_component), NULL); gtk_widget_set_halign(Button, GTK_ALIGN_CENTER); gtk_widget_set_valign(Button, GTK_ALIGN_CENTER); gtk_box_pack_end(GTK_BOX(box), Button, FALSE, FALSE, 0); /* valid cards */ Combo = gtk_combo_box_text_new(); g_object_set_data(G_OBJECT(Button), "name_card", Combo); gtk_widget_set_hexpand(Combo, TRUE); gtk_box_pack_start(GTK_BOX(box), Combo, TRUE, TRUE, 0); for(i = 0 ; i < MAX_CARDS ; i++) { gchar *tmp; if(!currentgame->card[i].owner) continue; tmp = g_strdup_printf("%d: %s", currentgame->card[i].cardid, currentgame->card[i].title); gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), tmp); g_free(tmp); } gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0); /* target label */ Label = gtk_label_new("Target"); gtk_box_pack_start(GTK_BOX(box), Label, FALSE, FALSE, 0); /* valid target players */ Combo = gtk_combo_box_text_new(); g_object_set_data(G_OBJECT(Button), "name_target_player", Combo); gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0); for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), p->name); } gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0); break; } gtk_widget_show_all(currentgame->trade[tradeslot].SubComponentBox); } void trade_update_revision(gint32 tradeid, gint32 revision) { gint32 tradeslot; tradeslot = get_trade_slot_with_tradeid(tradeid); if (tradeslot < 0) return; currentgame->trade[tradeslot].revision = revision; } void trade_update_player(gint32 tradeid, gint32 playerid, gboolean accept) { gint32 tradeslot; gint32 i; tradeslot = get_trade_slot_with_tradeid(tradeid); if (tradeslot < 0) return; for (i = 0; i < TRADE_MAX_PLAYER; i++) { trade_player *p = ¤tgame->trade[tradeslot].player[i]; if (!p->player) continue; if ((gint32)p->player->playerid != playerid) continue; p->accept = accept; trade_rebuild_playerlist(tradeslot); return; } /* new participating player */ for (i = 0; i < TRADE_MAX_PLAYER; i++) { trade_player *p = ¤tgame->trade[tradeslot].player[i]; if (p->player) continue; p->player = player_from_id(playerid); p->accept = accept; trade_rebuild_playerlist(tradeslot); return; } } void trade_update_card(gint32 tradeid, gint32 cardid, gint32 targetplayer) { gint32 tradeslot; GtkWidget *ProposalList; gchar *from, *to, *cardname; GtkListStore *store; GtkTreeIter iter; gboolean valid; tradeslot = get_trade_slot_with_tradeid(tradeid); if (tradeslot < 0) return; ProposalList = currentgame->trade[tradeslot].ProposalList; from = player_from_id(currentgame->card[get_card_slot_with_cardid(cardid)].owner)->name; to = player_from_id(targetplayer)->name; store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(ProposalList))); /* remove previous cardid */ valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter); while (valid) { gint32 typeid, card; GtkTreeIter curiter = iter; valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); /* get next iter so we can remove the current entry safely */ gtk_tree_model_get(GTK_TREE_MODEL(store), &curiter, TRADEPROPOSALLIST_COLUMN_TYPE_ID, &typeid, TRADEPROPOSALLIST_COLUMN_AUX_ID, &card, -1); if ( typeid == TRADE_TYPE_CARD && card == cardid ) { gtk_list_store_remove(store, &curiter); } } if (targetplayer < 0) { return; } cardname = g_strdup_printf("card %d: %s", cardid, currentgame->card[ get_card_slot_with_cardid(cardid) ].title); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, TRADEPROPOSALLIST_COLUMN_TYPE,"CARD:", TRADEPROPOSALLIST_COLUMN_FROM, from, TRADEPROPOSALLIST_COLUMN_GIVES, "gives", TRADEPROPOSALLIST_COLUMN_TO, to, TRADEPROPOSALLIST_COLUMN_WHAT, cardname, TRADEPROPOSALLIST_COLUMN_TYPE_ID, TRADE_TYPE_CARD, TRADEPROPOSALLIST_COLUMN_FROM_ID, currentgame->card[ get_card_slot_with_cardid(cardid) ].owner, TRADEPROPOSALLIST_COLUMN_TO_ID, targetplayer, TRADEPROPOSALLIST_COLUMN_AUX_ID, cardid, -1); g_free(cardname); } void trade_update_estate(gint32 tradeid, gint32 estateid, gint32 targetplayer) { gint32 tradeslot; GtkWidget *ProposalList; gchar *from, *to, *estatename; GtkListStore *store; GtkTreeIter iter; gboolean valid; tradeslot = get_trade_slot_with_tradeid(tradeid); if (tradeslot < 0) return; ProposalList = currentgame->trade[tradeslot].ProposalList; from = player_from_id(currentgame->estate[estateid].owner)->name; to = player_from_id(targetplayer)->name; estatename = currentgame->estate[estateid].name; store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(ProposalList))); /* remove previous estate */ valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter); while (valid) { gint32 typeid, estate; GtkTreeIter curiter = iter; valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); /* get next iter so we can remove the current entry safely */ gtk_tree_model_get(GTK_TREE_MODEL(store), &curiter, TRADEPROPOSALLIST_COLUMN_TYPE_ID, &typeid, TRADEPROPOSALLIST_COLUMN_AUX_ID, &estate, -1); if ( typeid == TRADE_TYPE_ESTATE && estate == estateid ) { gtk_list_store_remove(store, &curiter); } } if (targetplayer < 0) { return; } gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, TRADEPROPOSALLIST_COLUMN_TYPE,"ESTATE:", TRADEPROPOSALLIST_COLUMN_FROM, from, TRADEPROPOSALLIST_COLUMN_GIVES, "gives", TRADEPROPOSALLIST_COLUMN_TO, to, TRADEPROPOSALLIST_COLUMN_WHAT, estatename, TRADEPROPOSALLIST_COLUMN_TYPE_ID, TRADE_TYPE_ESTATE, TRADEPROPOSALLIST_COLUMN_FROM_ID, currentgame->estate[estateid].owner, TRADEPROPOSALLIST_COLUMN_TO_ID, targetplayer, TRADEPROPOSALLIST_COLUMN_AUX_ID, estateid, -1); } void trade_update_money(gint32 tradeid, gint32 playerfrom, gint32 playerto, gint32 money) { gint32 tradeslot; GtkWidget *ProposalList; gchar *from, *to, *moneystr; GtkListStore *store; GtkTreeIter iter; gboolean valid; tradeslot = get_trade_slot_with_tradeid(tradeid); if (tradeslot < 0) return; ProposalList = currentgame->trade[tradeslot].ProposalList; from = player_from_id(playerfrom)->name; to = player_from_id(playerto)->name; store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(ProposalList))); /* remove all money proposal if same playerfrom and same playerto */ valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter); while (valid) { gint32 typeid, fromid, toid; GtkTreeIter curiter = iter; valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); /* get next iter so we can remove the current entry safely */ gtk_tree_model_get(GTK_TREE_MODEL(store), &curiter, TRADEPROPOSALLIST_COLUMN_TYPE_ID, &typeid, TRADEPROPOSALLIST_COLUMN_FROM_ID, &fromid, TRADEPROPOSALLIST_COLUMN_TO_ID, &toid, -1); if ( typeid == TRADE_TYPE_MONEY && fromid == playerfrom && toid == playerto ) { gtk_list_store_remove(store, &curiter); } } if (money <= 0) { return; } moneystr = g_strdup_printf("%d money", money); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, TRADEPROPOSALLIST_COLUMN_TYPE,"MONEY:", TRADEPROPOSALLIST_COLUMN_FROM, from, TRADEPROPOSALLIST_COLUMN_GIVES, "gives", TRADEPROPOSALLIST_COLUMN_TO, to, TRADEPROPOSALLIST_COLUMN_WHAT, moneystr, TRADEPROPOSALLIST_COLUMN_TYPE_ID, TRADE_TYPE_MONEY, TRADEPROPOSALLIST_COLUMN_FROM_ID, playerfrom, TRADEPROPOSALLIST_COLUMN_TO_ID, playerto, TRADEPROPOSALLIST_COLUMN_AUX_ID, 0, -1); g_free(moneystr); } gtkatlantic-0.6.1/src/readpng.c0000644000175000017500000001204212554754731013333 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include "readpng.h" gint8 readpng_read(gchar *path, _png_imagedata *png_imagedata) { FILE *infile; gint8 sig[8]; png_uint_32 width, height; gint32 bit_depth; gint32 color_type; png_byte channels; png_structp structp = NULL; png_infop infop = NULL; gint32 x, y; png_bytepp row_pointers; guint8 *tmp, *ptr_in, *ptr_out; gint32 rowbytes; gint8 ret = 0; if ((infile = fopen(path, "rb")) == NULL) { fprintf(stderr, "can't open file: %s\n", path); ret = -1; goto free_and_return; } memset(sig, 0, sizeof(sig)); if (fread(sig, 1, sizeof(sig), infile) != sizeof(sig)) { fprintf(stderr, "failed to read file: %s\n", path); ret = -1; goto free_and_return; } if (png_sig_cmp((png_bytep)sig, 0, sizeof(sig))) { fprintf(stderr, "not a valid PNG file: %s\n", path); ret = -1; goto free_and_return; } structp = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (!structp) { /* very unlikely */ ret = -1; goto free_and_return; } infop = png_create_info_struct(structp); if (!infop) { /* very unlikely */ ret = -1; goto free_and_return; } if (setjmp(png_jmpbuf(structp))) { /* very unlikely */ ret = -1; goto free_and_return; } png_init_io(structp, infile); png_set_sig_bytes(structp, sizeof(sig)); png_read_info(structp, infop); png_get_IHDR(structp, infop, &width, &height, &bit_depth, &color_type, NULL, NULL, NULL); if (color_type == PNG_COLOR_TYPE_PALETTE) { png_set_expand(structp); } if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { png_set_expand(structp); } if (png_get_valid(structp, infop, PNG_INFO_tRNS)) { png_set_expand(structp); } if (bit_depth == 16) { png_set_strip_16(structp); } if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { png_set_gray_to_rgb(structp); } png_read_update_info(structp, infop); channels = png_get_channels(structp, infop); if (channels != 3 && channels != 4) { /* very unlikely */ ret = -1; goto free_and_return; } memset(png_imagedata, 0, sizeof(_png_imagedata)); png_imagedata->width = width; png_imagedata->height = height; rowbytes = png_get_rowbytes(structp, infop); row_pointers = (png_bytepp)g_malloc(height * sizeof(png_bytep)); tmp = g_malloc(height * rowbytes); for (y = 0; y < (gint32)height; y++) { row_pointers[y] = (png_bytep)(tmp + y * rowbytes); } png_read_image(structp, row_pointers); png_read_end(structp, NULL); png_imagedata->rgba = ptr_out = g_malloc(width * height * 4); if (channels == 4) { for (y = 0; y < (gint32)height; y++) { memcpy(ptr_out, row_pointers[y], width*4); ptr_out += width*4; } } else /* if (channels == 3) */ { for (y = 0; y < (gint32)height; y++) { ptr_in = row_pointers[y]; for (x = 0; x < (gint32)width; x++) { memcpy(ptr_out, ptr_in, 3); ptr_in += 3; ptr_out += 3; *ptr_out++ = 0xff; /* alpha */ } } } g_free(tmp); g_free(row_pointers); free_and_return: if (infile) { fclose(infile); } if (structp && infop) { png_destroy_read_struct(&structp, &infop, NULL); } else if(structp) { png_destroy_read_struct(&structp, NULL, NULL); } return ret; } gint32 readpng_get_width(_png_imagedata *png_imagedata) { return png_imagedata->width; } gint32 readpng_get_height(_png_imagedata *png_imagedata) { return png_imagedata->height; } guint8 *readpng_get_rgba(_png_imagedata *png_imagedata) { if (png_imagedata->rgba != NULL) { png_imagedata->rgba_needed = TRUE; return png_imagedata->rgba; } return NULL; } guint8 *readpng_get_rgba_crop(_png_imagedata *png_imagedata, gint32 x, gint32 y, gint32 width, gint32 height) { gint32 i; guint8 *in, *rout, *out; if(x + width > png_imagedata->width) return NULL; if(y + height > png_imagedata->height) return NULL; in = png_imagedata->rgba + (y * png_imagedata->width + x) * 4, rout = out = g_malloc0(width * height * 4); for (i = 0 ; i < height ; i++) { memcpy(out, in, width * 4); out += width * 4; in += png_imagedata->width * 4; } return rout; } void readpng_cleanup(_png_imagedata *png_imagedata) { if(png_imagedata->rgba != NULL && !png_imagedata->rgba_needed) { g_free(png_imagedata->rgba); png_imagedata->rgba = NULL; } } gtkatlantic-0.6.1/src/theme.h0000644000175000017500000000330312550311273013004 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef THEME_H #define THEME_H #include #include #define THEME_FILE_SECTION_GENERAL 10 #define THEME_FILE_SECTION_CARDS 20 #define THEME_FILE_SECTION_TOKEN_GROUP 30 #define THEME_FILE_SECTION_HOUSE_GROUP 40 #define THEME_FILE_SECTION_STAR_GROUP 50 #define THEME_FILE_SECTION_BOARD_GROUP 60 #define THEME_FILE_SECTION_ESTATE_GROUP 70 void theme_build_database(); gboolean theme_get_valid_slot(guint32 *themeslot); void theme_del_entry(guint32 slot); void theme_add_entry(gchar *path); void theme_build_selection_win(); void theme_fill_selection_list(); void theme_preview_free(); void theme_display(gint32 themeid); guint8* theme_preview_read(gint32 themeid, guint32 *width, guint32 *height); void theme_load(gint32 themeid); void on_theme_preview_draw(GtkWidget *widget, cairo_t *cr, gpointer data); #endif /* THEME_H */ gtkatlantic-0.6.1/src/theme.c0000644000175000017500000003767312554754335013036 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include #include #include #include "global.h" #include "theme.h" #include "parser.h" #include "interface.h" #include "callback.h" #include "readpng.h" /* refresh themes database */ void theme_build_database() { DIR *d; struct dirent *dir; gchar *path, *path2; guint32 i; /* first free all the database */ for(i = 0; i < MAX_THEMES; i++) { if(!data->theme[i].open) continue; theme_del_entry(i); } /* user home theme */ if (global->path_home) { path = g_strconcat(global->path_home, "/themes", NULL); d = opendir (path); if(d) { while (1) { dir = readdir(d); if(!dir) break; if(dir->d_name[0] == '.') continue; path2 = g_strconcat(path, "/", dir->d_name, "/", NULL); theme_add_entry(path2); g_free(path2); } closedir (d); } g_free(path); } /* global theme */ d = opendir (PACKAGE_DATA_DIR "/themes"); if (d) { while (1) { dir = readdir(d); if(!dir) break; if(dir->d_name[0] == '.') continue; path2 = g_strconcat(PACKAGE_DATA_DIR "/themes/", dir->d_name, "/", NULL); theme_add_entry(path2); g_free(path2); } closedir (d); } } gboolean theme_get_valid_slot(guint32 *themeslot) { guint32 i; if(!data) return(FALSE); for(i = 0; i < MAX_THEMES; i++) if(!data->theme[i].open) { *themeslot = i; return(TRUE); } return(FALSE); } void theme_del_entry(guint32 slot) { if(!data->theme[slot].open) return; g_free(data->theme[slot].path); g_free(data->theme[slot].path_preview); g_free(data->theme[slot].path_conf); g_free(data->theme[slot].name); g_free(data->theme[slot].type); g_free(data->theme[slot].version); g_free(data->theme[slot].author); g_free(data->theme[slot].email); data->theme[slot].open = FALSE; } void theme_add_entry(gchar *path) { guint32 slot, area = 0; gchar *path2, str[512], *ident; struct stat s; FILE *file; char *ret; gchar *name = 0, *type = 0, *version = 0, *author = 0, *email = 0, *preview = 0; /* get properties of this theme, name, author, preview file, ... */ path2 = g_strconcat(path, "theme.conf", NULL); /* detect invalid theme */ if(stat(path2, &s) < 0) { g_free(path2); return; } /* parse general group */ file = fopen(path2, "r"); if (!file) return; for (ret = fgets(str, 512, file); ret && !feof(file); ret = fgets(str, 512, file)) { if (str[0] == '[') { if(! strncmp(str, "[general]", 9) ) area = THEME_FILE_SECTION_GENERAL; else area = 0; } else if(area == THEME_FILE_SECTION_GENERAL) { ident = parser_get_identifier(str); if(!ident) continue; if(! strcmp(ident, "theme") ) { name = parser_get_data(str, "name"); type = parser_get_data(str, "type"); version = parser_get_data(str, "version"); } else if(! strcmp(ident, "author") ) { author = parser_get_data(str, "name"); email = parser_get_data(str, "email"); } else if(! strcmp(ident, "misc") ) { preview = parser_get_data(str, "preview"); } g_free(ident); } } fclose(file); /* giving up if theme provide no name or no type */ if(!name || !type) return; /* fill the theme database */ if(! theme_get_valid_slot(&slot) ) return; data->theme[slot].path = g_strdup(path); data->theme[slot].path_preview = g_strconcat(path, preview, NULL); g_free(preview); data->theme[slot].path_conf = g_strconcat(path, "theme.conf", NULL); data->theme[slot].open = TRUE; data->theme[slot].name = name; data->theme[slot].type = type; data->theme[slot].version = version; data->theme[slot].author = author; data->theme[slot].email = email; } void theme_build_selection_win() { GtkWidget *ThemeWin; GtkWidget *VBox; GtkWidget *HBox; GtkWidget *VBoxLeft; GtkWidget *ScrollThemeList; GtkWidget *ThemeCList; GtkWidget *HBoxButtons; GtkWidget *Button; GtkWidget *VBoxInfo; GtkWidget *GridInfo; GtkWidget *Label; GtkWidget *PreviewFrame; GtkWidget *tmp; gchar *str; GtkTreeSelection *select; GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkListStore *store; if(global->ThemeWin) return; global->ThemeWin = ThemeWin = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(ThemeWin), "GtkAtlantic: Theme Selection"); g_signal_connect(G_OBJECT(ThemeWin), "delete_event", G_CALLBACK(CallBack_ThemeWin_Delete), NULL); g_signal_connect(G_OBJECT(ThemeWin), "destroy", G_CALLBACK(CallBack_ThemeWin_Destroyed), NULL); VBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width(GTK_CONTAINER(VBox), 5); gtk_container_add(GTK_CONTAINER(ThemeWin), VBox); HBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); gtk_box_pack_start(GTK_BOX(VBox), HBox, TRUE, TRUE, 0); VBoxLeft = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start(GTK_BOX(HBox), VBoxLeft, TRUE, TRUE, 0); /* theme list */ ScrollThemeList = gtk_scrolled_window_new(NULL, NULL); gtk_widget_set_size_request(ScrollThemeList, 140, -1); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ScrollThemeList), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_box_pack_start(GTK_BOX(VBoxLeft), ScrollThemeList, TRUE, TRUE, 0); ThemeCList = gtk_tree_view_new(); g_object_set_data(G_OBJECT(ThemeWin), "theme_list", ThemeCList); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(ThemeCList), FALSE); gtk_container_add(GTK_CONTAINER(ScrollThemeList), ThemeCList); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(ThemeCList)); gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE); g_signal_connect(G_OBJECT(select), "changed", G_CALLBACK(Callback_ThemeList_Select), NULL); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes("Theme", renderer, "text", THEMELIST_COLUMN_NAME, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(ThemeCList), column); store = gtk_list_store_new(TRADEPLAYERLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_INT); gtk_tree_view_set_model(GTK_TREE_VIEW(ThemeCList), GTK_TREE_MODEL(store)); g_object_unref(store); /* hbox for buttons */ HBoxButtons = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); gtk_box_pack_start(GTK_BOX(VBoxLeft), HBoxButtons, FALSE, FALSE, 0); Button = gtk_button_new_with_label("Apply"); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_Theme_Apply), NULL); gtk_box_pack_start(GTK_BOX(HBoxButtons), Button, TRUE, TRUE, 0); Button = gtk_button_new_with_label("Cancel"); g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_ThemeWin_Delete), NULL); gtk_box_pack_start(GTK_BOX(HBoxButtons), Button, TRUE, TRUE, 0); /* vbox for themes */ VBoxInfo = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start(GTK_BOX(HBox), VBoxInfo, TRUE, TRUE, 0); /* table which contain theme infos */ GridInfo = gtk_grid_new(); gtk_grid_set_column_spacing(GTK_GRID(GridInfo), 5); gtk_grid_set_row_spacing(GTK_GRID(GridInfo), 2); gtk_box_pack_start(GTK_BOX(VBoxInfo), GridInfo, FALSE, FALSE, 0); Label = gtk_label_new("Name:"); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 0, 1, 1); Label = gtk_label_new(""); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); g_object_set_data(G_OBJECT(ThemeWin), "theme_name", Label); gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 0, 1, 1); Label = gtk_label_new("Type:"); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 1, 1, 1); Label = gtk_label_new(""); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); g_object_set_data(G_OBJECT(ThemeWin), "theme_type", Label); gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 1, 1, 1); Label = gtk_label_new("Version:"); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 2, 1, 1); Label = gtk_label_new(""); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); g_object_set_data(G_OBJECT(ThemeWin), "theme_version", Label); gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 2, 1, 1); Label = gtk_label_new("Author:"); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 3, 1, 1); Label = gtk_label_new(""); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); g_object_set_data(G_OBJECT(ThemeWin), "theme_author", Label); gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 3, 1, 1); Label = gtk_label_new("Email:"); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 4, 1, 1); Label = gtk_label_new(""); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); g_object_set_data(G_OBJECT(ThemeWin), "theme_email", Label); gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 4, 1, 1); Label = gtk_label_new("Location:"); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 5, 1, 1); Label = gtk_label_new(""); gtk_widget_set_halign(Label, GTK_ALIGN_START); gtk_widget_set_valign(Label, GTK_ALIGN_CENTER); g_object_set_data(G_OBJECT(ThemeWin), "theme_location", Label); gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 5, 1, 1); /* preview */ PreviewFrame = gtk_frame_new("Preview"); gtk_box_pack_start(GTK_BOX(VBoxInfo), PreviewFrame, TRUE, TRUE, 0); gtk_widget_set_size_request(PreviewFrame, 400, 245); g_object_set_data(G_OBJECT(ThemeWin), "theme_preview_container", PreviewFrame); tmp = gtk_label_new("No preview available"); gtk_widget_set_halign(tmp, GTK_ALIGN_CENTER); gtk_widget_set_valign(tmp, GTK_ALIGN_CENTER); g_object_set_data(G_OBJECT(ThemeWin), "theme_preview_data", tmp); gtk_container_add(GTK_CONTAINER(PreviewFrame), tmp); g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_image", NULL); str = g_strdup_printf("%d", -1); g_object_set_data_full(G_OBJECT(global->ThemeWin), "theme_preview_selected", str, g_free); gtk_widget_show_all(ThemeWin); } void theme_fill_selection_list() { guint32 i; GtkWidget *ThemeList; GtkListStore *store; ThemeList = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_list"); /* build theme list */ store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(ThemeList))); gtk_list_store_clear(store); for(i = 0 ; i < MAX_THEMES ; i++) { GtkTreeIter iter; if (!data->theme[i].open) { continue; } gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, THEMELIST_COLUMN_NAME, data->theme[i].name, THEMELIST_COLUMN_ID, i, -1); } } void theme_preview_free() { GtkWidget *Preview; gchar *buf; /* free all preview data */ Preview = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_preview_data"); gtk_widget_destroy(Preview); g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_data", NULL); buf = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_preview_image"); if (buf) { g_free(buf); g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_image", NULL); } } void theme_display(gint32 themeid) { GtkWidget *Label; GtkWidget *Frame; GtkWidget *Preview; guint8 *buf = 0; gchar *tmp; guint32 width, height; if(! data->theme[themeid].open) return; Label = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_name"); gtk_label_set_text(GTK_LABEL(Label), data->theme[themeid].name); Label = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_type"); gtk_label_set_text(GTK_LABEL(Label), data->theme[themeid].type); Label = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_version"); gtk_label_set_text(GTK_LABEL(Label), data->theme[themeid].version); Label = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_author"); gtk_label_set_text(GTK_LABEL(Label), data->theme[themeid].author); Label = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_email"); gtk_label_set_text(GTK_LABEL(Label), data->theme[themeid].email); Label = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_location"); gtk_label_set_text(GTK_LABEL(Label), data->theme[themeid].path); tmp = g_strdup_printf("%d", themeid); g_object_set_data_full(G_OBJECT(global->ThemeWin), "theme_preview_selected", tmp, g_free); /* free all preview data */ theme_preview_free(); Frame = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_preview_container"); /* put new preview data */ if(! (buf = theme_preview_read(themeid, &width, &height)) ) { Preview = gtk_label_new("No preview available"); g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_data", Preview); gtk_container_add(GTK_CONTAINER(Frame), Preview); gtk_widget_show_all(Frame); return; } /* put preview image */ g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_image", buf); Preview = gtk_drawing_area_new(); gtk_widget_set_size_request( GTK_WIDGET(Preview), width, height); gtk_widget_set_halign(Preview, GTK_ALIGN_CENTER); gtk_widget_set_valign(Preview, GTK_ALIGN_CENTER); g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_data", Preview); gtk_container_add(GTK_CONTAINER(Frame), Preview); g_signal_connect(G_OBJECT (Preview), "draw", G_CALLBACK(on_theme_preview_draw), NULL); gtk_widget_show_all(Frame); } guint8* theme_preview_read(gint32 themeid, guint32 *width, guint32 *height) { gchar *path = data->theme[themeid].path_preview; guint8 *buf = NULL; _png_imagedata png_imagedata; if (!data->theme[themeid].open) return NULL; if (path == NULL) return NULL; /* load preview image */ if (readpng_read(path, &png_imagedata)) { goto free_and_return; } *width = readpng_get_width(&png_imagedata); *height = readpng_get_height(&png_imagedata); buf = readpng_get_rgba(&png_imagedata); free_and_return: readpng_cleanup(&png_imagedata); return buf; } void theme_load(gint32 themeid) { printf("%d\n", themeid); return; } /* when receive event: redraw theme preview */ void on_theme_preview_draw(GtkWidget *widget, cairo_t *cr, gpointer data) { gint32 height, width, stride, i, j; cairo_surface_t *surface; guint8 *src; guint32 *buf, *dst; (void)data; width = gtk_widget_get_allocated_width(widget); height = gtk_widget_get_allocated_height(widget); stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width); /* Convert from RGBA32 big-endian (PNG) to ARGB32 native-endian (Cairo) */ src = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_preview_image"); buf = dst = g_malloc(stride * height); for(i = 0; i < height ; i++) { for(j = 0; j < width; j++) { guint8 r, g, b; r = *src++; g = *src++; b = *src++; src++; // FIXME: add alpha support, cairo needs premultiplied RGB values // buf = (A << 24) | (R << 16) | (G << 8) | (B); *dst++ = (0xff << 24) | (r << 16) | (g << 8) | b; } dst += stride/4 - width; } surface = cairo_image_surface_create_for_data((unsigned char*)buf, CAIRO_FORMAT_ARGB32, width, height, stride); cairo_set_source_surface(cr, surface, 0, 0); cairo_paint(cr); cairo_surface_destroy(surface); g_free(buf); } gtkatlantic-0.6.1/src/display.h0000644000175000017500000000225512554754150013365 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef DISPLAY_H #define DISPLAY_H #include void display_init(); void display_hide(); void display_show(); void display_clear_text(); void display_clear_buttons(); void display_estate(gint32 estateid); void display_title(gchar *text); void display_text(gchar *message); void display_add_button(gchar *caption, gchar *command, gboolean enabled); #endif /* DISPLAY_H */ gtkatlantic-0.6.1/src/xmlparse.h0000644000175000017500000000455612550311300013537 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef XMLPARSE_H #define XMLPARSE_H #include #include #include "global.h" #define SERVER_XMLROOTELEMENT (xmlChar*)"monopd" #define METASERVER_XMLROOTELEMENT (xmlChar*)"meta_atlantic" void xmlparse_getgamelist_plugger(connection *c, gchar *buffer); void xmlparse_game_plugger(connection *c, gchar *buffer); void xmlparse_server(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_client(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_message(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_estateupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_playerupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_auctionupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_display(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_configupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_tradeupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_cardupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_estategroupupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_deleteplayer(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_gamelist_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_gamelist_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur); void xmlparse_metaserver(connection *c, gchar *buffer); #endif /* XMLPARSE_H */ gtkatlantic-0.6.1/src/engine.h0000644000175000017500000000166312550311246013156 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #ifndef ENGINE_H #define ENGINE_H /* all includes of engine */ #include "eng_main.h" #include "eng_frame.h" #endif /* ENGINE_H */ gtkatlantic-0.6.1/src/eng_frame.c0000644000175000017500000002750212550307417013634 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include "engine.h" /* ---- update all frame */ void eng_create_frame_all() { eng_list_e *lst; for(lst = eng_list_first(eng->frame) ; lst ; lst=lst->next) { eng_frame *f = lst->data; if(f && f->compute) eng_create_frame(lst->data); } } /* ---- update a frame */ void eng_create_frame(eng_frame *f) { guint32 size = 0; eng_list *obj_valid, *obj_show, *obj_modif; eng_list_e *lst, *next; if(!f) return; f->x_min = MAX_WIDTH; f->y_min = MAX_HEIGHT; f->x_max = 0; f->y_max = 0; obj_valid = eng_list_new(); obj_show = eng_list_new(); obj_modif = eng_list_new(); /* free zone_upd */ eng_frame_free_zoneupd(f); /* allocate memory for output buffer */ if(!f->memalloc) { eng_coord z; size = f->width * f->height * 4; f->bufout = g_malloc(size); z.x1 = 0; z.y1 = 0; z.x2 = f->width -1; z.y2 = f->height -1; eng_clear_bufout(f, &z); f->memalloc = size; } /* create table of valid objects */ for(lst = eng_list_first(f->obj) ; lst ; lst=lst->next) { eng_obj *o = lst->data; o->entry_valid = NULL; o->entry_show = NULL; o->entry_modif = NULL; if(eng_pic_test(o)) o->entry_valid = eng_list_append(obj_valid, o); } // fprintf(stderr, "NB_OBJ_VALID = %d\n", eng_list_length(obj_valid)); /* create table of showed objects */ for(lst = eng_list_first(obj_valid) ; lst ; lst=lst->next) { eng_obj *o = lst->data; if(o->show) o->entry_show = eng_list_append(obj_show, o); } // fprintf(stderr, "NB_OBJ_SHOW = %d\n", eng_list_length(obj_show)); /* create table of modified objects */ for(lst = eng_list_first(obj_valid) ; lst ; lst=lst->next) { eng_obj *o = lst->data; if(o->change) { o->entry_modif = eng_list_append(obj_modif, o); o->change = 0; } } // fprintf(stderr, "NB_OBJ_MODIF = %d\n", eng_list_length(obj_modif)); /* search zones to update */ for(next = NULL, lst = eng_list_first(obj_modif) ; lst ; lst = next ? next : eng_list_next(lst), next = NULL) { eng_coord *c; eng_obj *o = lst->data; /* get zones needed to update */ c = eng_pic_get_zone_old(o); if(c->x2 > c->x1 && c->y2 > c->y1) c->entry = eng_list_append(f->zone_upd, c); else g_free(c); /* just if old value is not available, new object */ c = eng_pic_get_zone_new(o); c->entry = eng_list_append(f->zone_upd, c); /* destroy pic if requested */ if(o->destroy) { next = lst->next; eng_list_remove_fast(o->entry_valid); eng_list_remove_fast(o->entry_show); eng_list_remove_fast(o->entry_modif); eng_pic_free(o); lst = NULL; continue; } /* store value of x, y, width, height, they are used if image move */ o->x_old = o->x; o->y_old = o->y; o->width_old = o->width; o->height_old = o->height; } /* printf("NB_ZONE_MODIF = %d\n", eng_list_length(f->zone_upd)); for(lst = eng_list_first(f->zone_upd) ; lst ; lst=lst->next) { coord *c = lst->data; printf(" %d, %d - %d, %d \n", c->x1, c->y1, c->x2, c->y2 ); } */ /* remove redundant zone & superposed zone */ for(next = NULL, lst = eng_list_first(f->zone_upd) ; lst ; lst = next ? next : eng_list_next(lst), next = NULL) { eng_list_e *lst2; eng_coord *first = lst->data; for(lst2=lst->next ; lst2 ; lst2=lst2->next) { eng_coord *second = lst2->data; if( second->x1 <= first->x2 \ && second->x2 >= first->x1 \ && second->y1 <= first->y2 \ && second->y2 >= first->y1) { if( second->x1 > first->x1 ) second->x1 = first->x1; if( second->y1 > first->y1 ) second->y1 = first->y1; if( second->x2 < first->x2 ) second->x2 = first->x2; if( second->y2 < first->y2 ) second->y2 = first->y2; next=lst->next; eng_list_remove_fast(first->entry); g_free(first); lst = NULL; break; } } } /* printf("NB_ZONE_MODIF = %d\n", eng_list_length(f->zone_upd)); for(lst = eng_list_first(f->zone_upd) ; lst ; lst=lst->next) { coord *c = lst->data; printf(" %d, %d - %d, %d \n", c->x1, c->y1, c->x2, c->y2 ); } */ /* update bufout, get extrem */ for(lst = eng_list_first(f->zone_upd) ; lst ; lst=lst->next) { eng_coord *c = lst->data; /* extrem */ if(c->x1 < f->x_min) f->x_min = c->x1; if(c->y1 < f->y_min) f->y_min = c->y1; if(c->x2 > f->x_max) f->x_max = c->x2; if(c->y2 > f->y_max) f->y_max = c->y2; /* update bufout */ eng_update_bufout(f, c, obj_show); } if(!f->y_max) { f->x_min = 0; f->y_min = 0; f->x_max = 0; f->y_max = 0; } /* printf("EXTREM: "); printf(" %d, %d - %d, %d \n", f->x_min, f->y_min, f->x_max, f->y_max ); */ eng_list_destroy(obj_valid); eng_list_destroy(obj_show); eng_list_destroy(obj_modif); } /* get old zone where the pic is displayed before change */ eng_coord* eng_pic_get_zone_old(eng_obj *o) { eng_coord *c; c = g_malloc(sizeof(eng_coord) ); c->x1 = o->x_old; c->y1 = o->y_old; c->x2 = c->x1 + o->width_old -1; c->y2 = c->y1 + o->height_old -1; if(c->x1 < 0) c->x1 = 0; if(c->y1 < 0) c->y1 = 0; if(c->x2 >= o->frame->width) c->x2 = o->frame->width -1; if(c->y2 >= o->frame->height) c->y2 = o->frame->height -1; return(c); } /* get new zone where the pic is displayed after change */ eng_coord* eng_pic_get_zone_new(eng_obj *o) { eng_coord *c; c = g_malloc(sizeof(eng_coord) ); c->x1 = o->x; c->y1 = o->y; c->x2 = c->x1 + o->width -1; c->y2 = c->y1 + o->height -1; if(c->x1 < 0) c->x1 = 0; if(c->y1 < 0) c->y1 = 0; if(c->x2 >= o->frame->width) c->x2 = o->frame->width -1; if(c->y2 >= o->frame->height) c->y2 = o->frame->height -1; return(c); } /* update bufout in selected zone */ void eng_update_bufout(eng_frame *f, eng_coord *zone, eng_list *obj_show) { eng_list *obj_in_zone, *obj_in_zone_unsorted; eng_list_e *lst; obj_in_zone_unsorted = eng_list_new(); eng_clear_bufout(f, zone); /* search obj in zone to update */ for(lst = eng_list_first(obj_show) ; lst ; lst=lst->next) { eng_obj *o = lst->data; eng_coord *c = eng_pic_get_zone_new(o); /* obj superposed with zone to update ? */ if( c->x1 <= zone->x2 && c->x2 >= zone->x1 && c->y1 <= zone->y2 && c->y2 >= zone->y1) { o->entry_zone = eng_list_append(obj_in_zone_unsorted, o); } g_free(c); } /* printf("--- IN ZONE (UNSORTED) : %d, %d - %d, %d \n", zone->x1, zone->y1, zone->x2, zone->y2); for(lst = eng_list_first(obj_in_zone_unsorted) ; lst ; lst=lst->next) { eng_obj *o = lst->data; printf(" %3d = %3d, %3d, %3d, %3d\n", o->z, o->x, o->y, o->x + o->width -1, o->y + o->height -1); } */ /* sort table : ground min > max */ obj_in_zone = eng_list_new(); while (eng_list_length(obj_in_zone_unsorted)) { eng_obj *a, *b; lst = eng_list_first(obj_in_zone_unsorted); a = lst->data; for (; lst; lst=lst->next) { b = lst->data; if (a->z > b->z) { a = b; } } eng_list_remove_fast(a->entry_zone); a->entry_zone = eng_list_append(obj_in_zone, a); } eng_list_destroy(obj_in_zone_unsorted); /* printf("--- IN ZONE (SORT) : %d, %d - %d, %d \n", zone->x1, zone->y1, zone->x2, zone->y2); for(lst = eng_list_first(obj_in_zone) ; lst ; lst=lst->next) { eng_obj *o = lst->data; printf(" %3d = %3d, %3d, %3d, %3d\n", o->z, o->x, o->y, o->x + o->width -1, o->y + o->height -1); } */ /* modify bufout */ for(lst = eng_list_first(obj_in_zone) ; lst ; lst=lst->next) { guint16 x1_draw, y1_draw, x2_draw, y2_draw; guint16 height_draw, width_draw; guint32 ptr_memout, ptr_memobj; eng_obj *o = lst->data; eng_coord *c = eng_pic_get_zone_new(o); guint32 i, j; /* search part of pic to update */ if(c->x1 <= zone->x1 ) x1_draw = zone->x1; else x1_draw = c->x1; if(c->y1 <= zone->y1 ) y1_draw = zone->y1; else y1_draw = c->y1; if(c->x2 >= zone->x2 ) x2_draw = zone->x2; else x2_draw = c->x2; if(c->y2 >= zone->y2 ) y2_draw = zone->y2; else y2_draw = c->y2; // printf("-> %3d, %3d, %3d, %3d\n", x1_draw, y1_draw, x2_draw, y2_draw); width_draw = x2_draw - x1_draw +1; height_draw = y2_draw - y1_draw +1; ptr_memout = y1_draw * f->width + x1_draw; ptr_memobj = (y1_draw - c->y1) * o->width + x1_draw - c->x1; /* ---> rgba pic */ for(i = 0 ; i < height_draw ; i ++) { guint8 *in; /* PNG RGBA byte order */ guint32 *out; /* ARGB32, native-endian, premultiplied alpha, designed for CAIRO */ in = o->buf + ptr_memobj*4; out = (guint32*)(f->bufout + ptr_memout*4); for(j = 0 ; j < width_draw ; j++) { guint8 ri, gi, bi, ai; ri = *in++; gi = *in++; bi = *in++; ai = *in++; if (o->have_alpha) { ai = eng->alpha->fg[o->alpha][ai]; } if (!o->have_bgcolor) { guint8 ro, go, bo, ao; ao = *out >> 24; ro = *out >> 16; go = *out >> 8; bo = *out; *out++ = ((eng->alpha->fg[ao][ao] + eng->alpha->bg[ao][ai]) << 24) | ((eng->alpha->fg[ai][ri] + eng->alpha->bg[ai][ro]) << 16) | ((eng->alpha->fg[ai][gi] + eng->alpha->bg[ai][go]) << 8) | (eng->alpha->fg[ai][bi] + eng->alpha->bg[ai][bo]); } else { *out++ = (0xff << 24) | ((eng->alpha->fg[ai][ri] + eng->alpha->bg[ai][o->bgcolor[0]]) << 16) | ((eng->alpha->fg[ai][gi] + eng->alpha->bg[ai][o->bgcolor[1]]) << 8) | (eng->alpha->fg[ai][bi] + eng->alpha->bg[ai][o->bgcolor[2]]); } } ptr_memout += f->width; ptr_memobj += o->width; } g_free(c); } eng_list_destroy(obj_in_zone); } void eng_clear_bufout(eng_frame *f, eng_coord *zone) { guint8 *out; guint32 i; guint32 height = zone->y2 - zone->y1 +1; guint32 width = (zone->x2 - zone->x1 +1) * 4; out = f->bufout + (zone->y1 * f->width + zone->x1) * 4; for(i = 0 ; i < height ; i++) { memset(out, 0, width); out += f->width * 4; } } gboolean eng_zone_is_modified(eng_frame *f, eng_coord *zone) { eng_list_e *lst; for(lst = eng_list_first(f->zone_upd) ; lst ; lst=lst->next) { eng_coord *c = lst->data; if( c->x1 <= zone->x2 && c->x2 >= zone->x1 && c->y1 <= zone->y2 && c->y2 >= zone->y1) { return(TRUE); } } return(FALSE); } guchar *eng_get_zone(eng_frame *f, eng_coord *zone) { guint32 i, rwidth, rheight; guchar *in, *buf, *out; if (zone->stride < zone->width*4 || zone->x >= f->width || zone->y >= f->height) { return NULL; } if (zone->x + zone->width > f->width) { rwidth = f->width - zone->x; } else { rwidth = zone->width; } if (zone->y + zone->height > f->height) { rheight = f->height - zone->y; } else { rheight = zone->height; } buf = out = g_malloc0(zone->stride * zone->height); in = f->bufout + (zone->y * f->width + zone->x) * 4; for(i = 0 ; i < rheight ; i++) { memcpy(out, in, rwidth * 4); in += f->width * 4; out += zone->stride; } return(buf); } eng_zone *eng_get_next_zone(eng_frame *f) { eng_list_e *lst; eng_coord *c; eng_zone *z; lst = eng_list_first(f->zone_upd); if(!lst) return NULL; c = lst->data; z = g_malloc0( sizeof(eng_zone) ); z->aux = eng_get_zone(f, c); z->x1 = c->x1; z->y1 = c->y1; z->x2 = c->x2; z->y2 = c->y2; z->width = c->x2 - c->x1 +1; z->height = c->y2 - c->y1 +1; g_free(lst->data); eng_list_remove_fast(c->entry); return z; } gtkatlantic-0.6.1/src/display.c0000644000175000017500000001337012550307404013350 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include "global.h" #include "display.h" #include "callback.h" void display_init() { GtkWidget *vbox; GtkWidget *text; GtkTextBuffer *textbuff; GtkTextIter textiter; GtkWidget *scrolledwin; vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 15); gtk_container_set_border_width(GTK_CONTAINER(vbox), 15); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter", vbox); gtk_box_pack_start(GTK_BOX(currentgame->BoardCenter), vbox, TRUE, TRUE, 0); /* create text view */ scrolledwin = gtk_scrolled_window_new(NULL,NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_box_pack_start(GTK_BOX(vbox), scrolledwin, TRUE, TRUE, 0); text = gtk_text_view_new(); gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD); textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); gtk_text_buffer_get_end_iter(textbuff, &textiter); gtk_text_buffer_create_mark(textbuff, "endmark", &textiter, FALSE); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_text", text); gtk_container_add(GTK_CONTAINER(scrolledwin), text); gtk_widget_show_all(vbox); } void display_hide() { GtkWidget *vbox= g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter"); gtk_widget_hide(vbox); } void display_show() { GtkWidget *vbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter"); gtk_widget_show(vbox); } void display_clear_text() { GtkWidget *text; GtkTextBuffer *textbuff; GtkTextIter startiter, enditer; text = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_text"); textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); gtk_text_buffer_get_bounds(textbuff, &startiter, &enditer); gtk_text_buffer_delete(textbuff, &startiter, &enditer); } void display_clear_buttons() { GtkWidget *buttonsbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons"); if (buttonsbox) { gtk_widget_destroy(buttonsbox); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons", NULL); } } void display_estate(gint32 estateid) { display_title(estateid < 0 ? NULL : currentgame->estate[estateid].name); } void display_title(gchar *title) { GtkWidget *label = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title"); if (!title) { if (label) { gtk_widget_destroy(label); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title", NULL); } return; } if (!label) { GtkWidget *vbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter"); label = gtk_label_new(NULL); gtk_label_set_use_markup(GTK_LABEL(label), TRUE); gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); gtk_widget_set_halign(label, GTK_ALIGN_CENTER); gtk_widget_set_valign(label, GTK_ALIGN_CENTER); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_box_reorder_child(GTK_BOX(vbox), label, 0); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title", label); gtk_widget_show(label); } gchar *tmp = g_markup_printf_escaped("%s", title); gtk_label_set_markup(GTK_LABEL(label), tmp); g_free(tmp); } void display_text(gchar *message) { GtkWidget *text; GtkTextBuffer *textbuff; GtkTextIter textiter; GtkTextMark *textmark; text = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_text"); textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); gtk_text_buffer_get_end_iter(textbuff, &textiter); if (gtk_text_iter_get_offset(&textiter)) { gtk_text_buffer_insert(textbuff, &textiter, "\n", 1); } gtk_text_buffer_insert(textbuff, &textiter, message, strlen(message)); /* Scroll to the end mark */ textmark = gtk_text_buffer_get_mark(textbuff, "endmark"); gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(text), textmark, 0.0, FALSE, 0.0, 0.0); } void display_add_button(gchar *caption, gchar *command, gboolean enabled) { GtkWidget *buttonsbox; GtkWidget *button; gchar *text; buttonsbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons"); if (!buttonsbox) { GtkWidget *vbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter"); buttonsbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 15); gtk_box_pack_start(GTK_BOX(vbox), buttonsbox, FALSE, FALSE, 0); g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons", buttonsbox); gtk_widget_show(buttonsbox); } button = gtk_button_new_with_label(caption); gtk_box_pack_start(GTK_BOX(buttonsbox), button, TRUE, TRUE, 0); text = g_strdup_printf("%s\n", command ); g_object_set_data_full(G_OBJECT(button), "command", text, g_free); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(CallBack_button_command_pressed), NULL); gtk_widget_set_sensitive(button, enabled); gtk_widget_show(button); } gtkatlantic-0.6.1/src/Makefile.in0000644000175000017500000003736412554762535013633 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = gtkatlantic$(EXEEXT) subdir = src DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_gtkatlantic_OBJECTS = callback.$(OBJEXT) client.$(OBJEXT) \ display.$(OBJEXT) eng_frame.$(OBJEXT) eng_list.$(OBJEXT) \ eng_main.$(OBJEXT) game.$(OBJEXT) interface.$(OBJEXT) \ load.$(OBJEXT) main.$(OBJEXT) parser.$(OBJEXT) \ readpng.$(OBJEXT) theme.$(OBJEXT) trade.$(OBJEXT) \ xmlparse.$(OBJEXT) gtkatlantic_OBJECTS = $(am_gtkatlantic_OBJECTS) am__DEPENDENCIES_1 = gtkatlantic_DEPENDENCIES = $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(gtkatlantic_SOURCES) DIST_SOURCES = $(gtkatlantic_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ ICON_DIR = @ICON_DIR@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = $(GTK_CFLAGS) gtkatlantic_SOURCES = \ callback.c \ client.c \ display.c \ eng_frame.c \ eng_list.c \ eng_main.c \ game.c \ interface.c \ load.c \ main.c \ parser.c \ readpng.c \ theme.c \ trade.c \ xmlparse.c noinst_HEADERS = \ callback.h \ client.h \ display.h \ eng_frame.h \ engine.h \ eng_list.h \ eng_main.h \ game.h \ global.h \ interface.h \ load.h \ parser.h \ readpng.h \ theme.h \ trade.h \ xmlparse.h gtkatlantic_LDADD = $(GTK_LIBS) -lpng all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done gtkatlantic$(EXEEXT): $(gtkatlantic_OBJECTS) $(gtkatlantic_DEPENDENCIES) @rm -f gtkatlantic$(EXEEXT) $(LINK) $(gtkatlantic_LDFLAGS) $(gtkatlantic_OBJECTS) $(gtkatlantic_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callback.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/display.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eng_frame.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eng_list.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eng_main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/game.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/load.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readpng.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/theme.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trade.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlparse.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtkatlantic-0.6.1/src/game.c0000644000175000017500000005736712552032655012637 00000000000000/* * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games * * * Copyright © 2002-2015 Sylvain Rochet * * gtkatlantic is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * . */ #include "config.h" #include #include #include #include #include #include #include #include #include #include #include "global.h" #include "game.h" #include "load.h" #include "interface.h" #include "client.h" #include "trade.h" #include "engine.h" #include "callback.h" #ifdef WIN32 #include #include #include #define mkdir(p, m) _mkdir(p) #endif /* create home directory (~/.gtkatlantic) * * return TRUE if exist/created, return FALSE if cannot be created */ void create_home_directory(void) { gchar *path; struct stat s; #ifndef WIN32 path = g_strconcat(getenv("HOME"), "/", ".", PACKAGE, NULL); #else /* WIN32 */ TCHAR home[MAX_PATH]; if (FAILED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, home))) { return; } path = g_strconcat(home, "/", PACKAGE, NULL); #endif /* WIN32 */ if (stat(path, &s) < 0) { mkdir(path, 0777); if (stat(path, &s) < 0) { g_free(path); return; } } global->path_home = path; path = g_strconcat(global->path_home, "/themes", NULL); if (stat(path, &s) < 0) { mkdir(path, 0777); } g_free(path); } /* read config files */ void read_config_files() { gchar *filename; /* Default configuration */ config->nickname = g_strdup("anonymous"); config->metaserver_autoconnect = TRUE; config->metaserver_sendclientversion = TRUE; config->getgames_host = g_strdup("localhost"); config->getgames_port = 1234; config->getgames_autoconnect = FALSE; config->game_playerlist_position = GAME_PLAYERLIST_POS_LEFT; config->game_token_animation_speed = 300; config->game_token_transparency = FALSE; /* read user config file */ if (global->path_home) { filename = g_strconcat(global->path_home, "/gtkatlantic.conf", NULL); parse_file_config(filename); g_free(filename); } } /* this function made a new connection for metaserver (list & games) */ void create_connection_metaserver() { GtkTreeIter iter; gboolean valid; gchar *cmd; /* already connected */ if (global->metaserver_connect) { return; } /* remove all servers */ gtk_list_store_clear(global->server_store); /* remove all games previously fetched from metaserver */ valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter); while (valid) { gint32 source; GtkTreeIter curiter = iter; valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); /* get next iter so we can safely remove the current entry */ gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &curiter, GAMELIST_COLUMN_SOURCE, &source, -1); if (source == GAMELIST_SOURCE_METASERVER) { gtk_list_store_remove(global->game_store, &curiter); } } GtkWidget *MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_metaserver"); gtk_widget_set_sensitive(MenuItem, FALSE); MenuItem = g_object_get_data(G_OBJECT(global->Menu), "public_server_list"); gtk_widget_set_sensitive(MenuItem, TRUE); if (config->metaserver_sendclientversion) { cmd = g_strdup("CHECKCLIENT " PACKAGE " " VERSION "\nFOLLOW\n"); } else { cmd = g_strdup("FOLLOW\n"); } client_connect(CONNECT_TYPE_METASERVER, METASERVER_HOST, METASERVER_PORT, cmd); } /* this function create a new connection to get games list */ void create_connection_get_games(gchar *host, gint32 port) { /* remove all games previously fetched from custom server */ if (global->game_store) { GtkTreeIter iter; gboolean valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter); while (valid) { gint32 source; GtkTreeIter curiter = iter; valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); /* get next iter so we can remove the current entry safely */ gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &curiter, GAMELIST_COLUMN_SOURCE, &source, -1); if (source == GAMELIST_SOURCE_CUSTOM) { gtk_list_store_remove(global->game_store, &curiter); } } } client_connect(CONNECT_TYPE_MONOPD_GETGAME, host, port, NULL); } /* insert test in Chat Box */ void text_insert_chat(gchar* text, gint32 length) { GtkTextBuffer *textbuff; GtkTextIter textiter; GtkTextMark *textmark; if(global->phase < PHASE_GAMECREATE) return; textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(currentgame->Chat)); gtk_text_buffer_get_end_iter(textbuff, &textiter); if (gtk_text_iter_get_offset(&textiter)) { gtk_text_buffer_insert(textbuff, &textiter, "\n", -1); } gtk_text_buffer_insert(textbuff, &textiter, text, length); /* Scroll to the end mark */ textmark = gtk_text_buffer_get_mark(textbuff, "endmark"); gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(currentgame->Chat), textmark, 0.0, FALSE, 0.0, 0.0); } game *game_new(gint32 id) { game *game; game = g_malloc0(sizeof(*game)); game->gameid = id; printf("New game: %d\n", game->gameid); game->next = game_h; game_h = game; return game; } void game_free(gint32 id) { game **prevp, *g; for (prevp = &game_h; (g = *prevp); prevp = &g->next) { if (g->gameid == id) { *prevp = g->next; printf("Deleted game: %d\n", g->gameid); g_free(g); break; } } } game *game_find(gint32 id) { game *g; for (g = game_h; g; g = g->next) { if (g->gameid == id) { return g; } } return NULL; } /* free all game ressources, return to get games page */ void game_quit() { gint32 i; game *g; client_disconnect(global->game_connect); currentgame->ChatBox = NULL; currentgame->Chat = NULL; if(currentgame->WinEstateTree) gtk_widget_destroy(currentgame->WinEstateTree); if(currentgame->timeout_token) g_source_remove(currentgame->timeout_token); game_delete_cookie(); /* remove all players */ while (player_h) { game_free_player(player_h); } for(i = 0 ; i < data->number_estates ; i++) { if(currentgame->estate[i].name) g_free(currentgame->estate[i].name); } for(i = 0 ; i < MAX_GROUPS ; i++) { if(currentgame->group[i].name) g_free(currentgame->group[i].name); } for(i = 0 ; i < MAX_TRADES ; i++) { trade_destroy_slot(i); } for(i = 0 ; i < MAX_COMMANDS ; i++) { if(currentgame->command[i].open && currentgame->command[i].command) g_free(currentgame->command[i].command); } for(i = 0 ; i < MAX_CARDS ; i++) { if (currentgame->card[i].title) { g_free(currentgame->card[i].title); } } eng_frame_destroy( currentgame->board_frame ); game_free_pngs(); /* remove all games */ g = game_h; while (g) { game *cur = g; g = g->next; printf("Deleted game: %d\n", cur->gameid); g_free(cur); } game_h = NULL; currentgame = NULL; interface_create_getgamespage(true); } /* create a new player slot */ player *game_new_player(guint32 id) { player *player; player = g_malloc0(sizeof(*player)); player->playerid = id; player->tokenid = -1; printf("New player: %d\n", player->playerid); player->next = player_h; player_h = player; return player; } player *player_from_id(gint32 playerid) { player *p; for (p = player_h; p; p = p->next) { if ((gint32)p->playerid == playerid) { return p; } } return NULL; } player *player_from_name(gchar *name) { player *p; if (!name) return NULL; if (strlen(name) <= 0) return NULL; for (p = player_h; p; p = p->next) { if (!p->name) continue; if (!strcmp(p->name, name)) { return p; } } return NULL; } gint32 get_playerlistcard_id_with_estate(gint32 estate) { gint32 i; for(i = 0 ; i < data->number_playerlist_card ; i++) { if(data->playerlist_card[i].estateid == estate) { return(i); break; } } return(-1); } /* return a valid command slotid */ gboolean game_get_valid_command_slot(gint32 *commandslot) { gint32 i; for(i = 0; i < MAX_COMMANDS ; i++) if(!currentgame->command[i].open) { *commandslot = i; return TRUE; } return FALSE; } /* return commandslot if button command is displayed return <0 if button not is not displayed */ gint32 get_command_button_slot_with_command(gchar *command) { gint32 i; for(i = 0 ; i < MAX_COMMANDS ; i ++) { if(currentgame->command[i].open) { if(! strncmp(command, currentgame->command[i].command, strlen(command)) ) return i; } } return -1; } /* send specific chat message, like version */ void parse_specific_chat_message(gchar *message) { gchar *msg, *sendstr; player *my_player; struct timeval tv; time_t t_now; my_player = player_from_id(global->my_playerid); if(message[0] != '!') return; msg = message; msg++; if(! strncmp(msg, "version", 7)) { msg += 7; while( strlen(msg) ) { if(msg[0] != ' ') break; else msg++; } if (strlen(msg) == 0 || !strcmp(msg, my_player->name)) { sendstr = g_strdup_printf("GtkAtlantic %s\n", VERSION); client_send(global->game_connect, sendstr); g_free(sendstr); } } else if(! strncmp(msg, "date", 4)) { msg += 4; while( strlen(msg) ) { if(msg[0] != ' ') break; else msg++; } if (strlen(msg) == 0 || !strcmp(msg, my_player->name)) { gettimeofday(&tv, NULL); t_now = tv.tv_sec; sendstr = g_strdup_printf("%s", ctime(&t_now) ); client_send(global->game_connect, sendstr); g_free(sendstr); } } else if(! strncmp(msg, "ping", 4)) { msg += 4; while( strlen(msg) ) { if(msg[0] != ' ') break; else msg++; } if (strlen(msg) == 0 || !strcmp(msg, my_player->name)) { sendstr = g_strdup_printf("pong\n"); client_send(global->game_connect, sendstr); g_free(sendstr); } } } /* parse specific send message */ void parse_specific_send_message(gchar *message) { gchar *msg, *tmp; gint32 i; struct timeval tv; struct tm *local_tm; time_t t_now; if(message[0] != '/') return; msg = message; msg++; if(! strncmp(msg, "assets", 6)) { msg += 6; while( strlen(msg) ) { if(msg[0] != ' ') break; else msg++; } if(strlen(msg) == 0) { player *p; for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; tmp = g_strdup_printf("<%s> %d", p->name, game_get_assets_player(p->playerid) ); text_insert_chat(tmp, strlen(tmp) ); g_free(tmp); } } player *p; if ((p = player_from_name(msg))) { tmp = g_strdup_printf("<%s> %d", p->name, game_get_assets_player(p->playerid) ); text_insert_chat(tmp, strlen(tmp)); g_free(tmp); } } else if(! strncmp(msg, "nick", 4)) { msg += 4; while( strlen(msg) ) { if(msg[0] != ' ') break; else msg++; } if (strlen(msg) != 0 && strcmp(player_from_id(global->my_playerid)->name, msg)) { tmp = g_strdup_printf(".n%s\n", msg); client_send(global->game_connect, tmp); g_free(tmp); } } else if(! strncmp(msg, "date", 4)) { gint32 len; gettimeofday(&tv, NULL); t_now = tv.tv_sec; tmp = g_strdup_printf("%s", ctime(&t_now) ); len = strlen(tmp); for(i = 0 ; i < len ; i++) { if(tmp[i] == '\n') { tmp[i] = '\0'; break; } } text_insert_chat(tmp, strlen(tmp) ); g_free(tmp); } else if(! strncmp(msg, "elapsed", 7)) { if(currentgame->status >= GAME_STATUS_RUN) { gettimeofday(&tv, NULL); t_now = tv.tv_sec - currentgame->start_time; } else t_now = 0; local_tm = gmtime(&t_now); tmp = g_strdup_printf("%.2d:%.2d:%.2d", local_tm->tm_hour, local_tm->tm_min, local_tm->tm_sec); text_insert_chat(tmp, strlen(tmp) ); g_free(tmp); } else if(! strncmp(msg, "me", 2)) { msg += 2; while( strlen(msg) ) { if(msg[0] != ' ') break; else msg++; } if(strlen(msg) != 0) { tmp = g_strdup_printf("[ACTION] %s\n", msg); client_send(global->game_connect, tmp); g_free(tmp); } } } /* sort playerlist by playerid (ascending) */ void game_sort_playerlist_by_playerid(void) { player *sorted_h = NULL; while (player_h) { player **pp, *p, **spp, *sp; for (pp = &player_h, sp = *pp, spp = pp; (p = *pp); pp = &p->next) { if (sp->playerid < p->playerid) { sp = p; spp = pp; } } *spp = sp->next; /* remove from list */ sp->next = sorted_h; sorted_h = sp; } player_h = sorted_h; } /* sort playerlist by turnorder (ascending) */ void game_sort_playerlist_by_turnorder(void) { player *sorted_h = NULL; while (player_h) { player **pp, *p, **spp, *sp; for (pp = &player_h, sp = *pp, spp = pp; (p = *pp); pp = &p->next) { if (sp->turnorder < p->turnorder) { sp = p; spp = pp; } } *spp = sp->next; /* remove from list */ sp->next = sorted_h; sorted_h = sp; } player_h = sorted_h; } void game_switch_status() { guint32 i; client_disconnect(global->customserver_connect); client_disconnect(global->metaserver_connect); switch (currentgame->status) { case GAME_STATUS_CONFIG: interface_create_gameconfigpage(); break; case GAME_STATUS_INIT: interface_create_gameinitpage(); if (game_load_pngs()) exit(-1); break; case GAME_STATUS_RUN: if (game_load_pngs()) exit(-1); interface_create_gameboardpage(); game_write_cookie(); break; case GAME_STATUS_END: game_delete_cookie(); if (currentgame->timeout_token) { g_source_remove(currentgame->timeout_token); currentgame->timeout_token = 0; } /* destroy all open trades */ for(i = 0 ; i < MAX_TRADES ; i++) { trade_destroy_slot(i); } break; default: return; } } /* write cookie on disk */ void game_write_cookie() { gchar *filename, *errormsg; FILE *file; if (!global->path_home) { return; } filename = g_strconcat(global->path_home, "/cookie", NULL); file = fopen(filename, "wt"); if (!file) { errormsg = g_strdup_printf("Can't write cookie file at \"%s\"", filename); interface_set_infolabel(errormsg, "b00000", false); g_free(errormsg); g_free(filename); return; } fprintf(file, "%s\n%d\n%s\n", global->game_connect->host, global->game_connect->port, global->cookie); g_free(filename); fclose(file); } void game_delete_cookie(void) { if (!global->path_home) { return; } gchar *filename = g_strconcat(global->path_home, "/cookie", NULL); unlink(filename); g_free(filename); } gboolean game_cookie_available(void) { struct stat st; int r; if (!global->path_home) { return false; } gchar *filename = g_strconcat(global->path_home, "/cookie", NULL); r = stat(filename, &st); g_free(filename); return (r == 0); } /* return a valid card slotid */ gboolean game_get_valid_card_slot(gint32 *cardslot) { gint32 i; for(i = 0; i < MAX_CARDS ; i++) if(!currentgame->card[i].owner) { *cardslot = i; return TRUE; } return FALSE; } /* return the card slot by cardid */ gint32 get_card_slot_with_cardid(gint32 cardid) { gint32 i; for(i = 0 ; i < MAX_CARDS ; i++) { if(currentgame->card[i].cardid == cardid) { return(i); break; } } return(-1); } gint32 game_nb_players() { gint32 c = 0; player *p; for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; c++; } return c; } /* return a valid trade slotid */ gboolean game_get_valid_trade_slot(gint32 *tradeslot) { gint32 i; for(i = 0; i < MAX_TRADES ; i++) if(! currentgame->trade[i].open) { *tradeslot = i; return TRUE; } return FALSE; } /* return trade slot by tradeid */ gint32 get_trade_slot_with_tradeid(gint32 tradeid) { gint32 i; for(i = 0 ; i < MAX_TRADES ; i++) { if(! currentgame->trade[i].open) continue; if(currentgame->trade[i].tradeid == tradeid) { return(i); break; } } return(-1); } /* return estate identifier by name of this estate */ gint32 get_estateid_by_estatename(gchar *name) { gint32 i; for(i = 0 ; i < data->number_estates ; i++) { if(! strcmp(currentgame->estate[i].name, name) ) { return(i); break; } } return(-1); } /* build player list in game config phase */ void game_buildplayerlist() { if (!currentgame) { return; } if (global->my_playerid == currentgame->master) { GtkWidget *MenuItem = g_object_get_data(G_OBJECT(global->Menu), "upgrade_spectator"); gtk_widget_destroy(gtk_menu_item_get_submenu(GTK_MENU_ITEM(MenuItem))); GtkWidget *SubMenu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(MenuItem), SubMenu); gtk_widget_set_sensitive(MenuItem, FALSE); player *p; for (p = player_h; p; p = p->next) { if (!p->spectator) continue; if (p->game != currentgame->gameid) continue; GtkWidget *item = gtk_menu_item_new_with_label(p->name); g_object_set_data(G_OBJECT(item), "player", p); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(CallBack_menu_AddPlayer), NULL); gtk_menu_shell_append(GTK_MENU_SHELL(SubMenu), item); gtk_widget_set_sensitive(MenuItem, TRUE); } gtk_widget_show_all(SubMenu); } /* build player list */ if (global->phase == PHASE_GAMECREATE) { GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(currentgame->PlayerList))); GtkTreeIter iter; player *p; gtk_list_store_clear(store); game_sort_playerlist_by_playerid(); for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, PLAYERLIST_COLUMN_NAME, p->name, PLAYERLIST_COLUMN_HOST, p->host, -1); } } } /* return assets of a player, * assets is: money + sale price of houses + unmortgaged value of estates */ gint32 game_get_assets_player(gint32 playerid) { gint32 i, assets; player *p = player_from_id(playerid); if (p == NULL) return 0; /* money */ assets = p->money; /* estates + houses */ for (i = 0; i < data->number_estates; i++) { if (currentgame->estate[i].owner != playerid) continue; /* estates */ if (!currentgame->estate[i].mortgaged) assets += currentgame->estate[i].mortgageprice; /* houses */ if (currentgame->estate[i].houses <= 0) continue; assets += currentgame->estate[i].houses * currentgame->estate[i].sellhouseprice; } return assets; } /* update token position, handle superposed token */ void game_update_tokens() { gint32 i, nb_tokens, x1, y1, x2, y2, xs, ys, xp, yp, k; player *p, *pp; /* === UNJAILED === */ for (i = 0; i < data->number_estates; i++) { /* search number of unjailed tokens on this estate */ for (nb_tokens = 0, p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; if (p->bankrupt) continue; if (p->jailed) continue; if (p->location != i) continue; nb_tokens++; } /* move token */ if (nb_tokens == 0) continue; for (k = 0, xp = -1, yp = -1, pp = NULL, p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; if (p->bankrupt) continue; if (p->jailed) continue; if (p->location != i) continue; x1 = data->estate[p->location].x1token; x2 = data->estate[p->location].x2token; y1 = data->estate[p->location].y1token; y2 = data->estate[p->location].y2token; if(nb_tokens == 1) { eng_pic_set_x(p->token_pic, x1); eng_pic_set_y(p->token_pic, y1); break; } xs = ( ( (x2 - x1) * k) / (nb_tokens -1) ) + x1; if(pp && abs(xs - xp) > (data->pngfile_token_width[pp->tokenid] + 2) ) { if(xs - xp > 0) xs = xp + data->pngfile_token_width[pp->tokenid] + 2; else xs = xp - data->pngfile_token_width[pp->tokenid] - 2; } ys = ( ( (y2 - y1) * k) / (nb_tokens -1) ) + y1; if(pp && abs(ys - yp) > (data->pngfile_token_height[pp->tokenid] + 2) ) { if(ys - yp > 0) ys = yp + data->pngfile_token_height[pp->tokenid] + 2; else ys = yp - data->pngfile_token_height[pp->tokenid] - 2; } eng_pic_set_x(p->token_pic, xs); eng_pic_set_y(p->token_pic, ys); xp = xs; yp = ys; pp = p; k++; } } /* === JAILED === */ for (i = 0; i < data->number_estates; i++) { /* search number of jailed tokens on this estate */ for (nb_tokens = 0, p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; if (p->bankrupt) continue; if (!p->jailed) continue; if (p->location != i) continue; nb_tokens++; } /* move token */ if (nb_tokens == 0) continue; for (k = 0, xp = -1, yp = -1, pp = NULL, p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; if (p->bankrupt) continue; if (!p->jailed) continue; if (p->location != i) continue; x1 = data->estate[p->location].x1jail; x2 = data->estate[p->location].x2jail; y1 = data->estate[p->location].y1jail; y2 = data->estate[p->location].y2jail; if(nb_tokens == 1) { eng_pic_set_x(p->token_pic, x1); eng_pic_set_y(p->token_pic, y1); break; } xs = ( ( (x2 - x1) * k) / (nb_tokens -1) ) + x1; if(pp && abs(xs - xp) > (data->pngfile_token_width[pp->tokenid] + 2) ) { if(xs - xp > 0) xs = xp + data->pngfile_token_width[pp->tokenid] + 2; else xs = xp - data->pngfile_token_width[pp->tokenid] - 2; } ys = ( ( (y2 - y1) * k) / (nb_tokens -1) ) + y1; if(pp && abs(ys - yp) > (data->pngfile_token_height[pp->tokenid] + 2) ) { if(ys - yp > 0) ys = yp + data->pngfile_token_height[pp->tokenid] + 2; else ys = yp - data->pngfile_token_height[pp->tokenid] - 2; } eng_pic_set_x(p->token_pic, xs); eng_pic_set_y(p->token_pic, ys); xp = xs; yp = ys; pp = p; k++; } } update_display(); } /* initiate token movement */ void game_initiate_token_movement() { if (global->phase != PHASE_GAMEPLAY) { return; } if (currentgame->status != GAME_STATUS_RUN) { return; } /* do nothing if token timer is running */ if (currentgame->timeout_token) { return; } game_move_tokens(NULL); } /* animate token movement */ gboolean game_move_tokens(gpointer ptr) { gchar *sendstr; gboolean update = FALSE, more = FALSE; player *p; (void)ptr; for (p = player_h; p; p = p->next) { if (p->spectator) continue; if (p->game != currentgame->gameid) continue; if (p->directmove) { p->location = p->location_to; p->directmove = 0; } else if (p->location != p->location_to) { p->location++; if (p->location >= data->number_estates) { p->location = 0; } if (p->location != p->location_to) { more = TRUE; } } else { continue; } sendstr = g_strdup_printf(".t%d\n", p->location); client_send(global->game_connect, sendstr); g_free(sendstr); update = TRUE; } if (update) { game_update_tokens(); if (more) { if (currentgame->timeout_token == 0) { currentgame->timeout_token = g_timeout_add(config->game_token_animation_speed, game_move_tokens, NULL); } return TRUE; } } currentgame->timeout_token = 0; return FALSE; } void game_free_player(player *p) { player **prevp, *pl; for (prevp = &player_h; (pl = *prevp); prevp = &pl->next) { if (pl != p) { continue; } *prevp = p->next; /* delete a player */ eng_frame_destroy(p->playerlist_token_frame); eng_frame_destroy(p->playerlist_cards_frame); if (p->name) g_free(p->name); if (p->host) g_free(p->host); if (p->image) g_free(p->image); printf("Deleted player: %d\n", p->playerid); g_free(p); return; } } void game_exit(void) { if (global->phase >= PHASE_GAMECREATE) { client_send(global->game_connect, ".gx\n"); } game_delete_cookie(); game_free_pngs(); } gtkatlantic-0.6.1/src/Makefile.am0000644000175000017500000000111212547326462013575 00000000000000## Process this file with automake to produce Makefile.in INCLUDES = $(GTK_CFLAGS) bin_PROGRAMS = gtkatlantic gtkatlantic_SOURCES = \ callback.c \ client.c \ display.c \ eng_frame.c \ eng_list.c \ eng_main.c \ game.c \ interface.c \ load.c \ main.c \ parser.c \ readpng.c \ theme.c \ trade.c \ xmlparse.c noinst_HEADERS = \ callback.h \ client.h \ display.h \ eng_frame.h \ engine.h \ eng_list.h \ eng_main.h \ game.h \ global.h \ interface.h \ load.h \ parser.h \ readpng.h \ theme.h \ trade.h \ xmlparse.h gtkatlantic_LDADD = $(GTK_LIBS) -lpng gtkatlantic-0.6.1/configure0000755000175000017500000156403712554762536012712 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="configure.in" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='LTLIBOBJS LIBOBJS ICON_DIR GTK_LIBS GTK_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock with_icons_path ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR GTK_CFLAGS GTK_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-icons-path=path Complete path where icons will be installed (/usr/share/icons/hicolor) Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path GTK_CFLAGS C compiler flags for GTK, overriding pkg-config GTK_LIBS linker flags for GTK, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version="1.9" ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=gtkatlantic VERSION=0.6.1 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 $as_echo_n "checking for library containing strerror... " >&6; } if ${ac_cv_search_strerror+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_strerror=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_strerror+:} false; then : break fi done if ${ac_cv_search_strerror+:} false; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 $as_echo "$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi CFLAGS=$CFLAGS ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.2' macro_revision='1.3337' ltmain="$ac_aux_dir/ltmain.sh" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 $as_echo "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([A-Za-z]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 $as_echo_n "checking for GTK... " >&6; } if test -n "$GTK_CFLAGS"; then pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 gdk-3.0 libxml-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 gdk-3.0 libxml-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTK_LIBS"; then pkg_cv_GTK_LIBS="$GTK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 gdk-3.0 libxml-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 gdk-3.0 libxml-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>&1` else GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK_PKG_ERRORS" >&5 exit elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } exit else GTK_CFLAGS=$pkg_cv_GTK_CFLAGS GTK_LIBS=$pkg_cv_GTK_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" if test "x$ac_cv_header_png_h" = xyes; then : else as_fn_error $? "Please install libpng >= 1.0.12" "$LINENO" 5 fi $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 $as_echo_n "checking for inet_aton in -lc... " >&6; } if ${ac_cv_lib_c_inet_aton+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char inet_aton (); int main () { return inet_aton (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_c_inet_aton=yes else ac_cv_lib_c_inet_aton=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 $as_echo "$ac_cv_lib_c_inet_aton" >&6; } if test "x$ac_cv_lib_c_inet_aton" = xyes; then : $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 $as_echo_n "checking for inet_aton in -lresolv... " >&6; } if ${ac_cv_lib_resolv_inet_aton+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char inet_aton (); int main () { return inet_aton (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_resolv_inet_aton=yes else ac_cv_lib_resolv_inet_aton=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h fi cat >>confdefs.h <<_ACEOF #define DEBUG 0 _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE "${PACKAGE}" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "${VERSION}" _ACEOF # Expand datadir if test "x${datadir}" = 'x${datarootdir}'; then if test "x${datarootdir}" = 'x${prefix}/share'; then if test "x${prefix}" = 'xNONE'; then datadir="${ac_default_prefix}/share" else datadir="${prefix}/share" fi else datadir="${datarootdir}" fi fi cat >>confdefs.h <<_ACEOF #define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}" _ACEOF # Check whether --with-icons-path was given. if test "${with_icons_path+set}" = set; then : withval=$with_icons_path; ICON_DIR=$withval else ICON_DIR="${datadir}/icons/hicolor" fi cat >>confdefs.h <<_ACEOF #define PACKAGE_ICON_DIR "${ICON_DIR}" _ACEOF if test "x$GCC" = "xyes"; then \ CFLAGS+=" -Wall -Wextra -ggdb"; \ fi ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile data/themes/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; "data/themes/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in "$ac_file" | "$ac_file":* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and in which our libraries should be installed. lt_sysroot=$lt_sysroot # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi gtkatlantic-0.6.1/install-sh0000755000175000017500000002202112523470720012747 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-05-14.22 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; *) # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. test -n "$dir_arg$dstarg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` shift IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $cpprog "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit 1; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit 0 } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: gtkatlantic-0.6.1/config.guess0000755000175000017500000012355012523470721013275 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2014 Free Software Foundation, Inc. timestamp='2014-03-23' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches with a ChangeLog entry to config-patches@gnu.org. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; *:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; openrisc*:Linux:*:*) echo or1k-unknown-linux-${LIBC} exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gtkatlantic-0.6.1/README0000644000175000017500000000102212554757461011637 00000000000000================================================================================ GtkAtlantic - Sylvain Rochet Version 0.6.1 ================================================================================ This monopd client can only play Monopoly® game, support for other games type is expected to happen in the future ;-) For more information, please read the included help within the game. This game is (probably) not perfect, so comments are welcome ! -- Sylvain Rochet gtkatlantic-0.6.1/NEWS0000644000175000017500000001222712554757606011470 000000000000002015-07-25 Sylvain Rochet * improved icons handling in autoconf/automake * fixed -Wunused-result warnings * gtkatlantic: release 0.6.1 2015-07-12 Sylvain Rochet * added IPv6 support * removed support of the legacy protocol * various changes to cope better with the updated protocol * improved auction UI * removed deprecated GTK 3.16 stuff (like gtk_alignment_new() and gtk_widget_reparent()) * reworked game lounge UI * added full support for spectators players * updated to support monopd 0.10.0 protocol * reworked internal data structures, getting rid of most ugly static tables of structs * added new icons set * gtkatlantic: release 0.6.0 2014-03-22 Sylvain Rochet * fully ported to GTK3, without using any deprecated GTK3 widget * full support of monopd 0.9.5 protocol * fixed a lot of bugs while reworking things for GTK3 * fixed board display glitchs * reworked graphic engine to support cairo composition and cairo buffers * reworked almost everything, in short * gtkatlantic: release 0.5.0 2014-01-13 Sylvain Rochet * WIN32 port * fixed some configure/Makefile problems * fixed all -Wall and -Wextra compiler warnings with gcc 4.8.2 * gtkatlantic: release 0.4.4 2010-04-18 Sylvain Rochet * fixed a bug when deleting players * fixed a bug when multiple games are running on the same server * fixed all warnings with gcc 4.4.3 * reworked much things * gtkatlantic: release 0.4.3 2006-03-02 Sylvain Rochet * fix some configure/Makefile problems * gtkatlantic: release 0.4.2 2004-07-21 Sylvain Rochet * fix some configure/Makefile problems * gtkatlantic: release 0.4.1 2004-06-25 Sylvain Rochet * fix player list bug * gtkatlantic: release 0.4.0 2004-02-15 Xavier Amado * Removed Themes from the menu since it's incomplete. 2004-02-15 Xavier Amado * Gtk2 Port fully checked in. 2004-02-15 Xavier Amado * Checked in the first set of changes for the GTK2 port. 2003-12-25 Sylvain Rochet * fix a bug in auction * gtkatlantic: release 0.3.2 2003-11-07 Sylvain Rochet * interface is now widely better when resized * interface for auctions has been improved by buttons with relative value +1 +10 +50 +100 * client can now ask to ping other client by !ping command * gtkatlantic: release 0.3.1 2003-10-30 Sylvain Rochet * new metaserver, now templates and open games lists are hosted on metaserver * window can now be resizable * gtkatlantic: release 0.3.0 2003-08-15 Sylvain Rochet * added a /me command * gtkatlantic: release 0.2.13 2003-07-26 Sylvain Rochet * fix "End Turn" button bug yet :) * fix a little bug in the parser * gtkatlantic: release 0.2.12 2003-07-25 Sylvain Rochet * fix player cards display * fix player list * fix "End Turn" button bug * gtkatlantic: release 0.2.11 2003-07-04 Sylvain Rochet * fix some protocol changements * gtkatlantic: release 0.2.10 2003-06-18 Sylvain Rochet * updated scripts for autoconf 2.57 * updated scripts for automake 1.4-p4 * updated code for gcc 3.3 * gtkatlantic: release 0.2.9 2003-05-15 Sylvain Rochet * fix for all known bugs * added popup menu on players list * begun graphical theme support * improve interface a bit * gtkatlantic: release 0.2.8 2003-02-14 Sylvain Rochet * estate tree * faster network functions * fix lot of little bugs * still better token position * new interface options * add help * gtkatlantic: release 0.2.7 2003-02-08 Sylvain Rochet * animate tokens * better token display * fix some bugs * better interface * and more... * gtkatlantic: release 0.2.6 2003-02-01 Sylvain Rochet * fix bugs in trades * remove some mistakes * improve lot of things * gtkatlantic: release 0.2.5 2003-01-25 Sylvain Rochet * fix bug when cookie was invalid * fix a huge bug in get games list * gtkatlantic: release 0.2.4 2003-01-24 Sylvain Rochet * implement trades * add How to Play * finish implement reconnection after crash * gtkatlantic: release 0.2.3 2003-01-20 Sylvain Rochet * remove lot of memory leaks (all I think) * client use metaserver to check last release * gtkatlantic: release 0.2.2 2003-01-18 Sylvain Rochet * use another better metaserver * fix bug when player have not fonts * start cookie support to reconnect after crash * gtkatlantic: release 0.2.1 2003-01-09 Sylvain Rochet * support new features of monopd 0.7.0 * better display of player log * fix bug when name of estate is too long to be displayed * remove all warnings * gtkatlantic: release 0.2.0 2003-01-06 Sylvain Rochet * added game configuration * gtkatlantic: release 0.1.5 2003-01-05 Sylvain Rochet * implement jail * implement cards (community chest & chance) * implement tax (10% or 200) * improve interface * fix some bugs * gtkatlantic: release 0.1.4 2003-01-04 Sylvain Rochet * implement mortgages * gtkatlantic: release 0.1.3 2003-01-03 Sylvain Rochet * implement build/sell houses * gtkatlantic: release 0.1.2 2003-01-02 Sylvain Rochet * implement auctions * gtkatlantic: release 0.1.1 2003-01-01 Sylvain Rochet * gtkatlantic: initial version. * gtkatlantic: release 0.1.0 gtkatlantic-0.6.1/config.sub0000755000175000017500000010577512523470721012751 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2014 Free Software Foundation, Inc. timestamp='2014-09-11' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; moxiebox) basic_machine=moxie-unknown os=-moxiebox ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gtkatlantic-0.6.1/data/0000755000175000017500000000000012554762544011753 500000000000000gtkatlantic-0.6.1/data/board.png0000644000175000017500000023344012501106134013451 00000000000000‰PNG  IHDR¸¸¸¨eä pHYs  ­#½utIMEÓ7¾Å IDATxÚì½{´myUßùßZ{Ÿ}î­õ@4ŠÕ_ )±£ icƒÑnDI¢F‰£BLwh;Æ`·#116͈¯Ð Ò#òˆQŒcQ0T ”¢  à± Šû8gï½~¿ùè?~kŸ{o= ÊS%Ž{ÏõGÝ}öÞk¯Ïú­9ço>é~i#"¢…0 3‹ˆ«N-Zs%Þߣ"°Št×A¶[«nÄ:Ž Fkˆ3®>õäØ[aÔŸjB«32@GÔŠ³‡›Z T¦ŠÕjÁ‰ÃÃÊlW_³·ÚƒYnÏ#Uh ›-6a\‚ïz*øþ_¼;sXŒ+&xÃr‰°twUU‚@„iJ™ž™¬"µ¶Í¶mCš¥ªž:¥û+˜áÌ™8þü¢”ýý½È888Ëð¿>c àå¿lc‘Ì(Lã‚–˜á†ÖðÑ3ŽŒ1Ñq~Ë“ ÀÿõkyÂð„á Çœá 7,ˆp指!‡g23hw¸ $TCkÈE ŠËþ"d ’a†æ ‹Qÿk$2Á af"ú‹L`ka"RUfÍ_Þߣ£”""îéÜÁLªš™fó;3!BÌýìIDD`f""2³ífPÅ8rÿ¸{f¦ì~6€aÌÌLw·3¸£ƒ*¥¨jó1öã„á ÆÃZá~\†÷Œ@ÆÑ@kÞßQ«O“LîÞbfšy’Ïœ D ‚Y¶"¨Jv¸€;ÜA„RTUû‰: U%¢i𦭡”QDp.ÃwÀ¸Ø+¥˜Ù¶!fÉ UDädÍr¾ª`Fîî?3˜¹ßZ¸Õíf=M`ÆÞˆ½q`fˆ´-ÐåØoUF„Y´÷ùÛŽÈfæ1öã„á ÆÃíaÇeÈGÀ-Huó³yÍ­¹e&„I "r¤»Ûî#Q’AŒæÑ+‰p²†Vg…C4-1@ðtÛýð$"‰ánÍ­<Ñ?fæðY + J À€ˆP–QU‰lš¦5Ø_a”A© å Ûbf" ¤EX"Ð÷Ļ㘠®ë„á Æ=Ã3?&CQ ÏHO‘nSY€,é-’œˆ8fçfæÖÊ–µ¨ÂE’HßVÄ‘'ÏÌÖ,ŠD΀"à† "*¹ÝÚ˜BB$ þ+;åÌZk‡ÛµÙ0 µz¥ÈijÌE•2G÷fæªbÖjŠàˆpg"¨(莌ÌÜlm(ºZa±(Ûílpiòiš/ˆ29"ÜØH°B‰DžÇb¸S\' Ož0|èŠP„M“‡!‹‚ áè.ÕD÷ãfÖÉš„I¸¶¶iŸí^¸U¯suŸ¶V xÊfÛ¶ÖA`æÌl­ÕZÍ fé*ÆÕ –É›­Mͺ± FÌNbwøÔæ9µð@I±ðÌÜNmª`E 3ËDs$A"’™f–",Ç®ct(æm VK,†é&;Êf=@³VO‹lîÍaðìŸV‘c2ÄÎõrÂð„á ǜ᠅ò¸ ™DpdD„Ã{ü+‘AÕÝ=AH’fh‘ˆÄI–aýlZ« Db]}[£e·]9‰,Ñ,, @$Ìá •Ú¬6œ:w$Û9Q¬e&¸€TZ´ nÍÍB*³÷—n¹óûÎÜÌ$Â0€î."¥”L7÷Ö0 (BDGNô6Õ‹¢³3;bŽôõ³‡áÎrÂð„á ÇžaQ!ä1²* ”RܽµÖßÝ:”ÚüÜÁfÚBe=ùà°õ{GÕ‘›Í´^·ÉPcn¶ípB €4RjC“G° ËeŠœßÔƒ­‘À‚¦†©Á’®»à)›É×[ŸH1,i¹"ÚÖ $ó¢qjÊHW]uÕvšt7Û}xr`¹Ò@n¦ =<—`E„¸ó…7ì-èÔjAéÞ¦"B‰Ãó!„q€ [«áv_Ûn«»3ˆšùz³]oêf‹2€ç_„c2œµë Æ' †‹÷Ã1r—Ùª¢ZËjs¹ê’©å¶"LmŽÚ`]/°°ŒAÜSE‘¼µÜLa¨Zòùµ¯'˜s¤Xpslk˜“\P=7--a‰É±µŒ$Š .à‰ ƒµíÀäî9f% ÷ $Õ (:ìîGyRD4»{<{Š1;o‘@€’Ðó°ÆR„rÞ†(³7‹8rvõ¼3³îf‘‹ôÞ_˜á¼@Ož01°@+‹ Æu”s[ÐWrHD‰FQh§ñÍõvs°¶æ¢ÞdoÅb¨m›)zæ¼×ÇÒ1Å\Â…aTâô"p”Ç…6ŸÊ(ãHqTk†6a1âš«Ër1º»{Xeh/=‡»pL†G~¨†' O>ä =‘AÇdÈAÍt³Œ@)´XŒî­y5‹ž€¶Z &Z¢š¡·W¢Lå¹°œˆ@$ZÂ)`=u³µókT+X‡M«wÞ}þì!¸ˆ‘œ[ûáPÆAÊ`µz„ÀÀ®?Tˆðlsd" EzÕgD€)™s¬­·@眊5wÒDt[}—ôI¿<ŠD&ïTº2I h1<0M8&Ãù\' Ož0|vå1r­!‚a`­µŒ«Õjîpiïû¤Gk­Wü ÞÅ3‰$’¢½åÑQ%æÜ½Nª’ˆÍfspж[dâ(ËqqþüùƒƒÍÞ{ËÅv»Y¯‘ÞÛÏq­u½Þ¶fsñü®5“2¥ùd-¬iÈÄ0Ð c¼™§aç¿ \zÑÌ.AÑ«£XE>·Õã [w뎕Rz‰|ö¯ÕDbªqL†»N*' Ož0|èËqòf³é­1E$á½AÛrDQe2A J(" ˜À # É!beÒÞéÒsO7éÙO4—Óo·ØlpíոŸ?{.Ë%GĹsÛZ¡„±Ì}4»ƒæbí:.D 1,¼†îɉR0 Ú?Ew¤Cv=ŠwÚ’çÞͳ”Owïgé]›<¬{‹w¥cAé)„¢” õ,„¾Â@“á¼Ož0!èQ*‘L¸ÇÎ Î9ª™%"à€#=(çyíè2àÝíÍJA0ŒÐÂÌ Î0 ¡Œ¢Çe8û¡Nž0p†sªÄ•Ã0ø‘Ÿü_ ÀpÛ¿½ À6T£âã׎¸a¼îÚ®=û„o¿ÒÞÿ:D⿜ÿßâ“‹¿ÿ/±wÕ•¾ûàÆËðòPEˆˆ³'mERÒ ”jE(B%Ó882ˆ˜ …ö—‚,Û©!-cH`1Â…¥#´ïLJ‚“qª0d€:\hh­MfQCƒ lO/7‡ž6 …™9ÂÓ,:»gîfz˜¡”&³Kižî‘iÈ’ ˆ ›2´ˆ(Á!ƒ˜‹" xh­µûbTA¬fn–‹åÑ "0ƒŒÐÌÖÂÃI•uVUcN\øÙ/â[V«_nܼõ‹÷o=<|îoæb8'_1 ‰ÎÜùe`œ;k7Kx nÎû—oùÑ7»ûGêG>:Ýín§í´œ0¼t®âõ?ÂüCúŠoâ'>× Î|u‹å{ zÇ[ñs?IãR¿úE­ŒWÜ:478³òy–ƒî[ªˆ8‰Ë ‚Ca=á ™™}°P¯r-‘( 3÷°Ú¦a±Âb S†›IŠ cY$2(ŒYK(  ¨¶7J¡¨.K\»¯k,×ÓzX;j¶L". ðQ™TÁ$!"2„efz#™€"¨Ž„'„ÌA@" @ („B"v9o@…5#È÷p[B„ÃÍ£"Ç"$’@"è?}aùà¦Ããû&à¦ÃÛ·>uÿš7|\†»R¸â*þä÷¸€@FV„ÇAz¯—íOýZÏȆøÃßüã½û' ï½︕ßý.¹é¹ø±ÿq#ùå/Åߎ—ÿ=€pç‡ð´@x;½å§õé_Å­ÃH$ò<Ëè~ä¡ö¤qpç‚§UW7CÌK-4Y¶“eT«é‹q, ,uÚFs0ŠÀj9nkuw!U R ÀD†qTö)Si ÎÑÚ¡pˆ$3ÊDÉD¢$;¸îÕQ¡Ä™„` ;ú$¹ˆ]»2ÃÂ,Yµ0"!Ä}êù00ÔjÝÎï¹øˆÈ‹l›  !”…Ò‘Z„ˆÈ[V«‹¥d·(oêÖåáá÷}=çöüØ gíZ§+–aD0ëý­Ã»¦gLÛ mýü§ÿøÆÏúœÏú¢Ïú®†3%ˆ1mðþw@O|"ðž;`ïÚþüãü]"tÅ­Cò˜ëp¶«‘HP†Á»„GQ0ÏõóâÔe?3F °JD4 ¤· {{PFTvo* wì­€äMBÔGg(co1ab§D†°,°Õž!A©*¢æî˜U»¨œ»ª ¤K A”Ü•æ&ïɃ“¦§G‹Àb¡”hV3î%L™Ò\ #有£üµðy…¡'SÔ ‹Kc ¿õððfাã^­n=<¼eµÂáa—•·¬Veø8 wOÃåÌð5ÿêï~ çãóÿÉóÿèÏþÆÇ]‡gÏœ}ç;ß¹:½zÊÉðc¬Ã/y–ÿùì~F¿íûñè'àŽÛâgþž>š?ü 4 xçíø…×âÔµxþ?Bð·E&ùx–-#îGªö’xB€2‰LXd.Ìl=Ÿ‘`á]½eŸé#T˜‚‘k“Ê¨Š S„‹ˆ2r,T…ƒÉ…t®÷d¬F‰ðD¨p?1ööÛ5e( Y 5ÏdQj6kXo9ç$‰B (Á ;H Va²”>DX ˜Sf‚U¡5²´H@™©sÃú‹ªîÁ P/"w2Od.FbBþûߪß÷¹Ã-«Õ­‡‡Ï}óùçø$Œ·Þr]—•=âc3o[¨àêSeµ¿Œ´Ú@LÂãXf»—¡ Ê\ŒÇnö›ykž`Œ ¬–{…˜JboÐeY*+%eÖxã8ºûá!¦†aň°æ­-F¬F’ ÉØÔ¦$ Q‹¬† {ÅÌDdçBu-Ф¾méà¡ß'3bU(Á*ØU%×ç>ê5¨O"ñí×þz~Òm_÷[yÄðÖÝfüÖÃÃËp¾®Ëšáw¾ì;?ã¯}Æ7Þø„'7Ovw3Qí½?‰Y»‘Ìþä#MIdÍ3ŠP)a̪…ÇÐâþÄ“ø–Õê{v›ñÂp~(/c†_üå/yïï¼÷¿òŽÇ=îqëõúéOúïÿþï?ó™Ï|ûÛßàöŸ¹ý†OùÀ=ÌÌ´éÔ„;îÀµo{EY,¼ém¿ýà ¿ã¸Fàû_‚|¾éF]ãçÿ¹¼åg—_õM—¬ÃpüÊ›ðé_ŠOûb¸áí?‰Ÿýýk^(Wò:L„Àƒ~–/–‡  7[ÏD‚{¤Ìèmãú|\ÙP«»7€"ƒYz?ÌÔݘGw¯UT1 ~þ_À5ŸŠaOî±óD¸úÑø”¿ŽOùë Áµ7ä§>Wò:œI>˜gùÞòPÑSâ,€€H("3Ì­ìüµcAŽˆÆ­5¢ôðD¦k PÁP¤5Ïp«éÃP”LŒˆ"t­‘@ÒΖÞ5Ÿïu6ˆ$3#îlV¼ÚD’ÛŠ\w5«µ/´¸cš(}ž.1hV ó$6Êùgà¨=2QRew]²DOEÏeM€Ì %"ÂH˜;C7ø‘Õª{'¿ñ÷Û‘ÿ1î:Ä\Î +ÿüGþü#V«Õ#ùȾçzßûÞ×ßð©Ÿú©¥çÎûð‡?ü±埞ûÓý¥WëWÐüÑ—^Q ûíøo¾ïy3÷¼á¥8øsø„oûò@ $PZ€_ù÷óE…ãð.zñ×ôB¸á“ñØÏÄão’Ç|Nö¯ˆu¸3Ìù?Ë÷–‡:ŒsH(Rgz¶ÖÀÄÌä, #Ê$,Ù«13Ó=ͨwâ®Õˆ(3ÌÜ]TçQ‘É\¿ à’Y Ì f€¢HGD°Ê€G^”*WÝ,¹ IDATAÈdwl#2û/”Öš»–ÒõØ."FäN@ª*Q¶’Ä0"é·sçû€é¢KUSïŸIH CY´fV=ÃÈxp”Syëááó뜻?†»ÛË™á÷½àûÞüKo^­V7ß|ó7~ã7Øl6/{ÙË>øÁ>êQúîïþî믿Àí·ßþªW½ê®»îº‡p¼þúë‡a8þü¹sçˆp°ýоê‡^üÍüî÷Ýrå0¼óC¸ö1xë+ð¤¯Â»_óCGaê ÇÙâ#ïÅã¿dþçÁ‡ñ«?†¿ñ’ _up'þü]øõ•é®å÷Âøügæµà³|oy¨˜£ÿߨ,Âæœ„‹0¦„*Šb(4o#¨Ï؆VDHf©œ¥ˆ»7«jËÅZ0MÂà¥wIJÊÌ@ôîÄ,ŒˆžÛ¹7O”c¨*€ë®ì)™©ï2qpã‹…d¦»¹«Ʊ´fÌÈt3ˆÈ0hDÔZG(˜¸·)±ÙMž;'ÇÅŠœà>©O8ÊÌLeQ,Ô‚­ÖÈÈæxpëáá·7>ú÷êT·ánËs93ìÇ3žñŒ'?ùÉ/xÁ ®»î:¯|å+¿þë¿þ¯xÅ‹_üâ»ï¾{½^?íiO{éK_úâ¿ø’ïk¯}ÉK^òØÇ>öMozÓk_ûÚL¬?²þµøÕö¿™Þõ‡_rå0$Æuǽ7~&§îÃÜ^|nxâ…‹}üÍï]ÜTü®{<>ûYø³ßå×|-NÙ“žWÂ:ì:å>Ë÷–‡ÖZ­ṎÐ]¤"’CFìÆ–‹vwibg™W÷ÜÅ|¨ïç#Ì̺üF:#2#™ Ê>®¨Wev¨ÜÛÆq2C½[=3éýËË€qÁ;¸±käÉ|î`qD)ÚÃsDÎô®Oܽ»Z˜Ù̉DX…ÑgqԵΖ{ëçîËÀ3#""š»" â>eo­½a÷©·®VŠáΉ~93Ë÷–‡ºÞz «LÓö`§d있ZkaNàÁ©S{Û»Øùq™)3(W_5œ=»µ6©*e¬šªîíoÄL@î†ÿd¿D0ËLGDÊ4µÖ¬¨*DC‰7gšJfwÎcáHdäv;7¯'¢ívŠJ¡Ìœ¦©;§‰¨5D@e8XO‹¡ ƒˆôeÄè9TÖo0wév´5ˆ+„¸µ0÷ jéÍyoÆ˃ƒƒÜ–2”Wßá_w“,7þöÁ‘åÿ@ë2fø]ÿêg¾Ãñ»·þŸßó÷¾§Öúéÿt§NŸú©wœýºÏ½æÜ¹s/ùËûX(ùGÞ|ç©S#€Ãõšˆ¾óéùȇ?àõ¯ýó¾áyÿî?¾Ûð5_vèÉ™‰ð+„a?Îý>é³q×ûqþÎû€¿ýüµgâšGÀtˆß{Ó…m8€åièâÂ?ó…xÇëè×ß„›Ÿ{93œçšáA<Ë÷–‡êî=ªµ Õ÷ÊÊÁÌ€ÌYúr7û…QTdf»?óÐUÊ0 ]ä§°Šù2rö#HfÌSÓŽf“ytƒŸû¼Ž")‘${2<ƒ:jÐe™‚ìXÄZ˜2 T‹Y‹èNgéê.“zµ<ÌŠÈæàOHÏPZI ¢@QÎwÒ2¤·Æ#QÏfs'íÒ HõßxûZD,ËmË–¡;%žø”ýÈë¯~áßüÖ.%_{ÇG3ãÇßv×ÿô¬Oÿ¾Àßþæç?ãïÿßððæ"(,föC¿øÞù‚§Þñwüƒôí_ñ­?á B-`æ¾B.–ØœÁùã±§ð§¿…÷Þ†G=Z€ì1Š8{ñ’žøßιAÓnn†EÞøèÜbk|ݧ㋿{×îÜÁソø9—ó: 8e:ܳ|y¨ÍBKЉxæTs1P)–‘™€{¤ÆœÜD-n晡J, sŽÓ4Qx)CQ¤ƒALÁÜû±³Ã#" éUSÞB„‡"™H¯D*Ê"½Pß,#“#´ Gp)Ï>þÌjæµêr‰R1íªCfësݬ”™!L-%2‚ƒ‹‚™ˆîêåK»6€æAÌAˆD€ä xFÄT¹' Ãpþ|ë ¿éó÷¼æñ ù¡.c†¯ùŽO›§‚‚¿ñ+݃˜¯þ¶Çõ]ÑÓžHOûŒGÀŸÝöK/ûl$€yZkßå}îô¹_ùè3¿ñº×~ûO£'¦î¾íÉ/ý+„áÍÏÄŸþ¾ðð;?ƒ/ü&|ðÖüÞŸÈÕ>÷Vä›Mþá»Úþñáÿ" fúºÑ-ÏF¦]s£m×8w—üÜ~ñð•/CYÀ§|.îü¢ŒË˜a$e¤çƒ{–ï!9"Ì"HvËZ›YïG¤É wïƒÀaxf¿³•zã>#Rdw.‡™÷´P0’Ä‚j‹©¥9ˆ„<` X\Øæ4÷ɲٜ]îifµÖõ:kã(᫟DÏ~pµzõgóƒb¸+Q¸œΩýÑï1JìŠ$’0×O$²÷ÂÙuzI¨w»Á.°9çÍäWÜÂð«^€÷ü"†=Üüwñ®ÿ‚/û[fvÉ:|Ä'ù×ýÃ8{îücºóOèÌ]øŠ¯Å'?×?J 2.è†Gû·þ/íÚ=œùãÝU,æÐðeÌГ<ܳ|oy¨`µ@´Q&µêMP DT8[š;ÜŒR”‚ÈžÊfAýZ¨+ܺ ½P§‹ “høÑ§ò^˜hÞ«£æ&¤@D<-îݸ€¿óyYG€<Ük¬@® ‹ðLÔjDECAg8×äÞ ´ö ös}Ëçñ_Úu}â(×.ŽÛf¡GG9ƒÔ‡þu™ºK΋³;.zÃ,$U¯†z<¾ý{é‡^ 7<÷[ý)ÏŠ¸×:\œÆÿþšLD˜b±¿Œ¸d†úSž!¿ù6¾þ ;¬ŒOCU6÷HG¯yLÊ·4ƒH/ïÑŒÞo\’éîÙË~ FE œªA $Áéð%„‘Džô žå{ËC],†Z­µ&"ÌêÞZõª¢ŒL ’ˆ‡³ %ŠÀuKeçGG¯ýTÍðžB(*„Øåǃ dêQ;R"ˆf©JcQ²¹SUN¨G¸73Á_úA`ÏèÜ@!™Ôµh÷<2£3ì¹Aw·¬VŠ!.ë£3|öý‘02á ­¥õyÌ@)²\òb;ïB­Ö=R ¸·AËrO”áŽÞ¤‹Zx,8°mØn1Mõ a(ÐÏ{:~üW;C6Óû\‡$MEx¸ßg™0{Ìçý/q)å°OFŒHPI˜À´Ý™¢ 3Äù$€»ß€Þ%ž”ž -莈pDº$A™ &ä–ïCîïãÌiÍDT¥ÛÒhµÛäs%P„‡³³³<'Ž*¹÷h{Šˆ{2S)%3[k’´(%Cæþê4k Ìêžó´Û"fÙZc.Â܀@÷¡ªT¢mííÂþ¿üƒ?ÕÖSL»—pšjñF­¡m |d#k95ÔFmBkT+5#kâÆÞصF­R«dw¯Skd•çíê¾@E§íVPí5O=+ ¨Õ™"è ŸùÖÍß¾yù=À5¿|öA1ì×õŸÿÙO* nâF­Åv“Ó¶dŒÔ*Ye7qoT+j¿äþbckh•ZUoâFµ±5òÆÖÈúõN_×_Y†áuØþ—wÿd)6a#´ð r[4Æ!•¨ö? 7B¥l@#ôS*£ª4a£lB¹5¢ÆhDSc²~¶·þÉOµ6eLÌ^Ä9j‘FhÀv(>ŽÆÔ"e#š²Œ© scîßY •©]x¨2Õ‹Ïõ3¼4»Ãø‰a(BÌLÔ­FddQÉÄ4Hö÷©DÀ¬UÂŒpv $G@ÊìÎqOó°àT °÷ˆ$k˜Çc8Ž¡R™âÍͲo‰“8 Id MAôí:‚P„¡™ð¾Ñfæˆ`U¸K­53•Ä™ó45%d*žY ,H£æ/¥ xçŽ%0AjBî»F ì¾+ “ xg€Áïw5}°FÌ3ƒ.Úóå¼Ç;j’š—ôêdDfr‡[6 wGdÀ¬eXìÍ Ÿ}»½w1<(†»b«dâ£úY0{&z/|&¢ÞƒÔýAŒä]óë UZ9opéã›(eþÅÖáCº˜arØÌ¨oi.b˜»¬ä#†‰Ü1¼4ñ¾Ó‰:äîAePÂ=úô•þ%™AsLwö#1¼àeÈÙ {OvÃ{JÂ'’!SŽ˜L°LrG/óÅ~ÙuÅõœýÕ’”™äÊ®ªÜ2ÒÒ2„ ° t @ѧ˜!o7XíáÔj´º]oj)2U?8Äv‚;"ÕŒ›QíYÓc©8Õ2H2U7R!ésÍeµÜ_ CŸöK™aóóþ‹¡);SAE KFl6X­àä›V-{M”Rö÷W‚²›H‡QX˜) bîõF¢B„ÖÒcnG¼k²”‘éÈØúï¾ÒLì­úݼDÌxb—a¹ÝV³ •üe\Z¤§T£s8&Ã]B,Y81ÓœÇÊCU4cößdæGºmDÙ…]_Ä Dô{]Ö…KÕÀ;†L\î‡aÿ‰}¼ý½öÙRIyÉ@†K¯«Üø/†ý|ôK‚.1̇Ÿ¡ÝâüD1\¬."ä3WCÃbdÁáaLË=€“„ 0ää¾ «€qïj!E9Õ8ÜÄzƒ$d’…zèÔ°0µã2Ô¾_ÖÂR ^¡)sf{W )‘Ù –+HŸ“Ë-I€»8õm¾ƒ{“¥ä¹7„8ÈÓ…‹"µº¸[$Ø"U$‡Á‡^0§hõ1ç³ÓÑ•Bö|üKdÆlÝÐ…j†yîú,åEšû(ZpA—_t_#À,DÖóÔ˜˜ˆ²·C!Ñ ‘áNÇax”*˜+éH%vvÏS_šŒD0]×æÜž€vD÷¨Ð¸G«Ç˘ᜋqTÍÖŸÚný.bØ]Ä ìR=ç¸Cº?†A~qÌÌ0‰‹ûõ^yQß¹K,ȼ8’‘‰þP3ÌK›íð'ŽaXÌ ˆL‹«ˆ23Â#ؽ?ûÜítÏô dP»,NfŠðÌ瓵î(Á4€ŽÇPk­ã8–Â¥”Z­5W‘R¨ßÎÞó‚“z(=#b9ô›­Ä8 ÁE$p‹†éOJ*BÁêîéÐIp—aŠÉÍ®¢¢÷0caîsØHJh \fˆÞkœiîRBèFd ßc:Š’îRR™yôÓn7t¤Êïq˜ADnîNÂÌÜ€ªFφ0«5Ãpvls×Íѯ©ÍO13,‘à^ŒE æD¯ÉØÉÉÌ‹ÖdÞç¶çre¨<÷~ID g¥te“H÷̺ ÑÜ‘&‘ÉÉsQv±ƒÇ!eÜÃèXˆ0;0vg†É=û©ß¹™aîdg>l üí7âwn÷_pË'Œ¡XzÊ$™9çn;Ÿ™]IQŽ„g· 2"Ò’’„{DHU{¢¥»o·¥0ÃÌ¢0ŠHƱjkmÆRPJiÍÝ]XJÁv{´½šuBfšÅfc!RbFZºƒJK÷@þÿì½]nd[Ò¶VDìs2ɺ÷6ô ß Ä6à7z°G#2üdMÁ€B/Ö äq`}Ý·ŠÌ<{Çö9IÖ½¬¶€kÀhöY`w«I¹™¹2vÄŠµÒ ´¶GgTÖ¸^i‚m›í±†Ö…sï™.‹©` ĈÑ}]ºGMïb™?Ì›ãˆL'?:u|{%¯¬ŠÌv\mj¯xêÞõ˜ŽÞÞ|$üæW9F->öL…6wø#0EüsûžáþUÙ_­3P©o¯*ªBIL ; ¡P˜r4 ß½îÜ÷®ºü­ÜäóžáÌ­ª 0…Fae–)DP±ó‘-²Úþ;Cü«g¨2=eå1yc…¹äÏœ]¶=#ß"ê÷UÖ,Úûïý{†ÿíÿˆÿæ¨øåºÌ3Œüÿç ÷\oƒ»v}çñ3ÿ¹iÁ»®:Õ—Ç«r”Óœ/çfp—1†»‹Ìb "â™åâ¡DTænlñ&1%KÓÍ„ˆÌKÄý~¨}$ xt ®«.&Âb+pX³Ò·ÎÄjXMé[•c54ÅbÒ„R`ÖŒ´'é‡r$*#Â#x3ÍŠwÏÒý)[<”É@壳ü6웯Ùó£ëM]ûn R˜ ¸{Õ›n|žÆïœòžáÞ741fz{Ux<à*=PPBE•Q3ntöÂåàGûgÿ)ñ˜üîIþIϰýà ùî åû3”œáìf¼ýç£3Ìã ÷É~1%j6‹÷3Ä»3ÄGgÈïϰ~göYÏ0Êgš—èÛã0gß¶d&=„ïÕ«TEMHVÅ\t‰˜›–sQ¦³ä¶m>/õͦÇ=þàÊ”øvå¦ÊÙo˜§9­Ùro˜ˆDadÌüFUš¨‰¶†¦¶?Õk¾àìòÌc—ûì½Qûž¹é²,änÚA™ÍÓ™ÃÌܶèýûÞ*" 5¶Öærû²r¶w3‘q$ò@Qž÷>KV˜™°*Ñ MÍD…U‘µ[«SD¶û}»A€µ)ï#hŠu1SM9•Ø‹™§VÂûèÓ.ß™¼Gº§R¸›Äóèõ¼¿`P-õúî‘Èwì·×¾w½gU÷"`&3·(›/əð 'T`¢J9æÌ3™$Ã=T@Íp÷)$Ù•ÿ‡KÊGªŒúQþ'>C=ÎpÆò£3än²p¼ííØ7§™÷Jªwê÷’ïΰŽ3ÄïÎðxÁƒ|†xG+ïWõ¾\ÿÜg(2bt‰PÕÇ>ó4ÞÏ´¶_«$ŠžðB4Ð(M ¸õÛëI@á‰îùÏ𱌼Ká«v)üåwd s®æÎß0Œ(‡š*TÅ=Æ–Ë"–L‘ùïÏ_†T[¿ßÈm]W3°Ï~ü,Œ>쳄*4´æ»¡á–"ð|ÿ$OF jwv|{ƾé*ê]ûXˆ|Ÿžñ[æx|VýN¿Æˆ„Qäm%v¾XªÊ.™£Ì?p†û5ij °·§Ñ7©húh! R;·úŽ|üÕ‡$ùÙÏÐ@0k1¿uD36g˜AöÝñ]J5ë£*|ß7äw}µß÷ØÈŒ ¤XAðþ–½o¯¿;ÃÇ—”Ùñýxæïî •2kÐï–UAÚ³Éï³Õk„)šJG‘ÇõnÍE¨Ê$Üé)y½^.–ð ÷íù9›fÂfXÖéÉQ$çnµ Øzäè@¡5ܶ­ö^fã`þx÷;T„j‘*ÖË"ª÷ÍsŸÇÃZÓfž±=ç(!^ØF\×+D¿½ä8.àË*fÍ#<ÒEdÞ»‹ 5È(€‘ñæ5E‘³7LJlíÝ8â1n|{˜þùë­ŽÅ€ÖhÖ21FÆþ•©Fkô †½ ò¸kç|ywIŠ$0¢Šyw8®n¤€¬·™*¾Sìü.ƒåŸáþ¹!D¦Ôl¦°ò8ãÕ8‡õè ~7[ùÁÆÁÆ»3¤°Ž3,°jjÞO«êqmÿôgx}ÖeY{Ýýr¡ª|}ݾ½t3<=ÀèAêýÞ·moß­+fÀì}»¹gA²¸õ>kÑ–Å#D5«n÷,àùËÕÚúÏ'Nœ8qâĉ'Nü!ðû1Ý|U§ÅænÖæî—Ë2—Òï7l[ÌKq)©ÈÈòñt]ÿô3¼¾¸÷q½^›¡;^¾e÷0m­¡ ÖŽ{&¼~±fèžJƒ ø—ÿ5üåßüã_ÿ^ùWÿñÃŽÛ‰'þÖˆþ§ÿïH¸cÛF~¹\§ËuF4³uá¿þïþ{ÿûÿU%ŠËE×+¸ßñzËÿô]EäÈ‚mË UÜïx}}½½n"òüüÓå"˜[@c˜Pl÷­ª’w{SÓ§£êC>´Ã*­2÷æ¥8gMQª<|Þ™©Ý@žÛ¦P³Þ}ú0Ïeú¨Ýe® 4TÁ™Ánãc>|XC~¿,@ðèâ«v‡áªBbù”5µ‘ùí5/‹\¨4ªéQ- X$ 1gí"-¢÷îU*Âd±*åM[–ÒþjµxV’'N|*ŒÑg¼ÞFޱ‰heUeDÑvâLžrãˆÕm ×ëeëc›³wW¥ªL·™M9Ôœe ÐLù½ðê½»ûCHù!Ú @›ã-y,žÎÉý@>*[’slä@SˆÑ½¶í†§ëåªÚ´÷1zjkSüé‰p4AÏdŽ„m½'b]—JÅwεÉžž'þn*ʱ[ks9‡Ý7ú·¬ã‘N1Ã+"ÆP@T¡ÄÓ"1Æ®¾È,w53QÕeYƈªr¯iS(‚ j§zâ÷õØÇ|hÀôLÓŠr7?Dfzõe¹…k!‘‰¡Pi‰ÛÝÍÆ/PÆÆ±(š Lk¢©Æj¤Œ¨°…UäÃón~‡ò×¼õûóœ8qâo.1@AĈ 0PyøZåü¿¬r÷[)T\VÜn‡óXUÕ=©RBUefdˆœ_æðKOfe%JäQ«ÍMòøÐ¶QËEé}ŒŒ«­$ÜcI¶-Ö¦ë‚t¹÷;ÆÒDcÔ7/²Úõy@ÿ¯ÿ„Ÿ~F™UèÝÓsÚ¯—Ç=°ê" ú@:J¬ÀÛ=D„@k*·‹ï{”o2×7)Ö‰'>QºwO¹Ë²`¹@\¶~÷uY*³÷=Ô@Ÿô~¯±u^[k*ľ\ uùõå[ßBm¡R#‚ª•Ù3*kTPQÉ"H‰ð{ïm±¶,ÆÖ‘ò!ZîU:¥ö¤î‰áU#Dg¸Í²,·ý›ŸÛ#Ó-R ¸uPc FÁ¸û6Œpd‰Ì… ™Måß_½ë;k‰S'Qž8ñÙˆ2£a€>W}|&)RÌGEY Ä9{Ž"¡…"TR•RÂ*„ç0ÑÙlz!P$Sù؇˜ÜC’Üz/€ªQi?àC«â!"­‰"‘Yf,Àª<"!¢*XWåk‹E"P‘Á*lö|ú@DÚ1¥™¦Qb€TÝÝG-É<¶ñƒFÓßÓ¦¸KsçÍûĉO†¨^…š&–:é¯2ÜTí1¡> [¦»'àmÑéâAÂLÌ,2cúYT‘+Û ¼©™QÂv<`¦ ‘ˆ¬KL—òùÐPpO,‹ 1ÈR¥ FDõìÂë´†²¦WirZ×!3}Yl5$÷ò$æòy©ÇЍdÊm ,É£ôD²öíKŽÉGÜëœóœ8ñ¹0­ Ë ²2cTÉc|ác÷^*ªû6­Å„:ÝÅКFYž‘c¸ˆÙnŒ ‹„bº™…j$ÓÓTIj’ÛÇ|˜„çŒã$*‘Uh6ýN å#‚â KBđά Yºކ»»5’¬ß.4ÁÊÒDîõ°€ÖÇ6_É`«JááÔMTî9Ο>ôĉ¿CTyÖtªÛ2»nDšîÔ0ÆžC‹’(HzíÁß²û¡YVyÆLáðHµÔÝš‰Ô4 Œ9®©*•½ ‘LdŽð23¡~ȇ†‚ˆÎïæH¥‘1¢©N3D‘é±^@&¥5xasd’’‚Ã÷ý¾A*¶ç:ZÌJN̲T›õÍ“‘Õå¨(­ªr÷XRÔ±m2剟(Q…ÈÊÊBpŒéåÈážçüNš´½BÌd»£i±H@ª¬Ô”ˆÝþ-ǘ™:##¹‡ò¼÷Ž`fá•y8!}ćV™F€L7 ÞãN5›9FV%£*ˆvEO`›â&’ÄÌ]aö>LÛ—+¨wDº¨“ÎÓQ,Bˆ¶âv³¨Ý9€,yô DØGùóuAÎÖ‰ŸŠ(9v«¶Ì·K›¡ˆ€1BÄöP Q€Yâ^‚1>UXÉ™÷“c$a&3ƒÐdÔ‘ñ&G¦éeY·Ã³Š…ùP€ÝëÍÝÝ÷È‹ˆÚ6wG%DDöë±ÌXÄGtÉü1d]MÌ IDATHJ¨{ø˜íÕ=Æmš¶ãM,ŠpN›u#î÷~\½-¥,aIK™o-iAK9OœølWïBdyÕȽoUNúÜcÌÜSesÇÁ6JxÌ{;÷ÈERJyøXï¹ Ü•Ú‘Çdç®=çuòXDL Ëñ¡ô(Pg0qôŽ(,וd|†‡«xáÞǶõû}.Ͷk¶Fx$U5"^_1ÅžŸ/ª\ÌPŠiÄ×· ‡ ž¿P´ Ï­Ç!Ö‚æP/ ´’i%K±N¢™Ë""pgD™í:!Ušéò¡©ÍLJP0ÍŒ")`kmŒ-"*J|1ƒ6,{”#ÛbHÓî!€ h¨‰äÌi¥ žÙµ0*!,%ª¥M¡d­{#e·§d=Ò$g/–vÞ½Oœø\WïòG¤g¡€ba§ wY•0ãr½øH÷ˆP „¨d$Lj1`#\,3YP…™tûHömOŠ3l¥2" òˆ×ÆøÐÖu©ÊÌ:²4YˆÌjm‘9mrÏÙ¬4ÃÓÓ%"2BM×…Usï‹¡•Æ‚°¥( q½ |Í£»JŠ&I¤ª¡Ù›š)Å*»43§<®:›”'N|º%Þbi÷ 4‹RŒ7žDïcYÚµñN½½Žª5("ŠÔJÞoeE5˜±wŒQb\šnCÃ#3){ð²VaÌUAAÝÓT0m%ˆñ¡­+z—ˆ Eô ¨Ìª¥s:c¦Åæ—'}y ÷AÓÖ)á¨@k(E‘$“,"’ÄÚÀ+ÆhIB êü²TŲ•7[Ñ9Æ TUÍåEg‹òĉOvóN¤%Ï­r&S~çÓ1È& UP%½ö:±°è‚ªû½kµ/_¤)FaÛ¶«]–m´î[f΋j%¦ëcï ±^@ï!ä®úÚÒàž)ÕŒâMN=¹j#sîBN<=áõ¾Ôb*!(F¥¨°jf§"磦à‚u©±yQEK¤2ƒeJȃÕ ˆ)ÜœƒªÌâl Ï‚òĉÏvõ8œ» ÈªÝØ!¿‹¦ß“åL©Ìtô1D≢DAŠw¤+‚܇<Ê™VŸ8–Ç‹äøÐÄqU´Öܽb˜ˆ6›¼;ç@͵Ê>ð§?]·+¾þú2†<=]/«Þn½ßôË]VÜ7fDkMU¶~ûå§k$´á~¹¨Ô·—[å½]žûæ•V ;ˆRT3«D½¨s‚_È …ršŸŸ8ñéàU|””“1waù»g¼€¾¹¤]V åe8YëóåÛ–[! ÷`õz½ãz]t‘özÿªÑì²,nÿô—WÊúËO&<¬„3^d1,­…—È>CÒð¡é+ Ĥª„:Éûð£˜?‚¢™hËC‡h±rz«¤ Y:eC. T!SDP—EzgPȲ&¢IÈá²ÑV¬“JŠ(*« ˜Ëœ'Nœøl¥ãA3ÇÙ9vÉ7Ã0£ #R%¨‚¥i‘ÝGèÚ[VÏøv—µU”gr)m‹-Ë)#Ðöé¶V¡™™!´éa¾ûk(>æCÃþÉ‘ÝßRv—³‡¯.eïoF)$šéÚ–ˆ¨ ¦¸^ ¾ôÞ«°¬ËüT …ëuQèf>@[™“ŸY*%(¢˜kiœ8qâ³åÛåú Êãorh‹Ž!43,‹FæÝÝÝSZkÒ £Ëëëfº^®µŠé™ 3¹\.÷-{OQ… 2¥"#rÆÆî)9ÅÝÐ÷#>´·Äµï$ÇYi(}•YÙÔ¸®–Ûíájv¹.î‘é…ÖHô‘¬¡¼Dh |A\××{÷t“¥*Põ𣔶fE–HÉ”]f¥§ˆòĉφ*¯l€ï¹ò}]¤*¡Ñ}L?ÝeÁ­±ð>ÖuÁûˆû}ŒÑZ[3³‡»§*V£½ß»K[0册¬ÌŒQÍŒãb»ë¸χæ5=,[°M!ÓdI¹‹Šrl½éº\!w½Ý¶*®«VÀÃ#PS(APª`ÙüRC.¬Ð{#Å ÉãZ­FJ •”]g^L Ò‰'>YE9Þ«þxtúƬƒ()»yšÕ½â[L_{lÛPm"dô¼½âËOðZy¯Ñ£Úž# "\ÔvÜw&#°'q¢ø#>|ËõþþÿÞß=¶ Aê´Yp­²eÁº¶Þï SµŠ¬ÌÈR%–ÕÓ·" É*¨àº Ó²¼2 E!Q63¨äTPV%¹܉'>Q¦ÿFÌòþÆýö—¤*Õ¤2Ü«5š±-Ú â•Q1 €Ð<üvó§gSÓeóážÍDªš™ŒÐ}•†ÊˆPSbw ÿÚN§;;§¸GP 0•2¦€(eï÷®_¾|Á—'¤_b¸÷0Ó,£Ú…—‹Í0Þ½,P…NÛáÔ¾yŠÔGò¸4Q ö4É¢@vÙ9Iž·ï'>[EéßÝÄññ$¢ªj…ÑÝÝEšÖÕnž‹Zd…#§g¸õx½YkÐfYE‹ÂUo}D`(šª*AÍÈŒ0î.•øÚ;ƒ¶¼E@JTu嬿˜Y”RÊæÛ¶mÏÏëºâri¯1ú¸???k²"3“¢ÍØÅí äL÷Fïêºkß#am¤?ö¼)ª¤œDyâÄç&ÊÙšün²³×w¢ÔÒÁ1%j²è\ëVÂkWKŠVæí5ô'=ªHÙçÉ 3‘É*Ý7s’UŒ¨’ ÉàÒ>æC‘F¯Ü|ôp"TekX9, ¦0å²´ˆhÒªâå%}àË3žž.î½Â×ÅÖKËòq¯rHÁ¹I¢5ž.òÓóE˜£ß}ì®sÅiëÓ*í’bÐe: %-E¡í|`8ñɈ2so^ð¨9²<áY{4öºÚôâÿÝ{£H<=©NR)–Å(ýúrߪXe¡oðQ,Ë"™éù¶®ëü²î><ć6z‘T±¬ÈÌÕ}8™³Ê«l–¯"¬‚RЍbDDˆTeY,Ë6/ê™9ªØ':µëv‡ "T›ÖAG\-lª‘RPU^R% ”T!“§q­Gù]õX{úÖof)™@QUUlÏr¨ª¢5˜AY%H¥‚¡>öxîÖèþȧ­Êš™±™š !ŒNYbt~ȇrïmV`÷˜‚L¨¢‰ 8“ËT`ª$UM©Èʈù,†§ë5"€j¢F©äè@BPÍb÷ѽÞÌÜ U´Ö–e™Îq,ØJš-MÛµ¤%Œ¶êr¡]gEyâÄ'«(÷Z2rDŽÌéYoïÎóQÀ4š­B‰¨L,ŠuASÌEPç›lcÜ:D°^`©šŠ¢Òs’ T  IDUTzÖøP¶û¨šÚ"ÉDFU!FLb¬ªŒ½Tªˆ‰@9FLJ½^­*«jÆ?NÛ¸Œ™0 ¯ìž½÷î5}4q¨ÜÍTŽF‡&-aT“ÖŠ–4ˆ‰µy=Ê'>[E™5ßâøÃ|óû]sZòªTm¨7sò¶ 5’¨Š"Ž{à´5P‚,U!9哱[« D„T”dæùpDO‘Ü¿Š˜¹<ªZ™„%”ÂT ï‹¶ LÑĤX‰©¯ÌÉ„T¥'4ÂÅšBd·ìœ7úýÔ´¥Óà •I³*&ÈóuâÄ'ëQ¾÷7º Ç»Uœtth3Q™•A#Ú‚Þ‹NÎ^Ÿ@ ép÷È@S”J J*}TeT>ú­1B³‰ãC>üT'ž6B'Nü­ãoxÎûì‰'Nü¿Àþ—ï>®—õ—_ ß^:3¾üt­ÈŸžÅ ýŽÑ]D–ETÐ}Ýbë2ÖËr¹Ø¢XW|ýšÛý¾.×ue¶ i™‰Üá÷N©ëz¹^Í Û÷@ÿâ¿"€¿ü›üëßë/ÿê?ž¿°'> þçÿãßM¡K8<ëv曆5#ÜýßþËàý•‰„0CzÇ6âåöëõù'kvÛðzæ0‡àt™È-}[šþòå¹)¶ ^ïñúz#„s’¬Füò3Æ@¿×›€ò¡!É’~ïß(_¾èÏ?/c‹_ýõ—Ÿ~Þ{ln³tÜï €ºûñŠjTm}€‚UX®B>m[‡,×+âõëZsÏj% ¤»¼Þê˦¢üð>@'Nü]¡‡·e`#îQb¦P»Þˆ@ºUI,Š*Íõ˸{ [TÃׯ¯bËÏ?[$¦õ$K%-¨€µ}YKƒ¾G8UˆâõÖЖŒÚЯò¡‰˜D ¸‹u~g™[5»UQµ[ýìÓíë"ᯠ‰wÍ„ˆô^¢<>P²ÐÌ\C+‘€ûÞÐ-yd|ó45Nœ8ñ×1¢'DYÈJ 3D¦XÇüöÐÉL_ Åao&SVS5Ó[—&‘clڡд`¬D ÀT ܰ˜mC*°©T!Æ‚ ÿ˜Mæ|gƒ(HšÙ/¡ª(¢ˆß%T«¦[‘„@%H¢<ÇP¦ívw1ÝõOS‹^U•·»Zñ2‘ÒjÏd;IñĉÏ÷kJ 2AbªÇ…ú˜ÚΈÚ)Ut¯¹V(3DVeR˲ܷ¾mÛ²\(€jAªj—X“ëZck[EŒ‹éNÄ*²®×¸}̇¦ŠÌïÜ]ÔŒ¢j½w2‚òPÉO+ io¹ïØ”dfUº{S›ß½ˆ„1¢5Zò*F€¹‡‘óõ5¾|ÑÖ°mö¾¢|·dùöbrŽºOœø|ˆðª' ÍœœÈŒ*–äƒy"jZûdVf031´cª¢ªS>)*²9£…UÕe‘ëª}ÛºGdDè!€¨üˆM RÊÊ„»»(ØôØD¬ˆ$u^œ“È*&…°¹/ÙT² žL³#q¡WZ©(–Å"‘ÜésÓ¨^ocYõz…5yëQrZ€.ÇÜïû'Nœø|ÈʪŒðÚë§Ùå›[3)GÃ.sþ™óÏ5ݾ…­¡5 çƒÕTif1+AUdi¦gf¦€ó3\®rß–Œžé !ñ#>4Õ©çT÷ˆ(ÓçR„FÖþo¼[¾Ì¬B‘òÞK·ª"Ò]LðvÅŽ¤Ê² ¸—{TÕ~ÓñQ·Û\Kƒ(§›fÕ#?ƒ;Wž5剟U€G0!‚Üó'{âèóaV‘ä[pVfæQš¡5£| ‘eråÃZk "Ränîƒb “"X\ŸÔ]º‡GY[23|ÚV~̇6­+T5‚QÁ„…•6ëÏŠÇú "‚ÉÒˆ‚€Lïs÷¤l’3²#ŠÒÈ¡­@ ̪¬¤üúíîyùùçã+Ãf¼îŒþ–ÇÀÜ—?qâħª(‚9ÍUÃ\•."fúÁQÇfÎ ýªL¯„'{[, ¶MÇðÌ¥ªÞn¯Ëjha’ÓB#™€—6¶†ËÛ&#Gf-#“!ËøÐx,H’ZóËe@M"r†KÉ4"™YµûÆAö¦5÷1y\F©Öäíî\ €ž¹Øúõë_"ñü|ÙO V ÉJö,߆iœ8qâÓ%\ “RdGDV1åqaÝ‹¥™™YÕs]¥5¨*†Wíßîž™€Šàøà”y[ Hƒ*–Õ9FÏÙ‘dA(ëú1ʽƒŠåmFÅáñzH 0°7P‹ ’*b*Ú@™YŬšþ–"´¥-—•*ÝǨÂ/¿ÀÌܽН÷Ñ".O?íÏÿt›­q¥´ 4h)mþåùÀ:qâ3á~÷­{"9Ü îá‘^(°›àbm2Æ_˜ˆˆ×Wdâ—_øôtyyyùöíf†u]{ï·Ûô¬´eYfÏû˜3’1 ‚Ÿ±ç/—È1Ƙã•Lüˆ-¦˜H sÝ|6sÞ %ëq®=ŽñàøB%Ž`n™ð›p›Ì#-HaQ Y#«ªäˆÍ(Z±j¤DÎtomÊ'N|®«÷ÔJ¾ñwÕv½SÀü¸ÅY9]qÍ`fF@U Ó!Ȧ¯î´4ËBy¤* T°6®ë ’E†Cð1ÚÈ!Ù–iOdSòM <€Y‚ ¡{$EVdäLÇ>´š£ìi>Ìœ™³›¢2 ÂC9"*‘ •1›9²$²ŽŒŸiÂãݳEyâÄ'Cäx“ÿ}_ }@’¿SL[r÷Å ­aY–>| WÕYoº³‰ª"Š¥…b@bPbYìz]ï[VU$K€ð¡MÞ-áÑÂܳ'2A™p8$µ_æ\–»â‡%G+ª"òЈ2"¨ÅÚ“Ï‚ö% Éòx(ÎÅ •GY@"Êñî‰'>UE™ãˆ;Ü—ÿÞb¾ù_òéYUc,— Zúêðp÷e¹D2<ÜQMUQ"c8©UD$šH!j\–¥N( ì…è|hÀ} ‰‚JŽðÌ\.—ÞÃ(_ŒMài‹ÝÞ=„ëjj2z@ úY^_1:ZƒI ³`=‰¯¯X.€è_^n­(ÛÏÏ—f———¾¿¼X«ªŠ˜~šˆD„gIyâÄç«(_ ªjœ>î¬s÷æý@•W•˜.M@ŽÀ½dDÝ7ÏžÌçÊu@k•‘’U?âCÉÄ  ¨=ІSØ9FÌè=¶-’€pƉ¡e‘‰šº§ªÍw b÷$ÌtŸÌ˜[Œ­Ù É!éŽL<2sVÒ kIK¶”–oð–çÔûĉOÆ“R@FvŸQ9áßÚP1²$¥ P‘á>ÚÑ/ð‘]¥)@ÍŠ{G>(œQUcx†uFŸÕÀLÄ‘/l{Á*,¢ûÕ>‘•yzcœ8ñɈr>ù9/൓çÜ—&²b¿kú¼ 3Si_¦T f69·»/ÍžŸq¹´û}¿<‹ˆ*3}ÛtÒÉ*™ËÝ.@A F&ȨùÐÔ]#4Te1Š9©d¯Ð t¸'r)ÌÔpŠdÑ+iDâ–*¦’…[–¢m*í¥H/ÐSZ‚‘Ó4©q4:¹fùìnŠ Q•R•HɈ“(Oœødåáì¶e BQ*x[ñFxaÙÍzkE°4Ünˆˆu]UuÛn1†. úƒ•™fÖL{±š7I¸ÌppLs_L#ËøPÌp¹ µcLý'FÀ–ÖGüúí¶Ý¡†¶®QòíeÌ™= ³–Y·Ûöú:6G»¬I»ÝLjž-Kû@[dŠ.×k©~½õow§Â“ÛÀ6x«(­§õÔ+5¶&mIi#%yN½OœødeDz¤ƒ.‚ˆ¦GßzÏr0ÞQ*¢ †¶(ezñ"ž.üéùŠ[Seáåk*±.0=Ã/‹<]Üï}&Ü€¯·ûë­ßîh ä)ÿ§‘´YÆ(*3ÑÌ–ˆ±’N#ªlÄèãp]G¨ŽÖ%Ý£¶¼,B3ê¯qY´J@ÂÜ{¶Æ¤á¶•;®¶·l{ÈD‘ÆÃ‰2 )òæ¹tâĉÏ,GsÝfdEHDâµãÜÚöÅmHˆî ëÝA·HPˆ©©\«‚5ó»ÒDb8I™ê¢ˆ˜6æ½€é²þ#>4ÌMÉíî½÷N5P­AÔ†çë}—§ ð.Û™j ¨,DõQ=ÆmY:ÜÃ;är]ƒ//[æUUÕ‹›{-º×U n#x胜V% Ì( !(ÈB&ê¡Ï‰'>Qæ¨åÍc÷è=¦ÑtTªª*T¥ª9´5Í=VB…`!:„¸,`­éQá*r¹\¾¾Ü2S ¤PŠQ•ž/w\˜ÁÃÀ‡î!¢b0á‰i:baÈÖ;¡ë¢"(ê½JÖE  lÇ{.­EeÝ]7˜b$¶14@9Úk¢Æ/÷Û/?_e†¾öÃC—ðQ`%‘j f‚Z)r>°Nœø\Wo'÷E¾#÷% XY‚G"2B§ RU3ƒY,€Ó’ľäí.ËB3T騬*3k+^ïœõéLRàáé»Ý}Y¬)Tq»}̇–å‘SF3‘T¢w€ð”Ô­cY Dï)5ƒzfÖ¸fz÷x¹•-¤jn›s†t³Ý·Ü\4¨ b¶<}Ù¾m¯¯›¾^¯W,WüÓ?G{ÀE‰ªH&Ä REé)¤43 D:RÅšhšŒˆ,!*-·ªÐ•:‚5 ÓI§ëOn=kfÛBÂãÛ«/jjíë×TtH»´Ë´¡-+7üùkg[(x¬÷8[©eVe©P!Q‚d9‡9'N|*L•ÎLýbáa–U(Ä!8o­9;• Ì¦$"J„³Ìè ¿n6½Íg$—¸ÃÝe´ëUïÃÃ+Q Îmlз2riøÚõÚ^·1ƒ…Œ^ǨdR Mllõí52ô§/(JF ”©@AEÍ÷ð¬ÅŒd$úˆ4¹\Ä“$}Ô¨‘l¶ ÖÖ?ÿù/´åºìFnnëÂìˆg(Ì„(]ÎÇÕ‰Ÿ«¢,çñ§âÜ×C•ßÅ .‹º£*#"EÍv¢Ü†›µ©ïQd²ªJD«€Ü³ çJ;Ú#öUȹÄŬPá¶m‚ÖLćvYÑ»ŒêV U ø¿Ø%¹‹ŒjÃíÞ‰ëÓ’’U˜æ—DÍ$rÑQ½WIJ,( Z Ð Y¸1^£¥‚HÅ«G~»ûóE–}˜óâº<ëH² „M¦°@Î剟­¢Ó?qÚãNÏï·Öƒ)Å ©î™™5<Ä™€‚{r6Y3‡!":“[kŃ̈́0 ¤¤*Ã!Ízw žŸôG|h1ÐLÝuô¡k»^qíÏß¾•vBj ]y‘k&þé­íÙˆ šÂISõ¬û­“J]Sðr‡~}ÁËíµ¤ž¾<Y +ÄPëú’a‚ëž-†.K@<™!ÓÔ"„PÁ©:qâÓÁ³fhØÜLy³Y«w†æ½` VmîîML¢XV«ªÈTi(–ì}»\.ëÞ…JF.+–Ö¾~³o7/€Óel \£ðŸ¿áž?æC›ÉgM­{w7S¶ÆË« AÌBAÀâ¼cx‘È‚5D ¹!¯ó¡ôžªX–N62±6¼µiwQóËZƒ(²°õüÊívËQ¾KÏÚß ^‡_N* ‡ßøN‘5Â÷ð×ÌŠˆY†ª*€H[³Qˆ$+*K‰fÿ{ï£iž^ó<Ïï}¿¯ªzfÖD–"¸ùн$`a…saÀ¯c;È A.Ø`l@ àb‘ÐJØ$‹€$€‚À1k+kd#B`Ð*‹0H{Ë5#Y"¶<;ÓUõ½¿ßó‡‹ßûU÷¬»7×SyÏ”zºª¿®úªºúôóç<ç`1iÂ)>œõ) @½mÛ¶m;ŸO²,-A$æ¢fm’•N,ª  CÕ=Šª„(@"€ ˜% ÉDfͤ¦3‡I+ VïããÛ‹x÷înN¿û»¿»lÛé2ú6š®Ð«† šÎf?åÏ®õ~íç¯ÿïSˆÈfBNÆýÓÊ—Àt‹¨Ì¹È©L›®Uóf‡‚T„M/Œ@Ú¢+Fˆg%*LÊÛøŸÅ¯î>Ûø¬Ï!º9pàÀ¿ ì?ü_¶ÇÇG[ÚüÀ ˆßÿØÝc=­#qÿ0¶ËL¥qÝ6|ü€û\ïEäææ|:A™¸¿ßÌlYÔ Uè£÷áù΋[ÝñpÁÇ/·K‚ªºœN?øƒí½wð{¿‡ÿßß‘÷Þ{§Ø.ïžNŸ{×nÎè|òò~U¾xç¬ÊŸûÂÑ~8ð|ðÿŸ5.}\úÈ‘1p^V³–¬¥ñtFßðò~0ãîöts†’P… ˆâþw_M—… "ªÒ—Åfš IU>…íŒÛ6 <ßœmÁã¿Ä6|ëbF Ô*þF>”"ÚºˆÈãc ðïÙ;wk¸7âd²*YŽ !¨ÀÚÐ &¨ŠÌ˜qå"h­-‹NÃ]5ÜÝêÝͪR÷=ç·+Þ¹=}îÅ‹ÛueÄýw?Ê#nV|îÅÍɨ1nW»]mô‡—÷# çÜÜœDý²ßX<'4ES †bœV;¯*,d.ÊÅPnOÍ”­AcTï ÓÀ¢€ó‚ÕÔG=M°6*åã¾k*wgc†÷KSܜثéͺóòxñŽó ·w c]t1šÖiy+ÚÌi˜‹Ÿ*HÁ‹A×j6·ò9ínWd ‡ö1#SI´†+²šˆ š€&w§uëѦ^q2J%Rºýýïœà/n>ò‹T?é)Y*¬1 €©¤*ŽËœžQ„W—ê– L¡ÌÔ«˜,¢MPš"©0Eª"RfRX[ ¨*Z“LP€)Y $B¼j*ÁMpZuÛFaJåm|hs•Ž‘„ Ñ „V¡Rh*UQœDYÄù*ÚÃÈ¢\Ö.—ŠQ.B¨a¹ißõ0@ i0 ™šr›ÑŒ—ûñpû¹„}ñÐ<Æ"ˆFš‰TCÐÌH]ž‚+8ðl €(Χu A©™œMÍ@1÷p¯Ó™=!b"+¬jŒŒ š‰0ºYb¦r%ß̇¦ Rм* U*Ò4TUýJ… 4Ï(4Ð="½m9Ýâ´)¬ w-U¥ ÎM³’é"Ö‚`ÂÀì~³jcöGigüÀ=àü°=,ç;3@¯QEJ@žÎ”8ð\P¦¨”DQIÒ‘^U•‚MÑ…(("3ªÀ˜ÊÔLpÞÂ(b•LUEÖ´¹„L_Œ‚ªdxdG­M©Zû$À·ðážÂ™‡Ì`ªšB€JdX¸Ï$p¤—5. €fµËæ•Ý{Åi]X­o—¸=¯—Þ#BiFPQ 6bYÖÕ$¶*ãÝR«{•T-&df ©F=ˆòÀç…‡Ùj0 ³ŠH©ðJ™²›Q˜<ÝKÌÚ£”D°¬–Þ}öìó®™ó\\Õ€ª((¹˜†pT ¬©™Y™)boäýGžÑ>•Ž˜ fAžÐàä~ œ38/-3‡'*Ɔ›˜ »D ›!7·@IÏ¡(¾ï ܜ֦B *À¹Áoo–™ªIzD Š˜Ù«XÛ<¢ ÀÌ`Š í %ÔaŒÈ̪ȒÅ(´ŠŠ™8Œ…á½*ˆª5ˆ°J+‰&(ƒ‡L‹ÅPňY-‚DS)aöJ  §“èfxe¾…Ívó$X•(T) ª ‘‰17ñ•Q¹Þ[&0e¦ >6ÓÕ Â̘I@•µ6v•!†ÒÌËÛU3£¦2?77§——Vš(IOŒU¢ÆáÇEÎÏ‹(GdíúB5˜ #b÷q, ˜¡b*ôR÷} )€«f„£šÄôò,ÀDíBÛLÝ ™1;’ô(TÖé¦`æ[øÐZ€4¢­`^/ÞUwPQ‚ˆzÙ7eÖö¸UÁH, BŠœì²ŸøÍzºÃ{/Úƒ!Ëû0zB›¬Õ2§:Ä0¼N+#™ À=JÂ㺠xh ËbVNíp:pàYa]׈¸¿×eÅr‚<\€Ó©5åý}8/‹oe+[Óªò¬îXW,7­_.ë©-+„È„µ™ã—A’²@éà•.͉ÑÁÍj[ùñïë»ïBxÆ¥¡½‘m‰‚"+ÃC2‹UgÌþß`¦ÍPm˜UbÚº5S’~ZŒÊ=&-#î®pªJæÓÄÔ”"`"‚ ÌûvÈu²óŒ]4A0}8ð¼™!©Šíâ„«6PaÊJ² {hâ´*OHÀW+H5›>¾±Ù°ûn3‡‡H@ U˜ƒËýLFÙšfºˆY“5­Å›ùÐ0ƒlÚGÊ4F«J÷9‰õD÷¥÷ˆ33RDçAÜ-ÂEÖˆè]Ͱ,ò3?ñÇnßÿ"€û?ðŸ|ã*¡p.ÖST¤*gäÅÌæm(3sVÈPpOØ¡8?pàYd%#ª®æ`"»ÂÅ ëÚܳÑyö3f²÷ µZkóB°(ª…€âc²X΄¥v‡Ü¼fNÌœÅÓé4"HUÕu9çã›ùÐ"@LËH°`ˆØ"XW¸·ÌêéVU»oƒÌhfUc0[þŸý*~èïßû<¼ÿe|ôíŸÿ3_½ÿðƒ?ûõodæ|ŠO?Vsx PCVÁ÷È‚J¸gÄA”<+ˆHDeÀc`]m DD¤˜b]ÈãOüèO½^uý×ÿÃ_#ëÔÖÕ*g4÷(ø{~œÎé>+ÊëùŒW®—Od^Ä߇†)‰Oˆ R™Y•Þ®»—µ¡Vä1Y‘Q¨ +S,MLjÊð^_þgþ8~è1Yò£oÀ{Ÿ¿ïó¸û¿ôS_úå_ýµ™‘1ÿ‰˜ŸTíà¬a+,"…"‚4Dˆ{?¾±x^%H­ÊKG&þÐ`î½w—“µ†üÉþ—¿§êúþÔŸ»ÿðƒßüëßh ,dPx²:'‹uå–ÙvÏW¤0eE×d™f ™™éT‘·ñ¡,+fý”š>ä™S؉eEk*Z¸æ‘GÔ4[Á²Híy“yûþŸXòöå7ñ¯<Ñåíû_üÙê'd>y»ƒ2WW Ì)%TÙ´À=à¼-XV=¾¯x^ʘՒDàÒ³ ªsÃáñ“?ü¥û»/¼ªº>ú6Þûüýû_Æýâ?ñ|©÷r÷ªYiá:Ç|•ñº#:®™OôIzÄÒNU=ÆÈ·ñ¡@á…Ë=€ªP¤ˆLÏÌt¤ƒ@3,‹ “Ú"Çå¾›­“Õšþ›ÿè;÷w_xbÉÿ—þ•ÿèë¿zûò›;W·ïñgþ­ÿí_ÿ¹¯²Rü‹?þãæ'~â_û™_Ò«n¾)M)•H`1œœÚ±Í9pàYÁ½2Àk×ËOàtR3‹ð|ÿªëûI°$1$*PYxý‚ôD÷=}L%¡âîcÄÛøP21Æè½»;‰9"UÕÉÓY9K¿}^©s´•=b†T€¤™áÿØþ‰½÷ùû?@… ï?üàöå7Ü¿ÿåû÷¿<ÿMøò”ÄŸþûxûþñ÷ÿÊýÝþä/|KD B"Q1ßy[°žŽåÏŒ(=ó)q[>~ù‰uEk–™?öGøzÕõŸÿ—?÷ßüß[uýÈŸþíûã_5`ïùÅ¿÷Kÿðßó¥ò§¾:{í×?VœÉU™™™#™°„FTD¼åá¶´ÓÍy¸¿|ØÆÜŽ$Çcë3WMñâŠȨpdJX•ÈÀ{ï.“מpûþonZkíÏÿw¿~ÿá·~ }ûöïá[?oý4€9ƒ½ÿðƒYQã;_Ù›q¤)×¥™Jx„Cˆã‚ñÀg7¤ÜÝÌòv¹ä¶í£Æï©º¶m›tñ«®þÛ âGþ}ªºþè?÷­)ÂŒ+ËÀˆA›$0"20z|ü²¶ ëŠÓ͹ûxJDÌÈ몚-3F·vöÝ/gTÐlwf»þ’?é’–eÁïüÆßßß}áOýè—Hõó¯Üø¾ó•ûÿý_€ßù¿ðÛ%‚¿ðÛàöå7ñ­Ÿþ‹¿ùëI¤¢Œ{êmeTîEëžDæ+m#ÔGú˜Ó¼ö=U€*~ý¯}ãU×¼pþTÕ•H% T•WÎdðÉ„°ŠW©Íìm|È?ÿ­ÇóyUe½ªÖu9-¤`{Y@UOm™<åÀGŸd5KÓª2³eYÍTáèÝágéþý/ïŸÞ‡_ûå¯ýË¢)b(fb·óÝN*ÌLU±†*Tô³Úb¢ŠضÍ+[kÖL ìïÜsÎ8ð¯%à?ýÖVPÎm3!pa¬ëz>Äýâ‡ÿú«MÎw¾ò—~ëWš­fòSôK³ÞÂþ1üÎoü•ÿ»š‚ý‡¾tûþï?üà·¾ù % @"*§Rgi–ÄU”ÉóÌh†ÇÇøä“ñF>´ÌtORQîÃdYWˆXEef Ù¦,|YD„N¢Ì°-ìþÃ0U}ûþÃÀŸ´ÓiéÝǪ*bcôè¦&¨bRsV•)ÊBS„ík©¹ûží3)9ï¸Íþì¯þeiíçU9³ÐöÑ€À€ª]è³ëžŒ@º—×fôýS3)XdF ÷cHyàÀ³‚*EY`’Z ¡Ø.{[ùëÿó7~âÙ»éÿê·¾îžsnH`&ˆbEu0 Ö0›è d…aB¢¢Ra»+¥"S«8}Ñg[,‚·òáÝ>úHÇpU3`w×°ÓuêIfF†„„¨B ж `$#æ¶½T5¢DØZ›M-žZ«ÔÝ_}V”œC\‹¨©:jMÝkŒ!Ò–ÃÄ~"i[ŽK†ÏûÈ.Ù—eåÞÚŠØòx_Ôîüø%À7ó¡Í~Ùšh'‘óÚZýôšJ³j8œo¡3'WkE Bƒ³ÍÈ4L+Áô5B)ɨH4i†ôÖáYXH43Ì;¤eÞùÈbΘóLÈì}àÀó´ÔmªÈª˜¡6;ª*32%bþÝ—™’U‘, ^°¼ú‰03 ðyøBŒžh)\À„ˆ’ž…Ì ÉšÖæ Ñ•|#Jï½ ­Éu¶™hOGæ"!wï½?ùYÅ”"TJSUáé±Ûd(È(𲙡ª&h ¬mQJzdÄŒû1EDºCUÍ´ª¢ »½¤DyàÀ³‚ûîi«Êœn»òŠ(§Øf 4Õ½TÚE61rŒxZu˜™ˆDDïãr™Õ"Üýr¹ŒûÇ"eþöªé}¹ïŸE¤ª&Ž‘eŒQ3´Ö®Ë˜!b÷ø™£„ùÝóñ!Ǩù<ª*F°j±™‰J¯H{å5Yc”*–"ˆÈˆ¢5]1³ªÊtQ´ cô@„™é¾'šÍ§tàÀgF”ÌÐļ^’<±MfùÈ1B"0Ù¥„…Hw÷+QN_ž¹&é½_.{¹&"È,wŒQr#Æ\ôp?O43U%w£ 7ò¡DT^oõz'H¢*"êÉ MDæür¹DÔ¾’<:PçUa1‹¸Ú•³Ò·ÎÄjXMé[•c54ÅbÒdZ•M@ÒÝ33¨ŒwŒDGç}àÀ3C”Ï4/Ñ©È.Lr%³¨ /<©¨ ɪ˜§(1¯ E¦*“™¹mÛt5kÍfaèî^#´’“Ù®t÷d$‘oãC™¬9 ØÌT N» ùQ÷Ò’„ˆ‰HFÆÌoT¥‰šhkhj‹‰)Y¨xò†ÓÌc—ûì½QW"×eYÈÝ´ƒ‚YcFÄifæ¶E?{xލší3¨j^o±‹„i™ „h†EÍ„Â"¦þ±"²rÒèÌæbDl[¸Ï€ÂV5ë'¤MnÙ-xˆÌ|2Iÿ>|¨™åZckD$–•ó,=¯®ÖQž—Žˆy¢cÓ@¨šš‰ «"+öŒ Ù.—í¬M x1€DS¬‹™jzÄÈ©f§XTUAÕJx} Ÿ ãxN‘£ûH„ªÎ’òé`¯v2Ýk5‘ÙËÓÁ Qô„’ FiÅc|Ø" (<Ñ=©ê^ÌdfMzœkfõ¨êÛøPf!«½ðNŽË¾}¾ºEU¢Š^z<>ø6C Uªjl©:³÷ë$V¨¶ÑãrÙf«OòukôW>ì3Kǰ½’" 4¼2sŽ)8ðœ0Ë·é}ew3#"Hž’O›#LÑTlòÉÞ û ô$;yÚ<_'’)ä<„–§YgÕë¿ËÌÌìm|(€\#kvjAU¸Ã Ë fÌü ²v[(´’Û¶ó ê¾TšïýrŠP-ÃAÅzZDõ²yîûxXkÚÌ3¶Qû â…mÀu=Côå}Ž£?pàyá|«Ë²ö>ºûéDUùäa{yßÍpsC£©—Kß¶}|·®˜³—íÑ= ’Å­çð™X‹¶,!ªYõxÉnïÎÖÖ>y¬„;ªÐÍZæôšsBªÑÚ[ùð3h‡{”–|æ‹ÉÏÚ”àø#;pàÀïû/~;f³¯*O yfºûé´´†L\±m1›âRR‘‘åãæ¼¾÷<Ü»÷q>Ÿ›¡;î_f÷0m­¡ ÖŽK&<ßY3tO¥ˆÁ üäßEßýwðû?×wÿíÿïø;pàÙàßû«ÿ= wlÛèÃO§s3ýµ™­ ÿùÇü¥ÿ#ªJ§“®g$p¹àá1ÿÆï½]Ed6ÈËÒ–ª¸\ððððø°‰Èíí‹ÓI0¯€Æ0¡ØÐPU%¯b§ÿ¹V½‘íj•V™û ’Rœ»¦(ÕÝ'}z¤fúWI‚ÃsÒjÖ»HŠÌyiTV‚*ÐPOd»ð”yÏ^Â'-~òД8ð·z÷fscœ}¤‘Ì*N¤½ÿ’™…rW›b›†%EmÉbd&J†H¨èŒATå‘;“RäI1¹û¢Íõz½ÒÔ¼Ÿ¬!÷ùe] À£‹¯fØï‡ª 5ŠåSÖÔFæË‡<-rZ Ò<ªj†(‚b‘@€Äܵ‹´ˆÞ»W©“Ūybô”ö}çÇlòÀg…1: " €¬16­¬ªŒè#Ú•Xó†ÏÇû[Ãù|Ú:ÆØfª¡»«RU¦‚Û̦´qî¥h¦¬OÉg^_¿~ôùÐPœoß+gðjnîò©²%9×F4…ÝkÛqs>U›ö>FOmmŠ?=Ž&è 5¨!a[ï‰X×¥@1óQ²áˆZ4Q`qJ&¯ dS¾”^}YN×µfÜĈP¨4ŒÄãÅÍÆ»PÆÆ±(š Lk¢iËÙ HQ9` «8ŸòÓmbIû~õä!¤^bw´¦rL~ÏŒò)—Óýøh½xfDéÞ=å"Ë‚åqÙúÅCÖe©ÌÞ÷P½ÑË¥ÆÖExn­©P¸;Aëôñý˾…ÚB5¤FU%*³gT0Ö¨" ¢’Eá—ÞÛbmYŒ­#å|hÅ«‘ª@«æe·²ª"FˆÎp›eY÷'Ϫ¦[¤ðØAŒ5›¹¹ÀÈG–È|,‰Èl*¯XðõÖ»®«IûçÇ:ˆòÀgF”…tPåYð!Å|ª( „X"ój˜B E¨¤*%¤„UÏa¢sØ(ôB H¦^­‰v§Ý¹áÞz/€ªQioáC«â!"­‰"‘Yf,Àª<"!¢*XWåCÎZ¯P$¬Âf·'˜¡D¤]·4Ó´#J 0‚ª£»û¨…"™º×½A#ve'"ªŠ×‰ëÑy8ðÌÕ«P%¤P'ýU†û€ª=m¨#æ¡aËt÷¼-ªºGš‰™EfL?‹*reƒéܬhf”°Š“õ&Q @ "‘U`‰éRþf>4ÜSË¢BŒ²Ti@ƒQ=»ðl¶[¼¡UY’1I33}Yl5$Q…JP˜Ç礚Aˆ‚dÊã"X’×ÒÉV¨é±D¢ ó?Îý±ç9pàyaZÿ–deƨ’×õ…P dQÝ·i-&Ôé¾(†Ö4Èò¬ˆÃEÌt¶¬Z°Hh ¦›9QH¤L; Lƒ4©InoæÃ$¶ùÂÓd2تr^»Ï–»²fÌØk†qx&¨ò¬ÊÜãÚ2§nDšîÔ0ÆžC‹’(HzÍH×ÝÓ×̲Ê3 S“™j9#k@RPÓ€2溦ªTö‚TD2‘9ÂËÌ„úF>4Dt>›ÀKƈ¦JB8@ ß_ IDAT-‰<¢€LJkðÂæÈ$%e6ÊU¸l ¤M#Ë$´˜•¬‚;\¦1´Yß<‰Y]®¥UUÎÏlN•ûNç`ÊžQ¢ ‘••…à3ÔšÃ=ŸþÎá¤IÛ+ÄLF°;š‹D¡ÊJM‰=¿k ™ ª"#¹‡òìÉë4ÏÌÂk:ß̇V™F€L7 ÞãB5›9FV%£*ˆvFO`›â&’„°ªÈì}˜¶»3¨Dº¨“ÎÓQ,Bˆ¶âñÑ¢bt縊dɹß2³%rßýƒ<ÎÒx^DÉìæ¼n—3¸#bDÖ•(CĦë#Ef‰{ J³6UXÉœùac$a&3ƒÐdÔ\}TIí±§eÝj Ï*Þ̇쾓îî^s>QÛæî¨„ˆÈÞËôh{ µ˜ŸÆnu{~ÅTlNÓv¼‹"„Óf]ƈ˥_[oKiKXÒRæKKZÐRŽÇž[ë]ˆ,¯™£÷­ÊIŸwŒ™{Bu ¤³oç¹HŠB)3šá”€§`œÈëdç®=çuòXDŒ1zïoãCéQ ‚{†¢°œW’ð®â…KÛÖ/—y<4Ç®ÙMà}TÕˆxxÀ8Ÿy{{Råb† T }Ëp¨àöŽ¢mxnýúåFkAs¨—ZIƒ´’¥ØQ8ðÌZoG9%€Èê`^.£w7óÖè¾Í‡­ë—žÝÏò€ˆlÛð‚„H/u1‘× *lmŸ|üàQÖ¬ˆmô)‚ÖLçóéætfám|hÐ|Zg_[wbÖƒs)D#`•‘½C ¨*^ — )T‚ÐÉålÊM¢<3‹TRª$*°†ý³W”0%:kcBÀ¹:Ç<4:pàÀg™c‚˜â$"¦FÀ^B-‹\.9Æ —fTa†ƒÑ]h3Y,Ó2CÊši•G"¢„AÍóÑˆŠ€Ð 3¼lÏ‹ªú6>Ï{MËüZâ&áå3tÜ´m1U޾e@ˆµ‰’éÁÂÚ¨#‰dEF¡ ‚f8¯X› éH$²Æ€N nÎëºØ•(›£ÑèR´€Eµb+i¥KPo¬žYEYp0€#Ë3÷—‚ã*8_N îݱO72A8ªø¸õÇ- 3ïZ˜³Í3› õ40ß×êÐá5¢bf^yxl*‹½•-3³éY:ù4³"CDf8m5Úý'Ÿ´X¬qi’.Q%ÀÒ0€JxeV*jœ+ü’›çµX• 5!TI]Œª íp¹;±s^y¢òXæ8ð̘Ò?5±œ~=)û„¯¶ 3y{Ö€*‘’>§U—UÀ*3dÊá Z• šA沈ÜQf»NH€fúùÐÔ8;y ¦™Q$l­±EDE‰/fІE`‚rd[ iÚ=0 ‚"‘‚$ "¢TÁM"»F%„¥DU¢´)ô„¬u¯Ãa¤ìö”¬§4É9‹¥½÷Ï«õ.ß Îæm Š…‚ˆ§ëf˜q9Ÿ|¤{D(BT2’cÄ0.–™,¨ÂLº} $û5Ž'Å6€RPyŠ×ÆÛøÐÖu©ÊÌ’§`3Dfµ¶ˆÈÜ6¹çVšáææ¡¦ëªyw„ÅP‚JcAX‚R”…8ŸP¾fÑ]%E“$RÕÐ앚)Å*»43§<ŸÜ•šÇ7ÖÏlF‰W±´ûšE)Æ+žDïcYÚ¹ñB}|U%jPD©•¼<–Õ`ÆÞ1F‰qiº ̤HÌûnjÆ<õÔ=MÓV‚xÚº¢w‰RD¯•YU¢ÔbNgŒÀ´Ø¼»Ñûûp4m ™Ž ´†RdI2É"R!I¬ åÓ1È& UP%ýQ[XtAÕåÒµÚÝ4Å(lÛv¶Ó² Ö}ËÌÙ¨Vbº>öë ôBîÚ¡·ñ¡- >àX( 9õäªÌy 9qsƒ‡Çˆð¥S A1*E…(P¤€DÎFLÁëRc󢊖HeË”'T+ ¦ps.ª2‹s\€< Êž[ë=puî. «vc‡ý"{ǼÐ@B*3‡»ªÁ$} ‘¸¡(Q„{ObP¤â5ÒAîK% Ü#qH ‹äÛøÐÄqV´Öܽb˜ˆ6›¼;ç@ͳÊ>ðÞ{çíŒO>¾CnnΧU{Ô»;]V\6fDkMU¶þøî‹s$´áo{÷¤R/ï+/ítÛ7¯´JØ•(E5³JÔ‹:7ø…ÌpP(‡ùùÏ^ŧ’r2æ.,ío¼€¾¹¤V å~8Yëíéå–[! —`õz¸à|‚t‘öpùD£ÙiYÜ~ÿ»”õÝ'&<¬„3îe1,­…—ȾCÒ·ð¡é\+ Ĥª„:ÉûêG1?-D%2Ñ–¹†ÑbåôVI²tʆ\¨B,¦ˆ  N‹ôΠeMD“«ËD[± L*)¢¨¬‚`s8pà¹U”Ž'šyrœk—|efdDªU°4í#"²û]aËê//€â´¢¶ŠòL.¥m±eY"eÚ¾ÝÖ*T"33„6=Ìw Å›ùаÿfŠÈîo)»ËÙ“¯.eŸoF)$šéÚ–ˆ¨ ¦¸ž ¾ôÞ«°¬Ë|*ÐÂù¼Ž¨á T3 Ÿ@[™“ŸY*%(¢˜ki8pà¹嫿úJ”×·\É¡-:zD„Ð̰,™wwOi­I3Œ.›éz:Ô*¦g*Ìät:]¶ì=EE*È”ŠŒÈ»§äwCß7ñ¡½J\àµöä8+Ͳï£2+"›×Àòøx‰p5;÷ÈôBk $úHÖP^"4…¾ ÎëÃ¥{ºÉR¨zò£”¶fE–HÉ”]f¥‡ˆòÀç†*¯l€Osåëu‘ª„F÷1ýt—#´ÆÀûX×/#.—1FkmÍÌX>ôré.mÁ”2²23"D53®í®ãþƒ|h^ÓÃò{ ¶)dš,i wQQŽ­7]—3Dà®[×U+àá¨)” ¨@U°l¾«“!V襇Žb†äµ­V#%ƒ…JÊ®3¯¦éÀϬ¢¯«þxô]³®DIÙÍÓ¼°¨îßbúÐcÛ†j £çãî^Àkå¥Fj{Ž,€ˆpQÛ9p¿™ŒÀžÄ]ˆâÛøðU®÷§yõz R§Íz„{h•- Öµõ~²¨UdeF–*±¬v5}+¢¬‚ Î 2-Ë+ÃPq%ÊFbõ€œ ʪ$÷Ç8pàYeú÷ˆY^ï¸_½‘T¥šT†{µF3¶ET¼2*š‡?>úÍ­©ˆé²ùpÏf¢ UÍŒLFè~Ê CeD¨)±;†¿m§Ó‹SÜ#¨˜Ê'2¦€(eï—®www¸»Aú)†{3Í"‘1ªx:Ù ãÝkÁUè´Ní›§I}J—& Ôž&YÈ.;'É£û>pà¹U”þ©NoÞDBU­0º»»HÁºÚ£ç¢YáÈé™n=­5h3ެ"‰Eáª}D`(šª*AÍÈŒ0î.•xÚkm;y‹€”¨¸Ö•³šcfQJ)›oÛ¶ÝÞ®ëŠÓ©=Äèãr{{«ÉŠÌLŠ6Cb`·ƒ(3ݽ«sè®}¿ kƒ ýéΛ"¬JIÊA”z8ª²5,‹Î‹ –S˜rYZD4iUqŸ>pw‹››“{¯ðu±õÔ²|\ªR@pA’h B„…›“¼¸= sô‹Ýu®Ø m½Y¥R ºL'¡¤¥(´ßX<3¢Ì×/xÔˆYžð¬={]mzñÎ{ïc‰›"ÂIj#Ų¥ŸÜ_6‡*–EYè|@˲HcfºG`>ÀÖuïÖ݇çÛøÐF/’*–™9£º¯Næ¬ò*›å«« ”"ª"UYËrÍF=3ç @ûF§v½ÑîpA„ÊbÓ:èW ›j¤T•—T (%UÈäaÜ{àÀs›Q~ªz¬=}ë{v)™@QUUlÏr¨ª¢5˜AY%H¥‚¡>öxîÖèþ”O[•53c35B( ³Äè|#Ê¥P´YÝc v2¡Š&*àL.S©’T5¥"+#æ3X 7çsDÕDRÉÑ„* šÅî£{½2s'TÑZ[–e:ǰ`+i¶4mç’–0ڪˉvåϬ¢ÜkÉÈ92G¤g½zu>ÌGÓhŽ %¢2±(ÖME0CA/²ñØ!‚õ3HÕ¼P•ž“¡mH"ª¢Ò³ÞƇ²]FÕÔI&2ª ‘0bcUeìÅ RELÄúÈ1bRêùlUYU3þqÚÆeÌ„Ixe÷ì½w¯é£‰«ÊÝLåzÃèФ%ŒjÒZÑ’11£6¯cFyàÀs«(³æK\2_ÆüÉÞkNKB•ª õÊœ¼-h$ª¢ˆë=à´5P‚,U!9哱[« D„T”dæ[ùpDO‘Üß‹˜¹<ªZ™„%”ÂT ï‹¶LÑĤX‰©¯ÌÉ„T¥'4ÂÅšBd·ìœýþUÓ” L /T&ͪ˜@ o¬žÙŒòõW¿Gôôj']´™¨ÌÊ mAïE'ç¬O t¸{ä )J%H%•>ª2*Ÿæ­1B³‰ã|øT'6B|ÖñY#ž£Ÿ=pàÀ¿ ì?ø«—îã|Zß}·±ðò¾3ãîŹ"_ÜŠú£»ˆ,‹¨ û ºÅÖ7d¬§åt²E±®øä“Ü.—u9¯+«°mðH;ÉLä¾uJ×ÓùlfØ.¸ ˆÄã–Ûèh²–—š˜aŒØ¶­-úâÅÚ;þé¿û¸Î9pàùà¿ý¿Jˆi9Þ½>~ù¸´Óº ˆËeôÞÛjçóŽL „ªÐ;¶÷Ÿo_X³Ç À\æœ.¹¥oKÓwïn›bâá—1B87ÉjÄ»ï` ôK± øF>$YÒ/ýåÇQ…wÞYNçåã?‘Íq€@šeÉ傇 ¢¢Z”­Ë–=ÐËYNç›îcІ儞# ÿ?{ïlk^–>ïå÷}kí½Ï9MÓV‚€!Ž,¼Œ“Bm‰V@'3”DÀ¨£ã%Þz¢Ä± cpÆŽ£C¥BÔ)Êñ†¥„I9êÌ€ÝÈ\„´cK« È%±ì Ýçœuù~¿÷2ü¾µú4žcþf×÷Ô©Sgï½ö·×ÚçÛÏ~ïû¼ÏsD”äubeÆÛ]F"0 "\8åÓ“QÉ™J-c3ÙäAe€ŒÛ <,÷Õ‚ç -À+”I¡æu_ÍZŠ–Ž:…2ͼe:ƒÊzÔžŸÝ÷ÃûHZDú\(>Gÿ ¯±ïÓíyZxÀ 9[ØÝÍf®5­!f—aŽä³'¿ãgßñuÍ‘æoùž§ýÛï{úÛþáSʈh­yFH„UÁlŽ©EmË}µ`Áù"J©ÁI„g‚wyy—‚t2tﯾêίùÌßûÝqˆÁŸ÷Ùw¿õGoóßþÎ×ý¡°äþþ×>íOþû§ýñOÊóZkŸGyôþ¯?xôÑGß÷¾÷8==}á _ÈÌå£?å·}G/äˆ ’=*‘ Ì,"2 ¼¥NS5÷pwi 0ÀÂ7âCe§PFÀÌŒTä°‰˜îA$}ï0‘IALÐѼd“A™°£›±1Y†¦°`Ôá¸ùI¿õ?ÿöù¢}ñÿù¨¶»6”‚žô€œ¦: Ã0H)ƒ›…;ÍËdfEF¹`ÁùApºi“2ED$÷6GQ0óQRtñâŧ?ýé<ðÀûÞ÷¾ÓÓÓç?ÿùŸÿùŸ¿Ýn_ýªW¿þ-7}`¦”A¤DXDD0( @«5ï§!¼F˜;ˆ‰ ÊL„ñ¡Št=§˜¹{Zë>—̤D9k–/#2‘t°_;›éfüñ{þ…™øÝwþîG>ò‘W—€×6ÓöÏ/ÿy¯±/œ]´Ûs¿ïiÝ "k dQhѨˆÆ¤"L>8±/X°àÜ€”Ö ÒwùH ½NŽÙ=uGo<ðÀv»Ýï÷>ýÓ?ý¾á¾é›¾é9ÏyN­õ[ÿ‹où†¯ú̾ÚÝO·I4›û )˜‚˜1 XŸˆWsóÔ2D„[·­¼>j·®wòt ¨k*HûÓM€qXŸ»SPŠ3X@wïs³ø‘¿xäÿÛ~ìb¹øGøG÷ßÿ‹~ï‰ß .|ýK^~÷þ›/ý¦ŸÃÜ=H€ë¾©3’ÈbÞ7ïrüL¸-÷Õ‚ç I`ÁT``fpÑ 91?÷óþÏûÿðËúfNÇ3Ÿù̼àúЇÞö¶·õ÷ÜrË-¿þ¦_ÿìg~ö¡]7?–™bõÚ °”B¥`µÂ4q‹IêAÎà øPé° I$éÞ/QvþÍÉÝ@ˆˆ"2gß8ðÜÁd¢ìû˜1=tÙ.?ë9ã¿ç{ô±ÏFàÅ¿÷‡oýõ·Ëæ—¾ô¥øÀÞò–·|Úm·sÀ“L­M“ëJ>ÙÌ<—mœ ÎãÑ›À ·ŒUéµQ¯ÍâqÝùó›÷ßÿûßÿþˆ»ÝÀÏþÌϸpñ‘R投f§G&ÊD:¸@CH—ˆ^ÀR‚‰Çñú|Èû  +HQ"BR3ßîDì Göç”"aVa) é‘I‘ ¢G¦‡×²~Æó>ó3¾øûþúWüwû/ÿáú¢ò¢—¿èÚròE/zÑ›Þô&3{Ýk_wxQtႜNSk°Š…OµÖ–žð/.k œ/\¹Ší®³ŠÔx ,EKI ’``Q°ÓkŸ÷¼çýÀüÀ×~í×øÐ‡>tçwþÜÏý]¸xá{å`æÉÝ®{Vê0 ˆÈjë6á­/ééÙÊ£µÖúx%7âCvŸǹ¯›÷r.©Gß„HŽA‰‡Á÷ãˆÇgÑsÏò–á–rÍfä' aj­þð‡Ÿõ¬gÑs?ÿ¹sK÷š‡uí’‰æÉk,X°à¼½s®×²n1¿çš’“ÞùÏßù9Oý?®ý¬÷¼ç=?öc?ö«¿ú«Ç–å+^ñŠ .|ÿ¯~l¦/"̆¹ýNÝÒ,iêÉ4Œ±Ð8ÀÁêÜp#>ä­2Á Ö–NyæÈ¹!Jà Ëž0†ChYx†Ý|¸Oå…˜æxµMÛï/òÁüñÿñ×¼æ5·ÜzËßûÉß;ò_ïAô’sºÎìÝþxËaÁ‚ç31EdDf¢/¹dè~BGóz¸í¶Û~ù—ùÊ•+?õòÛˆh^!¸»™=ÈÇûìôÈ2;œ¯×c/È<È7âCžÙræ¦Ãx›*Í>Q9w}Ÿôï®ï'ô/ùæ/»š/ì¯axðÇþäßžýΛ¾÷ÚöÈ#¼êï¿ê½éãgÒœ¼–‚E³O"ÊΡËÔ{Á‚sG”aîG2Á‘QB|d÷Ñc‰ùwÿñßý?ûßø³ßxÍë^ÓßóÔ§>õŽ;î¸ãŽ;2óòåË?ÿÏÆRºp}¦<æˆ H&Á'ˆ!JÃ003³t޽²0k #‰jø®Õ$LÕkMF†´Å kZõ:EKb¨®ÕyuªÇ´%¡K¿ð ñ5_sïÑ4M\zlY¸bð5ôL¥ì£m³b-X—l°=¢-'ï Î,›ÚDDM8AÆ194¡ !Ô¨ÙÛŽiô¾Û?ø±~øÁ¯zÊg<¥_¡”rë­·>òÈ#/~ñ‹3óÃöácâí¸^]ÝLŸxlÏŠaM ZU·I[£jÈ@Iœ0. |B6ÐFrËØÝˆ9<{@ìq¡²Ã%¡Z›ú€0ˆzùñPœ »F¾Óº#º>íŸ|â–Ý•ñ§¯ß¡è¿)ú÷ …Ù¼-ÄÌ 'dì,jó ÎJ)"Òà ¸ƒ™T53»YÄ}÷ä°þÉ×Ùn·ozÓ››²?¸—„µÂ}NKìšÊž¨s\å.¥¨jðøû‚`_?|@´æýµú4yÀÔãÄ¡e$$Á3'{¼“؈ *Éê´"½Îš6™uÁ94MÓ´w"”2ŠtïtÕ(¾´),8wW'¥3Û7DÂ,™¡Šˆœ¬Y^K”GÈ^Û·¼|ùò»ßýî/û²/{ï{ß+"/ÿæ—Ù7p9h!¢ýaX½¤ë»‰ÑÜç«Y²|®Ë‡óPÜÉ_˜ƒ¼¥yWN¢¹5·Ì„#‰ADŽtw‹Ç{ µá˜jÓT‚ áž5g=<‰Góœe>‡}ÅÌDáî g’Ð<4øÐz )ÒùOøÖ<ùÉOþÁüÁiš~ç§þÎíßõÖÃú&…“5´ -‡mBˆ€‡[,fì œ+$I”w˰fÊe6‘0:T‡ü®¤Ä'¥g=üðÃwÜqÇÅK_ó¿>Fð>ò’"•A oaæý p¤Â"8Yeˆ6·3®Ï‡*¢ž‘žÞÅ‹}±2ƒ,@ –‚ôINDœ ³s3sk…:o’µ¨2¿ªöq ðãKºõÖ[_ñŠW¼ãïh­½ýío¿åÓ¾© J¢‘û½)$DòÙ3 =õ|¹±,8Oèƒa"jõJ‘ÓÔ˜‹*eŽîÍÌD©J<§}]ïj»½J@tŠëu%3‹P„M“t:"¢ìv“ÆÆ@‚J( ò¼>²(…QH†eÖÉš„I¸¶¶kǼ¸p«^-æê>íñ’)»}»º·æˆk^ÓÅ‹¿è‹¾èž{îyÎsžãîo|Ú_”HÞímjÖgó`ºÕ>µÅ¹wÁ‚s…©…ÊH:ˆ…gæ~jS+ʈÙaFœt †¡mÒ¦¿|µ0o{€:W&%ÒMƒJì¶áhÞ˜ÙÜ›Ãàyn¬"7âCîb¥¾§ÏÙÐ'ƒª»{‚$ÍÐ<" ˆ9’,Ã<ú{<°;pY$¶Õ÷5Z^GÖsrrò’—¼ä õ7@ R›Õæ‘óSÒáÝÝliR.Xp¾*Ê–™àRiÑ‚¸57 áîêýIƒo0ãÖ«¯yêå³ Ó÷\ç ŸÞ'º”’fã!**„lS=¶7²Ížq\ ÂÜ ½jïq:Ên·‹l\ šC‡²Ýn[kLg'§À86³«›vvZ•pÙÕºÛM<¬KYÓÔ¨þ§íwÚ¦x÷»þ¢?¿ÖÚƒ>xóÍ7¿õ­o%¢ÏzÆÓP~GÂSv““ø BŠIL6ß×éh²´`Á‚óæÄÊH—.]zô¡Ë§ëÓÍn?™Ür˸>Õ+©]q¨ðž÷à¾û®sµ"B]³R…k­*|º.ÊÃoû}bFDkV›+ƒ7Ý„HÀàF|È}ïER@kY縨 ™Zî+ÈÔæ¨ Ök<–1ˆ›cªH ’Ÿ¶~*æ€ê¯ýÓ_ûêg|õW?ã«ïüî;û+ùèG?z×]wÝu×]DtñâÅ—ýÔŸv%€É±·Œ$Š ã^$ Ö¶Œ½,8_ð îê €•t,Ü3T'D èàwßpÏÓ/þV¯ø»ù5Ÿö—¿ü%?uíun¾ùæŸù—?󓝸L è@)ã8–"”n¡ÌÞ¬ÏÑ»×y_&4³>þC {}>4¥ ”Òg&µz§B”í¾mw°æa Ìì Xd „smÙ ý„T‹--Ê ÎÙÑÛÐ*š# ª¼^Ÿ4OO ävŸÖó2bFöS5ézRV«ãEn½õÖú¡ºL>Gº IDATóÎ;zð¡ÿåŽ/>¡¯¬ÇQˆ{§rµZV®AÄ$¬žT-6{döZ’nćÜuã,PžaîAhŽ2y?Ù~çèÍÊ}:Eë>B Ò,vÛV'xâK¿óKëß}É4¡u¾ð ¿ð‡ø‡_ö²—õ7o»í¶_ù•_¹råÊ]ÿå¥96”) "Í£9Z.¦ïƒ fˆG^°`Áù@­¨ ­^‚qE™”Iž´ßW3”Õ‡â¨ï.G ÃðYŸõYïÿû3ó¾{û™<û!zº$ªzz:ÿ»ë3û’OïWN{óÙ_7âC4.#‚ªöQJjÜœ¤aª0¡ÖàìA==k\"¬šov©A‘Tv“Ñaïû÷ÿ÷ßûÞ÷öŠ÷éOú«_ýêoýÖo}å+_yåò•×Ý“¾æù7%0Šb·ã€L-“içÈG¨Bµ,7Ö‚çªGÙ’8©’„HÑž“íÍÖ6FàæñÉŸ˜ù³ßÿ÷mûÏ>öècÏFàçï¹råÊoþæo¾ä%/yË[ÞòÿèüðÃûk,)zè¡—¾ä¥‡·z`yts ë³¶«pkîVŠé ‚Ùn½^î« ÎWEé$xHD,¼^#‚[ f6³ÝNn~ÊÍí"€ÏýŸ{zñôfà øÏ<1¯ð—óÿøõNŸ”BˆN”óJʺûõô¨2"OŠtaš¦‰QŠÊøPW#jå–U³@„ÖÜVºŠÙ¸9a·¯„õÉ ‚82áS—bBYZš×š.Ã0 Å’úÛn»í ¾à xà{î¹çcûØ/üÂ/ÜyçÛíöþûïý[þÅ;ÿùvèÃWv‡KOâiƒHŠ$‹pKÊʃÕRP.Xp¾pä 3Hõ *ÈL.aûVãyÿ@«øâgûó«±@ñ÷fqÛ­ÿÛÞþÆ«ûmÚŽz(A]+C@ö¼”RÜ“lÆ%—g†¸h­øé‰ÜˆÙŠJa±Ú"°^cX•}«;«µùäp@FZ­ƒñ‰-&B%ªD“c2˜EPˆFDîwµ5'…ñ‡>ô¡üã6›Í»Þõ®{ï½÷ýïÿkæµÿúc/ºÐ“v·Q.ïA#\É!%E _î« ÎÍí~wukÍDÝÑçd…Õj¨mŸ)úè¯ 0Ž…ˆÌ,æÕj|äã_ù-ûqYÿŸ»þïwßõ»\Pž)%1ž€=q+ƒÌÐ&¬F<馲^îîVÚDÄkÏá‘«¸jO>+¢Õª™ªP)´Z½Q˜4&qß Š€Mèñ9PBL e*“'12q8覛oú¼¿ùynÿªÛúøCo~ã›ßüæ7_¼tq÷â_Ùo›¯€ŒäòÖ/MróeŒÈ,judP,~ œ?¨ääžÍPBë‰ÒLûþŒÍ@^c¯“_ N|èÏ¿âŽoävï]ïNÄüJ‘ÀlGD‘H0¨'Ü(£Y!ZàÄ„X_ŸµÖXð0ðfBkË0œžž>úØULxFÜË"Ïû4‘àˆ¤(Ò#ñ¸CÑg|æg|ó÷óý·Ó„Í´ûŽï½ç¡?àÂ¥ O~ryÄWw«“õj»Ýn·gO Š0®Ó.„ÆÕì &t ,8(E¹YóIššòª ÉjuÜï÷N¶†4„¢çbRÊ }ä¯ü¡o¤ÿ馟¡˜=Î:šAÊ€ <Ü=5 3J!©Ò<"@)H 5X‹Zq]>¤ÿá·¯^zÒ)¹Üvf«õŠý„‡Ù6 BY­Æa€5ìwYkW£éƒut×#bðA4Þ<Ì)3“¸sz$ö Ûý´¯=½xrv7݄ƟþéLjèÏø43<øàåKëᙟ¾:a¸a·ÙòâÙêl¥Tñ¿„ætÁ‚ŸÒ ø‘ßòO\ÙNµIYŸ¬†‹#ÉÕŠH±ÝàÊ• .\8åDQ2˜rTFjó$Ñ ²µ*BÃ0̋܀Š‚LÔŠZ+q”Õ¨…¦†Í»½W£ë€æ°Šæ~Ó¸¿.ò4MÓ†¡ŒZ胚±°pŒ £0‰ˆ™w—öcúOæ<ÇÌÎáeˆÌõr)B”µ¶Ë—áŽKpv²Úm®l®Ø XeÚm뙜®OÇqTÕÞ‚]°`Á9Ãjäõ(CaeGÖˆîÖ A—N«ˆdÂ=€9¥õÝ­|€Žô œí.ºÉ.g0À¨@D™é ‚a„fq† e½!~ ,,å‚碢üÂRª-X°`ÁúÓwO»ÝN‡róÍ' |â²™ù¸[`³mÓ¾*\ˆIRpy‹Íû݆™ONÖ«XÍfRÕaUd¢š·Z›ÅÅ § TÃvËWw»i V«§<¥Üt?ŒùÕàGñÝõsý¼nù[°àÜàõ÷fkØ×¶¯-ZxÃzUKP…VkÔ W7ÂÏNW'k"èY ,Øìaf£Ê0î™aà@‚ˆDè¸ÓÝšOSKÐúd­v{\¾Š©ÙTX•Ô‘#Ûuù“PÆ™w;Gâæ›ôâÙèf…°R…( éL` cAQ(#Ó#<çÞJ)à ̈„(ÎNåìdÎí¦†c=àtÄÅÓÕ“.\8Grß<öh4(áäјÂ×þÁ_þ³`Á‚s„"}DÓm5êz¦DÄ 4(ÒÀÀ骨P)`FkYë„Dˆ õ€QÅZm5”1âË>¦Âgk¥p«û"8YQŒ*'ãÀûÝÞ*Ö+œžÈÇA%•\ 7äCeæ<“2Á e &˜dÑî ]ÑàtD8¢Im Ñ"„¥ÀAé‘…Y…AÊg«qª^xn©®”8 Éœ2(Ùu‹‹«#Qʦÿ¹‹±hÎ,8OD©`‚›'“L#A!#œ ``(ÄR™ x *G¦{pO +ƒö p-¡P!JØ-³+Á•±ešZ"äñ¡ÎžE B„ EALd0©p¦'u¢LÂz$ÒËvÛ<[: c%öûtw˜„!Šá¤¾×2e—N.“î ÎÌPJ“YŒ¥4O÷È4dI D‡MZD”àAÌE»õ<´Ö:k'Äjæf¹Z@ægVf€#4³µðpRe]¡UÕ˜EHA×çC'`™Aaô°3£ 3ó–GaЉ2s«mV§X „`Êp3I!a¬‹D…1k)pÕNF)u7%«fö…ÉNŽ Â!šƒ!PN×ã¾VwR% L„aGeŸf¤"¦CU™º)ÒRQ.XpþànPJL‘I‘°Ã2DðlF¡Ì°0KV-ŒHDqÌF†Z­ŸÙ»µ":oˆ(scOˆe@á†t¤a "2"˜õº|8Ÿ‘‘HP†Á;ã(˜€Ä©s?3F °JD4 ¤· ''PFTvo* wœœÉ5š …¨Çà(ãd5ab?V‹\Á tçt:¹³³åB– œ7¢t@U¡‚t©!ˆ’»ÒØà‘<(1izz´¬VJ‰f5Ó à¾ È”)éˆ@a¤Âœû¡tPd’{¯A„"œLQ3€L¬V,)Ü2â|¨ÚÍÛÊ $2`!­Oâ3,<;^A*T˜‚‘k“ʨŠS„‹ˆ2r,T…ƒÉ…´Ó`0NG‰ðD¨<Þ£äDdô/1¿3û×Ë…(,8gDÙTÄ`í®ÀÜ­$3ì÷AA„qEfC­îÞŠfé 90SwcݽVQÅ0ð4e¤QP„0¡9Ä=3ƒ‰©Öƒ…9sv¯¤"]šÙ[Dtx³Ÿ,XpŽ@DäžóO7333T1ŽÅ,`ék/P¥ªÕ‰¤(J)}C0‰EÀ¹³µÎbA˜'Ãâ™X4«izÎâjµjîD""ã°ŽÝõùPÝA î¹ NN÷¹qÀŒq„Y‰ÈÚŒD3Ó"ÐÒÝHU3ÑZ :”w1s…§iéOŠˆ£?[ÿ;ÎŤrTÍ<Ùߎ…(,8‡`f÷ ‡ZÃ8jkpwVÁ8àÖÚ¯?o¸ýôÀÝ› €¯»o×Z䪌£fdæuæÇ±ãß a½¢<¬Ï°ÒHãþÊ–ûFŒbw>TtI|€ Ed†¹•Ãìe,ÈѸµF”žÈtMÚ­Û›g¸Õôa(+ J&FDˆz‘@Ò¡–ž"³Â¼%@LD€3#–&å‚笢‘dƾ"·Ü@Íj­Æ+-îøó/~Ò«çn6¾¸x×ß¼åîÍæÛ>œ¥€r¦õ‹ˆæHÂCçî 7äD—çE@  "Šˆ0æñ!#zýèÄ™™­5w÷÷.ìÄ0¢aɹ`ÎtÏîàËŒaà>žN„™»C¥3EÄ‘òé0£‰@Ä\NÓaLCÊT˜”¹+C™„©0ÌE¨Èrc-Xp®”Þ«%vǾF&Dú„ÃÜÂ/|=³y.à>à>à¹À·o6¯~ö³¨Ö4³Lê sècJȃBçZ^ÎDDxµ“a(«L´ê­Åø!°Ä¾µê@„‰9 aE1„ NPx´ÖÒ¬÷@”¥ˆ5«Í@ -È '„ ”Œ@8e0  9T”T„TX…‹<Ε*RD‘¢Ëµ`Áy‚Y†cŽ—M\½«•¨ª»¹ãöÓÓ#K¾ëôôµÀ}€ç·Ÿž¾þéŒ Sr¼! ÜÆùµ‡?à?F¨–­†µ®£$›Yk~#>ä´Öj­fF„Þ"‘ÎÓ‘ÑK¿¹_)}4•æÕ=çC3Q·n03ëütFdF"2A”Ì  oevñç1æT¸©  “ ƒȸT” œ3¢´ˆcâ6_¾ºÀ8¢ˆÿêôüÍæÈ’ŸñîG_ö‡ûwžÞwøôÛOO/=³üÁ³Ïz XküäBÿì6ú?÷¬Ÿµ¯ýZIsngÏÔ‰æn肸g¢¸.êvïe(¬2Mû«Û¼ cg."j­…9 C 'P.œìÙÌÓ•>¢¢Ì pÜtixì±½µIU)c{µ©êÉIñFÌd¤»gfv>%‚YfÒx%dÖõñ7fr%&äâ±¶`ÁykRÎnfI@"#÷û âÞ£{1ðÜCýøÚÍæ%Ó¤ªwo68=}îfóí›M¿Æs7›õSéÿpþígÊÿxzúí›Í}› žFW?š‡SyïT"¬âÖÂÜ3¨¥7ç“GX¬¯^½šûr]>TwW•yû%¨³‹fÖ7c""‚CEAfvø1½<†ÁÝûÁ^XEèP6&‘dfJf0fœ§Þ~ȶå2sºˆ22£Ou˜ˆ‰—‚rÁ‚óf€"Sæá-ÄZ˜2 T˵ìSïLzåŸä/~áôôù›Í»NOï>Ðe8ܽÙ<x.ð2à»ADI§LGH·¹¤®<”D8ˆ“R!R½!r³èkD$â™SÍp”¢ ¡¤–†Þdìâ¦AE™(#ÝÒÒ{ `Uøt5*‹Р€ƒAL) e.¢Â D†#¡BLð¢T".*E¤( CçeI¦\°àœ%%à8³šy­  ¼õБðüÍæMÏ;swkñÊ?λ7›×ß·Ùx+ð–?Îø&€wž¾ xÕŸ¥gƒ˜›’=ÅÛOÈA–pO³˜*Ì!‚anćfA$Hv³JMyG0kzF„ÃQa††A]&y,*{ÉIe ­µÌ$J"òp¦ÞŽìÉ’Èäþ "Â܇Pó¡šG 3Ó¼—î}PÏļT” œ3háf‘‰L!AÌ‘­VZÿê}ù®Ï?ë >½ ‡Á‰øþ$™ñŠ="òåáSK"bÆ·} -ñ׎zI'<)Í=»+FtÕM¸g¦efbRÅ8ÊcM×çC°Z`jé LjÕ[CDT8w7szêƒ*TY•™{TnDx×9öæ|Ýã7$€è“{f¢î8ŒèÜãüž‹pQRíSo)ÂE¹)§ð"Z°à¼¥2>¯*'eˆÛAwH¸{³éEå}ÀÝ›M&ÜÓ áè¶i òsªsX K˜£šÁIäIòHïFbq$"Q«µCÁøPW«¡Vk­‰³º·V½ª(#“‚$zUÉ,”(×y,u4õ‰"Ž¾Ç­šáîÎÌ¢Ò³Ðæf%CÌYè3ëžôqÁ¹ŠPo"¨Óƒ£k¤–’rÁ‚óš—P(ˆ$L`ÚÏŠÈ¿÷¾|í_§ÛOOïÞl^úûÕ,z߀¾ùLOJÏ Š„ô|ÃpDº$A™úî Ò3:»R "$“º§‹™qC><;ãJk&¢Ýñ¬»kèêÐõ$Šðpvvƒe@B‰È½OÛSDÜ“™J)]¢)I«R2döWï%ÍÍ÷쪣r,•E( D}9PH†eF.!Œ œC¢d¢Œn†YT21M’³3*¯üãtÇË3Ý“áìHŽ€”nÄ÷4 @¥ ‹pH±€‰ Ó~¯ ¨u#µÌÌp€¢Vg^‰à†|8Ž¡R™âÍÍr¶'HYBS`‚A(ÂÐL¸2“™#‚YTá.µÖÌTFgÎijJÈ!T"<³@¯Yt„õúòPT"Á¦éž¼ìz/Xp®@„ÞŠ#$,S„ÜÑW¥qV®¸>o5“$e&y€rH¨±Œ´´ áB,(PEô3B,ƒÂLîpËfáîˆ x‚µ «“ëó¡îw8=å¸Ûí·^NOÙn6*]¢™ênÄÉ‚1Á"ÅÖÜ჊qîkV·R I7”Óõ™¢A ,2<”•iþ 0(|jÊÄÄr°Y#akÔ–‘A""@@D¥Y,7Ö‚ç ëvNw™«ÃjdòÍ&Vk^Ÿ Z ‹¬îžÁR”¡ÀH'«V3#Jðé 2ÉB‰0µÃN `×VÛ>ê0Œ4m™uØm6IR._èú|¨ý¼¬…¥½9(À‡…ò”ÈlëSHÏÉe‚–$À]œú1ßÁB`B2º¯„8ÈÓ…‹"µº¸[$؇™(UÁH…PF2 wôÕ ZÎÞ œ+tKÝ"‚ÈôÀ5?ã™áìf¸§$z¦%ƒ–Ð8(²™)Âh0ŸO¥­†;J0  ³Y$"‚‰‰¨g‰fˆ wº.r­5¥ð¡·è(…ŽKæÌ`&fVk=úY(± 1“Á-Ìg› áI‰"TT‘™e0Æ2q˜‡Ïò $…“…ÕAI8u^^ä"<.»Þ œ+˜Íž¶"Ým—'Ê.¶i EY¤Ó%f‘»·hÍ£Uefw¯µí÷½Z„™í÷ûÖÜ}þZDÜ?=³{_ÎógfÎÌNq×åCn­ev³ŸrÎ@î³Çp ×N³Øm£µ¾¿ˆÌôæ”9hOŽD†¥‡>î5™­¥†Ìpw° VÕÌŒ˜£ xuZTIDAYv½,8‡D™@MŒC˜Á‘m"ÒZ´æÌ`†ò,%Lx˜›™ˆ²ûòô1I­u¿ŸË5fGDš¡µäƒÑû ç`4qXªž‚®Ë‡ì>[=vƒ£ãsÍt÷<š¡1sŸ€ï÷{÷*˜W ×£ ÊLI‘”˜@6U ŒŠQ6eFE Ê….kA¨H2 •TJ¡` ‘^Z.7Ö‚ç žÖÓ¼Xº";Ñȉ܋J·nã fˆ°(Q¦÷½÷¾5Ý‹JîÎ’Ó4uW³R´†fnf™`V‚dPg¶ÝÅq#>äΚ€UU„@Ý.¨Õ¹´$³2³'Z_@Tˆ²(K)(¢ƒ² Q"ýè 'ÑúÊ$ÕZ[Ë‘Ë0 tÈ«å"2(§P SQ;Èi¶Zn¬ Î2ûñD¤çA!‰Àp·Œ%˜Pƒ¨21%¡ëÓ=2:öl.r÷ir3”‚a(™ý1tð„ÔΧ³.¡{æIóF|(i J¡RJ7ªFêké?$ò@Ô,öÝWU™2EQD•…)Ó#}θ`æi¿Ÿv``,B€Õæ Á8¨i[E¡2¤0©ÈPPÄ(ƒÀƒ`!Ê Î˜¹y«Ö."½¤<.ìåL¦s­ÆÜOÄÜ·ŸØ“,`‰ ‚”¸0»ºÛN,P-HÄ, PåžAÖé±­žÕ#"7âCî…¨;öÂ39Ü,6/t{f “´¯¾ÛÚÔC …3³M!Ò³ç†ëaË"¥Ußï§~Ô'¢k­Ñû{æïšŠ "ƒ’2DxÖ’Ì–²å‚ç ½|ë®câêA$ÝSò8)Q‚ аÎ@:ØMÌédÇÇÉó¡#LÔÍsùØëìök‡ÏRUU½2À™y-µ1#ÓÍ Ša1zÌCß Ò²•êÑ*(D4M3ŠÌC¥~õýÂL¢hŒ«Eö“Å<‡–ÙOɈS"©"NLEËj¡LN…(,8WXŸÊ0Œµ¶j¶Z‘_ÙNW7U'' U'’ý¾NÓܾGô€Ùý´3‹GÒT£YO¬Esg‘ÈÜí#Ó³µ–ñÑ+» ˜!¥j‰@kásŸDIË ùðSpÝe [°àS¾˜üTë,ÿe ,XðWCþ=Þû"|)ï7aY‡au(\³ÇM4wpA ìö¦Ú.A h5÷AP¤@C·&ê¶œEàæ :P&Ñœy{ Â¿òè½Ìº,8gh-f7Ê’­6üÿì½[ˆmë•öËÿϹVÕÞûHG­VK雈Úmˆ#µ°qœ´ãƒiLBp^ MÜš<:È“C¢‡ü(CbLâ“¶ 1í8Ý ¶cZ‰úb·¢¶l]¬#}ö®ZkÎÿ—<üsÕÞG§J:¯*æGÍÚ«V­½jY_Œñ}§03(óÍ"ÃX(2Í,Y'bÌÎg Þ(3ݳYp2‰È¨(#ÔLó0Òx¸µæ ‰êÈyT¢Ì ÏtB9 °Žå&""0e&Q´ÖUÊõ$è <ŒE€AçaÈF”&” ç³zzoF}Û–¢"™@RòfØ6æIÈw¹ïرã1 #"2<ᑌåĵ@ –ìîtQ˜ôîÌ:\‰ H6KF²`Ô†Ì,B Ê ùa}ãfŠ 'HgæØ•ä˨x®Óš½[dRâ~>d`ó43³®™î¹®f† 03oÇcmw¡Á ó8ˆ™[ßò+ÆÆæ0mÇ«eQŒÕ(¦a³Î½û²´í]Sj C*P¡"P…p ï~”;v<¾£wz†‡»›Åºt·@îá—„êØpapÌÓ"s›’€ˆX Ä#šaÎ%š<ôº‡_õöwï½·ÖâCnž mfðD=LDäáá–XZ_×¶,C<¢ŒˆRHÖ:‰ˆ»ŸNè‡]]Í"TU‘Žt¦Dz[à ¸º&–Ò-Ö¶­•’ŠL’ÂÁD)B*\…Š’ d7:Ú±ãq½·Qo¦g˜gà|òåL¡,ý²G9M“»/-šÁif^×n f0!,­uJLU„¸$ð@§òòÅÉ<µhÖÞº3JQóq>Pâ!>TwHܳ/Gw¨ÇPˆ”Í0÷h BP†ˆàµp ¢D‚é 'Èàr*B+{ZD$‘q&G@Z0¢¶Šr ò¦1¿0Hï ç;vd‹î[MK Ø¥Ä ‚¥Ðq­(JUêm ¦ÂB攘 ±‚Òà aÅaÂT„)†0F ²w0c®8¦©n³­`¡ÞT"Á²•E¸Ê÷ðÚ±cÇ÷ÝÑÛF“23‘náæÞÃz„Ç]iTgl§cnd 7dÒymçÕ(ÌL1޹<&æ#£q]&Ò-»…U5Ý2.E¸êƒ|¨ã•ÌL DX¤ >HgæN›‰rûòeñª…já0öLjA2˜a‘N$,Jc„ßœ£Ñjq)V9]” ™œwFÌ)¤ x`&Þ„:±O½wìx\H%äá!†SNäX&õ%¶­rGÈ@d=>OR Dàeª"‚{w ‰&!$j½E­Ì 3rOÕmOH€Dؽ|¨¢4Nò4½Ä RJï«»§'[U…T†žiˆR¡ÒÌP)ÒI„`ÂÌBÂ8¢I¢g€)…H)™9ݽ!L  xØj‚iôb…÷ŠrÇŽÇUQú°Ú†*Ã#ˆ2‰_3|0‡*ÕÃl=ÌÜ]ˆÁCÆÔ»÷e(ÁX#‚"Påf}›ñ¦Æ± 6r€8ÃÝ!|¯‡øP§©fFDò]°<"K©Ì<¦Mf1š•ª8gwwQ™*e2”¨Šdd(%˜’‘‚d&&f¤M‘½7– "„ˆ¢èkþ…“Â$à@f0¶  Gà;v<¦£7€KQ™4¬‰8_¹­h­×Z…’ó©g&‹BàžD’AË95IªÔzOVªEÖ.nÄìCßM’‰>¤>Œ„˜…  €ñ¡NZcw'b–m{|Œ¢XH’b8c8fÆõQnoݬ“J)ˆ`7¤£¤ œDDIa* z/éA!Œ§%Ô­ ÷ !™ADÄÚÃ}vìxlˆîw2<Ú–)‘„Œ|½ÓæÞ‰ D@Âa—ˆÚD•ŠÌei’åúš‹ 'Öu=è\+J/ÍÖˆàäq`®­ÓŒZsw&Úv‡âC­Öaáàdh‚@ÐØ')D1´Ç#Ngw·šU…‘ä,L D "Ä0òpª˜jöÕ’„%™3Â)U|ÙäÂ’‰•™G8× ÜwìØñˆ*Jm?Ý „çFWï¶?ý  LàŒˆn&¢PCëÙÄBH‚Yͬ8ý5ù33bòL[$1%=ćʆƒ ”bfé]™¥èàÝ18wHrÈ*[ÇoÖ^¾¸íÇÃ<ÉùÜÚY®¯¥NXV ÷RНíüìÉÁRðæ³Y8onÏK™¯Újšñj‘\+E€™ƒˆ˜EÀ)Þ”;v<¾Š2ßâÕ=¸(´_ÝË [Cç ¾íF”ÓÕ|³ÆšˆÄâ”-O 3t–Êå´¼/:×júö;'âéÙ“™æðpÊ€‘ßrUÔRÜ’Á ‚<À‡*b€ÁÊ™É$ƒ¼#A—\‚$<(u˜ ;KRÆðe¢”±6d,@&¼ª0ÀŒ$c®Ü91Qja– ðËšVõÙZ“9ÚØòÐvìØñ˜ˆÒâŽb¸ø7bH¾ïØS‰î!ì$ŒZ¤uwfÝe*­“…ß,€`žkzZÕ”RµÖêÁÝQ¶é¶ ¿¢ˆgÒaO¶ùkîçCÅöÅÄÌ›¿%ãÎi|3Òå­¿éžDL„¢2•êî™. *c‡)šfˆÕÖZ&êTÇ+†$‡©{v ‹Ó»\&µV M)cÏ|¸w’ì§ï;ßÑ;·öí]lÖkÔPªôæîΤª¨U/î&ªó¡šy„%J) Bë@ Ò’™T €Uøa:-Í”k¦#óÎRf…]$™ˆ‡ÇúP¼ï4¹cÇ£#JWnãxÅ•À»ÌÂDØÅ›õá§[+ºKö€µÞ1M´t_–Þ{)eŠˆæf"˜”¬Ë²4ãR1Ö É##ÂÝY$Â/Û- ö½|¨–ÃÃò;™ˆ†_ƒ ¢m©(úÚŠLõf˜Éù¼fÒ4I:ÌÍQÐ8B#Ó)u<Õ¬ˆJé²4W‚!)œãB”E §Dñ6ävB{rÇŽGXQ¾ž@ý`1$B¼™§Y¢Šl_U95_×.R˜poq>áú ,'Z²7ϲåÈpwcчáy¸ƒ/ážô¾Êõ~÷§·¿^T ’a³înæ’©µbšJk Ȉ«hzd„½ú:éÅô- ‰ LãP¡‘–áŠ$¦;3%®‚´ äpo#e /âýºÚ±ã‘e|GyöžÂrÔw$B¢œáfY ©R©R lžÞÁ“šÛùlÇ+f•ºZ7‹¢,‰ðr—MÊ E†»‹Ê ›;’y/êF§Û«KË=Œ €B莌‰AîH¡Ö–&××׸>"lönÖ\U"‰Þ³Ì4Ï:X[-8l.2l‡CÚjÁLDrySD… Á¡µb1»úŽ;^t®L¸ˆh¢733æÂŒiÒ³EõH7ÄPø€Öæ§³–)J=2‰U`"çÖÝÑED„@á®Ê´¹Tâ!>Ô× Ú6òf{ú¥®ÕE$q ñj뺮WWÓ4ažËÉ{ëËÕÕ•¥GDKQ¸Ãûxsdto´&F]¶Ýw~UQ2(IƒdÔÇ€˜_MÇwìØñˆ*ÊQ½]ÈñÒ¯|A/âéÔÇ ¤(W²n¡„[nÛ’,q>¹<‘KÉÛ&aÍ¢µÖ,‡&.[îªÂ—R1eø‰TÑI¡’Â\D'‘ª¹½wìxtåÈÆ¹ûˆËq$ß6,y"$R¯ÌÉKE)D„LOÂE`£w8¥@ÄN”"LDc}ÒÝ7k53 ’#âA>ìÝB˜‡È:"Ü™#—GD2= œÛBÝš{•2C…•“2€$JÎwß>3, îÆZÌHÛèòÕ2yQ»„d2œ˜ˆÀÈݸwÇŽG×£|?ˤØ{#@›‘ᤄRÑZ’^ƒÁa03  R؉Ä!d=3<ã®X ¹K$"нߡ߇ì³ûRîØñýŽï7âÙ—wìØ±ã{@ÿÂßZšõÃ<={V(qsÛ(üúÉ!=ž\±*Ú‚ÞŒ™kea4A·XÛŠði®ó¬U0Mxù2Öe™êaš(ë óЙYG™ÝmmÄy˜æÃAU±.X xà¼ÆÚ[: Oi)ʪèÝ×u-Už<™ZÿõSûé{ǎǃ¿úÅ‘½£Y¾¸9×2Oƒ°,½µV&=&7DÀ&¨"­aí~{~q¸z¢EÏ+Ng`ÄÌh¸LĶÖ"Ï®¯Š`ípÂiñÓiéÝ™J­UU”ðì)zG[²÷•A÷ò!#ˆ’ÛÒn^x&ž>­ó¡¾xñ‚™WÃÒäeÁi'ƒE’xm}Y£9š£x>›õµC êŒ=æ0GDI>$f3>3!È€YáÉ_'Q$g*õŒÛÕV*2Vpݯ«;zTÁ3ÊLR¨{[šy@KÑRÂÑÖA&¢›÷L‡UPUÓu_¬Ÿ0 ¶ž¼ÙqB-”¡îÁ8ŠõzêO&bw_,K‚§(5XׇøP™•Ý‘´-? ˆˆ»óPÕl1i„ÌÍêg›n_d…p»[~bw7“áÂÛZ²Ü™Zp$šƒ"&— `fBÊÂBá}ߒȰ?2‡øð;v<&¢ô@gU$!#g1Ò" Éw¢ÁËžÌðÅ\ìÍx¬Õd Hµ°Gï«”BH¨“”d€BØ0EU];§cSˆ€•Úí~>d¾xkD„ÜADªÚݺ…2„dd¾ „D9¾~8plù¹Œ ˜EJéÍ{O¿„IDD7_› ÓÎôæÃCˆÌÌÌ3ÁC;™lëÒ×e¿®vìxT°ëjfÈ"—2øÄÌ2“ùn›gpŽl–ƒ[˜¡*cq,)ÖZ‰h]׋fñÕgÕ2³ª–RJf¸wïûä„yšñáæ«1^™™É"ê>¶^ý3à (óî_ûG›úg”Fy:÷:Éá-¼6^×Vk­UJ©lãèÉ̱_W;v<*470mÂE&eŠˆÈ-žz(ô‚™ÿý?ô¾šoÿñ/ŸÍ0"#%Â""‚AãUÌ^ÖÞ"ÌG¾™A™‰ðªÈØç3wOë±ÆIi4 ƒ_wf‹ÈÍX÷µ—™îaÆÊ[§2"܃„kEë0K3å43³õ<ŸGN9TËùì„, --#Ñ™T„‰À'ö;v<0ƒR#Ð;D†–F‘Ì Ð¸=ÿ§ÿÚŸþîOøùŸû¼ªöÞµ”RÀ̹դNH ¦ fÔŠÃQ̸™›§–n£œ|€G:ªMϰðpd‚T’$’<›-$0’-{xŒ1ÿ&Jl}Éî!æáÙÌ{3ø²[o KôÈnÄ/n–ç/à‰Zp[z[GYÀŽK{”á;QîØñ¸V4ÃÒÐ= .šL²„#ƒàIC͸ØòùŸûübË{?ÆýD¤µ6NëÌÛá}t*#à–™(óŒ:1qDXRx GtÇC|¨tHIºo=D‡(»Çÿæäa DD™¹é yè ÁDyé4¼šU½yøÂ'~àï|üÍ¿5Þ”·n~ü·þÙ¿úÛßü£ÍŸXDÕéåËwtxó¼ñ«?ýÃå—¿øüÓÛ?œ„ùøÏ߯“+‘‹õ89ýË?òçßl¿‚¯ýߘóÝ·ðnßšO_þ¹åw–Ïþíßý3sf²e³WéaîH ›q‹¼³hß‹Ê;ÙÑ;·Í–L6#ž×§ßòõ~ˆÒ"’A:|u·=¡Dš‡ @ÆThš*€ J"70îçCíÑ9JöDZr¤G"ÍQ‚2A¶HŠH‘ lƒìL"æÃ‰ßÿ¡¿òæ‹_Fÿ-Lïá6ð6}û×~ßüíîSÿÏßø­_ü½·>Ù#z¯U·ÝL³ËÒ’Ûø­²çåìØñѱÕP&EäÅ0ƒï~ìï6^ÞQön"bîînF…Ežž’pNrƒB¨U‡iY#3=(x€uðn2mÜä[öDˆ‡Ü6ȾôD·ý&l JIÄ”­AµÊ躇u5+“ÛË  ŽÌ‡øP‡@ŒX "¢wWe"jÍ“Pª‘»3}Oš9©$! ‘¹1áYý äþCòýøOüØÇßxùÖÿðâ¿òë¯îÿÑÅ=ùêŸzvüÍëú󎤛eUÂ$þÅÿã¯ÿÌŸú%Oìiµ;v<2Ló±·\ ”*0Ë2Ö5-­rQ ª[+óìgoýÒ[úÏ>töó¸1èrÜpœ¦u]ÍL…ªË‚ãŒÃ„ó™fÑGÚ ͸fx$2â!>ÔÑŽtKRÇ["&’îY ÐÝ@Ðd(y¤0ˆÈéN|Q7F´.SÌ0=üÆäó'×xr}d»ãøßÄÿõëø7ÿ¼8µª2̵·ëCi_úÂß!‚{FìL¹cÇ#«(9 ºY*×Þ}šµ cîW‹W¥ß`É»?¿ãÆàÊëkí½{táRJq÷u=9Ì3¶MðM0ÎÌ` ¶p‰Û—z/*AØÙ¤á¨&Ýs3@¿‚m"sf& w9«€„î¡Á®WrŽ÷²$^¾óÛ/ÞÁï|éÕ}o<ÅÇ>‚é§6i¹y<9”ÛÅ®f=¯6•ñJááûä{ÇŽG…$"‰ánÖM¹l&æq·68Z|9|—gŸ½¾ÂéVÍŒ"•A ïaæ™"BGJ ,‚“P†ñE©˜q?ªˆZxFzº\fÜ”A6ßRÞ#ɉˆ3avîfn½Ðæ!d=šð7nò£Óßxï·ñüÛ¿ó»_úÚ“kü+øµ{° ÓÇ|ëåˆDQ^»OEžëù“& #õ|¿°vìxLƒZkDkÞ(r];sQ¥Ìɽ›¹ªŒ„n³ÎŸøÜ'þá/üÃO|îÞ{ÉR IDATÃób.ËcQ†™E(ÂÖUh;JS&q·1`… ˆ<ïçC…7q· ƒhhq`™´Àµ0e¶Þ=dž4s®Ü›'I­BLÍ;|ùíŸþèoã½Cê7®¿úéŸzW þ!<ýø—íþ£·þÐóð᯽õØéM!Vüí–ŸþãÿN¦;Ü{ß/¬;Ö*\&²õ¶iÒ²v–r¼Baô…™ˆtG•(|ò¿þä~þ ã€/üüÆ «µ-kº‰HÕçÓzÝZKëþâæ¼.E™&O¾¹í£Y@Õ‘çóz:õÕPæ)H_žäW¾ôïÆG>Û‡g:mÂ??ôÉ¿ú~éïþÞs€ xÂSΫŸ_;HQt8-míûA;v<*t§ LôìÙ³e]µN·çåëß\8\i Ïë lSïYçïþàöeaªPaë-ÜæÊǹ2cYÚH¸Q7?—Ó¹”újûðA>œ­ )ŽÞ“„"P T«{_{r#%dj÷>´ëÀÂ2õìÝ‘ ¥ ’›ùo~ãSO§?û¯}´á›õæ]oLýø¡O¿ÿkÿÏýÎWŸY”,7$JBP ¹%À a°vÛÎwìxTð áê €•tªîšÚV° è9äˆúzEùÝ@IkŒL§ù]¡ÌÞˆFüÍPÝ óրȖªp/ª9TQ Š—ÅZkDA¢,Ú-NKOªÇ`XãuõQ3„+![ÏæýZJ¤t3·öþ“ŸËÍ¿ø£™¾ñE´o¡¿*¸ú¦Ä³üÕ/ö×þÉ¿m8°v'ed&*¸õE)šR-Ëy'Ê;×ÑÛÀ ¬…*ÇÛ›s&ò´äá@õ@ç35ë$ô>‰’ÞÀ„¹‚r ótæyž_Þž#‚DLRä™aq»àP¡ 3êöš9³°B¸ܹȰàÍäµ5‚LU˜‘$Kë”3'@B Ò­›E-ÅHmf²â×þñŸúâ×?ó©üïúGÿöøž/þÍoþÁ_ùûü›7ò¤gOÁèrjæÃDÒÎ+%s atëˆÖÈ}˜³cÇ£BkÛVÄM3ݼ¤LxÒ²´R¦ù Ë"Ý=ÞoE‰8/\+©"SzFfªj™pZ€»Q&î<}×ÅjÕ"Áù|?j¤yŒ5"¨j÷H cû,¸;IÇÚP+˜ÐZpŽ Æ‘5.ÖÌoÏ©•H$çÕˆôtþñ/}ýÿ»ßø³$,•¤€¼žN«œ‡êo¿Ý=åp­Eq>s@֞ɴL[6î±_X;v<ªeOâ¤BTHR EG¤¡w;Ør¢áëø~ˆRˆÒ!ZÀ01kBY„æyöD7ˆ',ÀÓ¨â!>dUv¸YC KÑAº}D5‚…‹Îg¬+@ÈîÔ:š#$kB×½! 6ÃÍÉÚ Ñr{j7§vsÛO ‚R'’éù˶À°ÀyYÎã³Z·|Úµµæf[Ë@ó¡îÖŽêèݽ{ZÞ}5d¢NEµõj}mA)eØ•Í:þç>ïgÜ€ˆFíà U`f½ãpU`C«¸ù]2Àm͵ 9ãý|¨‡C9­ÝÍÁ¬ uî-»uŽ VÖ¾æÍÉÃåÉ5’8<;’“H€„°¨V3·ÈªJDhÝCyžÙ‚ˆÈzöìAE+R ezþüÒz¨`ÕuY¿ýüö×G¶¸uw+Å´Š`KÁ=öëjÇŽÇUQ:I` ˆàÞƒ™Íì|–'×\«ŒÕôYç_ø¿pïS½v0K&[váH+3C9 ûféW×¢Ÿûß3Ü„q¨Ê÷X{ŽìZ™îIDÔÚ:ÏóTAkðDy‚VÌj)/oôæl ±Jí+ˆžøö Þ¼ºŸyø‡ÑL7Ë”Bó<¹÷îÍ,ÆFhXVô@KôD tÃÖFÌT¦-œ(ÀD¢',‘ÖÉSÏ‹½<¡XÁZϽý³o¿|ç\ÄH^œüvW”©J©fÑšG@ ì–;v<2¨$áÙ æÈD@¨E†­dD€)™¸³Çj`j[ !€‘»³‚/ù´¸ˆm(™|‰~T")- †Öñ!·"¨•ôÞ#0\]]åfFdpAéÑ{adAwÙ@DRTU‡3ÒÝ÷“[ÖT%çóùæ¦/ 2ñæ›å0Í/_¾¼¹98æe9ŸNH‡*˜¹µv:-½[Ä&žß±cÇcB)Ê”æ«õ°JäéTª2¥Á» qÚÆ3ôIÖƒ(·s-ÅÈòfAn£`eK ·1ð(eØ]äxZ-`A$Öñ!ŸÏça9¢Ë`ÁaBQe2A J(" †— o¢q"!V&%`¼2v!‰3³÷¾,8ŸñÁ7ð¡„øå;/"p8pD¼x±´%LEè²@ô*]hÇŽÓ,Zˆaá-,pON”‚Zu0Ü‘¹øo™ ¹…¿F¤»ÆöJf#`JÏH!EU.L„`lõ)%€|ˆy]×u µ–I cP3N‚’1"&HDÌ^mí .À€·˜YÝD5‘" Þæî¥Q¶Ö_¼€;ž=Áõq>ß¾¼}iUq˜Êz>µóø•‚«ÃÕ4Mª:jé;v<2Ì&©…•Ù"ÌÝ# «Ó:_ǶùHi¥‹/3ˆˆ8àHJŒ#÷0Ùå ˜ ‚a»C”™Ž@Ô Z˜Ä$”QôA>ü>´ ß¾wìø~Ç÷ñì¥ÚŽ;v|èù¿®çóYkùà ¼ýÂÌ|š§¸=õué€ A·/N¸=a9ß2óñx˜g° ··«ªÖ*ªÈD3ï­u‹§O®@h†Ó‚7çóºHDê<øÃå§øÖ·ð–ü'øÅïþZÿ<þ«ýØŽÿÞ_øGæèæÝ<<ÂQ¥ˆHTP*þÒôÏøOÿæùúj> ˆ@Xp»ÀÌ&•ZGŽcfX­ $!ˆHdkkffï¾®=A‡ãA+Î ^Ü`í¶¶V%uäÄv/rÊT™ù|v$>ø†>½žÜ¬fåIˆÒÎÒ1…22=Âó2n/¥Ô*̈„(®¯äú8 çé¶…ãPq5áéÕü'O®¦‰ÜoßyJ8^Œ+Søõ¼÷cÇŽ áÖÓ»)QFxwŠ  kÛ W…J3zÏÖV$†E‡ŠIÅzë-”1âÏßQáëƒR¸µ¥Ž3Á¤rœ*S,çÅ3®®AäS•ª¤’s}•™ó²˜” N(£*˜`’EÇT>ÆF;€« áˆ.­wD"”w¥Gfe)_ÏÓÚ¼ðÖR•8 ÉœR•ìŒvÂÓùŽ(…èµä{»ûÎùŽ (Fæzd"@™ÎÐ¥4Rå!É®…X #¤„@áÈtIa¥*™¤…#@*D »³e@ eÌ“¬kOŒUG~ˆuŒÒ‘ A˜PÉD“ gzÒ Ê$f ‘^N§îÙÓY¨N”X–twªLÂE=–wÌ(PTTh%ðå¶Ÿ®>ðá»6ƒøŽ) M”Û}ë~eíØñˆ J B Ú¶Á3‘ž™ArqŸª$"“k$g§* pRxFô0p)ªLÓL‘éTD““T¡ 8Q¦²EÂ#E×GE¸E!(G\×{ùPEˆˆ3@DRRUT¥ÖŠPÉ4Ž "fBaDÅõAeY;Ò2jó딎Ðq¯g &ãÔŽ¡ª½÷Õ,Zè]­ 6f|)ÇÎý>éÞ±ãÑ¡·Fà鉌Œ ÏdÉ ”Êak†%x'dsQ$m­ C U«™›å| €Ì Î¬Ì &hfïáá¤Ê:£7ÕØ–‚îçC'`™Aaˆ l,O"3³_jºD8 ƒH™{Xëk¯0WB0e¸™¤ˆ0E"ƒÂ˜µ8 ŠfÇI E;oDɪ™I¼½;™ Â%ÜÎÈH$(Ãà$Š‚yó§t`{¤ÑˆµDD·@z_qÓ5utßî>}ÞóŸÏƒ¢’˜»OÆj%Z…á-#nâÍ:¼{·)ÈT@T—%ëÚ;ñ QÙí[&0e† ­N¦£N…®2,r,œUª@èJën0›Q#<¦g5JIDö™™ÙŸ/Žò ¹Í"Ê©IgÞ"" :^Yî¥@…-µµ¥ )@sf&€šD­lÙ"tî‰*´ î ! °¯3ÒÍ™«‘B Œ¸‰?´â A(#è¤{ËËwhk "îùÈ<)s5–Ó)Fb(RdeÛ©Î~rr­«K¸ór91D¶¹š [@‹ŒY"::ÄP[®Fz0À DS’š™¯kãôwxƒä6BjõtªBLÔÚ]¡HÂw ÕmJYŠff‹œÆÃQ™·ÛqU†BDÀ @Dø¶’¤ àD4pç.Í:‚£ÑN¦ù‘«¬wÜIÑ·å†þÐF… alxs‰Hf®Ñóƒ™C†§—N`–ìsæ‚F ¶Õ`LOW T5"ÜfI¨*ûŠ©)EÀ€;ÏÆ¥ŠöY ô)§ÈÜ¢Sìê ¹­Ä[€™»œ²ÖˆRÂûœÐrøu!Mì°@Ùâ º»·¦fÅ0RÄ""Ó$•$ˆ@ ‰Ì%öZÖd”¥hD1+2†¿±?4ˆuøHéÑnftÈž€+¶6̳»W€á!¢}!­™{Ý}žÕ à Ӕ‘Á¢(êž™!öÆzˆŠd.6‹ö)ÐÌ^"`‡™ËÞ²:xʃä6s”@f$“Hx‹Ì$³ƒ‘íƒ$Ѿö3FpžÔb(¥ô Á¤ô˜T@wiµ?<ˆ¥3LPÇ‚à2MÓyW«Uu'UUÇa§7ö‡æ ¤CF€9½cÀ‰@ "G´V"r®j™¹Àñ–ކD3ËD­€ÙP ܵ50#Æ‘ãöÚ‰ôÃéMü¡ADD©ŒÈŒæ­ìz/cAŽˆ*µV2=<‘é– ¦ŠÖêÞæôa(+ ¦PªJ¢G  䎀|W©X"l]&Ì»£($ÉŒ8)rÛÌQöÎv†SˆÕ h-ÐR•×£Ðv†p ñ²5”æâR°‡:'JÂ]Pº7”D+‚,+Š€Â $#"UäfþІqi %@%Ó³Ö ¡ˆÐEªF”IE3€ÞƒvÏÖØQu‡A湑̌ÖÜ]Í0‘)=lä®GsžËb?MNÊÒõÊÈ>Dô’èÁQä ·—Ôì…#4e¼e¤‡ë~…qén“îÒÌȬ54)h¤öé˜]­ñ|\y.ÌìXè‘”DB+ʪÖÖfÅ0Ê ý¡AÑý«ÑDUšK-B£ f(†¡pPÙFP$3=*jQ¥.^9KQw¯m¶¶^­`Ó@ ¼H'Þaf¢£‹ öc¥,Ëœ%ˆQƒ¤°o€1rÛLZíÛ0‹?ÜžR´CIdó–»åæÈ&‚Lo ª: ó<0E…‰hK{™Ä’4# ò-}•ef¦‰V+Ö6ÏÐQnè-µÖyžÁ²Z ÅYš×ÞB‰ †tF5ˆB"}T6Ÿ¡ûJ’f µÖZŒÒ‘‰D …LqÏ}>¾Œ»ïj”"`.¼eI€*"g¼k9ÈAn#GÙÈ=!¶Þ†¡ïÔì³òQ:iÜ]UKA­ÒšsU¨²F„ˆœKØå¼×HBˆ¼»¶Ì‘°<é­f(7ô‡v²õ21¦í#'yYÇþL$k­ÑœÃ* ÅåËGÛ/Ý@D„™ÁpÜyÇððÃÛV'3cÆÉ#ÕÌŽŽŠWŠôdº“ÿd§Â ÑZfr<‡G ]f‚–Œ<d …ÈCDyƒÜ^â-vü^Ý8ªì r/ï©÷4MÌŒd­ˆ€éðÈÉ´J÷­ (K宵¤¤ˆdrßë! 1(¥Öhî¬éÕåèˆãˆëGy$·å†þÐÜÝL—í—`ogZk}3&""*(f¶Öv¿j"CÏÿ‡apw”T1Õ}]2—:‚f§{5¡ÇɾsúR–fN¢ŒÌ‹RH¡èÁ®rÛJÂLú9t‡Œt‚}(p¿Â¨èËØÉŽ|„ˆ!²:¤Â ¡@ ™ A2pf:B)È¥SBh"”änTˆf7õ‡V[XIURÕ3§9WK±h™ ¸G6@!€Ʊ°&Â[óŒL‚ªLebUDrœ¦‰á¥ Å…!¤Äá‘Pû8ר9JCz'4‚ý¹;‡ˆ¦ƒrÛ,¢ôeiq7À“¹äÏÎHªÍ†ÌÚ9[ ˜ˆ@…55!!Å@A&¢'£ý÷v2#=ƒ"AD"@=ψ˜f*†a¸v­ÞÐZqIEŠ·6³š ã믨dà `“Ü•=ädX­µO’ôpa§šìÌ’È”þUíÅLj%©–Qñ8ʾ—î½Q/9D”9ÈíQöžmžGwaªQÎ嚪páhpRú–aR=ÒÙ$Ù!ÔZBÙQtIx2Õ=;*F áž™-3ã0Ð ã¨?<ÝÐÄZ j‚Ìd½*JA²HÖlîðÖd0¥¡DÂLÜ¥µ »·t@ö†·Î¯{¦ HQE&¹8üè¾sß—¢ËÎ)‚ð$“Âr)rÛ,õ^æ£Ï°"ƒ ,íÙy‚PB3Ý=…^ d0RáœL @-‘O0¡‚$= GB $t[„gbžYÌ0ÜÌÚj5Ìs«µªªˆ¹×:ûlj‚L5zT)¢L…J±ˆØƒú,š}Û,ÃÝ]DÔ´s¡-ÅJ™¶«Ñ‚„ÚÙÀ¹©²ìè!‘™È<„”9ÈmW£ŒXÖî–:åâO–ÆÌ.ðìÝcÒë†z“„'Ós#aß0‘®I˜°ï® =Ca *¥"B3Ù›ë=-ÁMýá¥Kxè!­µ©ZG<ëè¶ÚU=ÉUDQ$Œ¤»gFDªª{а”’™µVM®JÉÐ_WDÌ=ûÔQ);h¢Êl} (ÀÐŒ–y a<ÈAn³e[å’Y澩³þmk=¨R„‹·@J´ $ܳy´, ´÷ˆ$(V!aÓvk˜‘H-33`̳‹¬TqS8ŽPe„©ŠLõê­å-N h’-a©a@E– ˆD„ˆšÁ]çyÎL%ÚÃI" ”˜ˆðÌ;‹EmÄ2T¿ *‘fÙîƒä ·³£Ìî.#ƒ¤íP z‚œ ¨É̤(;†š–‘-[†J¡B€Lgf@!æ©ePºÃ[ÖîŽÈ€'Äʰ:º±?´í)6G`ާ§Û/›£AUONmÔLso”Ř@Q¨á¤¹ÃÓ&¹söVJ¡vÐIݬ/©"*¬ E†‡‰ —+À`ð©šP(ºƒY£JÇ5æš‘AUU  ª†RÛaâü ¹½Rï™ËF Hä~¡9‰œ÷'^’$Zäìî¢ÅFˆ‚ŠF›ÚÜæÌˆ²9B&[‰©BJ¨b×m®Û˜‡aä’ÚŠØpz|œÔ¹ñê#oì­çËVDg.ƒM»Á%Èn¡<52k€õÚyr…°’ÜÕÙÓ|‡(!Döí„J zz H1„`žÝ Ü[$ćÅQšAeF U:Œ¢ÿCî}ƒÜneîqqtv_ü¤ %Ñ3=˜&ZÂb7‘-ÂO bü%êî(!À€ˆ’­P…½K ˆDmˆ wÞÐÚ<Ïã8–"¥”ynµº©–Âþ:æ…$ݳµ–±:¾Q p@CŠjx¤•ª*P áÉdQ†˜»§Ã$á)Ó7Ý·šÈŠB:[NÇ÷M„ãÐË9ÈAn3i5v³å;&ƒ39ÛÓ.&‘ðÀûMº3Y‘Té8CfÖ-Ý}»-¥@­µ¨ U5& %¼¹;UD¤sfÙZ›ç¼¡?”ZkvØ‹Rv͘õÝÉeæsO`ÓZœžD­}™éÕ™9XgŽDFK;ÚÌZSø‡;DQŠƒ˜YfF,T2(UBÀ¢2LSUÕAQTǃ§<ÈAn/GÙÂ[D‹ðô½í"Jˆt7×ÛÍ[k­ö­èŽé‹Þ&™çy»õˆþ( GD¶†ZSvSHÞ=; ‰ÝRuö.ô ý¡ù2ÊDUôÎ5<"wîPÞú‹¸ÝnMVãH ¦†æ³hYÆÌ©zz’޾ÞM0£MÎqÀuž[›¨ähˆ€›x/[î#ÊÆDƒ „IûNCæ}ƒÜn©·Ÿaõ ³äû:FÆîÔTEMZd„G0} Ѭï Ê<3"¦iÇ£qD)Öw½[s"2‹ˆ‘‘g‰þ94¶¸™?\F|"¬‡¯@ëÁ°ˆŒXÜIˆXwŸ5|\Èsi¢"Z ¼Zfzç-s¤.m®µÂJg•à<Ï¢C)Œ€™ÃÐqÑHQU TB„ÂÌt%ʃäö‹(÷®1¯O·ÏgßKxHàæ­SB"Ò=T–DUímšœ! Ô6»‡’­õØÓZk}D‡ dìAÒoæMD#²Õ>ÒH²dÂÃÈLxÛeßRŠlµÅvÆÈÎÑÉÅY ™F÷ˆH„ô=óh2m·ÂÕj…±èvjm®^$Šƒí7x:YxmC DUÈÞÜ…°rÈ»rÛ.¢¬ñX¿ÈÇ)Ý@´gÄ27íkЀyIARÄÝOçSèz³Q(ÚŒÌ8Z ­å`4“s÷ˆ¾¦’Ò±†ÈÎÂðXh„.ÃîìüÝh X­Ðz†Ÿ™}›`€>;²AMªÒš×)†A,"Ý=w-Õ2oOÉiG3pî}!(eÁa_"JSJÇ\ ˆŠQš´LˆhQ?œä ·[êùÏøØy鈅åÐS•tÖ$w Ô ¼¡*ªÚKó<¯×ë^‘ ¤{Àz-‘=ÙïEKUYø3 ÜÐ ØožÕM;˜°†±crì|mÂÊ ,³GD) 9MS/yªJDôWí*B5Ô*ÆÕ ªÛ©ÅÒ‡•²Äá”T…jš…ªSX¬¬ÖÊä ‚ʃäör”žáé»[\ÿ­ï‚£ívž&tijqD'˜ÝN§­EB"9ÍQ[g¬E†æ.ª‘yº6—ÖVƺ7· IDAT‡®f,K>¥Ð¬D Öpïk?T£•›úÃÇuƒä 9ÈAr‹ êýÞÑ|U¥ïãt°¶ÖÚj5”‚lO1M€¤’ŠðÈVÖãWà丵¹®×ëb˜Ž‰¹¹i)™°‚hØÎÕ„ëKV s ¥ˆÁ:ÝOC‹Dd{½Âº€Êõx;ÏßòF_öª_¡,sKTí@¿K­¡˜t: UŠP•Ťr!6ã47SUª°-Í$œ­ÕV›ª¬×Gÿðž¹<!"Ò…ÎßHŠŠ …Ð~¥éÙ€3£Ì踜"*b€Ò×ãðš—=À?ýõz[êð ¿š¬Õ„bÚ C™™²gmGßèÕÌ‹Øáùå|Šuø^¼4MÓ–Jë_¤ J‘AÓ,DQ,{]m4-M]¬ROZ Œ(†¢0•q•q´š:EL,eØl^ñƒ÷<Å:|/^šª(šÅÒ,U£ÓÍÝÿ!ýuUCQËÁBúýµ?Ú‰ m¯(˜ÎÀ_û;_àŸýßIbžqr²=ÝΛËWhÕ[k«2lŽÈ†Óm-E3S«•Žk°Ýâä4>öà#¢cçÉÁ0”a„*¶[œœœœžL"²Ù\^­@4\D‡¶ƒJˈ¥Ié†áî©Êg#Ü!I¤)ÖS•¢P³ynÕƒ"}Ý3ÒA&hÈD D8gÐBú>{ S€„'™™{z1äRÝ]9ãz£²o^¿ú´ð£!@:ì]ç¢ÈÈdÒC´3Á („0xÔ3Ý\úʾç—‘™„,›¬Kí£o=ÛŽ†÷vÕá²^vnfdtþå<ÓóíðiÓáNM¹hH€™ùèßfÆ‚+H%4vÇu1‹„¢ ˆd }gO¥Ï÷Uõmæ9Ê†Ì tõu“f_Fì_&2ÙÏH.6ŸKsfùóóŒq€@­á-’„¸{c‹(vFp‰lMÍa+BÔ†HzD  ‹¸ŠvD…0-Ücñ¤Ñ¡û$Ï>ìþâšÏÒF3¨¢s!&²&³ a©œÄjÕ•Ò<3‘(æ8H´Ú?ìâ>ÏsËT“™!²ë@!ÀÈNãÝä€ìêŽÇ(÷çzGÝØÿ%dá Ï»÷,=f–ÉDdt¦óè“«"É\æ'ÒaÏGõí}D"C "É Ó $aÔýa0»=u˜@1}”ïØ·ÏÎäî'2;|:uxN8ó•»Swæ&2€vNSMjt‡’ȈŽ. ˆ(Ôýù}*ux\wÍ_ê]dÍL"Óg×ÿè\«‹¯Œ~éHI‰Lû÷5O®¢ª(¥˜–Z«hÉ@"¢5P`º gDkµÖ¥÷[ ÖëÕ4£Ö©÷ZZkªT•>ÁmfGïKËÅthHîIÄD¤»Z ûàeEì#[’½mÔ€¢ck9M§8Z¯ÖªEç¹Ö9´”>üÙÞPs@ jØ4ÏÇ!@2:T%Ær…íÝ\ËêNœŸ8ÏåÓë L½)ve)È%”îo 0‚€š#cñi™áAR”"f¶PŠß0t<ÿÍ B±þÂúBF†GjöKÓbg謖PžE¯ŠÛR‡1 ;܃Üâõê»>=:ܹ.ah"“8sŽÝ;,—¢Lô…쇑ð\œ2#aˆˆ•²;§O­Ï'ù˜«Àè‡dD C =~ÌbÿF÷¢›œ´þÛ¥ÍsÕ¢+ëd\ãÉ4k@Ðl³Ö+˜§èï×ÝkU@T¡Äц9‘f©Ã¶Å錀Ù|»­Ñ•8®˜R,a§[ŸkÎ I$æ©yËbR©p`[ë¶ÖÌYê©×ìÜU|:öÆÎD=Ò½ïj2I\¶æ¹°¤#0ÆbÂŒÖW.5RcÙÔ죧þD¾r¡Dêõ¨èìHÂnëû£BŠŠô–0… ‘  IÏí6÷¥¡ÛU‡Í=Éît˜Šr;Ï5¦0­Í/h‡OóL‡X²ì6Á#}á(e.à`z¶ÿé(†q02£y!±ÐörÚÓ ÃGUæÏÕ^3:ià=f$z¤/è9¤ ÷ÈL::8ª{uÏL¹+­â¯¶?üÃ<>ÁÑãѺú|:OiÄÕãíÕ“Ùz¤•z2·ÓN¦ 1ãÒ wlV*Q§ÙæaÛ±÷(Á>y›.¨CK¢5ˆ€ª=ŠŽ© cx¦{uÑNn3 Ãé²™ÝÍB‘@H§3(€1+=a\Äk¸7DŠôûBðˆ¢²px'"ÐB Rc)™wË ÷NZ|Üó<»ú-Ùu_$âîMAe_›H ÈNuá¡®¢¿iãfgC‘) éV$˜á¾,%{^¹ÌLP f­ž9—×4ÇíªÃˆPò¬ž»dƒä4Ï~À3ì‚vøtëðz$Åå¢h'8à’ŒîzÜÅêÌå$ŒËÞQ>•:|¼–ÎR$Ø[ ±¯±&™ #ˆL"ç/ò ‚àÎæ=Å!¬Žê¾©á"&f‘<9E1$±@ôš£@h" •P¥¸¤ô­ë¨&Ú?;1`N8’€\D‡–ÉZ]DJ5x "͘*€e6w¸ˆª`•'±ÓT’ptºÈÄd›Ì0W¸‡íªã­µLxŠFPµÎ­µšx0”=¾#¢A ½FV¢Îˆ—ry.5îzoÝOeG#â¬?)»\g2J fD$£iìØÃŸã¬j³‰ŒÌ‡Ú’}p©åô¬µ·¿E`"sÍÜÕÿölöv[ê°wzÖ+¸”Þ±÷ÈSL‡l²Ã§I‡¾|æ.;%%­¥Z7é5 zÒÎ!BâdD„;šu^-Ê™Cy*uˆG÷\_›s¾’¤wbÁžUyR‘`¯.-ã =õŽÌô@$ólkÙ3<‰j6ͨ¯S›|¬”1ª_»Vï¸RH¨–ˆÖZ­ ªº7313ðŽg‘IŽ,°NæJð^P‡‚DkÚBDÀ[îö;GÎó\ç=ޝ€¤'[fxï+ÅvÛj€‚Åxï‰ZÍ:û²ÙNôãtò©z«Ñ¼ÇóâÁíÔ–jQ‚Ô ´µEFî]ªKõûÉ`Äbý·Ù+ÍØ1—)Eú0@F†»çø¦<‘ŸäYúºï–Frï(Hp·U wß-K¡SÌõ\&öiÈmªÃpøY1+z)¿“bG°'rQ;|Útˆ³Þ¾o޳FÖ™q¶˜Œët("BY®¶kïxŸ>Î\Ü~Ê×yRºGdfì îŒdó¥ › PtÏÖ d×KHKÔæSÅ4¡38Mµ5ï¯yšæe\$µ5ŸçÖjdÀ»³3”¢f¢ÌÌp÷Z[ÿ”ÉwšÇ…uD‹NÇ d 2›£dVkÕÒ„HC4F:ÉÔ¥âY[kÍŠ@A.Z`Fj –xX@›ëÔ/ 4ôcÛ¤ƒZJ?»ÚÃú »Î>Yöy…e§}7ÁØÃí*õê!tB×6ûÀÛn(,#Ëx³ìãº$k™ZÈ>9ØÙÊ%A ˜}ð°Sevûo%!Ú­­ßìÒ¸=uL.#2*Ü?6Õ[š™P/b‡O—ÏG”½]ׂËDÞn†g!#¹$® !¤!»¦™GzB|ztxÞ'>Æð¹·žkùwâænŠ˜@Â=‘®býgâ`ö"½.w©g¹B ¦ª¥ÖÖ¦j+±Ì©ã4Š)žêlÙ»a ¦¯™Ef ïCÍC-t_$/¨CCBDÔºO–¤V/ªd‹ëëÙévKAKL~MBB–C•ØN ¤tLÍ 4Ù)ÍÑšt bh±yjATœ…ÂN–ΩfÐI5ƒë»ñs ½QDZQÙe¼=b?úwfÃ=ðξò¾3ê.Œ ŒÌlN•%cxAå£&.™”Þëì!U÷Ú™ ÷@Ë„ gr:üþ¯âK÷?øÏO?Åuè‘Á%„ØÐ`7öhÞ–Á#á…ìðÕ៺bidñº¹‡>½gn¥×ï:‰àYƒö*r ‹‚Ú>~÷W øÌÀ¼óMïÏ?‘¯ã¹á`b_lÝžzíi¹Ä"Rr·[h‰ÄBk#LFfFrç(i…=dóÓ$¥`½>jíZ­> a÷›¤IY"ĺsn(šL…*34Ä]þ®Z¥ß_(Èôð‹Ø¡eBE:  hž}K5ë³Ff=Ó‰²ÆÀÔÛ$ af’1ÏÕ´\ZƒŠº…GU »óhÈ™LBˆ2âôÔ<½ÎÕ«õº×l´¹ÇìB-j ¨·–ÕY–—ýk¯ûЧlÁó©|®„<¡ý/ó…›Í¯Ïüpÿ×?ã=ÇÇ_òÎÓOYF€Ð /^7—³`5ŒSÖÚ"“‰ Ùá“×៖~%Þ˜>%tøª—ýg›»îÁWÿKÜù<xè¯úÖÿþø#÷ýøÏ¿õÒáSù¾úô{ɬ Ç×äÊ%\>bÝ®æyv÷Á´¨ÕÚWf{ÙJFJk)HQôØPDTi`£ó‡Õ¥ž,ÂFøEìÐúËÍD­,Ã@î9M 0%D$i=ÎÈ\€á°CsÛ¤ÈÖZ«…G0ÅÜ'6Õ2`»aQH?oYkG£€*m®‰Œ@* J֌ݡ±Ý¶[÷|þë—ž{|¼Èsçß Üÿןñà?{èSS‡HBÈ]´ªÓû~üãôñ?šøøôà>|áÏ®?ÀW~ÇWÂàCøªÄ ìðÉèðµÃÇêp7œ”$Üý{¾áëñEßÜ]d—;Ÿw|çópéî¿ý]¯í?ú›Oò,?åFß_RoÆÉÉtåÒ8ކažçþîºí “‹¯„d !EÒB\–à]âÒwkÓÃ;Ÿ,{©ñ‰tXksOW7ô‡6W”TÐÅÝçÙÌ0¬Ç¨î¾ìA¥U÷Z=2”‚õµfD¬Vàô´š‰Šºûɉ®WX¯Yl5×ÌN'Gºˆ"}ž(”¡`s‰×®•ÚN[k”ÙŠm6¸t  šWÇq,#JA´G¼ŒJüÃûsžqÚª·Lø¥¡Œ*GGR NNpõêq)åŽ;†ããpw1-E´–HŽ#¼m7—VãˆV±ÝFk(nO«{&Ą̈øž¯$€¹/ÛöäÒåqtšgwÇq,#­až|šªêª }Ó G3CQ]UE ¯Y«{ OŒ—N¶¸zu ð5yÐæ'Ðá 7›ó^²G”ÏíÑåññkþJùó¿Ÿ‚:´±\»ÚuhÓV‡q,RŠX¯W›»î¹ÎKxè¸óy¸óyÇÀ·½ì¯þä;î}³Ü÷wþ÷ÙLÀ0‘£•®W0¢UÌ5¯äéäîݪ…äj%ë5jõk¸zõjkmµZ]¾|´Ù`(øø§‘u5ŒwÜ1®GÌ3¦SïÚøž{ Ú#Ë ]‡ªåêCqt$W.ÁäÒÕ«ÇéqÇ0ºûvÆ¢ÃH$G“iÚZÑQ D´ì:ÛžV_ÈÂwc^ Ó'СŠOS½™?4w莱 ûÔˆe©KD@#`Í=æJ˜@Uá Û™™‘‰„$ÒN,› ,ÊI<[D$©¤dJT`¥”ûO¶FS”RZCfF…˜ ɸ/d½}¨&ÊjùŽ¥‘ׇZÃ0ÈvµVr(Ff¢6Rç&ìœa.iÅ4³yÀ=÷«ó‘€¨{ºChÉL÷…c²_îTõ‚:ÜJ_‡ï9>¾xnϸ7›÷¿p³Áñq÷•/Ül¼EtÀ•rå žó¥Ÿ÷ï?«@(ü×ÿæ…îe;Åh ³5ˆ6UUUÑó\H‡·«ä>\ºw>}`óÈýǹos×=Ç@÷•›»î‰ˆ?-;¼åt(Ò—‰/t–­EÕ( ¦Hf‹Ñ>8Úà&"6€ŠL‹¹NóD…‹LÑ\‹Ž…î$‚f†+„*€a=¢ºnëìá`Š"kå8b5À×#-¼¶©¶•)V+›'d«ó¦¢Sˆj=™÷Åo5 ûH_¡ud@e°ð¬Í6:UxõZ+uPC8¢B•§ÓàÑZKAk’̓QŠDšÏáîÉ=V­-)(¥\yÍ,…&AQaæµz!öçzB>ç¼æë.½p³yÏññ Þqí+ 1âþÿøR÷•n¾ë½¿ô¯~ó_}ów}óƒõ/¹Ãg æŸ ~Û_øÓI“ì_槸¾áí÷þ×/}Éæ®{Ž?rß÷¿Üëþ=ñwÿÖ?Z|%Ðþôìð–;ËûÑæ‹œe‹ˆÈè;S D´Híþ4"=\D:]$ÊñµkÅ+ŠDÏ`(¨@†ZF¤“*jì-üÙ%fNmÇè’®&Ä€LÉ´ÓSw¯µZQ»´]'oáÕÛ ÍP²¥¼_%I°y"Ü%STPŠÎÙZk¤v¶Þ~Ýö£°l5¾u(P…Ì4C„Ôê-|¿T’ ªµZÉAktO³¥8« @#ÚEt¸3Ð'Öá¿÷އ$ÿ|)ï:ü¿Žï¼çøøÏÝ":ü½ßû½~ðƒ?ôð3ž„¿èϽççþþÏ=Žû—ýäÍtàoŶmox;õSk]¯lõ8·×Íë½å§¾¾áí÷>øð4®¾»·/8þÈ}ø¢»ä¾ÌïøS´Ã[ë,S-‰Œ eScÏäÙGâ2<(`)¥ÖÉÝÓSÚ`-v"Ȇ(ƒ!Lçæ˜€†tA’APQªà(³&j„©ìzZºBäèîma2S¢0£¤7wg˜) X vnœXöjR0C1qgk­9Ì8¬W­Fkî®ìXgAÖêµÂF4±ˆ`Bf2·º¯×ôAâ”Fo`Ù E:T–éqU\P‡KÊó êð—ÿ¢¼p³ù]2@·„¿xð%ÀqO²Ð6þààßåß È£tXë_÷Æ›yÉ»žu×—~ÃMuØøÖ—¿õkßòµ7|øëŸÿúÏ¿áoßøµoüÎñn9;|ÕË^²¹ë|Ñ÷÷d¼W?Ivø©–#v€¤8Ë2ŽC|:ìÉ„G´ž¥÷–SkÑ¹ŽŽV‚ wÆEE&ÃPPÌŠª0©HÅz…ÍÑ8ª&!&€ Æ›6ëa•ÒyÍ¡Š±¨‘… »²÷õ…P(Tú†õ‚Û¹E0ÏUë5Ë äÙ‘¨ž¤fÈö4붯@@­Ib(ªª{.!Ï>œ¬™¨½¢!¢­ÅÂx¸ ÷ ·O^‡¿üŸ”n6wï’îû7›üb½UtxðL`\æ¨!Yû}ÿàrþ“úXîÝÖóŸÿ|U}îsŸ»Ùl>ÿó?ÿ3>ã3¾ð‹¿ð;_ý£Ãþ׿õåã%|è;?tÃ;¼ò}岌yKÙá«þêK6wÝsÜK–Àæ‘ûÿÇÿíÞO’Þg9"òÂgÙÆó,îNŠè2=Þ)gE©ÉèÛôÞg•péH½µJÓR!ÞŽRŠp"H™D($ˆ±€kÔZÒƒ„Ôþg©ŠaÄÊ-á$¢U¬Œ+LS oˆdº¨`©lûP>Cš‡Šª vû„j$¹’Eª J´³í±Adn·³f¹tIŠ¢&¦iZÛjPj™Ûtn»"ÌÀ<ƒÄ¸BóìîB.t—ÔáòDOZ‡¿òŸ^~áfó­»øoï9>þÊõ-£ÃŸ~xɯþ拞ý?8Ýnã7ðìgCOÞh6>Ê[½ïWþ¨ñ¢½è·~ë·¾ú«¿úÁüò/ÿòøÃÏûŸ7>ûUn¦ÃÇIØÿ»ÿ?òŒ}Dù›ßú›/xã nvg!o;üÖ¿ts×=Çw}Û¾÷}ü‘û2¿ç“a‡·ÊYŽˆIp‘³lCA«háØ‚ì3¨ª… 8öàRGG89u÷6ä`*.Hz†¨°Ï&%)è‰ô ˆ)8`²N-©¢)’Î4%D†4¶Ö„SYÌàŽ™é Sœ3ûh’& r"AÍ>q/‰ ´' ±ìÊ*`BHFDmMÕ` s­"~DQ"‰Öfp%U@®[¸A /k+±l€ö޶0I^P‡{¼'©Cwø‰Í¦W'_ü<=½etØrï[ï½÷­÷îïð¶·ø®Çqm¿ó;¿þð‡·ÛíG?úчz€{}>ùvÍ—þÄ—>îˆë-c‡Ž/Ý `ó‘ïÕÉ×ÿüÏ}’ìðV9Ëç÷NÿÄgY¤a­Ø”¢ž9U m\•‘Ñv*4b¡ Á\qçë?ói—k===>]¸|I…u>õQqyÁ(ôRTU§ùt=ˆUÁ§ß±ºã޵‰glË@¢e &8ZáÊZX•1O­UŒÖG…â³ÏíÜêéPTA hÀ€Í‘UIJÇiDQË `›ZÌX8D3”~i³rÊ”˜§ÎÓ9O¶h€­tØ”“íµãíÖVv5Uˆ 9ª{‹˜Z\=ÆT1”âá»äñb:Ü…-OV‡÷÷o6Øõp^üëy éð žõ ÇÓÉŸ õü³?û³ó<¿óï|ðÁï»ï¾ßþíßðø:|œ¿ö¬}Ö¦Þ{¹…ìðÎÍ#÷÷Gä¾7¼ýŸ<;¼UÎòÉÉÉ#×¶<ËÒ©L0˜eYPq¶âŽƒ/½è@ࢩÂ^b“`¢”¢@&¼_§Š †«A†B5!ÓŠtJ*%Á0`e2…ÞQÚ) s)÷ ÷_}W¹Üv%á¤dü ©¤Qî‘éPÁPT@÷˜[ lô‘-N+´ 3=[–éeg Õ÷U^¥J""±c'¡.¨Ãå0¿…tøå_òî7¿ë-ÿöê¿}B·øÌg>óÙÏ~ö³ŸýìÏþìÏÞÿðs?÷sû7› €þðÏúô_x>þS<ãGžÑ¿è©÷ãG”·Šâ3_|ü‘ûz\ùÆŸ¿÷“j‡·ÊY†AD.x–m×§ˆ,ø–²`…íðLAÉŒˆ÷$…D1Ëàî™®à "ÂÈ8® ­o a‡=¯M¬×cõ¬-€,Fáòù™ÁDÅGrîc¶²›qíPK¢gò{@À‘a藮ܮýL–Aëìî.43 ƒz͵ÖZH)EŠ¡Îrr2™Ž«5@Íd´…ÙLwQéeæI÷èÜÊ/  Ðáru}Ò:¼xÉ®‡séÖÑáó¿øÿ|íO½N®´þW®\¹|ùò<ÏûØÇå˜>ýÓ?ý¿ñ_ð‚øØÇ>öÚ×¾ö£ýèg}ÖgýÀüÀz½ðÓ?ýÓ÷ßÿÛÞò¶þðÿü5¿x3>aòI³·âÞÙA16ÜOûŠOªÞ*gyµZm§¸àY¶<Â3zŒ\ÚAeAoH÷(jGÃééÖ½©Ùj=´æ-QJ‰¹+È–"4…m€¯Ç“íÜ¢™ ™ŽLBK‡,-á­I wŸ¥[±¥cÜì‘™û‹T9›6ؽUqõ¹ÕŽÁ9 ¨®Y§¾èV1Ž#n«o·µÖRʳ·Öb×/…×Ö¤  :ê}D¸»¨F¸,µ4½ûýŸ¼ßò[ñן#kàM÷=t«èðîç¼ë‡~êµïýûïþþöWdâòåË/ùË_ô¢ýîïþîýÐ}üã?ïû¾ïÝï~÷›Þô¦£££Oû´O{ÃÞðMßôM?ù“?ùÊW¾À<ðêW¿úÒ¥Ko{ÛÛ¬nªÃÇO½ÿ»Ÿz?~ò²Ãÿéýù_<ŸxûÑëߟŸl;¼UÎòhlU·Ûù"gYZFËf,˜ŠË­—T;ȳ)M)LDÔiNÇ0`½F)êQ3}¡DFë×%S(j&¦/Ô‚•a=p]´…&Ã%€\"ÞRT­/n%¢½…d§XPA;ÿU„ïafûÒhWøò©hð#¢u …~•¬DÄ4ÕPRç8= Ða$µÎÞÎq»{§Þæ9ŠawßZ¦'.¨ÃeÐ÷Ñáÿüúæ÷ßB:üÇïxï½ö}k[vùò¥+ßþíßþðÿüå/ãßøc?öcWî¸rþ6MS­õ•¯|åÛßþö¿øÅ¿ôK¿ô½ßû½ï}ï{_ñŠW¼÷—Þûœç<çääDD®Üqåò—G‡û9Ê'L½o6G¹8Ê[Êßüþxóû㩱Ã[â,wÌÊ žå3^‚jTàSIDAToçÀ;wÌÜ/Bj‡YwoÍ5Ó†ãXæy 6Ê –ᑪÄ0ÚžÛH3¡‚õ€‹lnH Gh*Da°¶à²GfŸýJ ÷Pá{ hHÉβÞaó ÁBç†%U©&ÞZ–B3–A TZ†§W ´æíô´mLEL‡©Õ½ªj„GÐ]—õO2Ü]MÙA—‰ êpy_‚'¯Ã¯û‚àg~m{«èðùŸó–»NE‘ñ+â7ÿé+ÞñŽwøÐ‡>ôª¿ùªþ?.çðî¿ýKïz×»~ññGôGI^¹råuïþãïøª;®]½öÃ?üÃ>øÁ¾æ ¯yÉ«ßricª7Õá~ŽrÛ¶7ó•k]ß,ÜÏQî g·†~ËóÀ›ßOÞg¹˜¨^ô,䌭ÇwÀÐŽ)« R:Ü) ;R9ÏÛY/]º„KGˆ¶òÚÚìfI"¼fYqµ²¹DÚ .—‚®óÔ:ë¼"™`À)¨éì Ò– Ó³ÍHÙq4õ‘-!÷¬Ÿ¾€ŠÃUÕun­5‘"‚q´ÓƒšGvžÌΦ8Í~rj¥@‹±Æ­vP=«;ª¢¨ªÔðw3á×öb:Ü!ßçóþì«ßúÿã ïýão½çÏ\»z ÀO¼ãÇñÌ—×éxæ¥KWôf:ð3/ý™‹ïzßBvø_ý•—â3_¼¹ëžoùÚ¯{Ó?û'Õo•³LbP´‹eÛa2ç“Y¤xúîZ´¸ùˆ¤¤R¦6MÓ´ÙŒãˆÕªœxëv³Ùh0="‚¢Åà¯X†Û;™Q ̳6VíN|Aÿ¦l pc‡°/;œ¤3`if¢?p™u;瑟‡˜¥¦VÖ>6¥&ƒöUPev\e$ÑŒ8=q½¬»+ìÇ2€èŒÏ™º°M3éž)N’Ρ\H‡KÁþIëpÙÉ9>~PnþÞ?ùâÝË= øßøšgü¾×|N·æV¸€(ˆ¿ñ5ÏêÐïþ»Ÿ×ae_z÷ÀßûOþðßô¿ö²Ÿø½›éð_üi‹SÜ‹-Ô`V`†yƵã8=ÝRŒìýU’T _õN¼bEv4·€öœã;Ÿ‡Ü÷ɶÃ[å,ïò÷ e‘–1µ:{Û5øX †Aû?Cé´·†âîEJ¦G«¸´ÁÑѪµ9½ƒ«Ùê6³Aðt“D)Â8ZÉåÍJuÞ¶:E´®wÜ¡Ã0ôt£é¸L ßs:‰HDxÔˆFrµÒyžOOOK‘££ÿ{g¯$I–Táãî÷FdUõÌ ­´À3ÀkìS¬¯„ï€f:HèhȘÆîtweÆõ?¿•=ÂÚÒYͬE mÝ]•™_F¥ßð{ü 6éÖµ•ý9ƨÁ¦çga‚»‘t"n‘ä)?ß6ƒ–EŽ –eá^³_î¨hëºÖÓš™Z<ÈpÆúcþËçÏ5ßý—//¿†û%|R%UmÆ]Ï<¶Éo\¹»ËΛ¿œO•ðu ÿT¯ÃÏÿù¯Ólí×ñ­¯Ã_ ñÁôÑßeÖ‘DT @3x/±»S¢:» $T±{tÄ Šð²´Èz^ž'?¿5莄Šúho^÷Þʤâ³ÙåUUÕy;v$Þk5êÜ2ÁÌ1+w¹y@’ˆOÊu"µšV}i‹M"Db:#}{¿ eå=C,"ʳ„+ ƒ2+’Åd8o¯þh†ýßùÀŸÿû§_ û¨ªš¡MzS…”Òï>ª«Ä&ôö­ã_õóCCä×1üS½ÿîŸþÿöó·¿ýÖ×á/…a…€?ø»ÜnC×µK'1̹·FÞÑY<<=¨‰0 bî"-3#<ÜÍzkXžŸž¶mkM:7Od¬ Dà$á>Lmi4ÍÜ "è½'IDªÅðDfÆeÓjfˆìK#‚ßÙ#4FJK ÷é]DªÎdv‘†HSÏ fAkÍ,j]u]`ƒÕQfQÜ@oªmô—  ^M5U÷$-$“E*JyA2œódÿ†õ_¹Ä~1 ýÛÿˆf¾,˲ð"áöê™N™DôüŒuíD4ÆHËÓº6"`]1®é6Zk—U¸ÃÊæü1†ª×áßÿó?Ž1þ®Ã_Ã|äýöu¿Ë¼Ý´z G ¶é=Ð"D$™¾+¡H˜sÈ4T§AÈÓS«œŠŠ[+Û¸ðJ˜„e ‹1ư¬êt¨Ü[n’,‘äïÙdÖÒˆdBoaÛ]‘ËP¹!Ù=ÓÊ¡‡u¸¯jé{‰d‚‰t䛡q_Ð;!Ó“EBSÕ1îLˆRdÚ®ÔsNqÿ´$Gă çœÜÉðdx2ü ¥ØdÈê¡o†`uþsÜgÆ ¤2.ˆ™„H"Ò†»–»:7NÊ’(KøŽp€„“`Q:¦CpdCÓ® HŒU¸Á,ª1ÝíüKp=$s\m™0s·zfΙä‹#¨àˆ G#ôÒ²:µ•ÐÇR‘&æw±ÒH„Y„™áÓ*™Ð;µ&u§ð ÃÝ‚ÿdx2<¾?Ã.hÓ{øërfªº˜¸µÅ=M³âKž:UW±—Žú̦6œ†z¢eYˆÈ,2÷ ǰjˆH'a ”²jÊ€(L! °"æ wæfæu$Ç>TÙ+UÝhÔÌ"¼ô =“T½º…ÃS¡JàÌ܆EB¤³4bö;nL”ª¦Ç­Që¨6Jõ,,Òî轊á|ax˜³ž O†'ÃwgX+¹2S›m#EÐE„ªVþw•fŠˆÐ(eè^:˜HÂÓÌB‘ŠËE˜jÆ”ÂG`Û`ŠY™2Uõºé°´¨Ýú=ƒœ€g¨&€0 °4n,aA»¦,0Ð…[kåâIT¡H4Æ03f!p̰ǟÍwèv»yXý‰Dè½3ó¶mÛ¦{%ŸÝâ*¤“¯Á¬^#2œçu2<ž ¿ þðƒ YHÌÜÍêv½¶À ‹Šy$ “,áeb¹7öfhÀM€d÷ê¼Î¬pÓ¨µ·©Ó6â6ôºù0@@{!Ú‡´Tu–·-†!Ü6¿ µvMA9×PwvxIZ£*ƒî^U®n:öûƒšÁ›©²PÉúÑE*r¨ºE¼1y£dͪ“û,j‚ƃ ÷Ó?ž O†ß„¡ð£ A”nÃ<Ðzo½‡clQïn¨¹f:XK“§õƒÞL_± ž:l{õaÏ+– ÀA)» £aû°êw+±»ß,K‚¯¯H /Ám{áúž O†'ÃoÀ°´J2lÌݑն”ú¬w§ºiÇò7!x[±ï3Mð€ÛáµÁîn&`æ1’…öäH E¬.ÀÌ„ eD„뜔)û#sX­¹§7_@¹5$!Sº•I(¯’iš„}Z3"ä°Q©ùÌP,=T7é hNUngEذ†¥µM9à€tˆ€%šÚÉðdx2ü™2Ì_ ‡–¨“;vwQkMÝÔ¢6ž‚‘™M#užcIªž9ç=3©è»ÍFC½¾zxÍB5³Ø¶ÈDoKeLgözÎ2¯?t^õfì{t|Àr¯ÝK Êð®"4«ÁÑ;JÔªZ|¹Jî1iÀ÷†yójËÒŸÖKëœ(0PYnD2ÜGÇN†'Óáû3ÜgbÈÜÀMH8V%sÏ¿¼=Yii;ÊQùO%EÀbV&N&Ë)X–Æ„p¨Æ0÷àHÉëU‡‚­soÛ0‹e‘Þ"1‹1²ö¹ÌÜÞ  n¯q805¦–A{æ ºS!„»»åÌ î "U­‰ÑÖšˆ˜}1§u<ɵcxyâu]!ÂÜÝ}&fàQ†ûEs2<ž ßáX|Œ!×.¸ˆ É=MÃ=bjõ±ñVˆî‰Ç 63Ý£Xç™Xˆ "MÝÔÝ"žlš×+Æ@kh­›BGr¢õz]¨ªŽ˜ƒÔ°Û 2C¸ELÑCøÛÄèt猻{D„júä[R-¥XkMUk=_Ëä]¾DABX<=K_8ÓÍužãþ–œ O†'ß'ÃZ‡>ʰ֨upžaáQ)¼l›j€ÜÄ·1†¦'<ÁSR†Ÿðz“RCÁD‚¥·Þˆ$âÆ­×«Ôh‚"Q ‰×WDà‡èùùòùóçOŸ®­a]×1ÆõZ>wí¸hlh¹ŠVEýþ‡öòá⡪ põPd¸ÿ2œ O†'Ã÷gXž˜2lÕ¡¨@Ÿ·¶HR™„(é0 œnû´f"cò<Y¿¬!S –\D’0$Gf&[;ÄYpG¢’Ä­ê½îý*nY…ò‹2EÀÖ¿j‘;×äSk-Aî‘D¹ŠNõÈÌH¤yˆa¬ÖuAIäÆC ¿8ž O†ïʈ¦N膬¡z¨ZKa2G‰hRó›°¬T¢ynžáp”ù0EN-h}BȈˆ™ÇÌD˜©‡»«j £JÏUJ÷;V?yÃjê(Yw wºfn‡j÷Á¦ŸÀ­]ÿjU”öJÕêå|î¯å€Ã}:J±LWä§§u¾OAžxἪN†'Óá7`XŸ•2äéÌ–o-ÌcW~úµí£æwæÀñ“¿—¾4¦ñ[toõ;N»,+1T$À1Û™ !ˆP¨ýîOêLDíåß9ïG±7þPPTÉ£j—­w¬«TS£ú8Õ¹-‚d<pVF-ËÂÌÌBÌâõõ ¦ÏÉðdx2|w†‡ ô†­0Stf€‘AêËå2†7â:ÃØ£-íŒaδ®M«b88ñgßóë+t w4B‘hïX.Ëï?_{wo›¿¼\z»|þ<ìz¥ËóË3Zoòùc¨=? Ð/×+Ì!öÛ‹ß§/—õ…ˆ\Á aìî­µÖ@@ˆ±Yi™ÉM–Î RÇ-Y=o›ÅÒ>¼`yöùãÇÌøðá9z|úôIÇ|'›dF7Z Âè\v¡¯æÐHƒa¸ÏØòÉðdx2|w†¿úÕE:½n1äðÌøb ²¾Ü+ÃÊ*%‰*#ŽŠ"?Òåy fÐLíŸÇ™ˆœ«Ùš+:Þ{J›†Ù>-Ä\³¨UUfsdÿ꽋H-¡Ap3µÖ2wQ+°ûèÍYÑJì­ŽCU 3»Ý¦ÃÒºr=¼*Û]™©Lû¦óÍ:ŒR·у ~ÍÉðdx2|w†cÀýQ†\CEå{¼C¨zýľm0¹ûÝØ¢G̾gn6wÖk“­IÜ}€”½·ÖÚ¾‹ˆé=·mÛvs"ô¾Š”÷Pp~×ÚX/Ͻw3»)"a–ÕÊÈÍÔr¾‡iÝ!m=†ÓYà6n××m3žW<¯k o!riý¸@ŸV’×—Õ¸3²%Ñz„án9u2<ž ߟá톰GÎMñ Ú›L$êID ¨›úl<8’DäÈà ¾šC‘ b¨‡z‚@­º ™îVeª5$‰[º×Hfö­´õB­ÍzB¢yè{âÖ$áf#ªžü5$:ö‡-gs˜DX@ÅEU¯×pDzàÇÆÌš™eùyØâ—â,ê| î@‚eÆÅíÍ“áÉðdø3e¸mWÕG2A*Ù§â,¦ ”Äóð<ƾDCæUˆjSÉöE¥zx I°‹Ê#ŸûT™å±l®m©==ƒÃÉ:fÁ!šOK <ÝöO5$Q"ÜMÝÔà9ÏÍüڵ3'd†¶³©ÜXÖÖ‘mÛö >¼`]ƒ(²1¿Ý†”>‘Ò",säžxÿzáq^'ÓáÉðýFìÛß_ϰ‰4 ÏHO’}_Œ2ÈJ éINDœ ³³š¹ißa™ÆîDúm ŽpòÌTµ 4¬}– €"à† "êy»ÙšBB$ :Ê¢œy¸=W5[–%b ¹mÊÜ[£ÌÕ]ͼ5™9!"ÊŽ‰Ð„¤‰jddæõfKo//¸\úí6ÜG%ß¶y D”ÉáÆÆ@‚Q ƒÈó!†o¢â“áÉðdøÞ E(¶MaÈÒ@ØFQÓ  Ë›©„Ix¨^Õ‚à{l9À:|XÌÃ}»Ù0$à)×›~º™:b½¬I3ˆYªÄxbØÔâGòõf›Z-¶ÁSƒšéßt¾‘›†úJm ÏÌÛ¦Û7ô*M€:’æÿŒWGái­ÒëÒ–.a®7 ðò„˲P"Ýv =®¯íî©™i‘ê®óšq¯Ì&yáá¤u2<ž ßáÒ:å£ ¹ÄJ5Û¯ý¯D w÷!IÔ ‘ˆÄI–aõ?¸ª‹"ñ:ü6B³Ö®œD–P ‹ð¬"Pæòž aPjC=r:>åý°½‰2CÑ:¨‰†±ª›…0šÌî/Ürïûâö¬zJ¸»ˆôÞ3ÝÜU±,èBDYFxS–±»ÝÀ)õªföa±·”~=ÃÃsêdx2<¾;ÃÞ„2ü_œ.RGWdóÃIEND®B`‚gtkatlantic-0.6.1/data/icons/0000755000175000017500000000000012554762544013066 500000000000000gtkatlantic-0.6.1/data/icons/32x32/0000755000175000017500000000000012554762544013647 500000000000000gtkatlantic-0.6.1/data/icons/32x32/gtkatlantic.png0000644000175000017500000000431412547326530016575 00000000000000‰PNG  IHDR szzô“IDATXõ—kŒ”ÕÇçœ÷63»3;;ËRvñR(#M\ÀKY”¦M@£Ûjz Ú”MSMšR>´ö“kÚ4ØMS4Ý EC*¨+ ¦AEcµ»n++ºwvgÞwÞË9ý0»³3 -iÒ'yóæ<çö?ÿçÎyŽ`Á Ÿa{€"ðÌ%åÕ—ú÷,¥X,³zušb±Ì3ÏL4øçË—š¨Ð;¡…ıY*qÂo¶dÑP.¾ÿUÉÐ c1Ä~²ñk ŒÑÓÓÆÀÀŸt¼Cbà§oa``Œs…"¹¬‰4­YÅ…ñ€Ý·¥°êÑD¡@¸’r˜ „Á¶U­î¢¯QJ\¾ ʳáenDZ0b¡½«Q#¥Ä!å¹ÈúN¶+)ù ~±ˆ“…¦Átår–åH_æW¶À$I­ìÙàÈjœÇ§*([\ÀMb ¥ŠbtÜ06^ OøðBT+Ïÿ§K ®[]MOO[íV ó„õô´‘ÏÚ¤]…Ö ‰PTB=O`O2QQÒáÔc[˜«;ûø7`.îõvlï–ªt¬ÁÿÜwв£êÿÛéÙûùœÃÇ£†ÉÑ(»×`îY·0@O ¼om3h a¢‰´äÂTÀ®öñ)8Š«ó6ù4øZ3u1¤=ŸÂ YEZA˜€’1ÛkC×%è×1°º³:é¥Å Ê’ä›%33 y—É‘2Y‰'xŽM% )´:XÚ Ȧ®„´ ¦“rÄÌuƒŸ¯P<_]q=)+ —Ëû1íiƒ°©D²t‘‡ïW"Âs%¶¶œ‡ĸ) [DØR°¨`u“Ö/òÂ0й(Íô´£lZr6Am.$1ùf€´NhÍIÒ®$ 5¶¥ðš%ž%‘üwö¾7üʨÇSTBÃOßÉwñÔ{ìß¿ŸíÛ·c¹ÊKï$hZŒ%b”°˜,%4YŠY? !“¶)†|Îæ“© GîàèÑù] ç¾=¨ƒÞ³qãÆb~ÙbñØoúèîîÆó†Ôu|8éм‹œx÷ξÅõ×_1˲طo÷Þ{/Ë–-CV`–ÜÌ¡}w±éç/á)ƒã€-Ü(÷ÝwŸùè£xíµ×öœ={–©©)„ض]«V+Yym;7.1<õÔS¼øâ‹Ü~ûíÄqŒ11—Š !8xð +V¬ ££{ýÏÆ¥© \K°³K Œ1Ÿ™ cxþùçÙºu+ƒƒƒ5ÿˆ»‚//ï`õ¢¹óäüy:Ĺsçèïï§··—0\ȳÙ,­­­d2n½õ–º~Ù˜}–µ´´pìØ±_Æ2(cjùLgg'»víâõ×_gÕªU r¹RJ„cؼy3>ø`õ®Y±‘•+WÒÝÝM___ãÇךK)9uêÃÃÃܶm;ßÚ°º˜ÖšcÇŽ±k×.úûûIê’Ò±±1òù<¯„7SÈ¥Ëlr8pàŸË†ëº<úè£yûŸ4g« è™3g(‹ÜÿýcH’„ææf*• –eaÛ6QÑÖVm/¡&íY—gÅ]]]ttt|.ß÷yö¯ÃL«#¼SM·=ööö}}}X–E©TbçÎ5Q,ÎJâ²Áñ¸@½õöö21±ðœ ¢„áLÿ*åùøÓ¨öH™[½p£(ª½ë֭ÃãTïƒ\³‹!A¥y)ªðÖìÞ½›LfƒÖšþþ~Nœ8Q}Ù‹yöÍQ"•&_[¼òæûLúÿYÀ®ë²cÇzè!fffHC¡`ãûu ‰âôüªçmëÖ­LNNò§™YÎPäã¡w9ü»½ÕËëëwó÷âÛløR†‡~xá±)§OŸfíÚµh­™×øüŽøÁ:ù¹ÓÿÙŒ1«I’d>̶mÛxòÉ'çý 0¤”:°aÆÇùZEƒ/¿üòÄÉ“'O~÷Júü}¼Ï7ç~RIEND®B`‚gtkatlantic-0.6.1/data/icons/32x32/gtkatlantic.xpm0000644000175000017500000002423312547556031016620 00000000000000/* XPM */ static char * gtkatlantic_xpm[] = { "32 32 510 2", " c None", ". c #000000", "+ c #7F0000", "@ c #530000", "# c #7F7F1C", "$ c #535312", "% c #8DC0FB", "& c #8BC1FD", "* c #91C5FE", "= c #9FCBFE", "- c #98C7FB", "; c #FF0000", "> c #A80000", ", c #AAD4FF", "' c #A0C9FE", ") c #94C3FF", "! c #90C1FF", "~ c #FFFF39", "{ c #A8A825", "] c #91C2FA", "^ c #8EC1FA", "/ c #84BBF9", "( c #93C9FE", "_ c #92C4FC", ": c #A4D2FF", "< c #8CBFF7", "[ c #88BAFC", "} c #89C1FF", "| c #87BFFC", "1 c #94C6FB", "2 c #99CBFE", "3 c #9CCBFD", "4 c #9FCCFE", "5 c #94C7FF", "6 c #86BBF9", "7 c #97C8FE", "8 c #96C9FF", "9 c #8BBEFA", "0 c #90C3FC", "a c #9BCCFF", "b c #95C7FE", "c c #8DC1FE", "d c #7EB8FC", "e c #7EB9FC", "f c #8CC5FF", "g c #95C8FF", "h c #8CC3FE", "i c #90C5FF", "j c #98CFFF", "k c #7CB6F7", "l c #9ACDFF", "m c #95C6FC", "n c #93C3FA", "o c #94C3FA", "p c #8FC3FC", "q c #88BCF8", "r c #98CCFF", "s c #8CC2FC", "t c #7BB7FB", "u c #73B2FF", "v c #77B2FE", "w c #81B5FC", "x c #72B0FB", "y c #70ADFA", "z c #89C4FC", "A c #83BDFE", "B c #94C6FE", "C c #98C7FC", "D c #A4D1FF", "E c #9ECAFD", "F c #8DC1F9", "G c #85BDFB", "H c #91C6FD", "I c #91C4FC", "J c #81BFFD", "K c #69ADF9", "L c #6CAFFF", "M c #454545", "N c #9CC6FF", "O c #9ED0FF", "P c #85BBFE", "Q c #80B9FF", "R c #533100", "S c #A86400", "T c #FF9900", "U c #75B5FF", "V c #73B3FF", "W c #6DB0FD", "X c #68AEFF", "Y c #509EF7", "Z c #68BCFF", "` c #4EA2F6", " . c #61A8F9", ".. c #7FB9FE", "+. c #90C3FE", "@. c #87C1FC", "#. c #77B3F6", "$. c #8DC4FF", "%. c #84BCFC", "&. c #97CAFF", "*. c #A1CDFF", "=. c #9BCAFF", "-. c #9ECCFB", ";. c #006400", ">. c #009900", ",. c #004C00", "'. c #7F4C00", "). c #70B1FC", "!. c #73B5FE", "~. c #7EC0FF", "{. c #71B3FC", "]. c #6AAFFE", "^. c #59A2F5", "/. c #69B0F7", "(. c #6DACF6", "_. c #87BFFE", ":. c #89BDF8", "<. c #9ACFFE", "[. c #8BBFF5", "}. c #8FC1FF", "|. c #92C6FF", "1. c #9ECCFF", "2. c #ABD4FF", "3. c #A0CAFB", "4. c #A9D2FE", "5. c #003100", "6. c #79B5F4", "7. c #88C4FF", "8. c #84BBFB", "9. c #87BDFA", "0. c #88C1FF", "a. c #73ACF7", "b. c #8FC5FF", "c. c #86BCF8", "d. c #88C0F9", "e. c #91C4FA", "f. c #9FCEFE", "g. c #9FCEFD", "h. c #96C6FB", "i. c #9DCFFF", "j. c #A3D0FA", "k. c #B0D6FB", "l. c #B5DDFF", "m. c #B0D5FF", "n. c #94CAFE", "o. c #85BBF6", "p. c #8ABEFB", "q. c #92C5FF", "r. c #8EC0FE", "s. c #8FC2FB", "t. c #97C9FE", "u. c #98C9FF", "v. c #98C6FF", "w. c #9DCCFC", "x. c #AFDBFE", "y. c #A9D5FD", "z. c #A4CFFD", "A. c #A9D4FD", "B. c #B8E3FF", "C. c #C0E9FF", "D. c #B5DEFC", "E. c #AFD4FF", "F. c #ACD7FB", "G. c #B2DFFE", "H. c #ABD9FD", "I. c #9ED2FF", "J. c #8ABDF6", "K. c #98CAFF", "L. c #96C7FD", "M. c #97C8FF", "N. c #A1D1FF", "O. c #A1D0FD", "P. c #9AC8FD", "Q. c #A8D5FF", "R. c #A9D5FB", "S. c #A8D3FB", "T. c #ADD9FF", "U. c #B0DBFC", "V. c #BDE2FD", "W. c #C3E9FF", "X. c #BDE2FE", "Y. c #BBDDFF", "Z. c #BFE5FF", "`. c #AED8FC", " + c #A5D0FB", ".+ c #AED9FD", "++ c #A9D5F7", "@+ c #B6E2FF", "#+ c #96C8FB", "$+ c #96C8FC", "%+ c #92C4FB", "&+ c #9ACBFA", "*+ c #99C8FB", "=+ c #9AC9FF", "-+ c #9DCDFD", ";+ c #A7D4FE", ">+ c #A7D1FB", ",+ c #AAD5FF", "'+ c #98C6FA", ")+ c #A0CDFD", "!+ c #B1DDFE", "~+ c #AFDBFD", "{+ c #A7D3F7", "]+ c #ADD7FD", "^+ c #BBDEFF", "/+ c #BDE1FF", "(+ c #BBDFFD", "_+ c #B6DEFF", ":+ c #AED6FD", "<+ c #AFDAFB", "[+ c #94C4F2", "}+ c #A0D0FE", "|+ c #95C4F8", "1+ c #9ECDF9", "2+ c #A3D1FF", "3+ c #9ECCFE", "4+ c #ACD3FE", "5+ c #B1D6FC", "6+ c #ADD8FD", "7+ c #A0CFFC", "8+ c #9ECBFE", "9+ c #AAD4FE", "0+ c #A2CDF7", "a+ c #ADD6FF", "b+ c #A6CEFE", "c+ c #B1DBFF", "d+ c #A1CFFB", "e+ c #9BCDFD", "f+ c #9BCAFC", "g+ c #A6D3FE", "h+ c #AEDBFF", "i+ c #A2CFFA", "j+ c #A3D0FC", "k+ c #B0D8FF", "l+ c #B7DCFF", "m+ c #ACD4FC", "n+ c #ABD7FF", "o+ c #9FCBFD", "p+ c #A1CCFD", "q+ c #B1DDFF", "r+ c #A1D0FF", "s+ c #A8D5FC", "t+ c #9FCBFB", "u+ c #A1CCFF", "v+ c #A2CEFE", "w+ c #A9D4FC", "x+ c #9FCDFA", "y+ c #A6D2FF", "z+ c #AAD1FD", "A+ c #B3DCFE", "B+ c #AED5FB", "C+ c #B4DBFD", "D+ c #B2DCFF", "E+ c #A8D2FD", "F+ c #A0CBFD", "G+ c #A7D3FB", "H+ c #A4D3FE", "I+ c #90C3F8", "J+ c #A2D2FF", "K+ c #90BFF7", "L+ c #A2CFF9", "M+ c #96C5F9", "N+ c #A4D0FC", "O+ c #A7D3FF", "P+ c #A8D4FF", "Q+ c #A1CBFE", "R+ c #AFD8FF", "S+ c #A4CCFD", "T+ c #A4CAFA", "U+ c #B2D8FD", "V+ c #B6DDFF", "W+ c #ACD2FA", "X+ c #ADD5FC", "Y+ c #ADD9FE", "Z+ c #A8D5FB", "`+ c #A1CFFE", " @ c #A2CDFA", ".@ c #AFDCFF", "+@ c #91C2F2", "@@ c #99CCFD", "#@ c #95C8FB", "$@ c #A7D2FF", "%@ c #A1CEFE", "&@ c #9DCCFE", "*@ c #32001F", "=@ c #660040", "-@ c #9C0062", ";@ c #A6D4FF", ">@ c #A5CEFB", ",@ c #9BC6FD", "'@ c #A8D5FE", ")@ c #A9D6FF", "!@ c #A6D0FE", "~@ c #A7D0FE", "{@ c #A2CCFC", "]@ c #A6D6FF", "^@ c #96C7F7", "/@ c #97C8FC", "(@ c #A3CCFD", "_@ c #A8D3FD", ":@ c #A4D4FD", "<@ c #99CCFF", "[@ c #9FCAFE", "}@ c #9ECBFD", "|@ c #9ECDFE", "1@ c #4D0030", "2@ c #9A2F72", "3@ c #97788B", "4@ c #7D777B", "5@ c #7F6776", "6@ c #91A7BF", "7@ c #9BB9D6", "8@ c #9DC3ED", "9@ c #91C1FC", "0@ c #92C3FB", "a@ c #98C9FD", "b@ c #9DCDFE", "c@ c #9FCDFF", "d@ c #9EC9FE", "e@ c #9CC9FC", "f@ c #96C5FA", "g@ c #99CDFC", "h@ c #91C5F9", "i@ c #9CCAF8", "j@ c #ABDAFF", "k@ c #8DBFF8", "l@ c #90C7FA", "m@ c #93C6FC", "n@ c #A0CBFF", "o@ c #9CCAFD", "p@ c #9BCCFB", "q@ c #523045", "r@ c #968E93", "s@ c #808080", "t@ c #5C5C5C", "u@ c #797979", "v@ c #9A9A9A", "w@ c #979797", "x@ c #333333", "y@ c #959595", "z@ c #999CA0", "A@ c #8FB8E8", "B@ c #90C4FF", "C@ c #92C5FE", "D@ c #95C6FA", "E@ c #98C7FE", "F@ c #85BAF9", "G@ c #91C9FF", "H@ c #85BCF4", "I@ c #8CBFF9", "J@ c #97C9FD", "K@ c #A1D2FE", "L@ c #9ECEFD", "M@ c #87BEF6", "N@ c #0000A8", "O@ c #0000FF", "P@ c #00007F", "Q@ c #939393", "R@ c #838383", "S@ c #1F1F1F", "T@ c #949494", "U@ c #969696", "V@ c #161616", "W@ c #929292", "X@ c #AAAAAA", "Y@ c #C1C1C1", "Z@ c #95BBE7", "`@ c #7DB6FA", " # c #83BBFA", ".# c #8DBFF9", "+# c #8ABBF2", "@# c #85B2E4", "## c #94AFCB", "$# c #7C8793", "%# c #90A5BC", "&# c #93C1F3", "*# c #A1D3FF", "=# c #92C5FD", "-# c #000053", ";# c #F5F5F5", "># c #EEEEEE", ",# c #D9D9D9", "'# c #B8B8B8", ")# c #9E9E9E", "!# c #999999", "~# c #505050", "{# c #0F0F0F", "]# c #9C9C9C", "^# c #9D9D9D", "/# c #C0C0C0", "(# c #9FC3E9", "_# c #7FB2EF", ":# c #91AAC6", "<# c #93989E", "[# c #6B6B6B", "}# c #1D1D1D", "|# c #737373", "1# c #97A8BA", "2# c #96C1F3", "3# c #91C4FE", "4# c #97CAFE", "5# c #9CCCFF", "6# c #5A5A5A", "7# c #3E3E3E", "8# c #FFFFFF", "9# c #F7F7F7", "0# c #CACACA", "a# c #BABABA", "b# c #BBBBBB", "c# c #A1C3E7", "d# c #C8E3FD", "e# c #FCFCFC", "f# c #A2A2A2", "g# c #575757", "h# c #414141", "i# c #666666", "j# c #85BCF7", "k# c #87BBFE", "l# c #93C7FE", "m# c #9ACBFF", "n# c #FEFEFE", "o# c #B0B0B0", "p# c #A6C7E5", "q# c #D3EAFF", "r# c #E4E4E4", "s# c #6F6F6F", "t# c #0E0E0E", "u# c #9B9B9B", "v# c #A3A3A3", "w# c #B5B5B5", "x# c #BCBCBC", "y# c #B1CBE4", "z# c #D6E9FE", "A# c #C4C4C4", "B# c #AEAEAE", "C# c #BDBDBD", "D# c #BFBFBF", "E# c #050505", "F# c #777777", "G# c #262626", "H# c #C2C2C2", "I# c #909090", "J# c #717171", "K# c #B2C2D3", "L# c #FDFDFD", "M# c #B9B9B9", "N# c #242424", "O# c #C3C3C3", "P# c #ACACAC", "Q# c #7BB7F6", "R# c #8EC6FF", "S# c #88BCFA", "T# c #E5E5E5", "U# c #C9C9C9", "V# c #090909", "W# c #C0D8EB", "X# c #CDE6FF", "Y# c #D0D0D0", "Z# c #A4A4A4", "`# c #B6B6B6", " $ c #313131", ".$ c #C5C5C5", "+$ c #7DBAF6", "@$ c #86C0FD", "#$ c #90C4FE", "$$ c #B7D1EA", "%$ c #B1DBFE", "&$ c #B3C3D4", "*$ c #D8D8D8", "=$ c #2B2B2B", "-$ c #94C8F8", ";$ c #82B6FC", ">$ c #96CCFE", ",$ c #8C8C8C", "'$ c #ECECEC", ")$ c #B8BBBD", "!$ c #A1CBF5", "~$ c #9AC6FB", "{$ c #98C5F9", "]$ c #B6C6D5", "^$ c #5E5E5E", "/$ c #C6C6C6", "($ c #A3D5FF", "_$ c #83B8F6", ":$ c #8EC5FD", "<$ c #DDEEFE", "[$ c #F2F7FE", "}$ c #B1B1B1", "|$ c #B2C5D7", "1$ c #6687A8", "2$ c #9CCEFF", "3$ c #97C7FD", "4$ c #8FC3FD", "5$ c #7492B0", "6$ c #EEF6FF", "7$ c #393939", "8$ c #B3B3B3", "9$ c #A0CDFE", "0$ c #96CBFB", "a$ c #85BCFC", "b$ c #A0A0A0", "c$ c #596571", "d$ c #4D667F", "e$ c #324353", "f$ c #8A8A8A", "g$ c #3B3B3B", "h$ c #B4B4B4", "i$ c #AFAFAF", "j$ c #A5A5A5", "k$ c #FBFBFB", " . . . . . . + @ . . + @ + @ . . # $ # $ . . # $ . . . . . . ", " . % & * = - ; > , ' ; > ; > ) ! ~ { ~ { ] ^ ~ { / ( _ : < . ", " . [ } | 1 2 ; > 3 4 ; > ; > 5 6 ~ { ~ { 7 8 ~ { 9 ^ 0 a b . ", " . c d e f g ; > h i ; > ; > j k ~ { ~ { l m ~ { n o p q r . ", " . s t u v w ; ; x y ; ; ; ; z A ~ ~ ~ ~ B C ~ ~ D E F G H . ", " . I J K L M > > M M > > > > M M { { { { M M { { M N O P Q . ", " R S S S T S U V W X Y Z ` ...+.@.#.$.%.&.*.=.-.;.>.>.>.>.,.", " '.T T T T S ).!.~.{.].^./.(._.:.<.[.}.|.1.2.3.4.;.>.;.;.;.5.", " R S S S T S 6.7.8.9.0.a.b.c.d.e.f.g.h.i.j.k.l.m.;.>.>.>.>.,.", " '.T T T T S n.o.p.l q.r.s.t.u.v.w.x.y.z.A.B.C.D.;.>.;.;.;.5.", " . E.F.G.H.M I.J.K.t.L.M.b N.O.P.1.Q.R.S.T.U.V.W.M X.Y.Z.`.. ", " . +.+++@+M #+$+%+&+*+=+-+;+>+,+'+)+!+~+{+]+^+/+M (+_+:+<+. ", " R S S S T S [+}+|+1+2+3+O.4+5+6+7+8+9+,+0+a+b+c+;.>.>.>.>.,.", " '.T T T T S d+e+f+g+h+i+j+k+l+m+n+o+p+q+O.a r+4 ;.>.;.;.;.5.", " . s+t+u+v+M w+x+y+z+:+A+m+B+C+D+E+F+p+G+H+I+J+K+M w.L+D M+. ", " . N+O+P+Q+M D+R+S+T+U+V+W+X+]+Y+Z+O.`+ @.@+@t.@@M #@$@%@&@. ", " *@=@=@=@-@=@;@>@,@u+F+'@)@!@~@{@]@^@/@(@_@:@^ I.M <@[@}@|@. ", " 1@-@2@3@4@5@6@7@8@9@0@a@b@c@d@e@f@g@h@`+i@j@k@l@M m@n@o@p@. ", " q@r@s@t@t@u@v@w@x@y@z@A@B@C@D@E@F@G@H@I@J@K@L@M@N@O@O@O@O@P@", " Q@R@S@T@s@U@y@V@W@w@X@Y@Z@`@ #8 .#+#@###$#%#&#*#=#N@O@N@N@N@-#", ";#>#,#'#)#!#~#{#]#^#/#/#/#(#_#:#<#[#U@y@!#}#|#y@1#2#M } 3#4#5#. ", "6#7#8#8#8#8#9#0#a#b#/#/#/#c#d#e#f#g#!#y@T@y@y@U@h#i#s@j#k#l#m#. ", "8#8#8#8#8#8#8#n#o#. /#/#/#p#q#8#8#r#Q@s#t#u#y@y@y@v#w#/#O@O@O@P@", "8#8#8#8#8#8#8#n#/#x#/#/#/#y#z#8#8#8#n#A#w@B#C#D#/#D#E#F#N@N@N@-#", "8#8#8#G#[#8#8#n#/#/#/#H#I#J#K#8#8#8#8#L#M#N#O#/#/#/#P#C#Q#R#S#. ", "8#8#8#0#T#8#8#n#/#/#/#U#V#W#X#8#Y#Z#8#e#`# $x#/#.$/#/#/#+$@$#$. ", "8#8#8#8#8#8#8#n#/#/#/#/#$$%$&$8#*$a#8#e#C#.$/#w#=$Y@/#/#-$;$>$. ", "8#8#8#8#8#8#,$'$/#/#)$!$~${$]$8#8#8#8#e#x#/#/#M#^$/#/$/#($_$:$. ", " |#<$[$L#=$}$/#|$1$2$3$4$5$6$8#8#8#e#x#/#/#/#Y@/#7$8$9$0$a$. ", " . . . . ~#b$c$d$e$d$. . e$d$f$8#8#e#C#I#H#/#/#/#g$h$. . . . ", " 8#e#i$. j$/#/#/# ", " k$C#0# "}; gtkatlantic-0.6.1/data/icons/48x48/0000755000175000017500000000000012554762544013665 500000000000000gtkatlantic-0.6.1/data/icons/48x48/gtkatlantic.png0000644000175000017500000001016212547326530016611 00000000000000‰PNG  IHDR00Wù‡9IDAThÞÕšk°UyÇëöÞö>;—@ƒ@*BÄ!; :$Ô(ÚÖÒŠ2étlé(mf`¸Ž—ŽÊŒ‚è(3͇kÅδP¤È´ˆ ‰ ¤2ZŒˆA„“œ$眽÷{Y·~xw’œê—®™={íµÖ»ÞçYÏÿ¹®-8|‹ü?hz¾É›·Öè$¡¬,\S!’¾S2½-à½`Ñ9±#8KSþȳwªæøó ^øÏ†ñÅšt…䥭aéÄ©ì:î¿1"á /žÊþJ°ðÙS™\ö3f† Ë&V°çÔÿaÏî;_ÿ4F+dŒ,“ Ž©¡ãš rä| 8+p„Ô46RYí\m=.¶Bª]D¥ª¥ ÞFªÒ·Ã\h×k£6€aãmƒÒ$iÇE Ú=mPR`] ,!I4Jµsó2 ¥¦ªÁ° Ø•oßVÖŽ([núud¦ %Rµ‚ $L÷[‚ˆØÐ´û&ŠfÔWFR7aD¨#1íž®v¤º%2ÕŠ¦²!6¤‰92I*ð!PÙˆ‹‚Ò fÊ–`ÿLKÜL û†íøtéÛv¼MûŠ´#°£“®½ìÀ)a}IF"¨/"Þ¶}#Äö ËÊRÖ)_ƒ¸àQFÒ¯I]zcí©\ÿ{9ߦJÞ\¿ª;;þé÷ŠÙ¾ `ÒWŸû®vüWð7çŒúß‚Ä(ìZW_°º®%Òd†™Ê¥bPõä‘0‰À"°¶•a­@ ^7=H5¯µè—q‡kâ`Pd™ÆBFŠÚªÊÏ>sX3úO?ÌÌ'_þyçš5\¶eËa7›]sÙ/¿æÎe­ùöÎI¾óìÞC?°ñ ܲµP!øõÄÛötZ±nƒí‰„€Ò.JöÌT¤=ƒ5Öbí8íØ ‹»iàW„Ô¼aaBU„„±\‘©ˆ‘AàÐZð±Û5¼³%èÏ LÎÀ̰µŽ{¡˜_‰Cpdi$ž%cfÎ\U{Ð`£§($Z7,èA‘A=3dÉ‚ekÆ{)Þ:”€¦iHXº$§0[z…-"™$T ä‰F‹WoðŒ/¤Ê‘'áÈ:pÂ7[…ýþÖ+Å,y¦¨IžAª ,]”1¹?¢*ËÒ…á´t: ¸†à<½B ¢$XÐÆ ‘ E O%‚H ŽDÎw[ûµn›9:O¼ÿò€‘±B2,#Û.g!´°Á;z¹"XÇ‚\3(-ÊHR2\ÓðÆãR¦ö Hsx’TAŒ‰BÅ„º†`:’Zj"Ç.ÊiD$†€” ï´Pä…¢4PÖAÀhÚŠ˜4¢¤!4ñUôH¼Ð8!{ f4ûJK´?„z]…oXK§cp>RŠXG´†tLc è(tÑFaHÒŒaåY¼@’Æ@¢Î ´ÖÔ>f)"y!©d˜¡ÕÛÄÑA(Y‘jW‘)J ~ó›šþôrI„N‘Ðï×h%p€ ¢DRJBˆiÑZC$ÆARV‚Ô´ÞwRiBˆ8×¥5äF°æ¹5\{ç}ˆ(‰Ž–ï©ÁEÕ‚9.x¤’4EIèvZ‡U•Ž4HñÞ“˜Hô-Zk¡h0 R 28Ž b€MJK¬ d™ÂÚ†$QØÆ#ƒ¤)!Ž"Gy  ‘þÐ#•¢®íÿÁ‘Þ§( ¼÷T•£SdHé BhÝ2'E`,‘TŤ ƒÒS[V‚nR‘ªjÈÒ AI3‰Þÿ÷ó¸ñ\î€ÀX¡‘DÖ~OÍZ!%!8G’èQÐÕkRC9tBD-I¥ (‰÷ŽNGSO5D u)è-4 H¡©Ê@–*u Iu€º‘ú×÷FÊaÀ9O¯gøÐÆ#8²NG"”ÈxUŒÒídø`‰€Ò¢…‹Öd)t;ºÕ0F"¹&zD´n™óª2b $ kpÀ¾iOÕÌ¥§±ˆ ª<ƒákpd|QRŒºöUV¨“J|4øàÉRƒ `dD 0yd8hPI‚kB«+JÐ)2Ê:2–*úJQÕ &5H%¸#:¹ÀV‘©þ\+ô§ÛÔÑY!÷×5 QbmDóŽo\÷A>!"ÝT3,Š€@ b$Ú@ÞU#!Fb牊Hk™¤l­Uð‘ºò$™F A]Õ¤:!Ë4SSkž[ßüÝ¿“g ‚G*ƒuÁ°áŠù‘b!Ñ’!ËÞEäˆg)%’H'ÓàÀ(AS9”Ô¥'O5Þùöyµ 8HRɰª‘Z‰H¥ñ>¢t ª¦5—Œ<*Ac#F·{J)HF©ç¼øÞÛßwÈñß*ÛzW%>Dê„04„ QIj A"¥ ¬:¥5UmñÑÐI¾‰Ø:2ÖÌÌ@]{L"É;mìó>øúªçýð!´n ï=õ™Àãü‚ýƒÈ®¦®<IeA+ÁpÚ“wMŒ€ÂÛˆ­IôH•e¬g¨úd¤j<™TT•§—kÆäLì±ô‡–n·eàCŸûrz䢄@dË5?!‚óT+êz®I˜ºÖšDAÊ&Ž,NÄ•£ÛS'‚ CDH¨*2š4K˜4D/1…Ä5žÁP’'’D k©›QUÂ:2e@´„ûf=ؼ ˆ$*â$‰$ºˆ’T¢TDI°.`ƒdzHͨ MÓŒ‘( Jpp8}Ûm·|Ã{bY–z÷îÝ|ýë_çúë¯'Ïs„l{ìqÎ~ÇYPtQco¤ó–ó1¹AÊH/×ì8öö-‰Iéf’þL µ@ à\ ?߆CmSΉ)‹E#]dÉ8\ñ»w̓‘‘6lØð¥ÔU/½ôÒÙu]Óï÷¹÷Þ{¹îºë¸ùæ›)Ë’Ç{ŒsÎ9‡§~²ƒ•o?ƒc; Ç.Qì¥$1f6ïµ æ¼ÃHC7W §öÚšP,] |å DÄ(IÝ4h£1Z2T KæX¡›¶BôžDEòTóÉw}ýØcíþéOºÄ{ÏC=ÄÞ½{Y¿~=§vÖZž~úi–.]Ê<À™gžÉå—_βeËHÓ”[ç¥M—ÇàHˆdÃçÙ÷³LìÝEh†ìÞ½› 6pÍ5×pÌ[ÏE-= dB hë®&ÑTUC§H˜¶©å`èçœwm-ÌàÅ Ââé§ŸŽwÜq·Þz+333LOO³k×.víÚÅÎ;Ù´ik×®åä“Oæ˜cŽaÁ‚m¬3jß}jͳ°bÅ ¦f†üè‰m<òÈ#\uÕU„Q¥¹,Kžyæ–/_>Ëøää$ÛïÚN5¨^¦ðäÑ÷Η‡vî{;¿Ø÷ŽÃBHÜxãñ³Ÿý,;wîäÄOK–,ióW0°ö¢‹yç›O=õ>ø ?ÿùÏY¹r%Þ{¼÷h­ç<óýïŸx€n¸éÓLî˜ä'Ïý„µß¼ŸÚGîY÷~NY| Ïì}†µwÝÏ „ÉéyšÑ+ÍÐsõyõÕWóâ‹/’x€ññqV¬XÁã?ÎÚµkgoFæ^„´ß+W®äŠ+®àÒK/¥ª*¬µ\wÝulß¾ýåD;FÎ8ã ®¼òJŽ=öXÎýй|àš´¾Å0{?0'l©=,’›ˆ«1‚>PZ4Æ0>>>obcäì³ÏfÓ¦MsNò@³>Î4c çwË—/çá‡fݺuœ~ú錑eEQPI’°k×..¹ä¾xë—[ŒW‘dt+³ìæ ÔÖñÌå¿wGv^zÉ㬡ÛÕ;²ŸúÔ§X¿~=ÇwÜ"Ó4eÙ²exï‘ø„ƒ.{–,YÂE]ÄI'ÄÌÌ 1Æ9ºã½§Ûí’ç9½ÞØ(ê´h3º_ó)Õl?8è%ôg쨂‘|Å4¹é¦›øÂ¾0ÿE„ÜqÇÜrË-£ËX9+©WK.I¾ô¥/±zõj꺞3×ëõ¸ë®»X¸hÑ‹†rTïñÞ\7é6ÜVÀÂÅ Úk¦ƒ$Ðív)Ë’,ËŽ©¥K—²wß>|Œˆ‘!¸ð ùêW¿Ê 'œ0{ª_|1o~ó›év»Xk©ëš,ˈ1RUq¿8×J¸è(fúnKEh®Ž¹$Ï Ö¶Ïˆx(P¿ªíÙ³‡;v åË{þùç¹òÊ+™˜˜à£ý(›7oàá‡欳΢( bŒ<ùä“ôû}„„¨ëšøÃ\{íµœwÞyıֲftƒs´mÞpzçÎÜsÏ=³öüíÖ­['&&& 6oÞ¼îÀÄ{ÞóŠ¢8HböRò¶·½cŽ9†#J)Œ1ÍÈ õGðGÀ7GåŸÙvã7²víZ^xá…Y}ÎXµjÕ'^ÅÐã¯(bÏÛŒ1ÜtÓMœrÊ)H)¹ûî»çHö¨% „¨…ÿ&„¸T‘'ï®þÌg>óí­[·þúøã'„ð5 ³jÕª§¡ÔÏðµC½D)uT¤”Üÿý|þóŸ§,Ë×Í€8Šu¯éÏ1Æ?6c1F~üãsß}÷±qãF6mÚ4Ç k­CUU}cÌþóÏ?ÿ¤ßº¼ž®!îN¶Î::kÑZ¿’ø¿tΙçù[^/ñG#×ÕBŸ{â‰'þ¬ªª_öz½G'''ï^½zõ£¿Íwü/tâwûIEND®B`‚gtkatlantic-0.6.1/data/icons/128x128/0000755000175000017500000000000012554762544014023 500000000000000gtkatlantic-0.6.1/data/icons/128x128/gtkatlantic.png0000644000175000017500000004352612550313715016754 00000000000000‰PNG  IHDR€€Ã>aË IDATxÚì½{°mÙUÞ÷ó±ÖÞçÜV«jµ^ÈBÆB’A8`!¹ŠQâ§RT…Øy˜ ¨TxÄŽc’r•! )JàâQ*«Ê‰eÉØ¥ÄF²@·ï½zuŸ„]uëvßsök­9Çãß÷ á‰{öø‚„?»ÿÿ~¤'ú þç±#ÆHL™ 4¨µQJeCNh3NÆÀv­ ¥±ýZÿhüïÇ„(3˜Á/®½Ã3œlÁ”©`ùóËoió \=£”†‘yÖK·|ô­ý~âä4ñä'gb€³k׸ýÅ—¸úoŒýgg ãÆ¯Ú=üþà®wÖqÑ)B pgÿùåg¿—@ÅŸ?MŸò‡Ïà“Ï~"°ßÏœÍÊÔ³À ý·üû?ï½\¾l\¾|…!Fn»í5åÏ=ø¥\yþ{)ŸvÕ² f C`»!*Ô\>cn µ"üÀËO.&h3LÁ̰~(ˆ!j‚* PÕo’6ÿùúAU©æ‡Êñ–oÐ æ „‘pøZÍ|Á„1%B¸þ+ 1D¬e6Ô ¥Ã¾°þžËÓTÏ?;çŒH VPó?ÇZ¡µÃkÅèßýðõ¤¿~è"ªmýyŒ°Ù9g hÍ0;¼É4ùwÈ9 j~­ŠR‹¿·õÏ›R&§DŒñÜõ}â€ú‡Võ#"‘€6EÕ!P«²ßWªÄóĘ̀µùk¿Ñë f”â -¥G¸5¿"0äDL烞ˆS¢¶Æ~7£ÍÈi8<0‹íx n¶'„ L¥öèÖWÜrƒjñïÔ¯E·ÅÔ×!!”1pü Õ`;À¥Íˆ¥”s«l¿QØŒËï­5J1_}§‰)­×ós€ˆªÐj_ë…¨¿ ÍE+fzîþ¥ªÞ ¿ ]æj4»s¸µâ7_1D_EG;<Å€ª°Ÿ µ*rôþºDžØ?g3ÚÑ HYQhZý36¥]àÖµ*­ùk…pÝ0Cb Dbä|X¤e‚”àÒm”"jõº°£6K4QSjõ ê‹7†€ûBÔ‹[A"˜ÐšQª‡x¿¦‚!4õ°+"è²ãŽî¯ôUk¥ÔJSß‘Ç!^ƒ ¥™ÿ<G F){æ¢=b„sçÈòy°€Ö@™ Ôó;Ô$ø7kÔvÑ& Q ¨Uj-”rtc¤©R—(xý1¦ê =Ä@aˆ‡°?k´ §'°3Q9>gL©µ­Ç‹„h¦T3šõ(“ú"‹‘ãÅ-€#&ÖŒ¹6j[v ¡6cn` 1SÕ˜[‰BŒ‘fÆ\ʹ‹~ö7Ls1Îöv)zt˜ ûy¢õp#G 5hµç٦ƴ?¼‡„eÁ‚‰¡¦Ló|8ã „Æ„‰R´2Íeýù0d@(}U-ÇÑáý•Ö< ä$¤ä7rý~sc¿78ÙF†œ<æ¯×7Ðjcž Kþ´›FmžxK„˜ý(r¾À@Ì€6ó ®ž+F©J)Ab ÔÆ~®G7@1b˜‹RšaGWp7UOôö³reW˜ª#J­Ìs_<"ˆ¾vÕ¾ãC@Bf*ÊîèJÏ9ªj E™Ž>ß\òQ1š*¥P=J´æçŸ¿×q„RjkFN=s?·È•2­Âvã‘£9¤Œ¶Æ´Ÿ=¿Z–UýzÕvH–„ó#¤ ¡ÖæYìæj°›zØ ’¨×eÒÒoZÕÆ4ÊÑ/L¥1¯Jó |tý1 HÊ4ƒ}©LÕ8ºÿ”æÇâw»©0Íí\Ž““ùBh=:ƒjí%^†4$_Ø×}þ”jFÕÖ3õsEfŠõ\ ÈñèõŸïvFê ä8‡Ø ‘„Vêzm—…UJežó̺2Ì.<@Ê ÃhµyhþÃ#sQv{õd&GŒ|îˆ3fi®ìö‡+87áÚ¾±›ÁBÄ$±›ŽB¬DBh¸º+ì‹Âá`jK4‚Y¡™<&Hƒ0Œ Ò=ªJ“õÈÙlbJØÑšf# sñîxƒÇ}¨aÍoøvsø€Q `Ì{%ãÀ¹ƒS3¦iö…ÔóœZÓ\ØOmf×WÁOøèQ—!CÊUeš*s±ž¡Fb˜«qmç‰âñ!YŠg²1n0‰LGIVÓÀnRv³z2(«gåhEJ‹ì ì¦Æ~V¦£¼Ÿ•ÒüæOÕ|h8WÆ"žXJ „˜×„r-3‹k`ÜŒØQˆÙO%†1Aˆ”z¨J–3<ø ÀÌÏñ£"Ä€xt°ê Óf<$‰­T‚8vÑjÃTg‰É7 B©³½_o¯‚åâÀR•!R†Ts©ÔZ‘(#OçiFUÈ1ù‘Ñãk冯û†õÊÜ#g?ôwÓa‹ýW_nùü¿ÿWã-Þšç1K)˜Ò@«‡ôß¿ü/Ýøùý¾ÿ¥·þyŒ‚i@k… ^5}äÿæe/»ñó?tÈr†œI(W&T ÄS Á83v;%^ŠŒÉå‹‹Z׺9E!¤ø‡ªýÌnêawšŒ©x)÷wœ$@HLÅ8ÛSfñqûüÓ’'RŽHÈc™ )ô( Ž–ù,ŽX”œ„ÍÉÃà¨jõM¦ *B)…Ú«c,ì‰ÇB¯«Aô\ D?³j±â=ùÓ&ì÷ÒáÍÏüˆñ2S¸¶kìwFˆÃã·æ¶*Øx˜<»q1z)iˆãŸMÕ<¯„í6Bè¸CÃ̇ƅy†i¾à°Ýf ó$³'~­™gÔýŒÍƒÇ¦³ríêgþú»½Ñš÷ö“r¶WôqüüÓ¾0W/líV·×wx\¡oŠªŸÕhMQõ19B[Jp(:æif¿oç¶'ðÞÀ¯|×çøìwö¿ûÖ¿ö³÷ÝwÃÝ[Þò¸|‰›¾þë>ôø¼þÏþ¹ÏéõÿÑþ€_ýƒ‡?·7~ý…õþìñ…üxÂ#Àÿöo Øígs% #’àSW*^Ù£BÈüô'ÏŸÛoø ÿûmÿ¾Ã â}ÇŠ¬9âVÍ¡_µ€ID‚`½!x6ûûN­’†ÈöRâôI@0>ô‘‰Ý´c»ÝréÒ†ÝÙL)ƽw<íÉ‚ìaÞWÊvˆl‡È&y7¯5ØÏpõ¬ñèÙž}ò8²=l3œ$oo_¹v†ª2 9'N6žC­ä(lrñð_Hä,ÄM´‘bdžgr³ðÿƒ~ë^|þ¢ÿâ_2v\½ZÙÏ`D®BÏ—:®ò#ß$æY‰†!`fÞÎN¶‰q{·¬Þ²¼¬T3 •ˆ9‘R"ưö¸ܾ6O@SŽÊîlÇÕ«…ýBîºk$Hà‘GE[å¶K˜ríZ¥öD)Æ@™ g×ö”âùÊ‚åç ãH9•RgjqRŠ5?ÛS†1P…:¢¬}‘îÈ¥c(àsø6ÅæIé­)ù÷ÁßKÕKÙ˜X›æ ìîvgÞOBŒë8Zΰ„…ði胡w³$öæŒtˆ6zÿ ¤€$ †®‹&ö‹™Äß\ »³Šžr·pÇ“·Ô¹píêY¿hµ«ggJ0Øä@ˆam?‹€¡”aÜãIÑ-´Z°Þó AŽ0=*-mï¾@â q{Ò&ô/ÅÒÌY¸m…Š—.^Óz˸›# Ib Š®Q~çÚéOø˜¦™iòw‡1&¬ùÊIÈIÒn$•š¸À˜Í|‡k'jÄHIHD ³æýñxˆÃ;%«ðè£~¬Üq{dL‘«^£8Ý$°ÊtV©µ÷á·[ÆqCŒéÜgˆÑ³îí&²9C”‚i¡i£©!汜3)E̼)$}Q{>ø-ï¯Düf5 ©ÿ·©’"F0½EU¡Äç1t’yy©þy†. Ê4‘â–홊a9?ÿÔnQç“:VÓÒá àY¿ré1ÿvç-°÷Ç$4Q(SEQÌ’_¸6ÛJ¤XnFNt0ÅÏÍ"’õ3HÁÃ2jœ]Ùsçín?…«ÛÀÃ_cºÃɆí˜ñÜdÈBh%EI9¢MiAÈA<Ä'#7CÌÙMÿo\„é¬Ña­fœ?Ä#ÒØDߘ„ Ò›N3yȤp´a~ãüõúÎß8ù¬‘È/èÇ8@NN”T­ž0 äÈCröLO°¶áÒÉÀvH”© Í)ãÛžt2òäÓSN†LÐJÝïÑÙwÀ“/en?Ý©lœŽ ¬°ÛJñvöv;"´V)s¡–†c‚$•MNÆLJâ}OÜ ÀÉ&‘b '_N’ñ׉=ÁMÑ“OA)sõ¤.y¿àì쌄íðøõ:žðð‰ït²¤  cf3F$@™ÚŒ¦Ân_ø¾÷Ž7ÄnÛ‚ÕÄ~š°6£½©”ÁLh­ÄiѹӷnÛŽ\³‰!x¶=D CD"‰ÁCí•cäÎ'tŸ¸zubFŽBüü/U‰!bI˜yY‚·fsƀ؈Ô"TYòÃLˆG}xk¡gý°A}±‚×ýu¬O&[ I$Ga»Ù€)zÔ®¾øÇÿNa_ „L\³›Œk×&o²©Ÿ?ÿå뇋YÎCïíT<ûŽqZæbXºùŠ>Ý‚µŒP(µA+†ìaõìÌú¿ÁÆ­Pg¢$"1A$)dJ Þ1Ûï±rÊí—Àž”`N$k䘶0j)TIlÆH 3ÏS×8x©†BŽ‚ ™V+ÁdÅç¡b–Àœë ¬€%†AÖüº,¢mžôÚ¤h-1ÕÎa¼IÄÌž4UZSB œl­‰¹šO.2¤ª¡ ü„N~Ôà+ÒòÍO¢!Á¥ÁÈœí'°B« ËÍe´g×V!x9¸ÉÎæœû<@ªL(Dvmö4¼R…'mܶaž'’y0SÊ<¡Íkð€ôÚÝÏîÖm~~§}¾ª8'ωTÅÞ +sóÈÑ:ÚHˆÎÞ ¾PL#Ú–E/úÐ}·kñÖÏ™¿‚£ÞÕK¸Ë¬Ì„V]§B`"®"qô›ÝZñê¡«€rï^ÖÚoP ŒC"ˆœçíɺ³´›mÇ œ®@[Ŭ’`3¨yQpá¬`z}¼HÃ%-âLémS]‰!ÁÉÛáX<×°VÑnvð]=äà¸VÊämÓ!ÁåPò¬ª¢åfv]²v¡_?é7[wiJxŸí¥Uÿ·(ev¡)G²µvpÙl\Ñ<Ï•Ú\¯;.qD–B¡»©ê =˜ƒCtNAp25Y„(¶þ9\^%°”w]-í$"Z¿f¾˜½»žtú„/€a<!üB‚uÙ¶ÃÄ­Ù*˃ŸçÇ+Ü£ÀÁð ö±ì$ÕJ©þßÃà;ÚIzäJrØ- Kf ×AýpÇ»p¼xø•кk‰¶aôãÈôàÀáŸÑQÍås¤Þ¿Xôz±N̬Wì(ú%Taž”¹´.æ ã=Zu®À­²¿Ö…¡0wÝ…CÞ.¢9'_Â#@ôLw7Ï”æYsìำwükam| Ã1Žà¬iY]/ü5Œ…Ü)_si(.v§v@½ï"(FÀ·GXvvp\`ýÓq‹<Ù‹f ÅuyÙÝ:69‚y>SÝ™d¹»1ÏNÏUZ§§ã€ZYI+µÖõȨ¥@3„@  UhZ§š ‘@\yôÅ*ýì·®ql¥ó¬Ôâ mA’Càó‘øõ _µ”* ÷Ï™@î­ãáÏ4 Àu¾5`«‚¶¶Ù“­y̌֊C¤êZºÐýÑúÙ¯G²h[Ý4–\ C¢ͳÎÍ“þ:]·×sq ˆª¥S¶–æt1fé9‰‘Ú—aðÈ´ä6ªº¾¿³… ‘èÉc?JQ/ë‰\vôéB×þÚU›ËÃkgGIÏWŽš OxPÿ¾“,÷ôìº^´¥ÿÙýìuÏö¿?©ºB—!ø¹¯MˆI¸tyäòŒÐH!1ï-Âö$úŽéEM;gäœWeÌRn¥,”º|µ›Ƚ²¨&®[\T¶Ò˜3o{Ó«ÌæÞ=Á?ó<ÌòJŒ»ÁDÎÃJ{ i¦\Ý6CîÍg/@Z«žêÇx˳]÷ð–ÿ!~¾)Úö#¥ÔÁ޼Ù è b»É)!¢¤´$‡KHÖn‹âÄŠCßy¾ bè;¯únz' U"Fº0ò„5%¯8b žÕã9Œ'–N+ÅÙ¼)EbLk’çÕ‹'ÁË¿ù"ñ²´T˜ºËWëùJi¸«šôq”>=áàÊëÎØn7Ä(ÌeŒqÌlG·5›§‚Yãµo;¹!`ÌÓF™ýÆk$y§, lGÇæK)Dq— ëÇÄRÓ‹HÃ[¤¦½óûM¨Ê0Db?‡ÕåÕ)vyU©ÎÓÓ†©wÕ„¬‘R1nüTZ·V ÔÙí´ é–|‚œ½Í»@<Œ·°ýu<¤¼Ž@œ¡b]Ó¦îÑw¤ !®Ùu tvnǺ 5t6ÃÂÆÊßÄ"fB™ò¤Õ ¦„ &«IU«E#Ð40wp©v ¥á¿7Õ›³¨­7¢BtÁ©Hì ©^±˜c¶.]òó®–ê̘˜z=ª¾ÿ-êÛ˜\U4Œ™œ‡~Ž÷ò±Ÿ¡1ÆnAÓh­:ÚCÏú}1Ä.ëZÓ™ «Ÿ_Nâ䎣°›²0äLz9ª«RØó9dáæ¡<†Ä<›;|­¨ß±<ËÍ2Me•É×v †ªsQö{ëNhþÚµ»­Ý”¼0~Ââm(+‹Ø-ìzOã¢ÀɉïÎÖš÷ÓSðŒ·/„…"{ BHŒîò9d箦J8â‚tøØhZIшÉwrê; lN¶‚µH™'BΠųÛ;]êVʰM—…íª¢¢ÞŸ7^l)ö掆 Z ÒyòˆÅ›0e6N¡˜º_at-‚UHq nsQta gÁR`77¤©'›ý&º”²ß;Å{³u’)ÿ¨ Š6Ì)¡dq*d¯ÙKkÔY1 TÜZUhíæ·mž*ªKÅÓ{()3OÍ+Æ•³ \û¿ë»ûôú{Ýÿߌ{MW‚AJ$q»·jÍ}û,¬HXJÝshq›5¡™÷Ø‘@Ž~ŽjQbZ4wB yg®A+‚ š”!x'Ò,:\ Òû QÅÖnK RK£æàÔ¯ ÝÔ¡“7­3‚…"nøéhii†N„ÔŽEÝ×ñþ“ߨüé˜+‡HNaµ;Í!¸£V´ú…ÏÑé…¶êòº…Z·cÍÑ·Ü`ÑŸï…xŽ¡÷jïêåäîPmí?ÐmWc7¨fµˆÏùP¥_Õ…ÌáùS~Oˆtþ3½_}s>À¼˜àÀÏnrH7¥È4ù´°ÅïO7^4gÒ5_,2¹®¿™ ¦4÷Ö•e柬22Çô(l1¨ªF“Ö'ž%÷èÞ‡­ªD]Ø;î(Òjìò]5ä —¹Ã˜HûàŸ­©Ëç[%Tßù!ö¹ˆGEZ‡½C­s~䢬lU»‰³Ø…IÃж¹úâhnüp³PzG0$¦ViW+· Œ9PJbžÕ1ó>u«vÂD7H ÑÏäZ=qT‹ŽûcˆšË­Y.’t…Ow#]=õz²Ð1 ] ÜÒz–îV5ã8°›fæ¹tû·Ð§z¹'BNÚÁU¯ççy eéÍØl»]us‡žÜúÄ´D Ž=,\Â…O˜Ò±,ÜÖO¼Ôa Åükúr€¾´O]Ê’°NÕu¢ÖÓÜ%ØÑQÁ+WwLs%d¯‘çÚÜù²ãõÈŸceÔÄän[ÓܘJEqIW팜º ³²E;ï!@–ðy¤)·voÕV6õ*# #0Íî(ÁûÅs'›†L?b<—ð3Þ‡<¢.•ߌ‹Xd9\ ?—qBè“ÈÄÖ5'ì´©/f[¸”Î)Ì1p1¬àf„,ˆÅnßb^E’1¸ ÆÍ:¢B+Æd>†VCæZxæ¬Î*±ËÅ*m…Ù¢§èîžÕ„F@ÔÇË-]üÔ‘ÄÖܽ$ÆndÓ)ËËL¾!9-ÌM?Ñkj´ÙhWŒa# =QÛ_Û¡uf3lÜÆ~ïþ<ÃiB†àýýêÄéÞ‹ýát¹¦…Òª»‹„-ÍóÓpnìÝL‰&õC^½ôÕª¦Ìµvb¬›]–z‘´pƒlÒùnЍ¬bP#tm~»E™âçò\gØÎ5pùÌ¥ØäH› ­Þ• Á[šŸ‹Údµx5‰}BhóÒMÄG×(«À#DWðJoæÔµ†¹#„fÞô1 TöÍT¸=A"²Ê\È£‘Bô²²(û! µxe£ÙÂaæ°:8´„R„RnnxnS»ÛØñdSÓÙ+•Q‰+PµÂÑ‹XufèÉóñìÅ'|¼ók_öy“Jg—PÍU´B(Ýr-z”ðq+²NõfNv£dqYµOîjŒ¹/ÊÎûSõ ÏJ·kë´q‚ U™{ /â1ÍúÑa~D•*Lŵû)%ŸS8WâÉyƒUåÊ•Æ¥ÓØ™ìê ÎðL)¸ûèÂ@ê¨]£…n ÃÚÎ~Ë[^׳ùÿóO7@0©æ3„‰ù4û°E »ì"ëç`Sϲò’w4ó#`75¦¹Yn¬yÁòoÚ1 E¼ö¯]Èœhi|Ìœjçïù ôáŽyªØñ¡Ígg‡n^ˆ˜çê,žŽ_,ƒªSäìÕƒiëþ„ÖßËû„G€¯|Û¿dš )ïe¿1ŒÍèõm™Œé+¿ë†8@n®ÐÌçâlí¬ÉÛMX›fÝ€!x’¥æÚýл޶Yd?—.OsH×/´øœ?mHHä5ÒFªš›7Lj‰ç Òõ[ªžhÍ‘­ö6sÌì÷3ešI› !$T'·Íž4šEgW#Vç8.ª£”"9»´MqR+•âu,úמ»n?óvžº˜Õ«£Z•³Ýň⽀¿ñµVx檈³[û˜NWÏ誮½))t¡q©K¼LeMcKõÁ j~¶úP&}to]=¼G -t†­²Ld·¿ÎÅØ—Ög:Ò'â¥ä\­ÃÈ Ižù—æ,Þiò‹¿Ýn1®»Öëôä‘Êj…ùg)G¤Pe)_Å‚¥Á#Úûÿ·ºÜÞwQ»Ncá˹(r!ÂüÍ繟¥P™&uW­[Bw'Kô©ã:¦î„Ë*¡—_Ö 81¢[ùõ W5vû™«»ÊTJw¤™7t¦bëg±TÚÁë ,Z/jkœ]£[Ï §ãØ3õF†è¶oK7Rúci-P«­3†œd¡¼1¹;º*m¾ùõRq²ì2ïxÁ26Ã@îÍäbs€Ø=xÜ ßsùò<ë9žúc‘Ä·îáI˜úÙ¬Ýßy÷½ì•ÅÂÆ™çƒCÆ‚š©v5ïÞÇÅX·†Ypxm}7ö©¡>‘»ø4½ÿ¿ôüM’U‹2Ž0ŽyEBoyXR"$ªFé¶smÍâý‹ΉbÚ-9Jž…ôât)å\;ù‰Sºÿmìø}ç¹KŠä1¯ÂÇ›=rwÞB¬ûݹ‹w-•ÝfÚ»}ðpi$çÀ‚çb`iï6«9ÁÉiÀpph·/\;«ÌÕu 1º‚w¿ßSJ—…g:›)¸i<6x¤QBvgÆ£Ûî|ò)u.œMœžÆq¤ÖÆ®GÃEËïfXÆ\´q#J¨³‡¦1'÷:ì*ç›ÞþàTJ«Ìµv–SìãîFN·[ä"BÌÂHñ]À‘†žëoßèù©—EC_ÛUÃÝNÅ êê‚“,b‚u—qsÞàAæIRÎC§[9…¬6ˆ)‘“›WiW銱úè2£wá÷uöqÎÉÙÊ\HÖn¥8l;Œ~ Ê\\;Ø]Ë\'àŸcž<7rÿ¢ìÝœQ§ã`¦‘„p±‚D<¯¸°*à½/ÿÆÏëùÚ™@cL“¢µyy”mn¹*ÖÜYK½Êl ´è7PÝØQBÆšQ«£v'›€ÕÝ´§éÌ\yN.1·:M̳‹QR§”‡)g3­9B·7-¸Y0×p-ô¶Ð‡bÖâ ÓÛûÙ)h¥T$f$u‡uAJÛNÃÐ]AÝ%DÕ¿·Z¢MÇóŠŠ¿ù’/°2ðóN"›’b`Ì­ŽšÅîtUpÞ@õ#¿+bV wÚ,XQÄÜzE4€:£˜ÑK1µÄ4ÏÔZ¨%r2øh«ÑgUצ¸ØÍtK¹¥AÔ “@'‰Hë ­N!ÚUºBruSêê z Äƒ (q0Æ>:N:Ã%v·Ôc‹—/xàKþå›;­Ûª4Ç1Eטv ’wùðËéò¥ThŽ€iŽÌ]û¬ k¡:»eüÒKÚtN¥G×íyó 2äeôêp8"´Hî5Ô2­·tUM °²“Hë¶àŠé}ä@ .­å9j ¨J5R6aÃ<9¥[$z«—n¯Æ<û°‹ˆwBkÏH—uß}? ÀËèÍž¼ª·)U•“Md³í®aE½SÙ%áK—ó»^ü×.fŒc^ÉžÎM«žÞ‡)87Þ©Ðܬi­ Äçàħ‡-ýú1ƒFÁZ"HÅÓ:·Q36#pšiZ˜¬ƒb÷ R7”JšÌ†Ž‘;©$ ÂfJˆÎ8¶uTC 4³U:ºõÂ!x§3ôôDÂâÝ뾆›ÍèÆ½Šñ§E´³‚ƒdæÉØcl¶>,«U˜çF"㑞vб.ïKp Cœb ]çà\xžòÄ'ãH7„ô‹+Ýse±j18šÈq¨÷ Àhuò::;‹µ>vnñî£s»Tÿbc„“ l†HêP±«…×±nÉ)YÛ12ö9{µz‚·ND\_¨¬Ut·1ôà#8f'˜xýÖAK)œ’tZØÁTj™Kè%šGƒ˜2¥*×öUóaêÚ°#:ÀÚÿgŜֶTz).×TWjÛ…Y -ó›"H½Å¬ïÄàögíº›°Ù ¢m‰ŒCì™®¿Ö& œpƒõñéÍ¥äQÜvÑ&Ì­ºwÌ>|Ñ2Ø$`b?§}Ї_=W°9q¥¤Þo ¡/ ñQ‹)ÅÂNr+87~q£Gbì"#‹0$¨Q˜;%½¡u_›© µ)'µQIdT-禆íËLbdèj›…¸JOjÓÁ·È'Z‡Ê/hD…M„d‘Ö]BL„èšzëdhælß#Æ'§™W._Å4qrº%Ga¿/P3ãèyFúD1A[!§x‰\J¨ŽNÆËͰLb0f^Ó/ô´EOЕî&z¬Å·µHÇ@bôY†­zéçÎe¬B*®°æ|J3AL˜¦ÆnïfñØçí1$܆D7ÇŠÄÞl+δó­à 9®pÀQ›Óÿ½†ÛßàQŠ·kE`{âÜ{³Fm3)»¬Úº(Мå(;,‚ ·ï#QŒ¡ãk¸çÐVv’˜W¿A]˜:ˆ–pz¢x@YÄ‘(ÃLè‘Ü–¶Õ¶Öú©[æåœqÊyÅ[×»³ƒÏÂÍ›gÍ“h9 ¼XŒ¨ëbÊ}‘„…jÊT ¥kãBtë–ÅÛÿVƒsȨV®]3¬Á“nsÏÀ2OD16›LH8/ ô±)N]ܸs^hçœn§Û³B™öÔ:÷Ž¡_¸K—Ûí8 ã~?wMtUòx—o|QÀŒaˆ˜)ggg„`œœä>ˆêl$í0p¯ãW:a}/=£_“Ö;™æ7‡o{=¯Öõ„Ñ-hZô–u½Ë:òg´nzEh³#Ž~2~ž´ðûï¿ÿ[ÿx0:ä;¾ðòåËÿÞÉÉ ff?øƒ?ȃ>Èü¾_#žÞIØ>'Ì'w‡´Âµ9:ïfý­(±•¨Ôê `ÛËÂÖ*9ù¸·V]·:ø£â}û¹”ĵ¥G?˜kM™›CÀ9xtFJ' æ!uÆ‘ÒJÏè;ƒÈbÂÚì‚‹nBðçâ‰[Ĩ¥¹éD­©Û·ºJ)Ea“¡dÁªPú|âîöŠ˜J!Íù–œÀªJЀi ô]µÒÇКSàÏñ‡>óÿà§çÃïùÅ_üEÞö¶·qçwòC?ôCçlH¼¯¯>Sùá3®½ÿ!®¾ï!®¾÷´k7 ¹½ü«ýï¿òâÏëúƒñ³7Æ^öºÏëùŸöñÏð÷žû¹=ÿŸz!üÔW}ŽWæ3¬î¿ÿþ;€¯þ૜q˜ç™œ3fÆåË—ùýßÿ}æyæÁäø_ú¥_zÎÈ $÷kÝï÷\f.ýÅgð”—~ÉZ!\y÷ÇÙ?ø(WßóqÊŸ1çH+?{<ÁIú-n|þð×ïö7½éM¼ë]ïâÎ;ï䵯}-ã8ò‘|„}èC<éIOâ/xÁMJº™Ÿû¹Ÿãýï?ÏyÎsøŽïøNOOÏ_Ã0pï½÷òÿ<ØøÈOüÅozí _ëÿÌ™0ŸîçßúÚoô®¦R›Áùq?ÿ?³çÿåoú6šVB¤»ŠÁ~_ù‡ßç>†ÿùýoÆL3ìwà„”xÃ_ÿ&çCÜù%7|ý÷=ü>^ó†7»Q´* I.3ÿ?þÚ+>£çÿÕôfZ1ª ;…³³Â<ïqþávô–Cêã{ö.ˆý¿’nî¿ÿþÿø¯;=[²VáŸø¿ú«¿ºîÜ{ï½—oþæoæÏxÏxÆ3n˜Ä-7·Öʇ?üav»<ð»Ýn]ªÊ=÷ÜÃ=÷܃ˆºü¸¬pÅ+‚V*µ¹C÷>ó“/%©e¦Šc r<³§W‰±“/çRÖAŸQ³l1¦.0—‚©1l¶ŸU¯%â^Æw ¥›W«¹‚Y…Íàøa 7ÿý÷ÿyà/¸Ë?\ä#ùïyÏ{xÚÓžÆóž÷<î¹ç^óš×ðÎw¾“{¯ÿú¯¿¡e‰ˆðàƒòæ7¿™»ï¾›—½ìeœœœð½ßû½üáþ!÷Þ{/O}êSi­qzzʽ÷ÞËÉÉÉ ½ì>_Rjk‘ùì*´5€Ì—yêf⬦­û݇h>¸TÂ’jô+½¼>])†O£B+õ³º)Bkî(P‹:½è³)µ{…3h£ÆF¥Önše(éÇ·A˜ à;¿ó;ïyÁ ^ð·UõU!„§ßÀ‡~˜ÿñ_oð«_ýj^ùÊWò²—½Œûî»oÝÕÇH_ŒqåŸÿÒ/ýü CºwÞy'/yÉK¸çž{¸÷Þ{iÍK¸§?ýéÜvÛmnýøÝüM¨œÄʧ~ïÿ¢ž=‚N×Ðù ÑÂ{ßû^†aàKžóÅ”ßû߉÷~ñ)ᆯ³¯Ý>.˜Dv³»v­ ¤KºéHc*rKËǮÐÞ´ŠÐòˆM…y÷™_‡ÖТ4Bœ #è$\ÝuíAö* ÌÝÛp4Gòðû±û'=ôЋÿèþˆøÃ+``f<ùÉOæŽ;îࡇàÙÏ~öÁöôâ„išøÈG>ÂsŸû\Æqä¾áøà?È=÷Ü×}Ù—­7¸µÆwÜÁÓŸþôsçÿ—†e'»7/,hþûO¹dL»™ý'@¯~ŒéSH½ö)žwÉŸ·û£w‹J¿ò†7ðÖ·¾€W¾ò•|Ë·| õýÿýÈ¿æö/)õôéì÷Gsõ¢÷„U{¨ ;:9çâvï)y«VÂùQ´/ü©Ÿìl§¢ C¢Vxß·¿¢C·‹Œ{ÙÉ‘cµü3ÿ§À4bJl· Îó{ßë¾ym–Yðá—18ñuȱOOõùA)º9E ¸©&‡œžùÌgÚ3ŸùL^øBÏó>ùÉOòÐCñ±}ŒË—/óS?õS¼ÿýï_wébìtþ‹üÖoý?ó3?ÓoPæ‡ø‡ùº¯û:^úÒ—¢ªì÷{T•Ûn»§>õ©œžž~…Ëù0é™Ö´îØ—OÏØÆÊ'ßþ®<üqÆqü´$„À>p¨¯>úѺYtŒè¼ãS¿ýO‰—îFïúR’(ÕÂÁNÃdµk‘£n\™{„ä-ä9®€›æzøz¨Û^ÄŽŽ6u•Њ„æDmNœÝn“ÃÖ×yEsŒ ÆD‘q0†\ØMÍ¡æì:BôóøØà'ò'yôÑGùþïÿ~î¾ûnžÿüçSke¿ß3Ï3=ôÿøÇùèG?ÊÇ>ö±[ÄW®\9‡ßOÓDkk×®¡ªäœù¢/ú"NOONYŸIˆ3xê°çÿï¯qùs*¶î}¡ýòÏ¿žßû½ßãŽ;îà{¾ç{ƒ?\“÷w7ï~÷»I)ñe_öeùývõ“põ_ñçO”±#]b¥‹µË1¶hÕм8ƒÊ¹×´Å¶Ë´TXÒgDœ‰ô¡ñÀpåʾñ¿‘¿øÅ<ðÀ<ïyÏëÑŠˆp÷Ýwó´§=ís:Ëk3áåÿá«xç;ßÉÛßþöµÁôž÷¼‡·¾õ­ÔZyðÁyÓ›ÞÄ«_ýêŽÀÝøq÷Ýwó ßð ·ÁÃ?ÌåË—yä‘Gˆ1r÷ÝwsÛm·­õgÅW·sƒÀWõWóÅ_üżãïàýï?_ôE_Ä+^ñ >üáséÒ¥›V$7ÂËoõøÝßý]Þö¶·±Ýnyå+_É=ü&úÇ¿÷üÛpéY´ñ)‡ã©÷ø§rHÞí\êQ¬Ÿ"Ý öœn»;€4t>s8s~tgòiÚ“Û†!Éc°UÁº˜5F'ÑÌÛ@Qqk¸º¹4#AÁéöÛoçùÏ>¿ó;¿À—ù—Ö7iGžö´§­»¼”Â#<»ßýî?x衇xæ3ŸÉµk×néðذ탖ÇwÜÁ}÷ÝÇ ^ðÞúÖ·òªW½ŠR 9ç#OÂÇžýKbûéW®\áo|#ÿøÇ×ç~Çw|­îà£o‡ø[púLRJ=pœ}š•lr`-7°óYùv®û-0ѵÇR`Ï/ÖEÑ<Ï…MÏ]?¿ùNúTõØ×áXÝSÀ*†®Vº!΀”sæõ¯=wÝu×®]ãïü¿óy—`9gNNNÖ¤ñGôGyË[Þ‹^ô"~â'~âœ<ùÓÖ¸ëÐÈó7ôéO:ßþíßίÿú¯ó®w½ë1åè’õŸñ|€»îº‹{ï½÷Ó.¾ÓÓSžûÜçrõêU¾â+¾b\"‚X%^û0¯yÍkøíßþm®^[èbÁíâþ¿öÎ=¤ª<àŸß¹O¯fWÍXwu #3¤VlÛ~l±Ûl„0­Û“ Y2g !ØbŒügk¶¨†Û°¹›lZ;¬­[Ö”•5iD”LM»ãýíçÞÓ½k©•õ…—çžÇïû=ß÷ã•»Õf Êi#»X`‰ìˆ&4côl @@ðz_vú qW¯WƒÝnÃï÷áñ8"ô0:™ô6§Õì_àŠÕðœtw÷à÷û°Zíæ¬ÂÀårqàÀ ñ5R[[k²Ö;wî‘‘Õ׊n¡†GZ~~>YYY466rÿþ}“@zzz¨ªª¢«« €­[·’››;¢ªi›7o¦££§Ó‰ÛíÆb±àt:q8¸\.#ºg±ðôéSs3CaçÐPÉ¡=¢Á5Ä»‡¸ƒaihaVpœlÀ@¶b0ÂÓ¨iF3J#L¡t£*J§ž:í‡=Ø–/`4×>#4,X`ºÓÓÓ£F¾¹±£±¬¤`IDATœãv»Y±b………$&&šÖuÞÞ^ó¼/^ ÉBâ!d­¸\.æÍ›Gvv6sæÌ!55•äädìv;Ož<ÁétF4zx¹”ù¾Åšf5-¦hDžî„‰W{0´¬›ÖE¸žcøŒ–;j³5<âeaŒëeBÈ`@˜:ɤäjšÆþýûikk#++Ëd­Qûò£F®5MÃív³nÝ:¸sçIIIìÙ³‡¦¦&RRRHOOÇï÷“F „X­V\.Ó¦M ·²¼l«F¨uuuTTT°fÍJJJL„©æ/BúJd]C(-k4º7ˆPÇç×Â@Ãç7D©Ýî4æi´X 0¨¡ƒFÇó`»4 Ãl±‚ÃnÇç÷¢–ˆr5¡”ú/°x¼ßßßÏõë×ͯ1ä"Žªªª8wîåååTVVŽéþ]]]477sëÖ-sJ†Íf#&&‡ÃÝn7W82à÷SVVf*Ê.\àôéÓTWW¿×áàIë088¹±ý¤¤$–-[Fff&7nÜÀétFD'#8̨žHA||¼yl·ÛÇdɼË•ÐÒÒbjÐgΜ™0Qj¨°}ûö߇´¦ÊÊÊÏ_÷ºñññ&Â, }}}<|øŸÏ•LY5EEE,]º”œœvïÞÍf£°°ð‹—šÝû¹Få‡ÒÒRÓ.^»v->ŸoD—ë똷oßæÚµk¬^½šØØØ1)ŠÑXkk+tvv2wî\víÚE||ü¨÷RJ‘’’¾}ûL‘0Ùí­q¥^¯wL,s¬ÐÖÖÆÎ;9xð {÷îÑ•ûºàp88zô(mmmô÷÷ÓÔÔÄåË—£få¡€–Çã™2ÈJˆ‰‰¡¼¼œÎÎN())‰šuŽEaëé12€=z„×ëm6\½z•ŒŒ ¦OŸ>*!'&&FO›6¢Úå•+W²páBt]'99yÜ ÔÔTRRRxð๹¹*&&FðÃã?€Ã‡SZZŠ”’¯¿þG¸õðz½lذ·ÛMss3Ë—/'??B8Ú”´fÍš5aáv»9vìX¨“¦¤”#º&ý~?µµµôõõÑØØHkkkD´r(Gaa¡Ù±s¸ó”RãÎåÞk+`²ÌD]×[ÀgRÊmõõõb4Å1//·ÛMvvvDvÑèΖÀ¦žß狀ºš²²2êêê¢CýãG€RÊ)å¨f@QQ«V­"!!áå¹ÝnçСC?~0â³gÏ&33sJ‹‰w^Rþõu–žž>nfâãÇÍc]×éîîþÈ¢…»wïÒÒÒ‚”’„„„hÿöO BJù¿·½^¯—ââb3™%''‡¼¼¼)¯$Z¸7½HMM 7näÙ³g¤¥¥qëÖ­h9ª¤”ú»°¡Â”ÊÊJ¼^/qqq„…`BÌSJÍ~,ò€ø æŠfãjjjhooàÞ½{444°xñ°ñ¥ï€5RÊÛcxÎÇ[÷Oäf„JÓB¢Wß³··MÓ"âS B´ !ª…Ÿ !Ò0êý×`”‡}4þádç«xjjêp_ÏŸŸŽù!¾Vß¾MRJqþüy6mÚDqqqDTpJêBˆïï J)+F% ˜HàS‚•Â;vì`æÌ™477SPP@ZZýýýá—|ŽÑKà)åkñU!Ä9¥Ô%àK p27ÉãñpäȺ»»éîîæÄ‰ÌŸ?\ã!ï¬(„ÐÁ¬%úwpý)øeüXªiÚÏ6oÞü# !¸B¬ZÏÿTJùÆ*µ¢øRªØ¼×X¯1¢#h¸ÿ„#;”€úÁ[Bˆ‹ÀÅ 1ÄŸ?~¢ëz^ ¸(¥üËx?´âK¥Ô7…¬+á•yÉ# r``€›7o²hÑ"¬VkT„àp8ضmgÏžÅjµ²iÓ¦)ã)´Ž#RúëÀu¥”Ðu]{þüù„©ÑBˆ›À¯•RŸ_Dƒ|¯×ËúõëéììdÆŒ=z4ªÐ³‚%K–—g Û ã–0ô†)`Âc¦J)!„¨ Š„ƒ@æHN£“'Oš…®ÔÔÔPPPmx·×b±<¹Þ?€Öð!Hh!.)¥~”Û‡3W_m`‘0Ú×ÿ-ð/ x<”R¶O%?€`ŠRêWÀßX€®\¹btÊÔ4N:E}}=ùùùlÙ²%"Ùè ~ݧ¤”ã1_J)õ pøe8„DÍfC×õNÇÓ*„ø.h©\”RÞãƒ)ïBÜWJ­~«” ÏÛþÏç«ñù|—€v!Ä)e0ü$´7<‹FõIEND®B`‚gtkatlantic-0.6.1/data/icons/64x64/0000755000175000017500000000000012554762544013661 500000000000000gtkatlantic-0.6.1/data/icons/64x64/gtkatlantic.png0000644000175000017500000001460412547326530016612 00000000000000‰PNG  IHDR@@ªiqÞKIDATxÚÝ›{¬]Wß?¿õØ{Ÿsîõub;Ž N¨2šL Ž›\’q&µ h…ªÐéP¦Í€”P¤)#”:ˆò( L˜­&3<AØ$΄8 vÇÏ{ï9gïõøõuîol'Ør©Ô-ùï½×^ë·ï÷û[G8¹Cùÿìp'{Ã_}wLÕÔt1cdÐTÔ ÕÅÂÁ﬷ä,¬Ü,t÷*=©KðÏq‡2ê"‡ç;^xÅ€_ÿïD]g¦BórÇPFcp¬Ýs½£V=~‡Ïû'°¬~ìžÞð ÃŽùÎð²C/cÏù»8|0â lŒ"ãVº®—ÖsÒ<íXI *–”„cD ëÒ’º £øÌù¶SÂØb”„,£Q.XÈFic¹Ã8C–Ȱí×Ce!šÀ9KíÊx¡M úŽjò=Æ j mP¢‚óïý©ÀyC!@FwJP¡ÌßXK—2Ýäƒ2l•ÃÃrAH™ùQ‹š2Á6BÇpT,å"°_;œÕŒ1P׎¶ 9œY³Ê3šâ,Œ¢Rb:+ôû†AD©KX¦ª01€5Á YÑ”1"ȳ@«¥ß3£˜£bÿ¤ BÄZèUP™ÌLylwm¢ ¹X9gŒêF0&ÐëA¿gðVÍðbYö€4ji¼%´‘¦¶ä”È9S×°j¦fºQ4b§ zg 3ÞAegÀ\€¡²ÏrnÍL÷…~¢‘¦ÒS«ç}eú˜ÿûòÑ–¶#ÔM…¥”›~UÞ’Y90¤X1?ÓÍu¼puÞ_8E4c­CDˆ1Ò¨gª'ˆ ±U$CmÁTRÂ¥ò‚ÄñÖ Z¼€—Þöcwz¸À¾?Š™©'e޲Ã-å€Õ3†ƒGÎ&êÊÒµ‰ÚYúÓž¹ùHUÌŒ§±CdÊVœs†#ÇHí-šµ·¨Òo Gk„”‚cЃØQ<@”Ê ÖÁXKü7Þ!2 IøÚeÑ’X äüéêä PUÍ ªL5‚ÉËC`å”C5ÒÅ@SLRè"Mã %S÷ •:† ”u3޹ù„¯K3F0Æ 9ã0o±ºÉ9bÃx"•7IT=‹ÅºŒ·rLvïÕ–….à+C¿ÚîC ò IÐpRÑï-?_ûÌÊçÀ\šÔ†08,gN;æÎUØF¨´Âi¦ç-fP c¬bˆÂTc¨*ǨMäœè7–:œ7XkƒA¹Î 8³ÜueHâ Y™žrÈ|<5ô>ñÌÀá89Àˆ050¤ì:3 cµd-nZ×ÄCe…œ#¡ßw„ X#¨”úl!Dè÷ÀÙ„Á9 VÁyOT¥j š"UÏ¢1dt‘NrÀk~,§'øw+¾†.F²‰  1Áþ‰/½ÿZ®KÐóЯ-31–° !‘“¥WYÚVñV°•!%pD ½UQr¬1ä”I¬UÁ÷ sç„39 ÞZ4+M-tbH1³m÷6n¾ã[8Í`tšŽ"b+^ûi9( 9—L¬ !f¼‡éÁ"=Mä¤Ô•ÁYèÆÞB]Y²f¬cž¡³Ö  ^¯%yÖRJ!æ n1%¬ër!ÆR´ƒ2F–R'Ôƒ’b‚.î È„&ŸÈ¢,Œ;¼5 BMÐ4‹‚F¢mÓ„9ZDÊksÉìi2¹œ0(ނŨ,X2µS¦û–œ•œFÃL¯ç!Ó4%cÀ{KŠ‚&¡—e(ÉYTA ¢ lj¶ƒºñŒÇÝ©…@º­ ½°ø˜[ÄâçÁ>Í…xDC¯q¤Ð‘ºHÕ«1Þ"&#ä¢ Ù¢Ö BΙÆA´ÕŒuk3)ƒb"Þ{rΤ$¤'Fö¨:æG‰^ã–h.ÛÏÛÎö?·§WÞÔQyKÖÄôÀÚÀ¿W-á€^ã.ŒÉÉPùš~¯"†\ ¨4•Ðu #4ãœàP¼1mÌxoè÷sÄ¢älèZ¥im—©ª†ñpL×–kÇcKT-áÃ3|ÜõûÊh”ˆ!Q7ç…×Jkw™ kuIÛ[<ú=G]ú™RÂ9[”BÕb£T•PhyŠw«…¿[QrNT•àœ–ì¨–v<É?b@źв£V¶E†¶Ë¹@RÅ[ÀÛ0²X%OÚS}ƒæTÄÊNÑgAŽ^%ô{ÆBÊcë Î*ÎYŒ@]A¿oIx'…À”5!F¨*KŽ ªxkJÒÌ Úq¦ªŠºƒ±´Q†¢…”™_(qÞ…åèº"Ôf5ŒÛÀÜ|>ÅðWÂÑl > 4Ù 9{Ú¤%¶+Q¨¤è}ΦÊhLˆBe-9)âËBêÚ’³!hœAC"! ]TÉcÐ&¦€7%//,,dò¨„ÅÑ8à†ÓÅâ»[ªªbîH ®<)óE}ýüû®áO“bMqe´Äœ«¥r5µ!‡LÝ3P;F£@]»’Ü&0«`¼ÐŽ&eÓBŠ%Y¦”"½ÇE@•®-F¨œÃZa4Šˆx¶íÞÆ ñM=KèÖz’ m·‰wº9:œŠÓW•;™Ü"úîB, ÅB¯rT¶,Ü9!´Káì$¥© •+Àˆ9³2îbŠaÃDÑU´¬XbT4C]I‘¿5c‘êbNta"f%F°Æ•¹ #üq*š R‚ª2(à«RrûÃVP-ä×YðÎ'V5ŒÇ_YÚ¶èõÞ;RÊ(BVCÎBLEûwÞs"‹)áäœEº6ã,ô{Í‘˜„[¬7Œ»8é#BPŒ-KÍY1ÆPÕþÔBà/¾ú„çÎF2˜Vq4ijœ3ÀXǸˈÀÐFÀ² gƒ±BÎÝùÆb½g8ꀊ.*®± !‰¾ßÃq18'ÔeîHñ€¯ÝríéÅ—ý代xoH©Ôèñ¦›ø3L‚¶Ê´µ¥ ZHjè8…n>Ñô,*Î ‰â%¢†œJ3¤ ‘6Fz}GL bRº©!g¥m#ƒÚ15]3?Ž´]Ä8Gå-vÒ'¸þ¿| ŸJ³5E,SíÛÍÉ@RÊX'ˆB–—›,¤qĘDå,ÃqF¬¡ r‰ÑqÈdSx€‘’Ü4ƒÍe|1åÚ®‹8o¨›šCó-KuÏ“»H™v\rI¯çXXhé:ÅXŸôÿbTjk@Ë¢Kàå¥>÷É—AD !76– c%áa¡ÅQ«º¶bðÖ²!¶EÉñ•@ÒâúFÉ1ãÔ ºöT¦g Y„¨™Àø’ º6b'ž5]ÐvŠ© f†bhI¦ÆšÂœº ‰š ¡“6Àï5ÏM–² 2áäm©ã‹Ùw88­¨eaÔÑYhRQv%„˜TI!"âÈ¢ Û„ Uã9rxHÓô™›ÌL× žÑ(ÐëW8Wš)Ý82GšÚ±}û;ؾýoOoøÝøÖ ½ºˆœ†¿ûÎ¥ ¶$4†ÃŒ›œH¡ “7ﭠ☵d,u Ý8“1Xcˆ)c ˆudí8´9»_$ÐÔ¦’@[ÅùËUšJ¨‡™.$¢,’ øïßxoP#Ì-Œ1ÆñžËN¡ 1„NéÄNµÏjE9%%-8=)!N:¾’Q-÷ŽZp•!$ÇÁ##F]i²ŽÚ¦ðõ.f0RºÍ!1&f¦zÄ”ðÖ1'4xÚÂ$ŒšÊd–÷+µp’Ú‚vJ8 $+„˜Q[@Éò^ÜDݬºqFšÚã-] ×wŒÆ‘á(a=´m"ÅŒŸÄ¯ˆâ+‹÷B;Rœµ³ˆát8Î¥S¡ %±(–—ÏK¥àC][ܤ=Ò!pßå¯yÅ$ã' FÄb4¢!S׆™)KhG ™,S}¡nèBKN}zµ'´™ªï°FÑœ‹Tn<¶ ¤¨ÔµeÜFšžgn®Å¸†” "Æœ-°;-¶Ë'LåO^ušrÀKþþ;8'¨Fœ+BŠJ¯ö|é}Wó2£ØIKÚû²ƒÃj¢qà§ ¡õŒÆŽDå«Ïðì?˜@#½ÚCÆ¢ *[È”À š j ](rX3¨.$¬3¤NhM¦_’¼S¶m»ƒ×¼ïnÀàúÊ^‚J0 ï¸äÍ'ý^*­4XiŒYÚ°P{Å»<‘¸”~cñN1R6K­Zé¨}Æ{E³25ΘöX8#ôkY±V°d,™ž‡ÊQ˜°Åh*A ÄHꎋî1e>q"‰…¨„ªZ¸Ä©â€f"dª‚õÕ"²X{=;Ù0¡X„AmÉZ=oi*K ŽqŠ81ÔÆ²jJX˜Oˆ&\e&}|¡® )¤¡uQz÷ŒF-&+S•0ß* Iq¦ƒ~“ ±["oFea¬ êŠ|Åsï¸ýöÛ­ˆ¬VÕ›€÷ÅÛ_üâ+×îñŒ9Àð±ƒäq,É>²'èÊûÿãQi= Â`°(h(}o¨káÐP9x¤CŒ¥ñ–Ú ‘¨‚óf¢#§¨¨Nä_-¢Ø‚Û©ëŠ}‡:•ÆU23+@5ð·üíó¼Î7ë·ß~{¼DD®Ï9ÿ)0eŒáî»ïîíß¿Ÿ7½éMœÝû’•Íß݇ßÛrÿ¾‡‰óOÑô¦ÑO uÏ *Í–™¾£¥mÁŠ¥i Ã6cd"Ù"唋Ô`IXkqNJæGijÇ\› V¥m…¦ç—ဧðÍÆ*où÷[Ž2Àí·ßîTõJçÜõÖÚ×µm{Ö÷¾÷=|ðAn¼ñFÖ¯_Ïš5k •œlÒÛ»w/wÜq¯}ík¹pÛ…l”óá¡¿gðâW2ì¯/uZ á1"bQ†*X9°ɉ¬ ɆÊBÔB`œÄr̈*Y e6¦Ðbëk-]¨ëŠÊKájŽ2¾ZžÞbJøÆCZ¤ÅGIb·ÝvÛëwZk7ïÞ½{ÕÎ;¹ôÒKiš†¦i.¾øâI² Üu×]ÔuÍÖ­[¹ì²ËX¹r%½^5kÖ0 ˆɵ¥ë"ÖRWv~f¢&l¶T^è÷<óGæX8´‡Š16&ÒŠs±~€1ÅÝÆ]D¬'ÆHU;bÊ8ëpF£€µÊ 't#-ü?+mÌÏÂ'Š!©LsX÷ýïÿ‡=ôÐË÷ïßßTUÅ~ô#¾ýío³jÕ*6oÞÌ+^ñ ¬µÄ9pà+V¬àþûïÇ{Ï5×\ÃÖ­[Y³f gžy&v²÷îá‡æÇßùÙq£îðϾÆÊ•+Yµj«×­ÇJ‘Ë¿ðùÏÓ4 põ6ž~úivîܹô––އŽ3à‹O|þEg¼’‡–¿oùý¨Üªª!bŒ<ùä“ìÝ»—½{÷²oß>tîºë.î¾ûnÞò–·pÅW,5%Î9çz½ÞÒu‡ý:öõ.àçßù2½|éÈ^tn/{µ c k×®]v½ˆð|€U«Vñö·¿™™Távqù;>Â(TŒ:å«oûC6ž¹qé¾_ø%oüò·µ™(‘»ÿõ¿<æükÿÇß-{ÖÑÇØêq?ùÉO¸ä’Kxÿûßχ?üa6lذ#O>ù${öìá‰'žàõ¯=\pçwÎ9V¯^ÍêÕ«‹(r‚üÛ×oe|p/÷?ù8{žÚÃg?ûY<ÈG>ò¬µ¨*"‚ªòÑ~U¥mÛ¥ñÎ:ë,îûÆm¼`ÓkHSç/ÉZ˹Iß1žH¿xî îî©§ž¢ßï³°°Àh4¢ßï—aݺu¬[·î™7{ø0<ò‡æàСC¼øÅ/&¥´<ÞDiL"&¸ä’Kظq#?ÿùÏiÛ–ápˆsE6Æ0éõzŒF£c&þ™Ï|†ïz—2³úl^ºõ¥¼ômï%õÎÂZÇ/ßòt]©nÒ zÉmÿõø7xâϤ;ë¶mÛÆw¿û]Î;Eş蘙™áüóÏgçμ÷½ïeÆ |êSŸ:Æå­.¿oëÖ­lܸ‘ŸýìgìÚµ‹¦i¸÷Þ{Ù¾};[¶láòË//[Z'‹Ï9sÍ5×à½gÍš5œuÖ*þÙ ×ÐÆ‡yL×¢1MTß›«®ºŠ /¼{¦i˜ššbff†4ÙVUý~ŸÁ`À…^ˆ÷k-_øÂˆ1ò¶?zù$¶!ô*óîè†òlp1ùcNð›È›ßüæÉ¾Àp,!,¤ð›­=çŸ>/xÁ X¿~=›6m¢×ëÑï÷™ššÂ¹åSrαk×.¾øÅ/2ÙtÉeÈË_yR«7@åã óã"¬..ý¸+üÊW¾ÂM7ÝÄO<ñ⨓`º®£ëº²qây’O]×ÌÎβiÓ&Ö®]ËÜÜóóóK±y´Ç½èE/bÛ¶m\}õÕ\pÁÏ+ÚÆÌÒ,A2ª ¦§ë² /É3eðÙƒ¬_¿žÇœ¯~õ«¼á oXvîàÁƒÜwß}KñúÌ¿üË¿dõêÕœyæ™|ìcãë_ÿ:×]w݉ŕرcßüæ7¹õÖ[¹êª«¸å–[Ž1°”ŸvïÞÍßøFN×q\¸óÎ;ùä'?¹Tï“ÃZË=÷ÜÃŽ;¸þúë?Èu×]·ÄF|ðAn½õÖãfû+V°qãFÎ=÷Ü%¯2Æ, ‡ápÈp8dÍš5MÂú´|ŽëÏuœÈD„}ûö‘sþù _øÂ·lÙ²å>Uý:pÀ—¾ô%n¼ñF}ôQÖ¯_¿ä÷Þ{/ÃáÇÓ4 ½^Ùw7??Ï£>ʦM›èºîèG=6;;{îéòwºRUV¯^ý©ÙÙÙ?>Þùë®»Ž;vpÎ9çsŸˆ,UUe0pýõ×Óuüà¹ôÒK1øoÕªÊã?N¯×;Qeؼkvvö' ±~¿ÏE]ô›mÄÊ™ 6pèÐ!¦§§—Œô› »S1À_ççë€ÕǬnÏÎ=÷\^ýêWsçw¤ð7Àͳ³³»3þîS™Ôh4âŸømÛâœCUyòÉ' LOOŸ^ˆÈ»TÕNxÕ¹c\4ùüðc [¶lᢋ.:zñû€÷_œ`üG€?ìÉL¬mÛ%ž°{÷n>þñ355Ň>ô¡Ó"’€š|PÕ ˜¦µëÖ­»øsŸûÜegœqÆ¿PÕsž~úéoÿivvö熟òkUýÏÀ=À''ôãâò~¿OaYÂ[týùùy~úÓŸÒ4Íå>]‡ü†9`ñG²k×®•GŽ9²yóæö$“äYÀçmGã€{ï½—}ûöqóÍ7sÕUWqà 77áíÛ·¦iX±bÅW\qźßj‘ÉÞÔ%×?yK‹<\­ª·LB§¿uðƒpß}÷155ŵ×^Ë`0@U#0ž|~µvíÚíÀ7/¿üòü­WÓêr"RÕíÀ.1rÅWðÄO°qãÆ}+V¬Øc|œòû³ï÷ÌÎÎù¿6þªºj~~þÖ;w¾²ëºgžyæý9ç_îß¿ÿ+¯¼ò‘ßÖ<þBå:7Ú’IEND®B`‚gtkatlantic-0.6.1/data/icons/16x16/0000755000175000017500000000000012554762544013653 500000000000000gtkatlantic-0.6.1/data/icons/16x16/gtkatlantic.png0000644000175000017500000000114012547326530016573 00000000000000‰PNG  IHDRóÿa'IDAT8Ë¥“;hQ†¿sïÌìn4 H !A;cÁ*»ÑÆÆ.ˆ© V6¢™ i,„Åh#h¡`cŒBHMD„"i$à+â&;¯c1›Ù$¦óÀåü÷ÜÿÎ@׎¿NçØïVßïÎñz>-ÑëS‰Ž¿JTAï½KUAôæËDUûTµOë-\ŸŽõÖL’;0Q _ Ÿ¾åŽYŽÚØ5™všqÛîøe¸2o³[¼×µüqujNdøûóUg`ÎɹL‚øe´ZÉÿ0¶?!Mè, %ƒ¡³¨œ¶mâc`@}ˆQ+Ì=¬±óÔUŠžÅð,ˆ@GIq-¼½_ãØ O+ý{-€üÁÝà ž V„¢£4"°ªÊ¹Ygë¼OÐD˜ŸØwƧTH1"¬„&¢|že÷À5Da°×§Â!V^ höC#„‚gH%LSŒÜVúÍ ŽiwM²Ár#Åu ÃV#ÁsÏ1A‚5¦ ·g¬À—g5zÊ#4£„0ŠÖ "¨*a ¿^ÔØ~r„¢k>*í¼¾V C` ?&kôœ®²0Q`ñÉ"]ý]<½s„7Ù"‚Ùˆ–FœMc×¶”Å?†‚¤``æü0êã|¼t‘=7ê\>îfDQVmZÎ.–VÀÚÌ©¦Ùø²öo¨[¾]•!_+C~Ž×ì½»z7èÍÛø_ò£6úþq¹(´IEND®B`‚gtkatlantic-0.6.1/data/commands.png0000644000175000017500000001140512501106134014156 00000000000000‰PNG  IHDR, ¨ÈEº pHYs  ­#½utIMEÒ  ·ÊÔ¤IDATxÚí{XTÕÞÇ?3ÃÀÌ0ˆ¨`‰ JVfâIS²Ë›Ç´Ë«§NžÎéizM=§NÏ9u2I߲׬”²÷dj¾G;ž.”%yMD-/ˆ" "ˆ0€Èe¸ 3ûýc-`@PPJ­ý}žý̰÷Úk¯½gÖ—ïï»~k†v">>^Lžztà°ȳÙlNTü´XÆMŒâ 2øŒ8Ö“ÆYõ¡¨øµ@Ó¢Ò3€¿áµµµ¤¤¤LÿþýŠVi’¼J";b³Ù*ÔÇÜIøòIt§'vj8A{ù”/9ÌFN5êƒRñ«#¬øøxð$ð' ØóXrr2k×®Åh4òú믣Ñ4¯¦¶¶—Ë…Édr'$¥Ê×l6Û™kø™)?Å?† â/Dóž&’©ø£oµLPD5åäPÉ>rÙÉR¾a;Yê×\Å/–°âã㻳Y€?@EE«V­BQ}ôQüüü8~ü85ï7uuÌ›7‡ÃÁóÏ?Ïu×]'.¤Ñ@```Ò„ î¼– 륗^jwá—_~ùRKÃ"øSèÃôç¶6hê¨F!‡ JØD ‰,f;…”w¸-˜éC£ãcŽ’¯’ Š+/¢ žþøÔÔÔP^^N`` ‡»ÝŽ¢(TUUáïïOdddc%.—‹#GŽŽQQQ8Ìf3&“‰^½za0._mˆ¶úßÌþKøÇñ§oŽúÐe´ÿ±ænB˜JoúaºÌZh@$Éí<ÅoqRÊ êÈÃI u”qŽ“ÔRÉiò $.âG(F®GOzãKα›oy^%+W´£ÄÇÇßü ˜ øTWWǹsç°Z­ÄÆÆ^°’„„’’’èׯ³gÏnbC//zöìI×®]=‹g±Xb;@NAÀà&`U[[Û·°°PR©Óé–oØl¶‚kMaùxë|W<;êÁÛ"ºý1"ÄoxaM ïûçÃ2( ¯¾:¾!9œ"™˜ÎZ ^í2*®¨Âzà6”””DRTTDII ÞÞÞ <˜ââbÂÂÂZ=qïÞ½È#¨­­å–[niþ¡Óé:¢œúƒ€[‘’¤B­g¹W_}•¢¢"¢££ÍÓ§Oÿ30+>>þC`Íf˹Úú““"û=<þ†§#‚ýf÷04ìï­÷e>·ñ·ùwúI–†¦³'²Œ?sO#†Lùô †?ËH¼8@.{IãP«v?»ÂR%³®®.üÔ©S„‡‡ãt:±Ûíœ9s†s8(J“×\\\̼yóP…aÆñØc5kþµ†F…õÙgŸM9}úôHà6 è–™™Iaa!Æ ÃÛÛ»Õ >úè#²³³3f ·ß~{3 øxÅf³ü©Ö%…ÞO0”ÉL „»uF͈;Ë‚½lù7rw—´Ú¶£ä}å%,í~”GäPÕó'85Àn 7§š”RDoôœ¥ŒOx/ ô&ˆbºSÎY`ŸÚ…Tü¬„USS“9~üøðääd/^ÌܹsÏ+TQQÝn§  €¢¢"ìv;éééœ={–›nº ³ÙŒ^¯§gÏžøûû_ìš„UWWW–ššêŸššŠÓ餬¬Œ_|·ÛÍĉ™4iÒ¥Þ—øxÕf³}ßÙ„e··ß6 x†D¼¸Íu¢@Ÿt33óûñ»šBÌm›V¥Uµ| ÏäÞG9Ñ¿’Öêº$ê= ìJ®  '7P/F ¸8ÀJþÁ+¬â¤Ú]T\qÂÚ¿æàÁƒÃ DjjêEOr¹\”––RXXHaa!¥¥¥ôèÑ­¶]½¨‘°E)üËËËÙ±c999ìÛ·²²2†J—.]:t3ååå,_¾œêêjfΜIhh¨lÞ6Øl¶Ž=‘ gT‹€ì ¶Úív–-[@‰¡$û‘éhW­_etkÝúz}½¯ÛÛí­x+«ÕÊ”)Sà»vH°³ZîËåé‚Ûå:tm¨.—[ᛊ|–åëù`îà'ž2Že_„3èÉ•U¸8Â'¬c>KHS»‰Š«†°\.Wæ3Ï<¾eË.\xIª&%%…ŠŠ –/_NDD÷Þ{o‡«á@nn.;vì ¬¬ì¼“œN'‡ã‚ .??ŸE‹ár¹xüñÇ‰ŠŠj<¦Õj0›Ísg̘±£Ý76™ë˜ÅŸ‰äIzá Àøä“OÚ]E{ ËSFõ㉼þ<ê §§oÛVFE9ït9ÊšðlJCÛ°” € Èn.áM€§½X†HùÍrP¨¢'¨`¥ä{QɱK ‰U¨è< ™Á~©HII!11‘¸¸8¼¼¼Ø°aF£±Ã„Õ Þ8ÀÞ½{q:ÅLŸêêj^yåÊÊʘ6mcÇŽm³-ÕÕÕ¸ÝnðõõÅ`0`2™ðññA£Ñ,°X,/´ç¹F8·1’á…! e,`„•€Õjmõ}Ãß&,苵LÍèÓöþÄøµéuUV×óO²Y|ŒÔÐRAN™’¨ôˆ!Œ2äk‰SÀfh¤¢ë€î@7„Ù¯Gá(›yƒ¥”àE¹ˆ`ÕtWñ³Ã«³*ŠŠŠ"&&†°°° ‘ÕE¡Ó鈊Š"22’;w’™™‰V«m 9M&S«ç˜L¦Fr2èt:EaóæÍÔÔÔp×]wudÄRÃõ„H,]™Š#À?e¯ë$k£dµZ›‘TgÁÙÃÍÚÙ¬uf3 ß'òú3ÝÕ—@Só “ŽèLtŸvåƒì2R&¸I=µV±$¨í2DŒî•Ê«!Ät[©d=kÈâʱSÄNµË¨øEV@@ ,è´†ùúúË€HNNfΜ9‚I4 F££ÑˆÉdB¯×Ÿ7=`ëÖ­ÄÅÅ [¦ªŠiÓ¦µçÒ>Ìå!†cvr–C`ÅD ˆqH;$¼—ÞˆÍÖ­$|“pžâêè!ýæs̽ùþ^˜Ê”ÌÞ`}ÄJŠks‚ -‹U̾[ ×c>I ‡%©D!fy6Dåv`pDRIK’î"É H¶9G’TüÄIE?‡ÃÚLD²íøÖ©ÝCÅ5CX†·Þz«S.2uêTt:“'Ofß¾}A2Ì8/!ñí·ßföìÙ¬Y³†éÓ§·Z×äÉ“ç(¶;Ìë°qÆ6£¥žwÎï™Éõ€˜c÷©èðÖØ¦QB²Á:Ô*®:°N–ŠË% J#õJðÒâz.IPûiJèÌôåŠ)°iòSÓÉ×–œ}X'ƒ·JY—"ÏÏöPW5¸¤kõ9ð™¤@*®MÂêL 4ˆ°bÅ Ö¯_«ì¾•••æ†%h<Ó…”“N§c̘1çíw»Ý|ùå—˜Ífî¸ãŽËkp[©À—x ׳茗¯aðYÖ‰VÖ'ˆª^ª«U "³¬›$®©xŽJù‡¬g4"“é[IT.é#…#ꨓ*h¿$ Y×@àfY®å,!‡TƒÅ•‹XVÝ. j#"©A… •°<‘••E\\999ž»{¹\®fåæÌ™ÃwÞÉÀ;|/¾ø‚7ß|† r^™uëÖÍ®–J*h n6²È"œ¿Å¢CäaDŒŽážõa«PQ•ÞUÓ­‘êêA 1gOH$= ”Ò´ ±‚˜"s—$œ¯¥æq·¿E˜èZIt›hf¸×»áX1ì)‘wv®ñÐYàKê}ÝH]*T¨„u¾êY¿~=+V¬h—ߤÓé¸õÖ[/éZ ɪZ­¶Í•"êëë²ëÏR$q}ŽãóÄ(`10’,ÊcD6åž)Æ›|5!2Ã]Å¥ÈÍO˜™,}£ÓW3#Ó)^•„ä% l4Msj€mÀ®I yåZiEPÓ´˜C)°øXÞ§êG©øõÖ’%Kˆç©§žjuu€¢¢"âââ8tèPk‡Àn½^?BjŽËÆÄ‰éÓ§>>>ôéÓçbÅ5’”FIêxxσFv"Æä†ÊÀkE„ò±<³;"Í!1•%X†k ¤Ò0B—%½¦¥À#Ò»š&Éë $®C’è6Ê'aî-kx2¹2ˆÞ'É/Ø gÀÑô !ÀüøB%)¿DhEé†Xjˆì¤Ñ²¶ ƒÁ@mm->>>8vïÞM]]SÿHLLdÙ²eTUU5ã0 IGß…Š¢|*¿¸­”—GVVÇWçÍÎÎÆÏÏÀÀ@Ö¬YÊ+Ú*ZHXßÁEH4DÒÉ-4,­§kò¶è+7TWge§‘áÞpD¶y’-G ÝÀXÀ"ËJ‚:(ƒ8·ô²Rš…{ ¦,¯AXíEêWZÅ/Zai4šRÄô×ÍŠ¢he÷-»×íˆQ½ ÁÃ?ÌêÕ«y衇š-)SQQÁ믿ÎöíÛv¥Jïä+Ù±Z®@w0GBž&%%±páBÌf3ï¿ÿ~[Åý“ôÐà¸ÜÖÈ}ÞˆÜñ¡¸¸™<¦“G/’%aM’:²X†|¾ò)¤ÈÐO'kP¤b›ŠHJýVzW%òxŽTaixþ€W:ð/àyDÍDWñë 5±ÉGrCQ="#(¼råÊ1+W® ÁcÚ®]»X¼xq©Ýnß,UT¢ÔmË;q­ÅŠ¢|üŸT-†cÇŽ¡( äçç·FTJ¢º”Åéê$Y4¤güñ³hÏ’M0ï¤U&Ÿ”Îã=2¼øYÚÏe+|$É–a`Sjf†Çg’®~uU¨„Õ6±8…kÂîFÉ¡(ÁÒã‰NKKÓ¿ð ‰õõõ;¸„eG4ÍEQF €ÿ¢ùtÜópøðaœN'ƒ¾`½Ó¦M£ººšnݺ1hÐ ÒÒÒ@Œç-Þ¸¡v5À›Ò ›Kϱ‘.¤Kµå-•WO©ž2eȸ[Þ­CRßAD²ÒHi_Êö~£*)¿zëjk¢(w#rÃ{µæa8p€9sæ ( óçÏgôèÑí©¶HÞ¸qãžE‹ÅK‡è§FðßÀ ÀHýè‹X›j,•%½©Œfs¡|ï#2°T¨PÁÏ”‡ÕAµ•¨(Ê@ÙaïoyÜn·ãv»1ÙJï%-l~´X,?÷¤Ý|àQ “æñ1²€»© ÉS½ò¼óV!~ÄVÍ—R¡âj',IZ%Š¢XßËÐÍ¯áØ¸qã(--¥¾¾žûawAmY,×Õ ùR1-e?zreÐ|>Q9Kî­V¿–*T\#!a+!bða^^^´GZCb¼m‡TPÇ,‹û*¿•hàY„£ÕÒ£Û.Éù¸ú•T¡â&,IZºÌÌÌgòóóË$AåX,–kÕ€Žž@ä͇q@<"ÓJ… Àÿx.Å(ñó|(IEND®B`‚gtkatlantic-0.6.1/data/interface.xml0000644000175000017500000004213112534546412014346 00000000000000