dopewars-1.5.12/0000777001565000007070000000000010355323337010442 500000000000000dopewars-1.5.12/AUTHORS0000644001565000007070000000275307675562413011450 00000000000000dopewars is derived from the MS-DOS game of the same name (author unknown). This is turn was based upon the MS-DOS game "Drug Wars", by John E. Dell. dopewars is written by and is copyright of Ben Webb (benwebb@users.sf.net) Pivotal to the development of dopewars were and are the following:- Dan Wolf for uncountable numbers of useful suggestions for the structure of the multiplayer game, drawing upon a disturbing knowledge of the drugs world. He also undertook scary amounts of research (i.e. playing the game) to assist with the re-engineering of the MS-DOS version, and plays the game to an unhealthy extent (as is witnessed by his high scores on many dopewars servers). Phil Davis, Caroline Moore, Katherine Holt and Andrea Elliot-Smith for extensive play testing of early versions of dopewars, despite the large amounts of "real" work which they were supposed to be doing, and despite the many dodgy bugs, as well as for providing suggestions, even if they were often rude. You know who you are. Owen Walsh and Pete Winn for yet more play testing, and for consequently doing very little research in vastly more important fields... James Matthews for providing absolutely no useful suggestions, but providing vital assistance with the Officer Bob code. Mike Meyer for providing several modifications to version 1.4.3, as well as spotting many of his own and my bugs... Matt Higgins for a couple of patches to version 1.4.4. Tony Brown for assistance with using dopewars via. enforced web proxies. dopewars-1.5.12/missing0000755001565000007070000002251607460325360011764 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift prog="$1" shift case "$prog" in aclocal) for suffix in "-1.5" ""; do if "$prog$suffix" "--version" >/dev/null 2>&1; then "$prog$suffix" "$@" && exit 0 fi done;; autoconf) for suffix in "-2.53" ""; do if "$prog$suffix" "--version" >/dev/null 2>&1; then "$prog$suffix" "$@" && exit 0 fi done;; automake) for suffix in "-1.5" ""; do if "$prog$suffix" "--version" >/dev/null 2>&1; then "$prog$suffix" "$@" && exit 0 fi done;; autoheader) for suffix in "-2.53" ""; do if "$prog$suffix" "--version" >/dev/null 2>&1; then "$prog$suffix" "$@" && exit 0 fi done;; *) "$prog" "$@" && exit 0;; esac set -- "$prog" "$@" ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing 0.3 - GNU automake" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal*) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then # We have makeinfo, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 fi # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar ${1+"$@"} && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar ${1+"$@"} && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" ${1+"$@"} && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" ${1+"$@"} && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequirements for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 dopewars-1.5.12/mkinstalldirs0000755001565000007070000000133107156722203013162 00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain # $Id: mkinstalldirs,v 1.1.1.1 2000/09/10 15:10:59 benwebb Exp $ errstatus=0 for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr fi fi pathcomp="$pathcomp/" done done exit $errstatus # mkinstalldirs ends here dopewars-1.5.12/configure0000755001565000007070000337133010355323270012273 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null && echo_test_string="`eval $cmd`" && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="src/dopewars.c" # Factoring default headers for most tests. ac_includes_default="\ #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS WNDRES GTK_CFLAGS GTK_LIBS GTK_CONFIG GLIB_CONFIG ESD_CONFIG ESD_CFLAGS ESD_LIBS target target_cpu target_vendor target_os SDL_CONFIG SDL_CFLAGS SDL_LIBS ESD_TRUE ESD_FALSE SDL_TRUE SDL_FALSE ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX LIBOBJS plugindir PLUGLIBS PLUGOBJS PLUGINS_TRUE PLUGINS_FALSE DPSCOREDIR DPDATADIR localedir GUI_CLIENT_TRUE GUI_CLIENT_FALSE GUILIB CURSES_CLIENT_TRUE CURSES_CLIENT_FALSE CURSESLIB GTKPORT_TRUE GTKPORT_FALSE GTKPORTLIB CURSESPORT_TRUE CURSESPORT_FALSE CURSESPORTLIB SOUND_CFLAGS SOUND_LIBS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS ac_env_CPP_set=${CPP+set} ac_env_CPP_value=$CPP ac_cv_env_CPP_set=${CPP+set} ac_cv_env_CPP_value=$CPP ac_env_CXX_set=${CXX+set} ac_env_CXX_value=$CXX ac_cv_env_CXX_set=${CXX+set} ac_cv_env_CXX_value=$CXX ac_env_CXXFLAGS_set=${CXXFLAGS+set} ac_env_CXXFLAGS_value=$CXXFLAGS ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} ac_cv_env_CXXFLAGS_value=$CXXFLAGS ac_env_CXXCPP_set=${CXXCPP+set} ac_env_CXXCPP_value=$CXXCPP ac_cv_env_CXXCPP_set=${CXXCPP+set} ac_cv_env_CXXCPP_value=$CXXCPP ac_env_F77_set=${F77+set} ac_env_F77_value=$F77 ac_cv_env_F77_set=${F77+set} ac_cv_env_F77_value=$F77 ac_env_FFLAGS_set=${FFLAGS+set} ac_env_FFLAGS_value=$FFLAGS ac_cv_env_FFLAGS_set=${FFLAGS+set} ac_cv_env_FFLAGS_value=$FFLAGS # # 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 \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --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) --enable-gui-client include graphical client (GTK+/Win32) --enable-curses-client include curses client --enable-gui-server use a simple GTK+/Win32 GUI for the server --disable-glib2 use GLib/GTK+ 1.x, even if 2.x is found --enable-nativewin32 build a native Win32 binary under Cygwin --disable-glibtest do not try to compile and run a test GLIB program --disable-gtktest do not try to compile and run a test GTK+ program --disable-gtktest Do not try to compile and run a test GTK program --disable-glibtest Do not try to compile and run a test GLIB program --disable-esdtest Do not try to compile and run a test ESD program --disable-sdltest Do not try to compile and run a test SDL program --disable-nls do not use Native Language Support --enable-plugins use dynamically-loaded sound modules --enable-networking dopewars will use TCP/IP to connect to servers --enable-strict if using gcc, enable extra warnings above -Wall Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] --without-esd do not support ESD sound output --without-sdl do not support SDL sound output --with-gtk-prefix=PFX Prefix where GTK is installed (optional) --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) --with-glib-prefix=PFX Prefix where GLIB is installed (optional) --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) --with-esd-prefix=PFX Prefix where ESD is installed (optional) --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional) --with-sdl-prefix=PFX Prefix where SDL is installed (optional) --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib --with-included-gettext use the GNU gettext library included here Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd $ac_popdir done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version="1.9" ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f $ac_dir/shtool; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} { (exit 1); exit 1; }; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 test "$program_prefix" != NONE && program_transform_name="s,^,$program_prefix,;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$,$program_suffix,;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$AWK" && break done echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=dopewars VERSION=1.5.12 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi STRIP=$ac_ct_STRIP else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" # Make sure we can run config.sub. $ac_config_sub sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 echo "$as_me: error: cannot run $ac_config_sub" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6 if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_build_alias=$build_alias test -z "$ac_cv_build_alias" && ac_cv_build_alias=`$ac_config_guess` test -z "$ac_cv_build_alias" && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6 build=$ac_cv_build build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6 if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_host_alias=$host_alias test -z "$ac_cv_host_alias" && ac_cv_host_alias=$ac_cv_build_alias ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6 host=$ac_cv_host host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= # b.out is created by i960 compilers. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; conftest.$ac_ext ) # This is the source file. ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool, # but it would be cool to find out if it's true. Does anybody # maintain Libtool? --akim. export ac_cv_exeext break;; * ) break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std1. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6 rm -f confinc confmf # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval="$enable_dependency_tracking" fi; if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_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 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$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 echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS ac_cv_search_strerror=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror (); int main () { strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_strerror="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_strerror" = no; then for ac_lib in cposix; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror (); int main () { strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_strerror="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 echo "${ECHO_T}$ac_cv_search_strerror" >&6 if test "$ac_cv_search_strerror" != no; then test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi # Check whether --enable-shared or --disable-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 or --disable-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 --enable-fast-install or --disable-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; echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && break cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done SED=$lt_cv_path_SED fi echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6 echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 if test "${ac_cv_prog_egrep+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi fi echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 EGREP=$ac_cv_prog_egrep # Check whether --with-gnu-ld or --without-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. echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&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 echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 else echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 GNU ld's 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 echo "${ECHO_T}$LD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 with_gnu_ld=$lt_cv_prog_gnu_ld echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$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' echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/${ac_tool_prefix}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" test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6 NM="$lt_cv_path_NM" echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6 fi echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi4*) 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'. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | kfreebsd*-gnu) 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)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; 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]) 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 ;; 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 Linux ELF. linux*) case $host_cpu in alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) lt_cv_deplibs_check_method=pass_all ;; *) # glibc up to 2.1.1 does not perform some relocations on ARM # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; esac lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` lt_cv_deplibs_check_method=pass_all ;; netbsd*) 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=unknown ;; openbsd*) lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' else lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; sco3.2v5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 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 ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 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 no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Check whether --enable-libtool-lock or --disable-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:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 3914 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then 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-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case "`/usr/bin/file conftest.o`" in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) 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" echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f 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 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$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 ;; esac need_locks="$enable_libtool_lock" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f 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 echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #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)) exit(2); exit (0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ------------------------------------------ ## ## Report this to the AC_PACKAGE_NAME lists. ## ## ------------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CXX" && break done test -n "$ac_ct_CXX" || ac_ct_CXX="g++" CXX=$ac_ct_CXX fi # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS CXXFLAGS="-g" echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cxx_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu depcc="$CXX" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6 ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_F77" && break done F77=$ac_ct_F77 fi # Provide some information about the compiler. echo "$as_me:5486:" \ "checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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*) # 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; ;; 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; ;; *) # 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"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done 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` ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 else echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6 fi # Check for command to grab the raw symbol name followed by C symbol from nm. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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]*\)' # Transform the above into a raw symbol and a C symbol. symxfrm='\1 \2\3 \3' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \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\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris* | sysv5*) symcode='[BDRT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # 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 # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$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=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && 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 < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_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 -f 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 echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6 else echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6 fi echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6 objdir=$lt_cv_objdir 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 # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' 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 avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi AR=$ac_ct_AR else AR="$ac_cv_prog_AR" fi 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi RANLIB=$ac_ct_RANLIB else RANLIB="$ac_cv_prog_RANLIB" 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi STRIP=$ac_ct_STRIP else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ;; *) old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 <&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 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 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 <&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 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 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock or --disable-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 # Check whether --with-pic or --without-pic was given. if test "${with_pic+set}" = set; then withval="$with_pic" pic_mode="$withval" else pic_mode=default fi; test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= 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;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # # Check for any special shared library compilation flags. # lt_prog_cc_shlib= if test "$GCC" = no; then case $host_os in sco3.2v5*) lt_prog_cc_shlib='-belf' ;; esac fi if test -n "$lt_prog_cc_shlib"; then { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : else { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} lt_cv_prog_cc_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_prog_compiler_static" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The compiler 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 else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:6524: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:6528: \$? = $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 if test ! -s conftest.err; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$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= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 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*) # 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' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # 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' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; 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 ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # 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='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; 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* | pw32* | os2*) # 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' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux*) case $CC in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic='-Kpic' lt_prog_compiler_static='-dn' ;; solaris*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 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 ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext printf "$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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:6757: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:6761: \$? = $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 if test ! -s conftest.err; then lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 if test x"$lt_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 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 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:6817: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:6821: \$? = $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 if test ! -s out/conftest.err; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . $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 .. rmdir conftest $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$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 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&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 echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 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 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # 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_" # 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. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # 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 ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) 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 # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; 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*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' 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 '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$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}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; netbsd*) 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 $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' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 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 ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_cmds="$tmp_archive_cmds" supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ 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 if test $supports_anon_versioning = yes; 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 -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else archive_expsym_cmds="$tmp_archive_cmds" fi else ld_shlibs=no fi ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 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 if test "$ld_shlibs" = yes; then 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 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 "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) 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 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")) && (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].*|aix5*) 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_libdir_separator=':' link_all_deplibs=yes 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 hardcode_direct=yes 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' 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 # 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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${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 $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; 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' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec=' ' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) 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 # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi4*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # 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. 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 `echo "$deplibs" | $SED -e '\''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' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) if test "$GXX" = yes ; then archive_cmds_need_lc=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag='-undefined suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='-flat_namespace -undefined suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='-flat_namespace -undefined suppress' ;; 10.*) allow_undefined_flag='-undefined dynamic_lookup' ;; esac fi ;; esac lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='-all_load $convenience' link_all_deplibs=yes 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 ;; freebsd1*) ld_shlibs=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* | kfreebsd*-gnu) archive_cmds='$CC -shared -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 -fPIC ${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* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=no hardcode_shlibpath_var=no ;; ia64*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=no hardcode_shlibpath_var=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; *) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=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 $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) 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 ;; openbsd*) hardcode_direct=yes hardcode_shlibpath_var=no 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' 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 ;; 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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi 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} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${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='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -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; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; sco3.2v5*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then archive_cmds='$CC -shared ${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 ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else 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' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 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.2uw2*) archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=no hardcode_shlibpath_var=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now 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' hardcode_libdir_flag_spec= hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' ;; 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 fi echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6 test "$ld_shlibs" = 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 # # 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. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl 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:$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=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # 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. 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 else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) 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 ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-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='GNU ld.so' ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 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 ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; 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 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' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 Linux ELF. linux*) 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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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 # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 8151 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $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' ;; knetbsd*-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='GNU ld.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 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=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=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=yes 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" ;; sco3.2v5*) version_type=osf 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 ;; solaris*) 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=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.2uw2* | sysv4.3* | sysv5*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 ;; uts4*) version_type=linux 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 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var " || \ test "X$hardcode_automatic"="Xyes" ; then # We can hardcode non-existant 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_AC_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 echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6 if test "$hardcode_action" = relink; 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 striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac 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*) 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 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; 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 ;; *) echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); /* 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_shl_load) || defined (__stub___shl_load) choke me #else char (*f) () = shl_load; #endif #ifdef __cplusplus } #endif int main () { return f != shl_load; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); int main () { shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); /* 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_dlopen) || defined (__stub___dlopen) choke me #else char (*f) () = dlopen; #endif #ifdef __cplusplus } #endif int main () { return f != dlopen; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dld_link (); int main () { dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 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" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 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_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 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_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$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 # Report which librarie types wil actually be built echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&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 ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; darwin* | rhapsody*) if test "$GCC" = yes; then archive_cmds_need_lc=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag='-undefined suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='-flat_namespace -undefined suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='-flat_namespace -undefined suppress' ;; 10.*) allow_undefined_flag='-undefined dynamic_lookup' ;; esac fi ;; esac output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='-all_load $convenience' link_all_deplibs=yes else ld_shlibs=no fi ;; esac echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # 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 s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # 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 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation ? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # 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 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # 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 and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # 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 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 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # 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 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_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 # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\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 EOF ;; esac # 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) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags or --without-tags was given. if test "${with_tags+set}" = set; then withval="$with_tags" tagnames="$withval" fi; if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && test "X$CXX" != "Xno"; then ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cc # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld or --without-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. echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&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 echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 else echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 GNU ld's 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 echo "${ECHO_T}$LD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.012|aix4.012.*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_CXX=yes else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' 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 # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_CXX=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX=' ' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) if test "$GXX" = yes; then archive_cmds_need_lc_CXX=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='-undefined suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='-flat_namespace -undefined suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='-flat_namespace -undefined suppress' ;; 10.*) allow_undefined_flag_CXX='-undefined dynamic_lookup' ;; esac fi ;; esac lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='-all_load $convenience' link_all_deplibs_CXX=yes else ld_shlibs_CXX=no fi ;; dgux*) case $cc_basename in ec++) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd12*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | kfreebsd*-gnu) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_CXX='+b $libdir' hardcode_libdir_separator_CXX=: ;; ia64*) hardcode_libdir_flag_spec_CXX='-L$libdir' ;; *) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case "$host_cpu" in hppa*64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC) case "$host_cpu" in hppa*64*|ia64*) archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case "$host_cpu" in ia64*|hppa*64*) archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; irix5* | irix6*) case $cc_basename in CC) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc) # Intel C++ with_gnu_ld=yes archive_cmds_need_lc_CXX=no archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; cxx) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; osf3*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sco*) archive_cmds_need_lc_CXX=no case $cc_basename in CC) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; sunos4*) case $cc_basename in CC) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC) # Sun C++ 4.2, 5.x and Centerline C++ no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.0-5 | solaris2.0-5.*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac link_all_deplibs_CXX=yes # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' fi ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) archive_cmds_need_lc_CXX=no ;; tandem*) case $cc_basename in NCC) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6 test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # 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*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | kfreebsd*-gnu) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; cxx) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; sco*) case $cc_basename in CC) lt_prog_compiler_pic_CXX='-fPIC' ;; *) ;; esac ;; solaris*) case $cc_basename in CC) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; unixware*) ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:11303: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:11307: \$? = $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 if test ! -s conftest.err; then lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:11363: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:11367: \$? = $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 if test ! -s out/conftest.err; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . $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 .. rmdir conftest $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&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 echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 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 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6 test "$ld_shlibs_CXX" = 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 # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # 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. 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 else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) 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 ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-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='GNU ld.so' ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 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 ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; 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 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' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 Linux ELF. linux*) 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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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 # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 11874 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $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' ;; knetbsd*-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='GNU ld.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 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=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=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=yes 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" ;; sco3.2v5*) version_type=osf 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 ;; solaris*) 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=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.2uw2* | sysv4.3* | sysv5*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 ;; uts4*) version_type=linux 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 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var CXX" || \ test "X$hardcode_automatic_CXX"="Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6 if test "$hardcode_action_CXX" = relink; 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 striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac 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*) 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 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; 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 ;; *) echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); /* 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_shl_load) || defined (__stub___shl_load) choke me #else char (*f) () = shl_load; #endif #ifdef __cplusplus } #endif int main () { return f != shl_load; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); int main () { shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); /* 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_dlopen) || defined (__stub___dlopen) choke me #else char (*f) () = dlopen; #endif #ifdef __cplusplus } #endif int main () { return f != dlopen; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dld_link (); int main () { dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 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" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 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_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 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_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$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 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation ? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_CXX" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code=" subroutine t\n return\n end\n" # Code to be used in simple link tests lt_simple_link_test_code=" program t\n end\n" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&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 ;; aix4* | aix5*) test "$enable_shared" = yes && enable_static=no ;; esac echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6 test "$ld_shlibs_F77" = no && can_build_shared=no GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-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_F77='-Bstatic' fi ;; amigaos*) # 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_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # 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_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; 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_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # 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_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | pw32* | os2*) # 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_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-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_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux*) case $CC in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic_F77='-Kpic' lt_prog_compiler_static_F77='-dn' ;; solaris*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # 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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13670: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:13674: \$? = $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 if test ! -s conftest.err; then lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13730: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:13734: \$? = $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 if test ! -s out/conftest.err; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . $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 .. rmdir conftest $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&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 echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 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 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # 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_F77="_GLOBAL_OFFSET_TABLE_" # 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. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # 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 ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$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_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='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}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_cmds_F77="$tmp_archive_cmds" supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ 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 if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else archive_expsym_cmds_F77="$tmp_archive_cmds" fi else ld_shlibs_F77=no fi ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = yes; then runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${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_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$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_F77=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix4* | aix5*) 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$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].*|aix5*) 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_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes 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 hardcode_direct_F77=yes else # We have old collect2 hardcode_direct_F77=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_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi esac shared_flag='-shared' 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 # 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_F77=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_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${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_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_F77=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77=' ' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$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_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi4*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # 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. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=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_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) if test "$GXX" = yes ; then archive_cmds_need_lc_F77=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='-undefined suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='-flat_namespace -undefined suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='-flat_namespace -undefined suppress' ;; 10.*) allow_undefined_flag_F77='-undefined dynamic_lookup' ;; esac fi ;; esac lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='-all_load $convenience' link_all_deplibs_F77=yes else ld_shlibs_F77=no fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=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_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${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_F77='$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_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; ia64*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; *) hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$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_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; sco3.2v5*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$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' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_F77=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_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4.2uw2*) archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag_F77='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv5*) no_undefined_flag_F77=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$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' hardcode_libdir_flag_spec_F77= hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6 test "$ld_shlibs_F77" = 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 # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 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. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # 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. 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 else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) 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 ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-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='GNU ld.so' ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 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 ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; 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 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' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 Linux ELF. linux*) 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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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 # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 15044 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $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' ;; knetbsd*-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='GNU ld.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 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=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=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=yes 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" ;; sco3.2v5*) version_type=osf 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 ;; solaris*) 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=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.2uw2* | sysv4.3* | sysv5*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 ;; uts4*) version_type=linux 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 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var F77" || \ test "X$hardcode_automatic_F77"="Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != 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_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6 if test "$hardcode_action_F77" = relink; 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 striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation ? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # 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_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_F77" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}\n" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15789: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:15793: \$? = $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 if test ! -s conftest.err; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-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_GCJ='-Bstatic' fi ;; amigaos*) # 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_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # 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_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; 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_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # 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_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | pw32* | os2*) # 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_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-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_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux*) case $CC in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic_GCJ='-Kpic' lt_prog_compiler_static_GCJ='-dn' ;; solaris*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # 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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16022: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16026: \$? = $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 if test ! -s conftest.err; then lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$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}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16082: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:16086: \$? = $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 if test ! -s out/conftest.err; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . $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 .. rmdir conftest $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&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 echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 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 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # 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_GCJ="_GLOBAL_OFFSET_TABLE_" # 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. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # 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 ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$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_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='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}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_cmds_GCJ="$tmp_archive_cmds" supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ 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 if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else archive_expsym_cmds_GCJ="$tmp_archive_cmds" fi else ld_shlibs_GCJ=no fi ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = yes; then runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${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_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$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_GCJ=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix4* | aix5*) 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$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].*|aix5*) 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_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes 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 hardcode_direct_GCJ=yes else # We have old collect2 hardcode_direct_GCJ=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_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi esac shared_flag='-shared' 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 # 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_GCJ=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_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${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_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_GCJ=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ=' ' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$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_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi4*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # 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. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=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_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) if test "$GXX" = yes ; then archive_cmds_need_lc_GCJ=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='-undefined suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' ;; 10.*) allow_undefined_flag_GCJ='-undefined dynamic_lookup' ;; esac fi ;; esac lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='-all_load $convenience' link_all_deplibs_GCJ=yes else ld_shlibs_GCJ=no fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=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_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${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_GCJ='$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_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; ia64*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; *) hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$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_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; sco3.2v5*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$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' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_GCJ=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_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4.2uw2*) archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag_GCJ='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv5*) no_undefined_flag_GCJ=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$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' hardcode_libdir_flag_spec_GCJ= hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 test "$ld_shlibs_GCJ" = 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 # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ 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. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # 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. 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 else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) 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 ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-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='GNU ld.so' ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 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 ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; 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 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' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 Linux ELF. linux*) 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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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 # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 17416 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $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' ;; knetbsd*-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='GNU ld.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 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=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=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=yes 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" ;; sco3.2v5*) version_type=osf 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 ;; solaris*) 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=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.2uw2* | sysv4.3* | sysv5*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 ;; uts4*) version_type=linux 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 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var GCJ" || \ test "X$hardcode_automatic_GCJ"="Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != 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_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6 if test "$hardcode_action_GCJ" = relink; 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 striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}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" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac 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*) 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 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; 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 ;; *) echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); /* 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_shl_load) || defined (__stub___shl_load) choke me #else char (*f) () = shl_load; #endif #ifdef __cplusplus } #endif int main () { return f != shl_load; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); int main () { shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); /* 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_dlopen) || defined (__stub___dlopen) choke me #else char (*f) () = dlopen; #endif #ifdef __cplusplus } #endif int main () { return f != dlopen; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dld_link (); int main () { dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 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" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 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_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 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_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$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 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation ? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # 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_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_GCJ" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation ? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # 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_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_RC" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #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)) exit(2); exit (0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 if test "${ac_cv_header_sys_wait_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_sys_wait_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_sys_wait_h=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 if test $ac_cv_header_sys_wait_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_SYS_WAIT_H 1 _ACEOF fi for ac_header in fcntl.h sys/time.h unistd.h stdlib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ------------------------------------------ ## ## Report this to the AC_PACKAGE_NAME lists. ## ## ------------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 if test "${ac_cv_header_time+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_time=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_time=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 echo "${ECHO_T}$ac_cv_header_time" >&6 if test $ac_cv_header_time = yes; then cat >>confdefs.h <<\_ACEOF #define TIME_WITH_SYS_TIME 1 _ACEOF fi echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 if test "${ac_cv_struct_tm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { struct tm *tp; tp->tm_sec; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_struct_tm=time.h else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_struct_tm=sys/time.h fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 echo "${ECHO_T}$ac_cv_struct_tm" >&6 if test $ac_cv_struct_tm = sys/time.h; then cat >>confdefs.h <<\_ACEOF #define TM_IN_SYS_TIME 1 _ACEOF fi case "$host_os" in darwin*) CPPFLAGS="$CPPFLAGS -no-cpp-precomp" esac HAVE_FIXED_GTK="no" # Check whether --enable-gui-client or --disable-gui-client was given. if test "${enable_gui_client+set}" = set; then enableval="$enable_gui_client" GUI_CLIENT="$enableval" else GUI_CLIENT="probe" fi; # Check whether --enable-curses-client or --disable-curses-client was given. if test "${enable_curses_client+set}" = set; then enableval="$enable_curses_client" CURSES_CLIENT="$enableval" else CURSES_CLIENT="probe" fi; # Check whether --enable-gui-server or --disable-gui-server was given. if test "${enable_gui_server+set}" = set; then enableval="$enable_gui_server" GUI_SERVER="$enableval" else GUI_SERVER="probe" fi; # Check whether --enable-glib2 or --disable-glib2 was given. if test "${enable_glib2+set}" = set; then enableval="$enable_glib2" USE_GLIB2="$enableval" else USE_GLIB2="yes" fi; # Check whether --with-esd or --without-esd was given. if test "${with_esd+set}" = set; then withval="$with_esd" USE_ESD="$withval" else USE_ESD="probe" fi; # Check whether --with-sdl or --without-sdl was given. if test "${with_sdl+set}" = set; then withval="$with_sdl" USE_SDL="$withval" else USE_SDL="probe" fi; ESD=no SDL=no case $host_os in *cygwin* ) CYGWIN=yes;; * ) CYGWIN=no;; esac # Check whether --enable-nativewin32 or --disable-nativewin32 was given. if test "${enable_nativewin32+set}" = set; then enableval="$enable_nativewin32" CYGWIN="$enableval" fi; if test "$CYGWIN" = "yes" ; then echo "$as_me:$LINENO: result: Configuring for native Win32 binary under Cygwin" >&5 echo "${ECHO_T}Configuring for native Win32 binary under Cygwin" >&6 cat >>confdefs.h <<\_ACEOF #define CYGWIN 1 _ACEOF bkp_CFLAGS="$CFLAGS" echo "$as_me:$LINENO: checking for compiler MSVC compatibility flag" >&5 echo $ECHO_N "checking for compiler MSVC compatibility flag... $ECHO_C" >&6 CFLAGS="$CFLAGS -mms-bitfields" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then mscompat="-mms-bitfields" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 mscompat="-fnative-struct" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $mscompat" >&5 echo "${ECHO_T}$mscompat" >&6 CFLAGS="$bkp_CFLAGS" CFLAGS="$CFLAGS -mwindows $mscompat" CPPFLAGS="$CPPFLAGS -mno-cygwin" LIBS="$LIBS -lwsock32 -lcomctl32 -lmpr" LDFLAGS="$LDFLAGS -mno-cygwin" # Check whether --enable-glibtest or --disable-glibtest was given. if test "${enable_glibtest+set}" = set; then enableval="$enable_glibtest" else enable_glibtest=yes fi; pkg_config_args=glib-2.0 for module in . do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi no_glib="" if test x$PKG_CONFIG != xno ; then if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then : else echo *** pkg-config too old; version 0.7 or better required. no_glib=yes PKG_CONFIG=no fi else no_glib=yes fi min_glib_version=2.0.0 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6 if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_glib=yes fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6 : else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed." fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" { { echo "$as_me:$LINENO: error: GLib is required" >&5 echo "$as_me: error: GLib is required" >&2;} { (exit 1); exit 1; }; } fi rm -f conf.glibtest cat >>confdefs.h <<\_ACEOF #define HAVE_GLIB2 1 _ACEOF WNDRES="dopewars.res" SOUND_LIBS="$SOUND_LIBS -lwinmm" PLUGOBJS="$PLUGOBJS plugins/sound_winmm.o" cat >>confdefs.h <<\_ACEOF #define HAVE_WINMM 1 _ACEOF HAVE_FIXED_GTK="yes" if test "$GUI_SERVER" = "probe"; then GUI_SERVER="yes" fi datadir="." localstatedir="." else echo "$as_me:$LINENO: result: Configuring for Unix binary" >&5 echo "${ECHO_T}Configuring for Unix binary" >&6 if test "$CURSES_CLIENT" != "no" ; then echo "$as_me:$LINENO: checking for newterm in -lncurses" >&5 echo $ECHO_N "checking for newterm in -lncurses... $ECHO_C" >&6 if test "${ac_cv_lib_ncurses_newterm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char newterm (); int main () { newterm (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_ncurses_newterm=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ncurses_newterm=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_newterm" >&5 echo "${ECHO_T}$ac_cv_lib_ncurses_newterm" >&6 if test $ac_cv_lib_ncurses_newterm = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBNCURSES 1 _ACEOF LIBS="-lncurses $LIBS" fi if test "$ac_cv_lib_ncurses_newterm" = "no" ; then echo "$as_me:$LINENO: checking for newterm in -lcurses" >&5 echo $ECHO_N "checking for newterm in -lcurses... $ECHO_C" >&6 if test "${ac_cv_lib_curses_newterm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcurses $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char newterm (); int main () { newterm (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_curses_newterm=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_curses_newterm=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_curses_newterm" >&5 echo "${ECHO_T}$ac_cv_lib_curses_newterm" >&6 if test $ac_cv_lib_curses_newterm = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBCURSES 1 _ACEOF LIBS="-lcurses $LIBS" fi if test "$ac_cv_lib_curses_newterm" = "no" ; then echo "$as_me:$LINENO: checking for newterm in -lcur_colr" >&5 echo $ECHO_N "checking for newterm in -lcur_colr... $ECHO_C" >&6 if test "${ac_cv_lib_cur_colr_newterm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcur_colr $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char newterm (); int main () { newterm (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_cur_colr_newterm=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_cur_colr_newterm=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_newterm" >&5 echo "${ECHO_T}$ac_cv_lib_cur_colr_newterm" >&6 if test $ac_cv_lib_cur_colr_newterm = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBCUR_COLR 1 _ACEOF LIBS="-lcur_colr $LIBS" fi if test "$ac_cv_lib_cur_colr_newterm" = "no" ; then if test "$CURSES_CLIENT" = "yes" ; then { { echo "$as_me:$LINENO: error: Cannot find any curses-type library" >&5 echo "$as_me: error: Cannot find any curses-type library" >&2;} { (exit 1); exit 1; }; } else { echo "$as_me:$LINENO: WARNING: Cannot find any curses-type library" >&5 echo "$as_me: WARNING: Cannot find any curses-type library" >&2;} CURSES_CLIENT="no" fi fi fi fi fi gtk2_found="probe" if test "$GUI_CLIENT" != "no" -o "$GUI_SERVER" != "no"; then if test "$USE_GLIB2" = "yes" ; then # Check whether --enable-gtktest or --disable-gtktest was given. if test "${enable_gtktest+set}" = set; then enableval="$enable_gtktest" else enable_gtktest=yes fi; pkg_config_args=gtk+-2.0 for module in . do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=2.0.0 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" rm -f conf.gtktest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtktest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_gtk=yes fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 gtk2_found="yes" else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" gtk2_found="no" fi rm -f conf.gtktest fi if test "$gtk2_found" = "yes" ; then HAVE_FIXED_GTK="yes" else gtk_found="no" # Check whether --with-gtk-prefix or --without-gtk-prefix was given. if test "${with_gtk_prefix+set}" = set; then withval="$with_gtk_prefix" gtk_config_prefix="$withval" else gtk_config_prefix="" fi; # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. if test "${with_gtk_exec_prefix+set}" = set; then withval="$with_gtk_exec_prefix" gtk_config_exec_prefix="$withval" else gtk_config_exec_prefix="" fi; # Check whether --enable-gtktest or --disable-gtktest was given. if test "${enable_gtktest+set}" = set; then enableval="$enable_gtktest" else enable_gtktest=yes fi; for module in . do case "$module" in gthread) gtk_config_args="$gtk_config_args gthread" ;; esac done if test x$gtk_config_exec_prefix != x ; then gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" if test x${GTK_CONFIG+set} != xset ; then GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config fi fi if test x$gtk_config_prefix != x ; then gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" if test x${GTK_CONFIG+set} != xset ; then GTK_CONFIG=$gtk_config_prefix/bin/gtk-config fi fi # Extract the first word of "gtk-config", so it can be a program name with args. set dummy gtk-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GTK_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_GTK_CONFIG="$GTK_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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" ;; esac fi GTK_CONFIG=$ac_cv_path_GTK_CONFIG if test -n "$GTK_CONFIG"; then echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 echo "${ECHO_T}$GTK_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi min_gtk_version=1.2.0 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 no_gtk="" if test "$GTK_CONFIG" = "no" ; then no_gtk=yes else GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" rm -f conf.gtktest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtktest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If gtk-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } #endif /* defined (GTK_MAJOR_VERSION) ... */ else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); printf("*** correct copy of gtk-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_gtk=yes fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 gtk_found="yes" else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 if test "$GTK_CONFIG" = "no" ; then echo "*** The gtk-config script installed by GTK could not be found" echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GTK_CONFIG environment variable to the" echo "*** full path to gtk-config." else if test -f conf.gtktest ; then : else echo "*** Could not run GTK test program, checking why..." CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK or finding the wrong" echo "*** version of GTK. If it is not finding GTK, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK was incorrectly installed" echo "*** or that you have moved GTK since it was installed. In the latter case, you" echo "*** may want to edit the gtk-config script: $GTK_CONFIG" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" : fi rm -f conf.gtktest if test "$gtk_found" = "no" ; then if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then { { echo "$as_me:$LINENO: error: Cannot find GTK+" >&5 echo "$as_me: error: Cannot find GTK+" >&2;} { (exit 1); exit 1; }; } else { echo "$as_me:$LINENO: WARNING: Cannot find GTK+" >&5 echo "$as_me: WARNING: Cannot find GTK+" >&2;} GUI_CLIENT="no" GUI_SERVER="no" fi else echo "$as_me:$LINENO: checking for non-buggy GTK+ ( >= 1.2.10 )" >&5 echo $ECHO_N "checking for non-buggy GTK+ ( >= 1.2.10 )... $ECHO_C" >&6 if test "$gtk_config_major_version" -gt 1 ; then HAVE_FIXED_GTK="yes" elif test "$gtk_config_major_version" -eq 1 ; then if test "$gtk_config_minor_version" -gt 2 ; then HAVE_FIXED_GTK="yes" elif test "$gtk_config_minor_version" -eq 2 -a \ "$gtk_config_micro_version" -ge 10 ; then HAVE_FIXED_GTK="yes" fi fi echo "$as_me:$LINENO: result: $HAVE_FIXED_GTK" >&5 echo "${ECHO_T}$HAVE_FIXED_GTK" >&6 fi fi fi glib2_found="no" if test "$USE_GLIB2" = "yes" -a "$gtk2_found" != "no"; then # Check whether --enable-glibtest or --disable-glibtest was given. if test "${enable_glibtest+set}" = set; then enableval="$enable_glibtest" else enable_glibtest=yes fi; pkg_config_args=glib-2.0 for module in . do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi no_glib="" if test x$PKG_CONFIG != xno ; then if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then : else echo *** pkg-config too old; version 0.7 or better required. no_glib=yes PKG_CONFIG=no fi else no_glib=yes fi min_glib_version=2.0.0 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6 if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_glib=yes fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6 glib2_found="yes" else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed." fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" : fi rm -f conf.glibtest fi if test "$glib2_found" = "no" ; then # Check whether --with-glib-prefix or --without-glib-prefix was given. if test "${with_glib_prefix+set}" = set; then withval="$with_glib_prefix" glib_config_prefix="$withval" else glib_config_prefix="" fi; # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given. if test "${with_glib_exec_prefix+set}" = set; then withval="$with_glib_exec_prefix" glib_config_exec_prefix="$withval" else glib_config_exec_prefix="" fi; # Check whether --enable-glibtest or --disable-glibtest was given. if test "${enable_glibtest+set}" = set; then enableval="$enable_glibtest" else enable_glibtest=yes fi; if test x$glib_config_exec_prefix != x ; then glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" if test x${GLIB_CONFIG+set} != xset ; then GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config fi fi if test x$glib_config_prefix != x ; then glib_config_args="$glib_config_args --prefix=$glib_config_prefix" if test x${GLIB_CONFIG+set} != xset ; then GLIB_CONFIG=$glib_config_prefix/bin/glib-config fi fi for module in . do case "$module" in gmodule) glib_config_args="$glib_config_args gmodule" ;; gthread) glib_config_args="$glib_config_args gthread" ;; esac done # Extract the first word of "glib-config", so it can be a program name with args. set dummy glib-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GLIB_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_GLIB_CONFIG="$GLIB_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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no" ;; esac fi GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG if test -n "$GLIB_CONFIG"; then echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5 echo "${ECHO_T}$GLIB_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi min_glib_version=1.2.0 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6 no_glib="" if test "$GLIB_CONFIG" = "no" ; then no_glib=yes else GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If glib-config was correct, then it is best\n"); printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the glib-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); printf("*** correct copy of glib-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_glib=yes fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 : else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 if test "$GLIB_CONFIG" = "no" ; then echo "*** The glib-config script installed by GLIB could not be found" echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GLIB_CONFIG environment variable to the" echo "*** full path to glib-config." else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB was incorrectly installed" echo "*** or that you have moved GLIB since it was installed. In the latter case, you" echo "*** may want to edit the glib-config script: $GLIB_CONFIG" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" { { echo "$as_me:$LINENO: error: Cannot find glib - aborting" >&5 echo "$as_me: error: Cannot find glib - aborting" >&2;} { (exit 1); exit 1; }; } fi rm -f conf.glibtest else cat >>confdefs.h <<\_ACEOF #define HAVE_GLIB2 1 _ACEOF fi if test "$USE_ESD" != "no"; then # Check whether --with-esd-prefix or --without-esd-prefix was given. if test "${with_esd_prefix+set}" = set; then withval="$with_esd_prefix" esd_prefix="$withval" else esd_prefix="" fi; # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given. if test "${with_esd_exec_prefix+set}" = set; then withval="$with_esd_exec_prefix" esd_exec_prefix="$withval" else esd_exec_prefix="" fi; # Check whether --enable-esdtest or --disable-esdtest was given. if test "${enable_esdtest+set}" = set; then enableval="$enable_esdtest" else enable_esdtest=yes fi; if test x$esd_exec_prefix != x ; then esd_args="$esd_args --exec-prefix=$esd_exec_prefix" if test x${ESD_CONFIG+set} != xset ; then ESD_CONFIG=$esd_exec_prefix/bin/esd-config fi fi if test x$esd_prefix != x ; then esd_args="$esd_args --prefix=$esd_prefix" if test x${ESD_CONFIG+set} != xset ; then ESD_CONFIG=$esd_prefix/bin/esd-config fi fi # Extract the first word of "esd-config", so it can be a program name with args. set dummy esd-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ESD_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ESD_CONFIG="$ESD_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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" ;; esac fi ESD_CONFIG=$ac_cv_path_ESD_CONFIG if test -n "$ESD_CONFIG"; then echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5 echo "${ECHO_T}$ESD_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi min_esd_version=0.0.20 echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6 no_esd="" if test "$ESD_CONFIG" = "no" ; then no_esd=yes 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 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` esd_major_version=`$ESD_CONFIG $esd_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` esd_minor_version=`$ESD_CONFIG $esd_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_esdtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $ESD_CFLAGS" LIBS="$LIBS $ESD_LIBS" rm -f conf.esdtest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include char* my_strdup (char *str) { char *new_str; if (str) { new_str = malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main () { int major, minor, micro; char *tmp_version; system ("touch conf.esdtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_esd_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_esd_version"); exit(1); } if (($esd_major_version > major) || (($esd_major_version == major) && ($esd_minor_version > minor)) || (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) { return 0; } else { printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); printf("*** to point to the correct copy of esd-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_esd=yes fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" 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 fi if test "x$no_esd" = x ; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 ESD=yes else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 if test "$ESD_CONFIG" = "no" ; then echo "*** The esd-config script installed by ESD could not be found" echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the ESD_CONFIG environment variable to the" echo "*** full path to esd-config." else if test -f conf.esdtest ; then : else echo "*** Could not run ESD test program, checking why..." CFLAGS="$CFLAGS $ESD_CFLAGS" LIBS="$LIBS $ESD_LIBS" 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding ESD or finding the wrong" echo "*** version of ESD. If it is not finding ESD, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means ESD was incorrectly installed" echo "*** or that you have moved ESD since it was installed. In the latter case, you" echo "*** may want to edit the esd-config script: $ESD_CONFIG" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" 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 fi ESD_CFLAGS="" ESD_LIBS="" : fi rm -f conf.esdtest if test "$ESD" = "yes"; then SOUND_CFLAGS="$SOUND_CFLAGS $ESD_CFLAGS" SOUND_LIBS="$SOUND_LIBS $ESD_LIBS" PLUGOBJS="$PLUGOBJS plugins/sound_esd.o" cat >>confdefs.h <<\_ACEOF #define HAVE_ESD 1 _ACEOF elif test "$USE_ESD" = "yes"; then { { echo "$as_me:$LINENO: error: Cannot find ESD library" >&5 echo "$as_me: error: Cannot find ESD library" >&2;} { (exit 1); exit 1; }; } fi fi if test "$USE_SDL" != "no"; then SDL_ALL=no echo "$as_me:$LINENO: checking target system type" >&5 echo $ECHO_N "checking target system type... $ECHO_C" >&6 if test "${ac_cv_target+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_target_alias=$target_alias test "x$ac_cv_target_alias" = "x" && ac_cv_target_alias=$ac_cv_host_alias ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: $ac_cv_target" >&5 echo "${ECHO_T}$ac_cv_target" >&6 target=$ac_cv_target target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- # Check whether --with-sdl-prefix or --without-sdl-prefix was given. if test "${with_sdl_prefix+set}" = set; then withval="$with_sdl_prefix" sdl_prefix="$withval" else sdl_prefix="" fi; # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. if test "${with_sdl_exec_prefix+set}" = set; then withval="$with_sdl_exec_prefix" sdl_exec_prefix="$withval" else sdl_exec_prefix="" fi; # Check whether --enable-sdltest or --disable-sdltest was given. if test "${enable_sdltest+set}" = set; then enableval="$enable_sdltest" else enable_sdltest=yes fi; if test x$sdl_exec_prefix != x ; then sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" if test x${SDL_CONFIG+set} != xset ; then SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config fi fi if test x$sdl_prefix != x ; then sdl_args="$sdl_args --prefix=$sdl_prefix" if test x${SDL_CONFIG+set} != xset ; then SDL_CONFIG=$sdl_prefix/bin/sdl-config fi fi PATH="$prefix/bin:$prefix/usr/bin:$PATH" # Extract the first word of "sdl-config", so it can be a program name with args. set dummy sdl-config; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $SDL_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_SDL_CONFIG="$SDL_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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" ;; esac fi SDL_CONFIG=$ac_cv_path_SDL_CONFIG if test -n "$SDL_CONFIG"; then echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 echo "${ECHO_T}$SDL_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi min_sdl_version=1.0.0 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 no_sdl="" if test "$SDL_CONFIG" = "no" ; then no_sdl=yes else SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_sdltest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_CXXFLAGS="$CXXFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" rm -f conf.sdltest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include "SDL.h" char* my_strdup (char *str) { char *new_str; if (str) { new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main (int argc, char *argv[]) { int major, minor, micro; char *tmp_version; /* This hangs on some systems (?) system ("touch conf.sdltest"); */ { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_sdl_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_sdl_version"); exit(1); } if (($sdl_major_version > major) || (($sdl_major_version == major) && ($sdl_minor_version > minor)) || (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) { return 0; } else { printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); printf("*** to point to the correct copy of sdl-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_sdl=yes fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_sdl" = x ; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SDL=yes else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 if test "$SDL_CONFIG" = "no" ; then echo "*** The sdl-config script installed by SDL could not be found" echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the SDL_CONFIG environment variable to the" echo "*** full path to sdl-config." else if test -f conf.sdltest ; then : else echo "*** Could not run SDL test program, checking why..." CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include "SDL.h" int main(int argc, char *argv[]) { return 0; } #undef main #define main K_and_R_C_main int main () { return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding SDL or finding the wrong" echo "*** version of SDL. If it is not finding SDL, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means SDL was incorrectly installed" echo "*** or that you have moved SDL since it was installed. In the latter case, you" echo "*** may want to edit the sdl-config script: $SDL_CONFIG" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi SDL_CFLAGS="" SDL_LIBS="" : fi rm -f conf.sdltest if test "$SDL" = "yes"; then headers=no libs=no if test "${ac_cv_header_SDL_SDL_mixer_h+set}" = set; then echo "$as_me:$LINENO: checking for SDL/SDL_mixer.h" >&5 echo $ECHO_N "checking for SDL/SDL_mixer.h... $ECHO_C" >&6 if test "${ac_cv_header_SDL_SDL_mixer_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_mixer_h" >&5 echo "${ECHO_T}$ac_cv_header_SDL_SDL_mixer_h" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking SDL/SDL_mixer.h usability" >&5 echo $ECHO_N "checking SDL/SDL_mixer.h usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking SDL/SDL_mixer.h presence" >&5 echo $ECHO_N "checking SDL/SDL_mixer.h presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: SDL/SDL_mixer.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: SDL/SDL_mixer.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: SDL/SDL_mixer.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: SDL/SDL_mixer.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: SDL/SDL_mixer.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: SDL/SDL_mixer.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: SDL/SDL_mixer.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: SDL/SDL_mixer.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ------------------------------------------ ## ## Report this to the AC_PACKAGE_NAME lists. ## ## ------------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for SDL/SDL_mixer.h" >&5 echo $ECHO_N "checking for SDL/SDL_mixer.h... $ECHO_C" >&6 if test "${ac_cv_header_SDL_SDL_mixer_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_SDL_SDL_mixer_h=$ac_header_preproc fi echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_mixer_h" >&5 echo "${ECHO_T}$ac_cv_header_SDL_SDL_mixer_h" >&6 fi if test $ac_cv_header_SDL_SDL_mixer_h = yes; then headers=yes fi echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5 echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lSDL_mixer $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char Mix_OpenAudio (); int main () { Mix_OpenAudio (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6 if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then libs=yes fi if test "$libs" = "yes"; then if test "$headers" = "yes"; then SOUND_CFLAGS="$SOUND_CFLAGS $SDL_CFLAGS" SDL_LIBS="$SDL_LIBS -lSDL_mixer" SOUND_LIBS="$SOUND_LIBS $SDL_LIBS" PLUGOBJS="$PLUGOBJS plugins/sound_sdl.o" cat >>confdefs.h <<\_ACEOF #define HAVE_SDL_MIXER 1 _ACEOF SDL_ALL=yes fi fi fi if test "$USE_SDL" = "yes" -a "$SDL_ALL" = "no"; then { { echo "$as_me:$LINENO: error: Cannot find SDL library" >&5 echo "$as_me: error: Cannot find SDL library" >&2;} { (exit 1); exit 1; }; } fi fi if test "$GUI_SERVER" = "probe"; then GUI_SERVER="no" fi echo "$as_me:$LINENO: checking for socklen_t data type" >&5 echo $ECHO_N "checking for socklen_t data type... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { socklen_t val ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 cat >>confdefs.h <<\_ACEOF #define HAVE_SOCKLEN_T 1 _ACEOF else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi if test "$ESD" = "yes"; then ESD_TRUE= ESD_FALSE='#' else ESD_TRUE='#' ESD_FALSE= fi if test "$SDL" = "yes"; then SDL_TRUE= SDL_FALSE='#' else SDL_TRUE='#' SDL_FALSE= fi if test "$GUI_CLIENT" = "probe"; then GUI_CLIENT="yes" fi if test "$CURSES_CLIENT" = "probe"; then CURSES_CLIENT="yes" fi ALL_LINGUAS="de pl pt_BR fr fr_CA nn es es_ES" 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi RANLIB=$ac_ct_RANLIB else RANLIB="$ac_cv_prog_RANLIB" fi echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset x; /* SunOS 4.1.1 cc rejects this. */ char const *const *ccp; char **p; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; ccp = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++ccp; p = (char**) ccp; ccp = (char const *const *) p; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; } #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6 if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi echo "$as_me:$LINENO: checking for inline" >&5 echo $ECHO_N "checking for inline... $ECHO_C" >&6 if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_inline=$ac_kw; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done fi echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 echo "${ECHO_T}$ac_cv_c_inline" >&6 case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac echo "$as_me:$LINENO: checking for off_t" >&5 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 if test "${ac_cv_type_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((off_t *) 0) return 0; if (sizeof (off_t)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_off_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_off_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 echo "${ECHO_T}$ac_cv_type_off_t" >&6 if test $ac_cv_type_off_t = yes; then : else cat >>confdefs.h <<_ACEOF #define off_t long _ACEOF fi echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((size_t *) 0) return 0; if (sizeof (size_t)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6 if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned _ACEOF fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo "$as_me:$LINENO: checking for working alloca.h" >&5 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 if test "${ac_cv_working_alloca_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_working_alloca_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_working_alloca_h=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 if test $ac_cv_working_alloca_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ALLOCA_H 1 _ACEOF fi echo "$as_me:$LINENO: checking for alloca" >&5 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 if test "${ac_cv_func_alloca_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_alloca_works=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_alloca_works=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 if test $ac_cv_func_alloca_works = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ALLOCA 1 _ACEOF else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=alloca.$ac_objext cat >>confdefs.h <<\_ACEOF #define C_ALLOCA 1 _ACEOF echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 if test "${ac_cv_os_cray+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(CRAY) && ! defined(CRAY2) webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 echo "${ECHO_T}$ac_cv_os_cray" >&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 if test "${ac_cv_c_stack_direction+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int find_stack_direction () { static char *addr = 0; auto char dummy; if (addr == 0) { addr = &dummy; return find_stack_direction (); } else return (&dummy > addr) ? 1 : -1; } int main () { exit (find_stack_direction () < 0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_stack_direction=1 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_c_stack_direction=-1 fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi for ac_header in stdlib.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ------------------------------------------ ## ## Report this to the AC_PACKAGE_NAME lists. ## ## ------------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getpagesize do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done echo "$as_me:$LINENO: checking for working mmap" >&5 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_mmap_fixed_mapped=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default /* malloc might have been renamed as rpl_malloc. */ #undef malloc /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propagated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #if !STDC_HEADERS && !HAVE_STDLIB_H char *malloc (); #endif /* This mess was copied from the GNU getpagesize.h. */ #if !HAVE_GETPAGESIZE /* Assume that all systems that can run configure have sys/param.h. */ # if !HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # if HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ int main () { char *data, *data2, *data3; int i, pagesize; int fd; pagesize = getpagesize (); /* First, make a file with some known garbage in it. */ data = (char *) malloc (pagesize); if (!data) exit (1); for (i = 0; i < pagesize; ++i) *(data + i) = rand (); umask (0); fd = creat ("conftest.mmap", 0600); if (fd < 0) exit (1); if (write (fd, data, pagesize) != pagesize) exit (1); close (fd); /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that we see the same garbage. */ fd = open ("conftest.mmap", O_RDWR); if (fd < 0) exit (1); data2 = (char *) malloc (2 * pagesize); if (!data2) exit (1); data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) exit (1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) exit (1); /* Finally, make sure that changes to the mapped area do not percolate back to the file as seen by read(). (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = (char *) malloc (pagesize); if (!data3) exit (1); if (read (fd, data3, pagesize) != pagesize) exit (1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) exit (1); close (fd); exit (0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_mmap_fixed_mapped=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_mmap_fixed_mapped=no fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 if test $ac_cv_func_mmap_fixed_mapped = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_MMAP 1 _ACEOF fi rm -f conftest.mmap echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 if test "${ac_cv_gnu_library_2_1+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then ac_cv_gnu_library_2_1=yes else ac_cv_gnu_library_2_1=no fi rm -f conftest* fi echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 GLIBC21="$ac_cv_gnu_library_2_1" for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ stdlib.h string.h unistd.h sys/param.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ------------------------------------------ ## ## Report this to the AC_PACKAGE_NAME lists. ## ## ------------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ strdup strtoul tsearch __argz_count __argz_stringify __argz_next do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then withval="$with_libiconv_prefix" for dir in `echo "$withval" | tr : ' '`; do if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi done fi; echo "$as_me:$LINENO: checking for iconv" >&5 echo $ECHO_N "checking for iconv... $ECHO_C" >&6 if test "${am_cv_func_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS -liconv" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_lib_iconv=yes am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 echo "${ECHO_T}$am_cv_func_iconv" >&6 if test "$am_cv_func_iconv" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ICONV 1 _ACEOF echo "$as_me:$LINENO: checking for iconv declaration" >&5 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 if test "${am_cv_proto_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_proto_iconv_arg1="" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_proto_iconv_arg1="const" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` echo "$as_me:$LINENO: result: ${ac_t:- }$am_cv_proto_iconv" >&5 echo "${ECHO_T}${ac_t:- }$am_cv_proto_iconv" >&6 cat >>confdefs.h <<_ACEOF #define ICONV_CONST $am_cv_proto_iconv_arg1 _ACEOF fi LIBICONV= if test "$am_cv_lib_iconv" = yes; then LIBICONV="-liconv" fi echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 if test "${am_cv_langinfo_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { char* cs = nl_langinfo(CODESET); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_langinfo_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_langinfo_codeset=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 if test $am_cv_langinfo_codeset = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LANGINFO_CODESET 1 _ACEOF fi if test $ac_cv_header_locale_h = yes; then echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_val_LC_MESSAGES=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 if test $am_cv_val_LC_MESSAGES = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LC_MESSAGES 1 _ACEOF fi fi echo "$as_me:$LINENO: checking whether NLS is requested" >&5 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" USE_NLS=$enableval else USE_NLS=yes fi; echo "$as_me:$LINENO: result: $USE_NLS" >&5 echo "${ECHO_T}$USE_NLS" >&6 BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no INTLLIBS= if test "$USE_NLS" = "yes"; then cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then withval="$with_included_gettext" nls_cv_force_use_gnu_gettext=$withval else nls_cv_force_use_gnu_gettext=no fi; echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then CATOBJEXT=NONE if test "${ac_cv_header_libintl_h+set}" = set; then echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking libintl.h usability" >&5 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking libintl.h presence" >&5 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ------------------------------------------ ## ## Report this to the AC_PACKAGE_NAME lists. ## ## ------------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_libintl_h=$ac_header_preproc fi echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 fi if test $ac_cv_header_libintl_h = yes; then echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern int _nl_msg_cat_cntr; int main () { bindtextdomain ("", ""); return (int) gettext ("") + _nl_msg_cat_cntr ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gt_cv_func_gnugettext1_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_gnugettext1_libc=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -lintl $LIBICONV" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern int _nl_msg_cat_cntr; int main () { bindtextdomain ("", ""); return (int) gettext ("") + _nl_msg_cat_cntr ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gt_cv_func_gnugettext1_libintl=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_gnugettext1_libintl=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 fi if test "$gt_cv_func_gnugettext1_libc" = "yes" \ || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ && test "$PACKAGE" != gettext; }; then cat >>confdefs.h <<\_ACEOF #define HAVE_GETTEXT 1 _ACEOF if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then INTLLIBS="-lintl $LIBICONV" fi gt_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done LIBS="$gt_save_LIBS" # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CATOBJEXT=.gmo fi fi if test "$CATOBJEXT" = "NONE"; then nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then INTLOBJS="\$(GETTOBJS)" # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes CATOBJEXT=.gmo INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi if test "$GMSGFMT" != ":"; then if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then : ; else echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 GMSGFMT=":" fi fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then : ; else echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 XGETTEXT=":" fi fi POSUB=po fi ac_config_commands="$ac_config_commands default-1" if test "$PACKAGE" = gettext; then BUILD_INCLUDED_LIBINTL=yes fi for ac_prog in bison do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_INTLBISON+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$INTLBISON"; then ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_INTLBISON="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi INTLBISON=$ac_cv_prog_INTLBISON if test -n "$INTLBISON"; then echo "$as_me:$LINENO: result: $INTLBISON" >&5 echo "${ECHO_T}$INTLBISON" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$INTLBISON" && break done if test -z "$INTLBISON"; then ac_verc_fail=yes else echo "$as_me:$LINENO: checking version of bison" >&5 echo $ECHO_N "checking version of bison... $ECHO_C" >&6 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac echo "$as_me:$LINENO: result: $ac_prog_version" >&5 echo "${ECHO_T}$ac_prog_version" >&6 fi if test $ac_verc_fail = yes; then INTLBISON=: fi for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done nls_cv_header_intl= nls_cv_header_libgt= DATADIRNAME=share INSTOBJEXT=.mo GENCAT=gencat if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS echo "$as_me:$LINENO: result: $LINGUAS" >&5 echo "${ECHO_T}$LINGUAS" >&6 fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi INTL_LIBTOOL_SUFFIX_PREFIX= if test "$gt_cv_func_gettext_libintl" = "yes"; then LIBS="-lintl $LIBS" fi if test "$GUI_CLIENT" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define GUI_CLIENT 1 _ACEOF fi if test "$CURSES_CLIENT" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define CURSES_CLIENT 1 _ACEOF fi if test "$GUI_SERVER" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define GUI_SERVER 1 _ACEOF fi if test "$HAVE_FIXED_GTK" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define HAVE_FIXED_GTK 1 _ACEOF fi echo "$as_me:$LINENO: checking for long long" >&5 echo $ECHO_N "checking for long long... $ECHO_C" >&6 if test "${ac_cv_type_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((long long *) 0) return 0; if (sizeof (long long)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_long_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_long_long=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 echo "${ECHO_T}$ac_cv_type_long_long" >&6 echo "$as_me:$LINENO: checking size of long long" >&5 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 if test "${ac_cv_sizeof_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$ac_cv_type_long_long" = yes; then # The cast to unsigned long works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_long_long=$ac_lo;; '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (long long), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } ;; esac else if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default long longval () { return (long) (sizeof (long long)); } unsigned long ulongval () { return (long) (sizeof (long long)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) exit (1); if (((long) (sizeof (long long))) < 0) { long i = longval (); if (i != ((long) (sizeof (long long)))) exit (1); fprintf (f, "%ld\n", i); } else { unsigned long i = ulongval (); if (i != ((long) (sizeof (long long)))) exit (1); fprintf (f, "%lu\n", i); } exit (ferror (f) || fclose (f) != 0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_long_long=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (long long), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f conftest.val else ac_cv_sizeof_long_long=0 fi fi echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long _ACEOF echo "$as_me:$LINENO: checking for working memcmp" >&5 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 if test "${ac_cv_func_memcmp_working+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_memcmp_working=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { /* Some versions of memcmp are not 8-bit clean. */ char c0 = 0x40, c1 = 0x80, c2 = 0x81; if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) exit (1); /* The Next x86 OpenStep bug shows up only when comparing 16 bytes or more and with at least one buffer not starting on a 4-byte boundary. William Lewis provided this test program. */ { char foo[21]; char bar[21]; int i; for (i = 0; i < 4; i++) { char *a = foo + i; char *b = bar + i; strcpy (a, "--------01111111"); strcpy (b, "--------10000000"); if (memcmp (a, b, 16) >= 0) exit (1); } exit (0); } ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_memcmp_working=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_memcmp_working=no fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in "memcmp.$ac_objext" | \ *" memcmp.$ac_objext" | \ "memcmp.$ac_objext "* | \ *" memcmp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; esac echo "$as_me:$LINENO: checking for function prototypes" >&5 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 if test "$ac_cv_prog_cc_stdc" != no; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 cat >>confdefs.h <<\_ACEOF #define PROTOTYPES 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define __PROTOTYPES 1 _ACEOF else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_func_setvbuf_reversed=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include # if PROTOTYPES int (setvbuf) (FILE *, int, char *, size_t); # endif int main () { char buf; return setvbuf (stdout, _IOLBF, &buf, 1); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include # if PROTOTYPES int (setvbuf) (FILE *, int, char *, size_t); # endif int main () { char buf; return setvbuf (stdout, &buf, _IOLBF, 1); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then # It compiles and links either way, so it must not be declared # with a prototype and most likely this is a K&R C compiler. # Try running it. if test "$cross_compiling" = yes; then : # Assume setvbuf is not reversed when cross-compiling. else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { /* This call has the arguments reversed. A reversed system may check and see that the address of buf is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ char buf; if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) exit (1); putchar ('\r'); exit (0); /* Non-reversed systems SEGV here. */ ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_setvbuf_reversed=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) rm -f core *.core fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi ac_cv_func_setvbuf_reversed=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 if test $ac_cv_func_setvbuf_reversed = yes; then cat >>confdefs.h <<\_ACEOF #define SETVBUF_REVERSED 1 _ACEOF fi for ac_func in strftime do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF else # strftime is in -lintl on SCO UNIX. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 if test "${ac_cv_lib_intl_strftime+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strftime (); int main () { strftime (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_intl_strftime=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_strftime=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 if test $ac_cv_lib_intl_strftime = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STRFTIME 1 _ACEOF LIBS="-lintl $LIBS" fi fi done for ac_func in strdup strstr getopt getopt_long fork do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Check whether --enable-plugins or --disable-plugins was given. if test "${enable_plugins+set}" = set; then enableval="$enable_plugins" plugins="$enableval" else plugins="probe" fi; if test "$enable_shared" = "no" ; then plugins="no" fi if test "$plugins" != "no" ; then echo "$as_me:$LINENO: checking for library containing dlopen" >&5 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 if test "${ac_cv_search_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS ac_cv_search_dlopen=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_dlopen="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_dlopen" = no; then for ac_lib in dl; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_dlopen="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 echo "${ECHO_T}$ac_cv_search_dlopen" >&6 if test "$ac_cv_search_dlopen" != no; then test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" fi echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); /* 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_dlopen) || defined (__stub___dlopen) choke me #else char (*f) () = dlopen; #endif #ifdef __cplusplus } #endif int main () { return f != dlopen; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then plugins="yes" else plugins="no" fi fi if test "$plugins" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define PLUGINS 1 _ACEOF plugindir="${libdir}/dopewars" PLUGINDIR='${plugindir}' PLUGINDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$PLUGINDIR"\" )` PLUGINDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$PLUGINDIR"\" )` cat >>confdefs.h <<_ACEOF #define PLUGINDIR "$PLUGINDIR" _ACEOF PLUGOBJS="" else PLUGLIBS="$SOUND_LIBS" fi if test "$plugins" = "yes"; then PLUGINS_TRUE= PLUGINS_FALSE='#' else PLUGINS_TRUE='#' PLUGINS_FALSE= fi network="no" if test "$CYGWIN" = "yes" ; then network="yes" else echo "$as_me:$LINENO: checking for library containing socket" >&5 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 if test "${ac_cv_search_socket+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS ac_cv_search_socket=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char socket (); int main () { socket (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_socket="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_socket" = no; then for ac_lib in socket; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char socket (); int main () { socket (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_socket="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 echo "${ECHO_T}$ac_cv_search_socket" >&6 if test "$ac_cv_search_socket" != no; then test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" fi echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 if test "${ac_cv_search_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS ac_cv_search_gethostbyname=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname (); int main () { gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_gethostbyname="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_gethostbyname" = no; then for ac_lib in nsl socket; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname (); int main () { gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_gethostbyname="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 if test "$ac_cv_search_gethostbyname" != no; then test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" fi for ac_func in socket gethostbyname select do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "$ac_cv_func_select" = "yes" ; then if test "$ac_cv_func_socket" = "yes" ; then if test "$ac_cv_func_gethostbyname" = "yes" ; then network="yes" fi fi fi fi # Check whether --enable-networking or --disable-networking was given. if test "${enable_networking+set}" = set; then enableval="$enable_networking" network="$enableval" fi; if test "$network" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define NETWORKING 1 _ACEOF fi # Check whether --enable-strict or --disable-strict was given. if test "${enable_strict+set}" = set; then enableval="$enable_strict" extrawarnings="$enableval" fi; if test -n "$GCC"; then if test "$extrawarnings" = "yes" ; then CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wcast-qual -Wcast-align -Wsign-compare -Waggregate-return -Wredundant-decls -Wnested-externs -Wunused" else CFLAGS="$CFLAGS -Wall" fi fi DPSCOREDIR='${localstatedir}' DPSCOREDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPSCOREDIR"\" )` DPSCOREDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPSCOREDIR"\" )` cat >>confdefs.h <<_ACEOF #define DPSCOREDIR "$DPSCOREDIR" _ACEOF DPDATADIR='${datadir}' DPDATADIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPDATADIR"\" )` DPDATADIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$DPDATADIR"\" )` cat >>confdefs.h <<_ACEOF #define DPDATADIR "$DPDATADIR" _ACEOF localedir=${datadir}/locale LOCALEDIR='${localedir}' LOCALEDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$LOCALEDIR"\" )` LOCALEDIR=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""$LOCALEDIR"\" )` cat >>confdefs.h <<_ACEOF #define LOCALEDIR "$LOCALEDIR" _ACEOF if test "$GUI_CLIENT" = "yes"; then GUI_CLIENT_TRUE= GUI_CLIENT_FALSE='#' else GUI_CLIENT_TRUE='#' GUI_CLIENT_FALSE= fi if test "$GUI_CLIENT" = "yes" ; then GUILIB="gui_client/libguiclient.a" fi if test "$CURSES_CLIENT" = "yes"; then CURSES_CLIENT_TRUE= CURSES_CLIENT_FALSE='#' else CURSES_CLIENT_TRUE='#' CURSES_CLIENT_FALSE= fi if test "$CURSES_CLIENT" = "yes" ; then CURSESLIB="curses_client/libcursesclient.a" fi if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes"; then GTKPORT_TRUE= GTKPORT_FALSE='#' else GTKPORT_TRUE='#' GTKPORT_FALSE= fi if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then GTKPORTLIB="gtkport/libgtkport.a" fi if test "$CURSES_CLIENT" = "yes"; then CURSESPORT_TRUE= CURSESPORT_FALSE='#' else CURSESPORT_TRUE='#' CURSESPORT_FALSE= fi if test "$CURSES_CLIENT" = "yes" ; then CURSESPORTLIB="cursesport/libcursesport.a" fi ac_config_files="$ac_config_files Makefile src/Makefile src/gui_client/Makefile src/curses_client/Makefile src/gtkport/Makefile src/cursesport/Makefile src/plugins/Makefile sounds/Makefile sounds/19.5degs/Makefile doc/Makefile doc/help/Makefile intl/Makefile dopewars.spec doc/dopewars.6 po/Makefile.in" ac_config_commands="$ac_config_commands default" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${ESD_TRUE}" && test -z "${ESD_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"ESD\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"ESD\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"SDL\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"SDL\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"PLUGINS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"PLUGINS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${GUI_CLIENT_TRUE}" && test -z "${GUI_CLIENT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"GUI_CLIENT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"GUI_CLIENT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${CURSES_CLIENT_TRUE}" && test -z "${CURSES_CLIENT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"CURSES_CLIENT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"CURSES_CLIENT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${GTKPORT_TRUE}" && test -z "${GTKPORT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"GTKPORT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"GTKPORT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${CURSESPORT_TRUE}" && test -z "${CURSESPORT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"CURSESPORT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"CURSESPORT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS section. # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/gui_client/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui_client/Makefile" ;; "src/curses_client/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/curses_client/Makefile" ;; "src/gtkport/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gtkport/Makefile" ;; "src/cursesport/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cursesport/Makefile" ;; "src/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;; "sounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;; "sounds/19.5degs/Makefile" ) CONFIG_FILES="$CONFIG_FILES sounds/19.5degs/Makefile" ;; "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "doc/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/help/Makefile" ;; "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; "dopewars.spec" ) CONFIG_FILES="$CONFIG_FILES dopewars.spec" ;; "doc/dopewars.6" ) CONFIG_FILES="$CONFIG_FILES doc/dopewars.6" ;; "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@CYGPATH_W@,$CYGPATH_W,;t t s,@PACKAGE@,$PACKAGE,;t t s,@VERSION@,$VERSION,;t t s,@ACLOCAL@,$ACLOCAL,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t s,@mkdir_p@,$mkdir_p,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t s,@AMTAR@,$AMTAR,;t t s,@am__tar@,$am__tar,;t t s,@am__untar@,$am__untar,;t t s,@build@,$build,;t t s,@build_cpu@,$build_cpu,;t t s,@build_vendor@,$build_vendor,;t t s,@build_os@,$build_os,;t t s,@host@,$host,;t t s,@host_cpu@,$host_cpu,;t t s,@host_vendor@,$host_vendor,;t t s,@host_os@,$host_os,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@DEPDIR@,$DEPDIR,;t t s,@am__include@,$am__include,;t t s,@am__quote@,$am__quote,;t t s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@EGREP@,$EGREP,;t t s,@LN_S@,$LN_S,;t t s,@ECHO@,$ECHO,;t t s,@AR@,$AR,;t t s,@ac_ct_AR@,$ac_ct_AR,;t t s,@RANLIB@,$RANLIB,;t t s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t s,@CPP@,$CPP,;t t s,@CXX@,$CXX,;t t s,@CXXFLAGS@,$CXXFLAGS,;t t s,@ac_ct_CXX@,$ac_ct_CXX,;t t s,@CXXDEPMODE@,$CXXDEPMODE,;t t s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t s,@CXXCPP@,$CXXCPP,;t t s,@F77@,$F77,;t t s,@FFLAGS@,$FFLAGS,;t t s,@ac_ct_F77@,$ac_ct_F77,;t t s,@LIBTOOL@,$LIBTOOL,;t t s,@PKG_CONFIG@,$PKG_CONFIG,;t t s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t s,@GLIB_LIBS@,$GLIB_LIBS,;t t s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t s,@WNDRES@,$WNDRES,;t t s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t s,@GTK_LIBS@,$GTK_LIBS,;t t s,@GTK_CONFIG@,$GTK_CONFIG,;t t s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t s,@ESD_CONFIG@,$ESD_CONFIG,;t t s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t s,@ESD_LIBS@,$ESD_LIBS,;t t s,@target@,$target,;t t s,@target_cpu@,$target_cpu,;t t s,@target_vendor@,$target_vendor,;t t s,@target_os@,$target_os,;t t s,@SDL_CONFIG@,$SDL_CONFIG,;t t s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t s,@SDL_LIBS@,$SDL_LIBS,;t t s,@ESD_TRUE@,$ESD_TRUE,;t t s,@ESD_FALSE@,$ESD_FALSE,;t t s,@SDL_TRUE@,$SDL_TRUE,;t t s,@SDL_FALSE@,$SDL_FALSE,;t t s,@ALLOCA@,$ALLOCA,;t t s,@GLIBC21@,$GLIBC21,;t t s,@LIBICONV@,$LIBICONV,;t t s,@USE_NLS@,$USE_NLS,;t t s,@MSGFMT@,$MSGFMT,;t t s,@GMSGFMT@,$GMSGFMT,;t t s,@XGETTEXT@,$XGETTEXT,;t t s,@INTLBISON@,$INTLBISON,;t t s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t s,@CATALOGS@,$CATALOGS,;t t s,@CATOBJEXT@,$CATOBJEXT,;t t s,@GMOFILES@,$GMOFILES,;t t s,@INTLLIBS@,$INTLLIBS,;t t s,@INTLOBJS@,$INTLOBJS,;t t s,@POFILES@,$POFILES,;t t s,@POSUB@,$POSUB,;t t s,@DATADIRNAME@,$DATADIRNAME,;t t s,@INSTOBJEXT@,$INSTOBJEXT,;t t s,@GENCAT@,$GENCAT,;t t s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@plugindir@,$plugindir,;t t s,@PLUGLIBS@,$PLUGLIBS,;t t s,@PLUGOBJS@,$PLUGOBJS,;t t s,@PLUGINS_TRUE@,$PLUGINS_TRUE,;t t s,@PLUGINS_FALSE@,$PLUGINS_FALSE,;t t s,@DPSCOREDIR@,$DPSCOREDIR,;t t s,@DPDATADIR@,$DPDATADIR,;t t s,@localedir@,$localedir,;t t s,@GUI_CLIENT_TRUE@,$GUI_CLIENT_TRUE,;t t s,@GUI_CLIENT_FALSE@,$GUI_CLIENT_FALSE,;t t s,@GUILIB@,$GUILIB,;t t s,@CURSES_CLIENT_TRUE@,$CURSES_CLIENT_TRUE,;t t s,@CURSES_CLIENT_FALSE@,$CURSES_CLIENT_FALSE,;t t s,@CURSESLIB@,$CURSESLIB,;t t s,@GTKPORT_TRUE@,$GTKPORT_TRUE,;t t s,@GTKPORT_FALSE@,$GTKPORT_FALSE,;t t s,@GTKPORTLIB@,$GTKPORTLIB,;t t s,@CURSESPORT_TRUE@,$CURSESPORT_TRUE,;t t s,@CURSESPORT_FALSE@,$CURSESPORT_FALSE,;t t s,@CURSESPORTLIB@,$CURSESPORTLIB,;t t s,@SOUND_CFLAGS@,$SOUND_CFLAGS,;t t s,@SOUND_LIBS@,$SOUND_LIBS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } # Do quote $f, to prevent DOS paths from being IFS'd. echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\_ACEOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\_ACEOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\_ACEOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if diff $ac_file $tmp/config.h >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'`/stamp-h$_am_stamp_count done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`(dirname "$mf") 2>/dev/null || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`(dirname "$file") 2>/dev/null || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; default-1 ) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" fi ;; esac done ;; default ) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile ;; esac done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi echo echo "dopewars has been configured as follows:" echo if test "$CYGWIN" = "yes" ; then echo "Building native Windows (Win32) version" else echo "Building Unix version" fi echo echo "CLIENTS" if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then echo " - No clients will be compiled (binary will be server/AI only)" else if test "$CURSES_CLIENT" = "yes" ; then echo " - Text-mode (curses) client" fi if test "$GUI_CLIENT" = "yes" ; then echo " - Graphical (GTK+ or Win32) client" fi fi echo if test "$network" = "yes" ; then echo "TCP/IP networking support enabled for multi-player games" echo echo "SERVER" if test "$GUI_SERVER" = "yes" ; then echo " - Graphical server" else echo " - Text-mode server" fi else echo "Networking support DISABLED; single-player mode only" fi if test "$GUI_SERVER" = "yes" -o "$GUI_CLIENT" = "yes" ; then if test "$HAVE_FIXED_GTK" = "no" ; then cat < "OK") for Windows client - RPM build/make install can now be run as non-superuser - Win32 install for current user/all users - Code cleanups 1.5.2 16-10-2001 - Slightly easier-to-use "run from fight" Jet dialog (avoids the crazy "windows pop up faster than you can close them" syndrome) - Support for HTTP proxies and authentication - SOCKS4 and SOCKS5 (user/password) support - French translation added by leonard - Boolean configuration variables (TRUE/FALSE) now supported - Many code cleanups - High score files now have a "proper" header, so that file(1) can identify them, and so the -f option cannot be used to force setgid-games dopewars to overwrite random files writeable by group "games" - use the -C option to convert old high score files to the new format - GNU long command line options now accepted on platforms with getopt_long - Simple installer now in place for Win32 systems 1.5.1 19-06-2001 - Improved logging in server via LogLevel and LogTimestamp variables - Metaserver (both client and server) moved to SourceForge - Icons (courtesy of Ocelot Mantis) and GNOME desktop entry added 1.5.0 13-05-2001 - Fixes for spurious tipoffs - High scores should now be written properly on Win32 systems - Various minor usability fixes on Win32 systems 1.5.0beta2 29-04-2001 - Various fixes for installation on BSD systems and Mac OS X - Multiplayer menus (spy on player, etc.) are now greyed out in GTK+ client when in single-player mode - Manpage (courtesy of Leon Breedt) added in doc/ - Fix for missing "bgetch" when configured with --disable-curses-client - Broken "trenchcoat" message fixed - Value of bought drugs now displayed in curses client - AI players now are at least partially functional - Fix for server segfault on invalid short network messages - dopewars no longer runs GTK+ setgid - "make install" installs dopewars as group "wheel" if "games" is unavailable 1.5.0beta1 08-04-2001 - Completely rewritten fighting code - Internationalization (i18n) support - Tense and case-sensitive translated strings handled via dpg_ analogues to glib's g_ string handling functions %P = price, %Txx or %txx = tense-sensitive string, %/.../ = comment (ignored) - Networking revamped - now uses nonblocking sockets to improve server responsiveness and to remove deadlocks (previously, any client could halt server by sending an unterminated message); "abilities" added to allow backwards-compatible protocol extensions; player IDs used rather than player names to save bandwidth, with newer client+server - Drug values now stored by server (e.g. "you have 5 Weed @ $600); sent only if DrugValue config. variable is set, and only to new clients (based on a patch by Pierre F) - Spying fixed (cannot now spy on a player until they accept your bitch) - Longer T>alk and P>age messages allowed in curses client - Minor bug fixes to configure options - configure script tweaked to fix networking under Solaris (and friends) (with thanks to Caolan McNamara) - Client-side code moved out of clientside.c and dopewars.c; client-specific code now placed in _client.c, while generic code is in message.c - GTK+ client added - Native "pointy-clicky" Win32 graphical client added (via GTK+ emulation) - GLib dependency introduced; string and list handling is taken care of now by GLib routines - Configuration files now handled by GLib's GScanner; "string lists" (of the format { "string1", "string2", "string3" } ) are now supported for configuration of subway sayings, "stopped to" and overheard songs - Timeouts bug fixed - MaxClients bug fixed 1.4.8 09-07-2000 - Several fixes to Win32 networking code - IdleTimeout and ConnectTimeout variables added, to allow the server to break connections that have been idle for too long, or take too long to (dis)connect, respectively - Servers now use UDP packets to communicate with metaserver, for a faster response to changing game conditions; the client, and older versions of the server, still use the "old" CGI script interface; MetaServer.Port variable split into .HttpPort and .UdpPort - MetaServer.Password can now be used with a blank MetaServer.LocalName (with the new metaserver interface only) in order to identify servers whose IPs are dynamic (but are otherwise the "same" server); this password must, again, be acquired from the metaserver maintainer - Metaserver now records current & maximum numbers of players, high scores, and last update time and uptime, for each server - Servers now re-register with metaserver when players join or leave, on receipt of a SIGUSR1 signal, and periodically - Metaserver list in client now lists uptime, and current/maximum numbers of players - Pid file maintained while in server mode (-r command line switch) - Names of the gun shop, pub, bank and loan shark can now be customised (GunShopName, RoughPubName, BankName and LoanSharkName) - When a player tries to run from a fight, running to the current location now takes them back to the fighting screen 1.4.7 14-01-2000 - Minor fixes to Win32 code - dopewars now uses autoconf to (hopefully) build properly on odd sytems such as HP-UX, and also to build "out of the box" under Cygwin (win32) - long long datatype used for all prices on platforms that support it - fixes to strtoprice and pricetostr code; replacement of code which uses printf("%ld") for prices with pricetostr calls (with thanks to Coolio) - "Leave" option added to Bank - Messages window is now only displayed for network games - Binary can be compiled without TCP/IP networking support (e.g. for use on standalone systems) by configuring with --disable-networking - Minor modification to config. file handling to allow variables to be set to null strings (use "Variable=") - Option to allow the "local" server name to be specified when registering with the metaserver - MetaServer.LocalName variable. Useful when the metaserver refuses to resolve your IP address to your "preferred" domain name or when connecting via an enforced web proxy. Email the metaserver maintainer, for an authentication password (MetaServer.Password) linked to your chosen domain name, to use this option successfully. 1.4.6 12-11-1999 - Bug fix for message window and "sew you up" prompt - Bug fix for server hanging in LoseBitch function - If player opts to play again, server selection method used last time is used again - Terminal resizing now handled properly - Port to Win32 (Windows 95,98,NT) console mode 1.4.5 21-10-1999 - Limited support now for terminals at sizes other than 80x24; but response to a resize during the program run doesn't work properly yet... - Minor improvements to AI players - Corrected website address displayed by client on connecting to a server of a different version - If player opts to play again, defaults to the name they used last time - Server now disconnects clients when their game ends (rather than waiting for them to politely disconnect) - this gets around the problem of particularly unresponsive clients getting killed and then sitting around in an "undead" state, able to be repeatedly killed by other players - Armed players cannot now "stand and take it" (why would you want to anyway?) in multiplayer fights - Client now offers to obtain the list of available servers from the metaserver, to select one to connect to - "Special" values (MetaServer), (Prompt) and (Single) (including the brackets) now accepted for the "Server" variable, which instruct the client to list the servers, prompt the user for a server, or play in single-player mode, rather than connecting immediately to a server - "MetaServer.Port" variable added to facilitate connection to the metaserver via a proxy server (with thanks to Tony Brown) - Signal handling cleaned up - Buffer overflow problem with ExtractWord() fixed (hopefully) (with thanks to Lamagra) - Command line option -S for running a "private" server (do not contact the metaserver) - Prices for spies and tipoffs can be customised; this information is not communicated properly between 1.4.5 and earlier versions, of course. In such a case, the game will still work properly, although the client may report erroneous spy and tipoff prices - Fixed dodgy "pricetostr" function - Bug fix for "Drop" command in single-player mode - Command line option -g for specifying a supplementary configuration file - FightTimeout variable fixed - it now actually does something... - GunShop, LoanShark, RoughPub and Bank variables corrected so that they take actual location numbers now - not (location-1). WARNING: this breaks old configuration files! - Full HTML documentation now provided - Prices of bitches for hire can now be configured - Bitch.MinPrice and Bitch.MaxPrice - Removed description of non-existent "die" command in server - Minor fixes in antique mode - Fix of NumDrug and NumGun processing (now allows more than the default number of drugs and guns) (with thanks to Matt Higgins) - "ConfigVerbose" option added to display extra feedback during config file processing (with thanks to Matt Higgins) 1.4.4 16-09-1999 - Full compatibility with 1.4.3 servers and clients maintained (although a warning is displayed to upgrade as soon as possible) - dopewars client now properly redraws the screen when Ctrl-L is pressed - Server output is now line-buffered by default for more sensible output of log files - L>ist bug in single player mode fixed - Number of game turns can now be configured with the "NumTurns" variable, or the game can be left to go on forever if it's set to zero - The shortcuts "k" and "m" are now supported in any input of numbers (e.g. money to put in the bank). So, for instance, typing 1.5m would be short for typing 1500000 (m=million, k=thousand) - Server now automatically contacts the dopewars metaserver (actually a CGI script), at bellatrix.pcl.ox.ac.uk, whenever it is brought up or down, to keep the list of servers on the dopewars webpage up to date. Aspects of the server's communication with the metaserver can be configured with the MetaServer.xxx variables - Names of the two police officers which chase you (originally Hardass and Bob) can now be configured with the variables "Names.Officer" and "Names.ReserveOfficer" respectively (provided by: Mike Meyer) - Several uses of the string constant "bitches" rather than the variable "Names.Bitches" have been spotted, and corrected (provided by: Mike Meyer) - "Sanitized" variable - if nonzero, removes drug references (random events, the cops, etc.) - obviously drug names need to also be changed in the config. file to complement this. Turns dopewars into a simple trading game (provided by: Mike Meyer) - Minor formatting cleanups to accommodate longer drug names on the screen neatly (provided by: Mike Meyer) 1.4.3 23-06-1999 - Bug with random offer of weed/paraquat fixed - L>ist command now offers list of logged-on players or high scores - "Out of time" message to explain why the game stops suddenly after 31 days - Bank is now a little more user-friendly - Messages announcing players leaving or joining the game now appear in the central "messages" window, rather than the main, bottom window - Clients should now behave properly after the server crashes (or they are pushed off the server) - i.e. they should revert to a single-player mode game - price_t type used for all prices - Server interactive interface is now greatly improved, complete with help screen - SO_REUSEADDR set so that server can be restarted immediately if it crashes - Facility to drop unwanted drugs, with the accompanying chance that you are caught by Officer Hardass and shot at - Fighting interface greatly improved:- - All player-player fighting now occurs in a specialised window. Players can switch between the standard "deal drugs" window and the fighting window with the D and F keys - Number of keystrokes required to shoot and acknowledge all the relevant messages now greatly reduced - Some indication is now given of the other player's status (number of bitches and guns) - Server now imposes timeouts on fights, so if an opponent does not return fire within a set time, a repeat attack is allowed - A bounty is paid out for killing an enemy bitch, and any guns/drugs they're carrying are passed on to the victor (if he/she is able to carry them) - A dead player's cash is appropriated by the victor of a fight - Handling of configuration files now greatly improved; the same options that are set here can also be set within the server as long as no players are connected. A large number of dopewars settings can be changed and customised from here. Customised settings will be used in single-player mode, and if dopewars is used as a server the settings will be propagated to any clients (of version 1.4.3 or higher) that connect. Not everything can be customised, but any remaining changes should be server-side only (and thus require no alteration to the clients). Options include:- - MaxClients option to limit the maximum number of players connected to the server - FightTimeout option to alter the length of the fight timeout - StartCash and StartDebt to change the default starting cash and debt of every player - Probabilities and toughness of Officer Hardass and his deputies can be "tweaked" - Numbers and names of locations, drugs and guns can be altered - The words used to denote "bitches", "guns" and "drugs" can be customised - Drugs can now be sorted by name or by price, in forwards or reverse order, with the DrugSortMethod option (can take values 1-4) 1.4.2 16-05-1999 - AI player improvements - Message structure changed to use less bandwidth and neater code - Now easier to break out of buy/sell drug prompts etc. (by pressing an 'invalid' key or ENTER) - Cleanup of player list - Cleanup after a player leaves the server; i.e. remove any references to their spies or tipoffs with other players - Added highlight of most recent score (for systems without working A_STANDOUT attribute) - Fixed bug which caused all street-bought (i.e. not at Dan's gun shop) guns to be Saturday Night Specials - Prevented badly-behaved clients from continuing to jet to new locations after their death - Added code to remove whitespace from name=value data read from configuration file, and defaulted from $HOME/.dopewars to /etc/dopewars - Added "helpful" messages when guns cannot be bought or sold in gun shop - Minor cleanups of player-player fighting messages 1.4.1b 28-04-1999 - segfault bug in server fixed 1.4.1a 28-04-1999 - Interim release before 1.4.2; a few bug fixes in antique mode 1.4.1 27-04-1999 - Fix of bug where paying off your debt would actually _increase_ it! Dunno how that one slipped through... I blame my beta testers... ;) 1.4.0 27-04-1999 - Fixed bug with server; server now detects if standard input has been closed properly (previously if its input was redirected from /dev/null it would keep trying to read from it, using 100% CPU. Oops.) - First release under GPL 1.3.8 26-04-1999 - Message structure changed; separator changed from : to ^ and extra field added to identify messages to AI players - Shorthand routines added for "printmessage" and "question" messages; SendPrintMessage and SendQuestion repectively - Display of status of fight with Officer Hardass cleaned up - All servers are now interactive; to run in background simply attach standard input and output to /dev/null - AI Player can now connect to server and perform simple actions - Bank and Loan Shark display cleaned up - Drug busts etc. now displayed all at once rather than singly - High scores now maintained by server - print_price replaced with FormatPrice - LOGF macro now used for all server log messages - Read in location of score files, server, port from ~/.dopewars - Fixed bugs in player-player fighting code 1.3.7 28-03-1999 - Proper support for tipoffs and spies - Discovered spies cannot now be shot if you don't have a gun... - Option added for computer players (non-functional however) 1.3.6 14-03-1999 - BreakoffCombat routine added to terminate fights cleanly when one player runs away from a fight (under 1.3.5 defending player would just hang when this was done...) 1.3.5 27-02-1999 - Basic support for meeting other players; E_MEETOTHER event added - Simple player-player fights allowed with the use of E_WAITFIGHT, E_DEFEND and E_ATTACK events - Two players with same name bug fixed - "question" message extended; server now passes a list of allowed responses in the first "word" of message data 1.3.4 25-02-1999 - Client and virtual server now maintain completely separate lists of players - GunShop now works properly; user can actually see what's going on! 1.3.3 23-02-1999 - Complete implementation of fighting with Officer Hardass - E_DOCTOR event added to handle question "do you want a doctor to sew you up?" after killing Hardass - Clients now handle list and endlist messages properly to display lists of current players on starting a game - Minor bugfix to ensure game actually ends after the 31st - Client now wipes price list on each jet to stop old prices flashing up between messages from the server 1.3.2 22-02-1999 - "subwayflash" message added - OfferObject/RandomOffer split into separate event from OfficerHardass - "smoke paraquat" also given separate event (E_WEED) and implemented - Bank/LoanShark bugfixes - Bugfix for drug price generation code - Partial implementation of fighting with Officer Hardass 1.3.1 21-02-1999 - Drugs can now be bought and sold - RandomOffer and OfferObject routines added to handle server-based random events ("a friend gives you..." etc.) and object offers ("do you want to buy a..." etc.) although "smoke paraquat?" doesn't work properly - GunShop / LoanShark / Bank / Pub all handled by the server now - Some networking bugfixes 1.3.0 20-02-1999 - Development series (moving decision-making from client to server to improve multi-player games and cut down on cheating, in preparation for an OpenSource release) - Simple implementation of a "virtual server" to handle the server-side stuff within a single-player game - Splitting up of Dopewars into dopewars.c (init. code and utils) message.c (message-handling code) serverside.c (server-side code) clientside.c (client-side code) - Drug prices now generated by server, not client - so synchronisation of turns (and drug prices) should be easy to implement in the future - Minimal functionality - networking backbone only... 1.2.0 13-02-1999 - Stable release; some bugs in fighting code cleaned up 1.1.26 13-02-1999 - "PolicePresence" member is now read - when a fight is started, there is a finite chance (varies from location to location) that the perpetrator will get attacked by the police - MinDrug and MaxDrug members added to Location struct - some locations may have a smaller range of drugs on offer than others 1.1.25 11-02-1999 - Added an "Inventory" struct to keep track of players' belongings and anything dropped during a fight; winner of a fight now gets whatever the other player dropped (guns and/or drugs) 1.1.24 9-02-1999 - Put in code to "finish" fights properly when one player escapes - Attacking player is now told whether they hit the other player or not when in a fight 1.1.23 3-02-1999 - "Jet" command replaced with "Run" when in a fight - "PolicePresence" member added to Location struct - GunShop bug fixed (guns were taking up no space) 1.1.22 30-01-1999 - Implemented very simple "shoot at another dealers" code; players, on arriving at a location where another dealer already is, can choose to attack (if they have any guns). The attacked player can then choose to return fire or run for it... 1.1.21 29-01-1999 - Added support for the "spy on another dealer" bitch errand 1.1.20 29-01-1999 - Added support for the "tip off another dealer to the cops" bitch errand dopewars-1.5.12/src/0000777001565000007070000000000010355323331011223 500000000000000dopewars-1.5.12/src/serverside.c0000644001565000007070000033604310355322765013501 00000000000000/************************************************************************ * serverside.c Handles the server side of dopewars * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include /* For size_t etc. */ #include #ifdef CYGWIN #include /* For datatypes such as BOOL */ #include /* For network functions */ #include /* For getpid */ #else #include /* For struct sockaddr etc. */ #include /* For struct sockaddr_in etc. */ #include /* For struct sockaddr_un */ #include /* For socklen_t */ #endif /* CYGWIN */ #ifdef HAVE_UNISTD_H #include #endif #include #include #include #include #include "configfile.h" /* For UpdateConfigFile */ #include "dopewars.h" #include "log.h" #include "message.h" #include "network.h" #include "nls.h" #include "serverside.h" #include "tstring.h" #include "util.h" #ifdef GUI_SERVER #include "gtkport/gtkport.h" #endif static const price_t MINTRENCHPRICE = 200, MAXTRENCHPRICE = 300; #define ESCAPE 0 #define DEFECT 1 #define SHOT 2 #define NUMDISCOVER 3 char *Discover[NUMDISCOVER] = { /* Things that can "happen" to your spies - look for strings containing * "The spy %s!" to see how these strings are used. */ N_("escaped"), N_("defected"), N_("was shot") }; /* The two keys that are valid answers to the Attack/Evade question. If * you wish to translate them, do so in the same order as they given here. * You will also need to translate the answers given by the clients. */ static char *attackquestiontr = N_("AE"); /* If we haven't talked to the metaserver for 3 hours, then remind it that * we still exist, so we don't get wiped from the list of active servers */ #define METAUPDATETIME (10800) /* Don't report players logging in/out to the metaserver more frequently * than once every minute (so as not to overload the metaserver, or slow * down our own server). */ #define METAMINTIME (60) int TerminateRequest, ReregisterRequest, RelogRequest; int MetaUpdateTimeout; int MetaMinTimeout; gboolean WantQuit = FALSE; #ifdef CYGWIN static SERVICE_STATUS_HANDLE scHandle; #endif /* Do we want to update the player details on the metaserver when the * timeout expires? */ gboolean MetaPlayerPending = FALSE; GSList *FirstServer = NULL; #ifdef NETWORKING static GScanner *Scanner; /* Data waiting to be sent to/read from the metaserver */ HttpConnection *MetaConn = NULL; #endif /* Handle to the high score file */ static FILE *ScoreFP = NULL; /* Pointer to the filename of a pid file (if non-NULL) */ char *PidFile = NULL; static char HelpText[] = { /* Help on various general server commands */ N_("dopewars server version %s commands and settings\n\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the " "named player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\nValid variables are listed below:-\n\n") }; typedef enum _OfferForce { NOFORCE, FORCECOPS, FORCEBITCH } OfferForce; int SendSingleHighScore(Player *Play, struct HISCORE *Score, int ind, gboolean Bold); static int SendCopOffer(Player *To, OfferForce Force); static int OfferObject(Player *To, gboolean ForceBitch); static gboolean HighScoreWrite(FILE *fp, struct HISCORE *MultiScore, struct HISCORE *AntiqueScore); #ifdef GUI_SERVER static void GuiHandleMeta(gpointer data, gint socket, GdkInputCondition condition); static void MetaSocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow); #endif #ifdef NETWORKING static gboolean MetaConnectError(HttpConnection *conn) { GString *errstr; if (!IsHttpError(conn)) return FALSE; errstr = g_string_new(""); g_string_assign_error(errstr, MetaConn->NetBuf.error); dopelog(1, LF_SERVER, _("Failed to connect to metaserver at %s:%u (%s)"), MetaServer.Name, MetaServer.Port, errstr->str); g_string_free(errstr, TRUE); return TRUE; } static void ServerHttpAuth(HttpConnection *conn, gboolean proxyauth, gchar *realm, gpointer data) { gchar *user = NULL, *password = NULL; if (proxyauth) { if (MetaServer.proxyuser[0] && MetaServer.proxypassword[0]) { user = MetaServer.proxyuser; password = MetaServer.proxypassword; dopelog(3, LF_SERVER, _("Using MetaServer.Proxy.User and " "MetaServer.Proxy.Password for HTTP proxy authentication")); } else { dopelog(0, LF_SERVER, _("Unable to authenticate with HTTP proxy; please " "set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables")); } } else { if (MetaServer.authuser[0] && MetaServer.authpassword[0]) { user = MetaServer.authuser; password = MetaServer.authpassword; dopelog(3, LF_SERVER, _("Using MetaServer.Auth.User and MetaServer.Auth.Password " "for HTTP authentication")); } else { dopelog(0, LF_SERVER, _("Unable to authenticate with HTTP server; please set " "MetaServer.Auth.User and " "MetaServer.Auth.Password variables")); } } SetHttpAuthentication(conn, proxyauth, user, password); } static void ServerNetBufAuth(NetworkBuffer *netbuf, gpointer data) { dopelog(3, LF_SERVER, _("Using Socks.Auth.User and Socks.Auth.Password " "for SOCKS5 authentication")); SendSocks5UserPasswd(netbuf, Socks.authuser, Socks.authpassword); } #endif /* * Sends server details to the metaserver, if specified. If "Up" is * TRUE, informs the metaserver that the server is now accepting * connections - otherwise tells the metaserver that this server is * about to go down. If "SendData" is TRUE, then also sends game * data (e.g. scores) to the metaserver. If "RespectTimeout" is TRUE * then the update is delayed if a previous update happened too * recently. If networking is disabled, this function does nothing. */ void RegisterWithMetaServer(gboolean Up, gboolean SendData, gboolean RespectTimeout) { #if NETWORKING struct HISCORE MultiScore[NUMHISCORE], AntiqueScore[NUMHISCORE]; GString *headers, *body; gchar *prstr; gboolean retval; int i; if (!MetaServer.Active || WantQuit || !Server) { return; } if (MetaMinTimeout > time(NULL) && RespectTimeout) { dopelog(3, LF_SERVER, _("Attempt to connect to metaserver too frequently " "- waiting for next timeout")); MetaPlayerPending = TRUE; return; } /* If the previous connect hung for so long that it's still active, then * break the connection before we start a new one */ if (MetaConn) CloseHttpConnection(MetaConn); headers = g_string_new(""); body = g_string_new(""); g_string_assign(body, "output=text&"); g_string_sprintfa(body, "up=%d&port=%d&version=", Up ? 1 : 0, Port); AddURLEnc(body, VERSION); g_string_sprintfa(body, "&players=%d&maxplay=%d&comment=", CountPlayers(FirstServer), MaxClients); AddURLEnc(body, MetaServer.Comment); if (MetaServer.LocalName[0]) { g_string_append(body, "&hostname="); AddURLEnc(body, MetaServer.LocalName); } if (MetaServer.Password[0]) { g_string_append(body, "&password="); AddURLEnc(body, MetaServer.Password); } if (SendData && HighScoreRead(ScoreFP, MultiScore, AntiqueScore, TRUE)) { for (i = 0; i < NUMHISCORE; i++) { if (MultiScore[i].Name && MultiScore[i].Name[0]) { g_string_sprintfa(body, "&nm[%d]=", i); AddURLEnc(body, MultiScore[i].Name); g_string_sprintfa(body, "&dt[%d]=", i); AddURLEnc(body, MultiScore[i].Time); g_string_sprintfa(body, "&st[%d]=%s&sc[%d]=", i, MultiScore[i].Dead ? "dead" : "alive", i); AddURLEnc(body, prstr = FormatPrice(MultiScore[i].Money)); g_free(prstr); } } } g_string_sprintf(headers, "Content-Type: application/x-www-form-urlencoded\n" "Content-Length: %d", (int)strlen(body->str)); retval = OpenHttpConnection(&MetaConn, MetaServer.Name, MetaServer.Port, MetaServer.ProxyName, MetaServer.ProxyPort, BindAddress, UseSocks && MetaServer.UseSocks ? &Socks : NULL, "POST", MetaServer.Path, headers->str, body->str); g_string_free(headers, TRUE); g_string_free(body, TRUE); if (retval) { dopelog(2, LF_SERVER, _("Waiting for connect to metaserver at %s:%u..."), MetaServer.Name, MetaServer.Port); } else { MetaConnectError(MetaConn); CloseHttpConnection(MetaConn); MetaConn = NULL; return; } SetHttpAuthFunc(MetaConn, ServerHttpAuth, NULL); if (Socks.authuser && Socks.authuser[0] && Socks.authpassword && Socks.authpassword[0]) { SetNetworkBufferUserPasswdFunc(&MetaConn->NetBuf, ServerNetBufAuth, NULL); } #ifdef GUI_SERVER SetNetworkBufferCallBack(&MetaConn->NetBuf, MetaSocketStatus, NULL); #endif MetaPlayerPending = FALSE; MetaUpdateTimeout = time(NULL) + METAUPDATETIME; MetaMinTimeout = time(NULL) + METAMINTIME; #endif /* NETWORKING */ } #ifdef NETWORKING void HandleServerPlayer(Player *Play) { gchar *buf; gboolean MessageRead = FALSE; while ((buf = GetWaitingPlayerMessage(Play)) != NULL) { MessageRead = TRUE; HandleServerMessage(buf, Play); g_free(buf); } /* Reset the idle timeout (if necessary) */ if (MessageRead && IdleTimeout) { Play->IdleTimeout = time(NULL) + (time_t) IdleTimeout; } } #endif /* NETWORKING */ /* * Sends details (name, ID) about player "Play" to player "To", using * message code "Code". */ void SendPlayerDetails(Player *Play, Player *To, MsgCode Code) { GString *text; text = g_string_new(GetPlayerName(Play)); if (HaveAbility(To, A_PLAYERID)) { g_string_sprintfa(text, "^%d", Play->ID); } SendServerMessage(NULL, C_NONE, Code, To, text->str); g_string_free(text, TRUE); } /* * Checks the version of the client that has connected, and sends a * warning message if it's old. */ void RemoteVersionCheck(Player *Play) { /* Client didn't send a C_ABILITIES message at all, so is either broken * or is version 1.4.8 or earlier. */ if (Play->Abil.RemoteNum == 0) { SendPrintMessage(NULL, C_VERSIONCHECK, Play, _("You appear to be using an extremely old (version 1.4.x) client.^" "While this will probably work, many of the newer features^" "will be unsupported. Get the latest version from the^" "dopewars website, http://dopewars.sourceforge.net/.")); /* The client has a smaller value of A_NUM; this means that not only does * it not support some features, it doesn't even know they might exist. */ } else if (Play->Abil.RemoteNum < A_NUM) { SendPrintMessage(NULL, C_VERSIONCHECK, Play, _("Warning: your client is too old to support all of this^" "server's features. For the full \"experience\", get^" "the latest version of dopewars from the^" "website, http://dopewars.sourceforge.net/.")); } /* Otherwise, the client is either the same version as the server, or * it's newer. Both should be OK, so do nothing. */ } /* * Given a message "buf", from player "Play", performs processing and * sends suitable replies. */ void HandleServerMessage(gchar *buf, Player *Play) { Player *To, *tmp, *pt; GSList *list; char *Data; AICode AI; MsgCode Code; gchar *text; DopeEntry NewEntry; int i; price_t money; if (ProcessMessage(buf, Play, &To, &AI, &Code, &Data, FirstServer) == -1) { g_warning("Bad message"); return; } switch (Code) { case C_MSGTO: if (Network) { dopelog(3, LF_SERVER, "%s->%s: %s", GetPlayerName(Play), GetPlayerName(To), Data); } SendServerMessage(Play, AI, Code, To, Data); break; case C_ABILITIES: ReceiveAbilities(Play, Data); break; case C_NAME: StripTerminators(Data); pt = GetPlayerByName(Data, FirstServer); if (pt && pt != Play) { if (ConnectTimeout) { Play->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } SendServerMessage(NULL, C_NONE, C_NEWNAME, Play, NULL); } else if (strlen(GetPlayerName(Play)) == 0 && Data[0]) { if (CountPlayers(FirstServer) < MaxClients || !Network) { RemoteVersionCheck(Play); SendAbilities(Play); CombineAbilities(Play); SendInitialData(Play); SendMiscData(Play); SetPlayerName(Play, Data); for (list = FirstServer; list; list = g_slist_next(list)) { pt = (Player *)list->data; if (pt != Play && IsConnectedPlayer(pt) && !IsCop(pt)) { SendPlayerDetails(pt, Play, C_LIST); } } if (ServerMOTD && ServerMOTD[0]) { SendPrintMessage(NULL, C_MOTD, Play, ServerMOTD); } SendServerMessage(NULL, C_NONE, C_ENDLIST, Play, NULL); RegisterWithMetaServer(TRUE, FALSE, TRUE); Play->ConnectTimeout = 0; if (Network) { dopelog(2, LF_SERVER, _("%s joins the game!"), GetPlayerName(Play)); } for (list = FirstServer; list; list = g_slist_next(list)) { pt = (Player *)list->data; if (IsConnectedPlayer(pt) && pt != Play) { SendPlayerDetails(Play, pt, C_JOIN); } } Play->EventNum = E_ARRIVE; SendPlayerData(Play); SendEvent(Play); } else { /* Message displayed in the server when too many players try to * connect */ dopelog(2, LF_SERVER, _("MaxClients (%d) exceeded - dropping connection"), MaxClients); if (MaxClients == 1) { text = g_strdup_printf( /* Message sent to a player if the * server is full */ _("Sorry, but this server has a limit of " "1 player, which has been reached.^" "Please try connecting again later.")); } else { text = g_strdup_printf( /* Message sent to a player if the * server is full */ _("Sorry, but this server has a limit of " "%d players, which has been reached.^" "Please try connecting again later."), MaxClients); } SendServerMessage(NULL, C_NONE, C_PRINTMESSAGE, Play, text); g_free(text); /* Make sure they do actually disconnect, eventually! */ if (ConnectTimeout) { Play->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } } } else { /* A player changed their name during the game (unusual, and not * really properly supported anyway) - notify all players of the * change */ dopelog(2, LF_SERVER, _("%s will now be known as %s"), GetPlayerName(Play), Data); BroadcastToClients(C_NONE, C_RENAME, Data, Play, Play); SetPlayerName(Play, Data); } break; case C_WANTQUIT: if (Play->EventNum != E_FINISH) { FinishGame(Play, NULL); } break; case C_REQUESTJET: i = atoi(Data); if (Play->EventNum == E_FIGHT || Play->EventNum == E_FIGHTASK) { if (CanRunHere(Play)) { break; } else { RunFromCombat(Play, i); } if (Play->EventNum == E_WAITDONE) { Play->EventNum = Play->ResyncNum; SendEvent(Play); } } if (NumTurns > 0 && Play->Turn >= NumTurns && Play->EventNum != E_FINISH) { /* Message displayed when a player reaches their maximum number of * turns */ FinishGame(Play, _("Your dealing time is up...")); } else if (i != Play->IsAt && (NumTurns == 0 || Play->Turn < NumTurns) && Play->EventNum == E_NONE && Play->Health > 0) { dopelog(4, LF_SERVER, "%s jets to %s", GetPlayerName(Play), Location[i].Name); Play->IsAt = i; Play->Turn++; g_date_add_days(Play->date, 1); Play->Debt = Play->Debt * (DebtInterest + 100) / 100; Play->Debt = MAX(Play->Debt, 0); Play->Bank = Play->Bank * (BankInterest + 100) / 100; Play->Bank = MAX(Play->Bank, 0); SendPlayerData(Play); Play->EventNum = E_SUBWAY; SendEvent(Play); } else { /* A player has tried to jet to a new location, but we don't allow * them to. (e.g. they're still fighting someone, or they're * supposed to be dead) */ dopelog(3, LF_SERVER, _("%s: DENIED jet to %s"), GetPlayerName(Play), Location[i].Name); } break; case C_REQUESTSCORE: SendHighScores(Play, FALSE, NULL); break; case C_CONTACTSPY: for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; i = GetListEntry(&(tmp->SpyList), Play); if (tmp != Play && i >= 0 && tmp->SpyList.Data[i].Turns >= 0) { SendSpyReport(Play, tmp); } } break; case C_DEPOSIT: money = strtoprice(Data); if (Play->EventNum == E_BANK && Play->Bank + money >= 0 && Play->Cash - money >= 0) { Play->Bank += money; Play->Cash -= money; SendPlayerData(Play); } break; case C_PAYLOAN: money = strtoprice(Data); if (Play->EventNum == E_LOANSHARK && money > 0 && Play->Debt - money >= 0 && Play->Cash - money >= 0) { Play->Debt -= money; Play->Cash -= money; SendPlayerData(Play); } break; case C_BUYOBJECT: BuyObject(Play, Data); break; case C_FIGHTACT: if (Data[0] == 'R') RunFromCombat(Play, -1); else Fire(Play); break; case C_ANSWER: HandleAnswer(Play, To, Data); break; case C_DONE: if (Play->EventNum == E_WAITDONE) { Play->EventNum = Play->ResyncNum; SendEvent(Play); } else if (Play->EventNum != E_NONE && Play->EventNum < E_OUTOFSYNC) { Play->EventNum++; SendEvent(Play); } break; case C_SPYON: if (Play->Cash >= Prices.Spy) { dopelog(3, LF_SERVER, _("%s now spying on %s"), GetPlayerName(Play), GetPlayerName(To)); Play->Cash -= Prices.Spy; LoseBitch(Play, NULL, NULL); NewEntry.Play = Play; NewEntry.Turns = -1; AddListEntry(&(To->SpyList), &NewEntry); SendPlayerData(Play); } else { dopelog(2, LF_SERVER, _("%s spy on %s: DENIED"), GetPlayerName(Play), GetPlayerName(To)); } break; case C_TIPOFF: if (Play->Cash >= Prices.Tipoff) { dopelog(3, LF_SERVER, _("%s tipped off the cops to %s"), GetPlayerName(Play), GetPlayerName(To)); Play->Cash -= Prices.Tipoff; LoseBitch(Play, NULL, NULL); NewEntry.Play = Play; NewEntry.Turns = 0; AddListEntry(&(To->TipList), &NewEntry); SendPlayerData(Play); } else { g_warning(_("%s tipoff about %s: DENIED"), GetPlayerName(Play), GetPlayerName(To)); } break; case C_SACKBITCH: if (Play->Bitches.Carried > 0) { LoseBitch(Play, NULL, NULL); SendPlayerData(Play); } break; case C_MSG: if (Network) dopelog(3, LF_SERVER, "%s: %s", GetPlayerName(Play), Data); BroadcastToClients(C_NONE, C_MSG, Data, Play, Play); break; default: dopelog(0, LF_SERVER, _("Unknown message: %s:%c:%s:%s"), GetPlayerName(Play), Code, GetPlayerName(To), Data); break; } } /* * Notifies all clients that player "Play" has left the game and * cleans up after them if necessary. */ void ClientLeftServer(Player *Play) { Player *tmp; GSList *list; if (!IsConnectedPlayer(Play)) return; if (Play->EventNum == E_FIGHT || Play->EventNum == E_FIGHTASK) { WithdrawFromCombat(Play); } for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (tmp != Play) { RemoveAllEntries(&(tmp->TipList), Play); RemoveAllEntries(&(tmp->SpyList), Play); } } BroadcastToClients(C_NONE, C_LEAVE, GetPlayerName(Play), Play, Play); } /* * Closes down the server and frees up associated handles and memory. */ void CleanUpServer() { while (FirstServer) { FirstServer = RemovePlayer((Player *)FirstServer->data, FirstServer); } #if NETWORKING if (Server) CloseSocket(ListenSock); #endif } /* * Responds to a SIGUSR1 signal, and requests the main event loop to * reregister the server with the dopewars metaserver. */ void ReregisterHandle(int sig) { ReregisterRequest = 1; } /* * Responds to a SIGHUP signal, and requests the main event loop to * close and then reopen the log file (if any). */ void RelogHandle(int sig) { RelogRequest = 1; } /* * Traps an attempt by the user to send dopewars a SIGTERM or SIGINT * (e.g. pressing Ctrl-C) and signals for a "nice" shutdown. Restores * the default signal action (to terminate without cleanup) so that * the user can still close the program easily if this cleanup code * then causes problems or long delays. */ void BreakHandle(int sig) { struct sigaction sact; TerminateRequest = 1; sact.sa_handler = SIG_DFL; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); sigaction(SIGTERM, &sact, NULL); sigaction(SIGINT, &sact, NULL); } /* * Prints the server help screen to the given file pointer. */ void PrintHelpTo(FILE *fp) { int i; GString *VarName; VarName = g_string_new(""); fprintf(fp, _(HelpText), VERSION); for (i = 0; i < NUMGLOB; i++) { if (Globals[i].NameStruct[0]) { g_string_sprintf(VarName, "%s%s.%s", Globals[i].NameStruct, Globals[i].StructListPt ? "[x]" : "", Globals[i].Name); } else { g_string_assign(VarName, Globals[i].Name); } fprintf(fp, "%-26s %s\n", VarName->str, _(Globals[i].Help)); } fputs("\n\n", fp); g_string_free(VarName, TRUE); } /* * Displays a simple help screen listing the server commands and options. */ void ServerHelp(void) { int i; GString *VarName; VarName = g_string_new(""); g_print(_(HelpText), VERSION); for (i = 0; i < NUMGLOB; i++) { if (Globals[i].NameStruct[0]) { g_string_sprintf(VarName, "%s%s.%s", Globals[i].NameStruct, Globals[i].StructListPt ? "[x]" : "", Globals[i].Name); } else { g_string_assign(VarName, Globals[i].Name); } g_print("%-26s\t%s\n", VarName->str, _(Globals[i].Help)); } g_string_free(VarName, TRUE); } #if NETWORKING static NetworkBuffer *reply_netbuf; static void ServerReply(const gchar *msg) { int msglen; gchar *msgcp; if (reply_netbuf) { msglen = strlen(msg); while (msglen > 0 && msg[msglen - 1] == '\n') msglen--; if (msglen > 0) { msgcp = g_strndup(msg, msglen); QueueMessageForSend(reply_netbuf, msgcp); g_free(msgcp); } } else { g_print("%s", msg); } } /* * Creates a pid file (if "PidFile" is non-NULL) and writes the process * ID into it. */ void CreatePidFile(void) { FILE *fp; if (!PidFile) return; fp = fopen(PidFile, "w"); if (fp) { dopelog(1, LF_SERVER, _("Maintaining pid file %s"), PidFile); fprintf(fp, "%ld\n", (long)getpid()); fclose(fp); chmod(PidFile, S_IREAD | S_IWRITE); } else { gchar *OpenError = ErrStrFromErrno(errno); g_warning(_("Cannot create pid file %s: %s"), PidFile, OpenError); g_free(OpenError); } } /* * Removes the previously-created pid file "PidFile". */ void RemovePidFile(void) { if (PidFile) unlink(PidFile); } static gboolean StartServer(void) { LastError *sockerr = NULL; GString *errstr; #ifndef CYGWIN struct sigaction sact; #endif if (!CheckHighScoreFileConfig()) return FALSE; Scanner = g_scanner_new(&ScannerConfig); Scanner->msg_handler = ScannerErrorHandler; Scanner->input_name = "(stdin)"; CreatePidFile(); /* Make the output line-buffered, so that the log file (if used) is * updated regularly */ fflush(stdout); #ifdef SETVBUF_REVERSED /* 2nd and 3rd arguments are reversed on * some systems */ setvbuf(stdout, _IOLBF, (char *)NULL, 0); #else setvbuf(stdout, (char *)NULL, _IOLBF, 0); #endif Network = Server = TRUE; FirstServer = NULL; ClientMessageHandlerPt = NULL; ListenSock = CreateTCPSocket(&sockerr); if (ListenSock == SOCKET_ERROR) { errstr = g_string_new(""); g_string_assign_error(errstr, sockerr); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot create server (listening) socket (%s) Aborting."), errstr->str); g_string_free(errstr, TRUE); FreeError(sockerr); exit(EXIT_FAILURE); } /* This doesn't seem to work properly under Win32 */ #ifndef CYGWIN SetReuse(ListenSock); #endif SetBlocking(ListenSock, FALSE); if (!BindTCPSocket(ListenSock, BindAddress, Port, &sockerr)) { errstr = g_string_new(""); g_string_assign_error(errstr, sockerr); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot bind to port %u (%s) Aborting."), Port, errstr->str); g_string_free(errstr, TRUE); FreeError(sockerr); exit(EXIT_FAILURE); } if (listen(ListenSock, 10) == SOCKET_ERROR) { g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot listen to network socket. Aborting.")); exit(EXIT_FAILURE); } /* Initial startup message for the server */ dopelog(0, LF_SERVER, _("dopewars server version %s ready and waiting for " "connections on port %d."), VERSION, Port); MetaUpdateTimeout = MetaMinTimeout = 0; TerminateRequest = ReregisterRequest = RelogRequest = 0; #if !CYGWIN sact.sa_handler = ReregisterHandle; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); if (sigaction(SIGUSR1, &sact, NULL) == -1) { /* Warning messages displayed if we fail to trap various signals */ g_warning(_("Cannot install SIGUSR1 interrupt handler!")); } sact.sa_handler = RelogHandle; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); if (sigaction(SIGHUP, &sact, NULL) == -1) { g_warning(_("Cannot install SIGHUP interrupt handler!")); } sact.sa_handler = BreakHandle; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); if (sigaction(SIGINT, &sact, NULL) == -1) { g_warning(_("Cannot install SIGINT interrupt handler!")); } if (sigaction(SIGTERM, &sact, NULL) == -1) { g_warning(_("Cannot install SIGTERM interrupt handler!")); } sact.sa_handler = SIG_IGN; sact.sa_flags = 0; if (sigaction(SIGPIPE, &sact, NULL) == -1) { g_warning(_("Cannot install pipe handler!")); } #endif RegisterWithMetaServer(TRUE, TRUE, FALSE); return TRUE; } /* * Begin the process of shutting down the server. In order to do this, * we need to log out all of the currently connected players, and tell * the metaserver that we're shutting down. We only shut down properly * once all of these messages have been completely sent and * acknowledged. (Of course, this can be overridden by a SIGINT or * similar in the case of unresponsive players.) */ void RequestServerShutdown(void) { RegisterWithMetaServer(FALSE, FALSE, FALSE); BroadcastToClients(C_NONE, C_QUIT, NULL, NULL, NULL); WantQuit = TRUE; } /* * Returns TRUE if the actions initiated by RequestServerShutdown() * have been successfully completed, such that we can shut down the * server properly now. */ gboolean IsServerShutdown(void) { return (WantQuit && !FirstServer && !MetaConn); } static GPrintFunc StartServerReply(NetworkBuffer *netbuf) { reply_netbuf = netbuf; if (netbuf) return g_set_print_handler(ServerReply); else return NULL; } static void FinishServerReply(GPrintFunc oldprint) { if (oldprint) g_set_print_handler(oldprint); } static void ServerSaveConfigFile(const char *string) { gchar *file = NULL; if (!string) { file = GetLocalConfigFile(); string = file; } if (UpdateConfigFile(file, FALSE)) { g_print(_("Configuration file saved OK as %s\n"), string); } g_free(file); } static void HandleServerCommand(char *string, NetworkBuffer *netbuf, gboolean ForceUTF8) { GSList *list; Player *tmp; GPrintFunc oldprint; Converter *conv; oldprint = StartServerReply(netbuf); conv = Conv_New(); if (ForceUTF8) { Conv_SetCodeset(conv, "UTF-8"); } g_scanner_input_text(Scanner, string, strlen(string)); if (!ParseNextConfig(Scanner, conv, NULL, TRUE)) { if (g_strcasecmp(string, "help") == 0 || g_strcasecmp(string, "h") == 0 || strcmp(string, "?") == 0) { ServerHelp(); } else if (g_strcasecmp(string, "quit") == 0) { RequestServerShutdown(); } else if (g_strncasecmp(string, "msg:", 4) == 0) { BroadcastToClients(C_NONE, C_MSG, string + 4, NULL, NULL); } else if (g_strncasecmp(string, "save ", 5) == 0) { ServerSaveConfigFile(string + 5); } else if (g_strcasecmp(string, "save") == 0) { ServerSaveConfigFile(NULL); } else if (g_strcasecmp(string, "list") == 0) { if (FirstServer) { g_print(_("Users currently logged on:-\n")); for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (!IsCop(tmp)) { g_print("%s\n", GetPlayerName(tmp)); } } } else g_print(_("No users currently logged on!\n")); } else if (g_strncasecmp(string, "push ", 5) == 0) { tmp = GetPlayerByName(string + 5, FirstServer); if (tmp) { g_print(_("Pushing %s\n"), GetPlayerName(tmp)); SendServerMessage(NULL, C_NONE, C_PUSH, tmp, NULL); } else g_print(_("No such user!\n")); } else if (g_strncasecmp(string, "kill ", 5) == 0) { tmp = GetPlayerByName(string + 5, FirstServer); if (tmp) { /* The named user has been removed from the server following * a "kill" command */ g_print(_("%s killed\n"), GetPlayerName(tmp)); BroadcastToClients(C_NONE, C_KILL, GetPlayerName(tmp), tmp, (Player *)FirstServer->data); FirstServer = RemovePlayer(tmp, FirstServer); } else g_print(_("No such user!\n")); } else { g_print(_("Unknown command - try \"help\" for help...\n")); } } Conv_Free(conv); FinishServerReply(oldprint); } Player *HandleNewConnection(void) { int cadsize; int ClientSock; struct sockaddr_in ClientAddr; Player *tmp; cadsize = sizeof(struct sockaddr); if ((ClientSock = accept(ListenSock, (struct sockaddr *)&ClientAddr, &cadsize)) == -1) { perror("accept socket"); exit(EXIT_FAILURE); } dopelog(2, LF_SERVER, _("got connection from %s"), inet_ntoa(ClientAddr.sin_addr)); tmp = g_new(Player, 1); FirstServer = AddPlayer(ClientSock, tmp, FirstServer); if (ConnectTimeout) { tmp->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } return tmp; } void StopServer() { dopelog(0, LF_SERVER, _("dopewars server terminating.")); g_scanner_destroy(Scanner); CleanUpServer(); RemovePidFile(); } void RemovePlayerFromServer(Player *Play) { if (!WantQuit && strlen(GetPlayerName(Play)) > 0) { dopelog(2, LF_SERVER, _("%s leaves the server!"), GetPlayerName(Play)); ClientLeftServer(Play); /* Blank the name, so that CountPlayers ignores this player */ SetPlayerName(Play, NULL); /* Report the new high scores (if any) and the new number of players * to the metaserver */ RegisterWithMetaServer(TRUE, TRUE, TRUE); } FirstServer = RemovePlayer(Play, FirstServer); } #ifndef CYGWIN static gchar sockpref[] = "/tmp/.dopewars"; static gchar *GetLocalSockDir(void) { return g_strdup_printf("%s-%u", sockpref, Port); } gchar *GetLocalSocket(void) { return g_strdup_printf("%s-%u/socket", sockpref, Port); } static void CloseLocalSocket(int localsock) { gchar *sockname, *sockdir; if (localsock >= 0) close(localsock); sockname = GetLocalSocket(); sockdir = GetLocalSockDir(); unlink(sockname); rmdir(sockdir); g_free(sockname); g_free(sockdir); } static int SetupLocalSocket(void) { int sock; struct sockaddr_un addr; gchar *sockname, *sockdir; CloseLocalSocket(-1); sock = socket(PF_UNIX, SOCK_STREAM, 0); if (sock == -1) return -1; SetBlocking(sock, FALSE); sockname = GetLocalSocket(); sockdir = GetLocalSockDir(); if (mkdir(sockdir, S_IRUSR | S_IWUSR | S_IXUSR) == -1) return -1; addr.sun_family = AF_UNIX; strncpy(addr.sun_path, sockname, sizeof(addr.sun_path)); addr.sun_path[sizeof(addr.sun_path) - 1] = '\0'; if (bind(sock, (struct sockaddr *)&addr, sizeof(struct sockaddr_un)) == -1) return -1; chmod(sockname, S_IRUSR | S_IWUSR); g_free(sockname); g_free(sockdir); listen(sock, 10); return sock; } #endif /* * Initialises server, processes network and interactive messages, and * finally cleans up the server on exit. */ void ServerLoop(struct CMDLINE *cmdline) { Player *tmp; GSList *list, *listcp; fd_set readfs, writefs, errorfs; int topsock; struct timeval timeout; int MinTimeout; GString *LineBuf; gboolean DoneOK; gchar *buf; #ifndef CYGWIN int localsock; GSList *nextlist; GPrintFunc oldprint; GSList *localconn = NULL; #endif InitConfiguration(cmdline); if (!StartServer()) return; #ifdef HAVE_FORK /* Daemonize; continue if the fork was successful and we are the child, * or if the fork failed */ if (Daemonize && fork() > 0) return; #endif #ifndef CYGWIN localsock = SetupLocalSocket(); if (localsock == -1) { dopelog(0, LF_SERVER, _("Could not set up Unix domain socket for admin " "connections - check permissions on /tmp!")); } #endif LineBuf = g_string_new(""); while (1) { FD_ZERO(&readfs); FD_ZERO(&writefs); FD_ZERO(&errorfs); FD_SET(ListenSock, &readfs); FD_SET(ListenSock, &errorfs); topsock = ListenSock + 1; #ifndef CYGWIN if (localsock >= 0) { FD_SET(localsock, &readfs); topsock = MAX(topsock, localsock + 1); } for (list = localconn; list; list = g_slist_next(list)) { NetworkBuffer *netbuf; netbuf = (NetworkBuffer *)list->data; SetSelectForNetworkBuffer(netbuf, &readfs, &writefs, &errorfs, &topsock); } #endif if (MetaConn) { SetSelectForNetworkBuffer(&MetaConn->NetBuf, &readfs, &writefs, &errorfs, &topsock); } for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (!IsCop(tmp)) { SetSelectForNetworkBuffer(&tmp->NetBuf, &readfs, &writefs, &errorfs, &topsock); } } MinTimeout = GetMinimumTimeout(FirstServer); if (MinTimeout != -1) { timeout.tv_sec = MinTimeout; timeout.tv_usec = 0; } if (select(topsock, &readfs, &writefs, &errorfs, MinTimeout == -1 ? NULL : &timeout) == -1) { if (errno == EINTR) { if (ReregisterRequest) { ReregisterRequest = 0; RegisterWithMetaServer(TRUE, TRUE, FALSE); continue; } else if (TerminateRequest) { TerminateRequest = 0; RequestServerShutdown(); if (IsServerShutdown()) break; else continue; } else if (RelogRequest) { /* Re-open log file */ RelogRequest = 0; CloseLog(); OpenLog(); continue; } else continue; } perror("select"); break; } FirstServer = HandleTimeouts(FirstServer); if (FD_ISSET(ListenSock, &readfs)) { HandleNewConnection(); } #ifndef CYGWIN if (localsock >= 0 && FD_ISSET(localsock, &readfs)) { int newlocal; NetworkBuffer *netbuf; newlocal = accept(localsock, NULL, NULL); netbuf = g_new(NetworkBuffer, 1); InitNetworkBuffer(netbuf, '\n', '\r', NULL); BindNetworkBufferToSocket(netbuf, newlocal); localconn = g_slist_append(localconn, netbuf); oldprint = StartServerReply(netbuf); g_print(_("dopewars server version %s ready for admin commands; " "try \"help\" for help"), VERSION); FinishServerReply(oldprint); dopelog(1, LF_SERVER, _("New admin connection")); } list = localconn; while (list) { NetworkBuffer *netbuf; nextlist = g_slist_next(list); netbuf = (NetworkBuffer *)list->data; if (netbuf) { if (RespondToSelect(netbuf, &readfs, &writefs, &errorfs, &DoneOK)) { while ((buf = GetWaitingMessage(netbuf)) != NULL) { dopelog(2, LF_SERVER, _("Admin command: %s"), buf); HandleServerCommand(buf, netbuf, FALSE); g_free(buf); } } if (!DoneOK) { dopelog(1, LF_SERVER, _("Admin connection closed")); localconn = g_slist_remove(localconn, netbuf); ShutdownNetworkBuffer(netbuf); g_free(netbuf); } list = nextlist; } } if (IsServerShutdown()) break; #endif if (MetaConn) { if (RespondToSelect(&MetaConn->NetBuf, &readfs, &writefs, &errorfs, &DoneOK)) { while ((buf = ReadHttpResponse(MetaConn, &DoneOK))) { gboolean ReadingBody = (MetaConn->Status == HS_READBODY); if (buf[0] || !ReadingBody) { dopelog(ReadingBody ? 2 : 4, LF_SERVER, "MetaServer: %s", buf); } g_free(buf); } } if (!DoneOK && HandleHttpCompletion(MetaConn)) { if (!MetaConnectError(MetaConn)) { dopelog(4, LF_SERVER, "MetaServer: (closed)\n"); } CloseHttpConnection(MetaConn); MetaConn = NULL; if (IsServerShutdown()) break; } } /* Check all players for data; iterate over a copy of the player list, * as HandleServerPlayer may remove players from this list! */ listcp = g_slist_copy(FirstServer); for (list = listcp; list; list = g_slist_next(list)) { if (list->data && g_slist_find(FirstServer, list->data)) { tmp = (Player *)list->data; if (RespondToSelect(&tmp->NetBuf, &readfs, &writefs, &errorfs, &DoneOK)) { /* If any complete messages were read, process them */ HandleServerPlayer(tmp); } if (!DoneOK) { /* The socket has been shut down, or the buffer was filled - * remove player */ RemovePlayerFromServer(tmp); if (IsServerShutdown()) { break; } } } } g_slist_free(listcp); if (IsServerShutdown()) { break; } } #ifndef CYGWIN CloseLocalSocket(localsock); #endif StopServer(); g_string_free(LineBuf, TRUE); } #ifdef GUI_SERVER static GtkWidget *TextOutput; static gint ListenTag = 0; static void SocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow); static void GuiSetTimeouts(void); static time_t NextTimeout = 0; static guint TimeoutTag = 0; static gint GuiDoTimeouts(gpointer data) { /* Forget the TimeoutTag so that GuiSetTimeouts doesn't delete it - * it'll be deleted automatically anyway when we return FALSE */ TimeoutTag = 0; NextTimeout = 0; FirstServer = HandleTimeouts(FirstServer); GuiSetTimeouts(); return FALSE; } void GuiSetTimeouts(void) { int MinTimeout; time_t TimeNow; TimeNow = time(NULL); MinTimeout = GetMinimumTimeout(FirstServer); if (TimeNow + MinTimeout < NextTimeout || NextTimeout < TimeNow) { if (TimeoutTag > 0) gtk_timeout_remove(TimeoutTag); TimeoutTag = 0; if (MinTimeout > 0) { TimeoutTag = gtk_timeout_add(MinTimeout * 1000, GuiDoTimeouts, NULL); NextTimeout = TimeNow + MinTimeout; } } } static void GuiServerPrintFunc(const gchar *string) { TextViewAppend(GTK_TEXT_VIEW(TextOutput), string, NULL, TRUE); } static void GuiServerLogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GString *text; text = GetLogString(log_level, message); if (text) { g_string_append(text, "\n"); GuiServerPrintFunc(text->str); g_string_free(text, TRUE); } } #ifdef CYGWIN static void ServiceFailure(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { SERVICE_STATUS status; g_print("%s\n", message); status.dwServiceType = SERVICE_WIN32_OWN_PROCESS; status.dwCurrentState = SERVICE_STOPPED; status.dwControlsAccepted = SERVICE_ACCEPT_STOP; status.dwWin32ExitCode = ERROR_NETWORK_UNREACHABLE; status.dwCheckPoint = 0; status.dwWaitHint = 0; SetServiceStatus(scHandle, &status); } #endif static void GuiQuitServer() { gtk_main_quit(); StopServer(); } static void GuiDoCommand(GtkWidget *widget, gpointer data) { gchar *text; text = gtk_editable_get_chars(GTK_EDITABLE(widget), 0, -1); gtk_editable_delete_text(GTK_EDITABLE(widget), 0, -1); HandleServerCommand(text, NULL, HaveUnicodeSupport()); g_free(text); if (IsServerShutdown()) GuiQuitServer(); } void GuiHandleMeta(gpointer data, gint socket, GdkInputCondition condition) { gboolean DoneOK; gchar *buf; if (!MetaConn) return; if (NetBufHandleNetwork(&MetaConn->NetBuf, condition & GDK_INPUT_READ, condition & GDK_INPUT_WRITE, &DoneOK)) { while ((buf = ReadHttpResponse(MetaConn, &DoneOK))) { gboolean ReadingBody = (MetaConn->Status == HS_READBODY); if (buf[0] || !ReadingBody) { dopelog(ReadingBody ? 2 : 4, LF_SERVER, "MetaServer: %s", buf); } g_free(buf); } } if (!DoneOK && HandleHttpCompletion(MetaConn)) { if (!MetaConnectError(MetaConn)) { dopelog(4, LF_SERVER, "MetaServer: (closed)\n"); } CloseHttpConnection(MetaConn); MetaConn = NULL; if (IsServerShutdown()) GuiQuitServer(); } } static void GuiHandleSocket(gpointer data, gint socket, GdkInputCondition condition) { Player *Play; gboolean DoneOK; Play = (Player *)data; /* Sanity check - is the player still around? */ if (!g_slist_find(FirstServer, (gpointer)Play)) return; if (PlayerHandleNetwork(Play, condition & GDK_INPUT_READ, condition & GDK_INPUT_WRITE, &DoneOK)) { HandleServerPlayer(Play); GuiSetTimeouts(); /* We may have set some new timeouts */ } if (!DoneOK) { RemovePlayerFromServer(Play); if (IsServerShutdown()) GuiQuitServer(); } } void SocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow) { if (NetBuf->InputTag) gdk_input_remove(NetBuf->InputTag); NetBuf->InputTag = 0; if (Read || Write) { NetBuf->InputTag = gdk_input_add(NetBuf->fd, (Read ? GDK_INPUT_READ : 0) | (Write ? GDK_INPUT_WRITE : 0), GuiHandleSocket, NetBuf->CallBackData); } if (CallNow) GuiHandleSocket(NetBuf->CallBackData, NetBuf->fd, 0); } void MetaSocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow) { if (NetBuf->InputTag) gdk_input_remove(NetBuf->InputTag); NetBuf->InputTag = 0; if (Read || Write) { NetBuf->InputTag = gdk_input_add(NetBuf->fd, (Read ? GDK_INPUT_READ : 0) | (Write ? GDK_INPUT_WRITE : 0), GuiHandleMeta, NetBuf->CallBackData); } if (CallNow) GuiHandleMeta(NetBuf->CallBackData, NetBuf->fd, 0); } static void GuiNewConnect(gpointer data, gint socket, GdkInputCondition condition) { Player *Play; if (condition & GDK_INPUT_READ) { Play = HandleNewConnection(); SetNetworkBufferCallBack(&Play->NetBuf, SocketStatus, (gpointer)Play); } } static gboolean TriedPoliteShutdown = FALSE; static gint GuiRequestDelete(GtkWidget *widget, GdkEvent * event, gpointer data) { if (TriedPoliteShutdown) { GuiQuitServer(); } else { TriedPoliteShutdown = TRUE; HandleServerCommand("quit", NULL, FALSE); if (IsServerShutdown()) GuiQuitServer(); } return TRUE; /* Never allow automatic deletion - we * handle it manually */ } #ifdef CYGWIN static HWND mainhwnd = NULL; static BOOL systray = FALSE; static BOOL RegisterStatus(DWORD state) { SERVICE_STATUS status; status.dwServiceType = SERVICE_WIN32_OWN_PROCESS; status.dwCurrentState = state; status.dwControlsAccepted = SERVICE_ACCEPT_STOP; status.dwWin32ExitCode = NO_ERROR; status.dwCheckPoint = 0; status.dwWaitHint = 5000; return SetServiceStatus(scHandle, &status); } static VOID WINAPI ServiceHandler(DWORD control) { DWORD state = SERVICE_RUNNING; switch (control) { case SERVICE_CONTROL_STOP: state = SERVICE_STOP_PENDING; break; } if (!RegisterStatus(state)) { dopelog(0, LF_SERVER, _("Failed to set NT Service status")); return; } if (mainhwnd && !PostMessage(mainhwnd, MYWM_SERVICE, 0, (LPARAM) control)) { dopelog(0, LF_SERVER, _("Failed to post service notification message")); return; } } static VOID WINAPI ServiceInit(DWORD argc, LPTSTR * argv) { scHandle = RegisterServiceCtrlHandler("dopewars-server", ServiceHandler); if (!scHandle) { dopelog(0, LF_SERVER, _("Failed to register service handler")); return; } if (!RegisterStatus(SERVICE_START_PENDING)) { dopelog(0, LF_SERVER, _("Failed to set NT Service status")); return; } GuiServerLoop(NULL, TRUE); if (!RegisterStatus(SERVICE_STOPPED)) { dopelog(0, LF_SERVER, _("Failed to set NT Service status")); return; } } void ServiceMain(struct CMDLINE *cmdline) { SERVICE_TABLE_ENTRY services[] = { {"dopewars-server", ServiceInit}, {NULL, NULL} }; InitConfiguration(cmdline); if (!StartServiceCtrlDispatcher(services)) { dopelog(0, LF_SERVER, _("Failed to start NT Service")); } } static LRESULT CALLBACK GuiServerWndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { if (hwnd == mainhwnd) switch (msg) { case MYWM_SERVICE: if (lparam == SERVICE_CONTROL_STOP) { GuiQuitServer(); } break; case MYWM_TASKBAR: if ((UINT) lparam == WM_LBUTTONDOWN) ShowWindow(mainhwnd, SW_SHOW); break; case WM_SYSCOMMAND: if (wparam == SC_MINIMIZE && systray) { ShowWindow(mainhwnd, SW_HIDE); return TRUE; } break; } return FALSE; } static void SetupTaskBarIcon(GtkWidget *widget) { NOTIFYICONDATA nid; nid.cbSize = sizeof(NOTIFYICONDATA); nid.uID = 1000; if (widget && !widget->hWnd) return; if (!widget && !mainhwnd) return; nid.hWnd = mainhwnd; if (widget && MinToSysTray) { nid.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP; nid.uCallbackMessage = MYWM_TASKBAR; nid.hIcon = mainIcon; strcpy(nid.szTip, "dopewars server - running"); systray = Shell_NotifyIcon(NIM_ADD, &nid); } else { systray = FALSE; Shell_NotifyIcon(NIM_DELETE, &nid); } } #endif /* CYGWIN */ void GuiServerLoop(struct CMDLINE *cmdline, gboolean is_service) { GtkWidget *window, *text, *hbox, *vbox, *entry, *label; if (HaveUnicodeSupport()) { /* GTK+2 (and the GTK emulation code on WinNT systems) expects all * strings to be UTF-8, so we force gettext to return all translations * in this encoding here. */ bind_textdomain_codeset(PACKAGE, "UTF-8"); Conv_SetInternalCodeset("UTF-8"); WantUTF8Errors(TRUE); } if (cmdline) { InitConfiguration(cmdline); } window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(GuiRequestDelete), NULL); gtk_window_set_default_size(GTK_WINDOW(window), 500, 250); /* Title of dopewars server window (if used) */ gtk_window_set_title(GTK_WINDOW(window), _("dopewars server")); gtk_container_set_border_width(GTK_CONTAINER(window), 7); vbox = gtk_vbox_new(FALSE, 7); TextOutput = text = gtk_scrolled_text_view_new(&hbox); gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); hbox = gtk_hbox_new(FALSE, 4); label = gtk_label_new(_("Command:")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); entry = gtk_entry_new(); gtk_signal_connect(GTK_OBJECT(entry), "activate", GTK_SIGNAL_FUNC(GuiDoCommand), NULL); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); if (is_service) { #ifdef CYGWIN g_log_set_handler(NULL, G_LOG_LEVEL_CRITICAL, ServiceFailure, NULL); #endif } else { g_set_print_handler(GuiServerPrintFunc); g_log_set_handler(NULL, LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING, GuiServerLogMessage, NULL); } if (!StartServer()) return; ListenTag = gdk_input_add(ListenSock, GDK_INPUT_READ, GuiNewConnect, NULL); #ifdef CYGWIN mainhwnd = window->hWnd; SetupTaskBarIcon(window); SetCustomWndProc(GuiServerWndProc); if (is_service && !RegisterStatus(SERVICE_RUNNING)) { dopelog(0, LF_SERVER, _("Failed to set NT Service status")); return; } #endif gtk_main(); #ifdef CYGWIN SetupTaskBarIcon(NULL); #endif } #endif /* GUI_SERVER */ #endif /* NETWORKING */ /* * Tells player "Play" that the game is over; display "Message". */ void FinishGame(Player *Play, char *Message) { Play->EventNum = E_FINISH; ClientLeftServer(Play); SendHighScores(Play, TRUE, Message); /* Blank the name, so that CountPlayers ignores this player */ SetPlayerName(Play, NULL); /* Make sure they do actually disconnect, eventually! */ if (ConnectTimeout) { Play->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } } /* * Reads a batch of NUMHISCORE high scores into "HiScore" from "fp". */ void HighScoreTypeRead(struct HISCORE *HiScore, FILE *fp) { int i; char *buf; for (i = 0; i < NUMHISCORE; i++) { if (read_string(fp, &HiScore[i].Name) == EOF) break; read_string(fp, &HiScore[i].Time); read_string(fp, &buf); HiScore[i].Money = strtoprice(buf); g_free(buf); HiScore[i].Dead = (fgetc(fp) > 0); } } /* * Writes out a batch of NUMHISCORE high scores from "HiScore" to "fp". */ void HighScoreTypeWrite(struct HISCORE *HiScore, FILE *fp) { int i; gchar *text; for (i = 0; i < NUMHISCORE; i++) { if (HiScore[i].Name) { fwrite(HiScore[i].Name, strlen(HiScore[i].Name) + 1, 1, fp); } else fputc(0, fp); if (HiScore[i].Time) { fwrite(HiScore[i].Time, strlen(HiScore[i].Time) + 1, 1, fp); } else fputc(0, fp); text = pricetostr(HiScore[i].Money); fwrite(text, strlen(text) + 1, 1, fp); g_free(text); fputc(HiScore[i].Dead ? 1 : 0, fp); } } /* * Closes the high score file opened by OpenHighScoreFile, below. */ void CloseHighScoreFile() { if (ScoreFP) { fclose(ScoreFP); } ScoreFP = NULL; } /* * If we're running setuid/setgid, drop down to the privilege level of the * user that started the dopewars process. */ void DropPrivileges() { #ifndef CYGWIN /* Ignore the return from setregid; we'll check it ourselves to be sure * (this avoids problems when running under fakeroot) */ setregid(getgid(), getgid()); if (getgid() != getegid()) { perror("setregid"); exit(EXIT_FAILURE); } setreuid(getuid(), getuid()); if (getuid() != geteuid()) { perror("setreuid"); exit(EXIT_FAILURE); } #endif } static const gchar SCOREHEADER[] = "DOPEWARS SCORES V."; static const guint SCOREHDRLEN = sizeof(SCOREHEADER) - 1; /* Don't include \0 */ static const guint SCOREVERSION = 1; static gboolean HighScoreReadHeader(FILE *fp, gint *ScoreVersion) { gchar *header; if (read_string(fp, &header) != EOF) { if (header && strlen(header) > SCOREHDRLEN && strncmp(header, SCOREHEADER, SCOREHDRLEN) == 0) { if (ScoreVersion) *ScoreVersion = atoi(header + SCOREHDRLEN); g_free(header); return TRUE; } } g_free(header); return FALSE; } static void HighScoreWriteHeader(FILE *fp) { gchar *header; header = g_strdup_printf("%s%d", SCOREHEADER, SCOREVERSION); fwrite(header, strlen(header) + 1, 1, fp); g_free(header); } /* * Converts an old format high score file to the new format. */ void ConvertHighScoreFile(const gchar *convertfile) { FILE *old; gchar *BackupFile; int ch; struct HISCORE MultiScore[NUMHISCORE], AntiqueScore[NUMHISCORE]; BackupFile = g_strdup_printf("%s.bak", convertfile); old = fopen(convertfile, "r+"); if (old) { gboolean empty; /* Only convert if the file is not empty, and does not have a header */ rewind(old); empty = (fgetc(old) == EOF); rewind(old); if (!empty && !HighScoreReadHeader(old, NULL)) { FILE *backup = fopen(BackupFile, "w"); if (backup) { /* Make a backup of the old file */ ftruncate(fileno(backup), 0); rewind(backup); rewind(old); while (1) { ch = fgetc(old); if (ch == EOF) { break; } else { fputc(ch, backup); } } fclose(backup); /* Read in the scores without the header, and then write out with * the header */ if (!HighScoreRead(old, MultiScore, AntiqueScore, FALSE)) { g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Error reading scores from %s."), convertfile); } else { ftruncate(fileno(old), 0); rewind(old); if (HighScoreWrite(old, MultiScore, AntiqueScore)) { g_message(_("The high score file %s has been converted to the " "new format.\nA backup of the old file has been " "created as %s.\n"), convertfile, BackupFile); } } } else { gchar *errmsg = ErrStrFromErrno(errno); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot create backup (%s) of the\nhigh score file: %s."), BackupFile, errmsg); g_free(errmsg); } } fclose(old); } else { gchar *errmsg = ErrStrFromErrno(errno); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot open high score file %s: %s."), convertfile, errmsg); g_free(errmsg); } g_free(BackupFile); } #ifdef CYGWIN /* Try to open a high score file in the Win32-specific AppData directory */ static FILE *OpenHighScoreAppData(int *error, gboolean *empty) { FILE *fp = NULL; HKEY key; static const char *subkey = "Software\\Microsoft\\Windows\\CurrentVersion" "\\Explorer\\Shell Folders"; static const char *subval = "Local AppData"; *empty = FALSE; if (RegOpenKeyEx(HKEY_CURRENT_USER, subkey, 0, KEY_READ, &key) == ERROR_SUCCESS) { DWORD keylen, keytype; if (RegQueryValueEx(key, subval, NULL, &keytype, NULL, &keylen) == ERROR_SUCCESS && keytype == REG_SZ) { char *keyval = g_malloc(keylen); if (RegQueryValueEx(key, subval, NULL, &keytype, keyval, &keylen) == ERROR_SUCCESS) { GString *str = g_string_sized_new(keylen + 40); g_string_assign(str, keyval); g_free(keyval); g_string_append(str, "\\dopewars"); CreateDirectory(str->str, NULL); g_string_append(str, "\\dopewars.sco"); fp = fopen(str->str, "r+"); if (!fp) { fp = fopen(str->str, "w+"); if (!fp) { *error = errno; } *empty = TRUE; } g_string_free(str, 1); } } RegCloseKey(key); } return fp; } #endif /* State, set by OpenHighScoreFile, and later used by * CheckHighScoreFileConfig */ static gboolean EmptyFile; static int OpenError; /* * Opens the high score file for later use, and then drops privileges. */ void OpenHighScoreFile(void) { if (ScoreFP) { return; /* If already opened, then we're done */ } EmptyFile = FALSE; OpenError = 0; /* Win32 gets upset if we use "a+" so we use this nasty hack instead */ ScoreFP = fopen(HiScoreFile, "r+"); if (!ScoreFP) { ScoreFP = fopen(HiScoreFile, "w+"); if (!ScoreFP) { OpenError = errno; } EmptyFile = TRUE; } #ifdef CYGWIN if (!ScoreFP) { ScoreFP = OpenHighScoreAppData(&OpenError, &EmptyFile); } #endif /* Check for a 0-byte score file */ if (ScoreFP && !EmptyFile) { rewind(ScoreFP); if (fgetc(ScoreFP) == EOF) { EmptyFile = TRUE; } rewind(ScoreFP); } } /* * Checks the high score file opened by OpenHighScoreFile, above. Also warns * the user about other problems encountered during startup. Returns * TRUE if it's valid; otherwise, returns FALSE. */ gboolean CheckHighScoreFileConfig(void) { if (!ScoreFP) { gchar *errstr = ErrStrFromErrno(OpenError); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score " "file with the\n-f command line option."), HiScoreFile, errstr); g_free(errstr); return FALSE; } if (EmptyFile) { HighScoreWriteHeader(ScoreFP); fflush(ScoreFP); } else if (!HighScoreReadHeader(ScoreFP, NULL)) { g_log(NULL, G_LOG_LEVEL_CRITICAL, _("%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line."), HiScoreFile, HiScoreFile); return FALSE; } if (ConfigErrors) { #ifdef CYGWIN g_warning(_("Errors were encountered during the reading of the " "configuration file.\nAs as result, some settings may not " "work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details.")); #else g_warning(_("Errors were encountered during the reading of the " "configuration\nfile. As a result, some settings may not " "work as expected. Please see the\nmessages on standard " "output for further details.")); #endif } return TRUE; } /* * Reads all the high scores into MultiScore and AntiqueScore (antique * mode scores). If ReadHeader is TRUE, read the high score file header * first. Returns TRUE on success, FALSE on failure. */ gboolean HighScoreRead(FILE *fp, struct HISCORE *MultiScore, struct HISCORE *AntiqueScore, gboolean ReadHeader) { gint ScoreVersion = 0; memset(MultiScore, 0, sizeof(struct HISCORE) * NUMHISCORE); memset(AntiqueScore, 0, sizeof(struct HISCORE) * NUMHISCORE); if (fp && ReadLock(fp) == 0) { rewind(fp); if (ReadHeader && !HighScoreReadHeader(fp, &ScoreVersion)) { ReleaseLock(fp); return FALSE; } HighScoreTypeRead(AntiqueScore, fp); HighScoreTypeRead(MultiScore, fp); ReleaseLock(fp); } else return FALSE; return TRUE; } /* * Writes out all the high scores from MultiScore and AntiqueScore; returns * TRUE on success, FALSE on failure. */ gboolean HighScoreWrite(FILE *fp, struct HISCORE *MultiScore, struct HISCORE *AntiqueScore) { if (fp && WriteLock(fp) == 0) { ftruncate(fileno(fp), 0); rewind(fp); HighScoreWriteHeader(fp); HighScoreTypeWrite(AntiqueScore, fp); HighScoreTypeWrite(MultiScore, fp); ReleaseLock(fp); fflush(fp); } else return 0; return 1; } /* * Adds "Play" to the high score list if necessary, and then sends the * scores over the network to "Play". * If "EndGame" is TRUE, add the current score if it's high enough and * display an explanatory message. "Message" is tacked onto the start * if it's non-NULL. The client is then informed that the game's over. */ void SendHighScores(Player *Play, gboolean EndGame, char *Message) { struct HISCORE MultiScore[NUMHISCORE], AntiqueScore[NUMHISCORE], Score; struct HISCORE *HiScore; struct tm *timep; time_t tim; GString *text; int i, j, InList = -1; text = g_string_new(""); if (!HighScoreRead(ScoreFP, MultiScore, AntiqueScore, TRUE)) { g_warning(_("Unable to read high score file %s"), HiScoreFile); } if (Message) { g_string_assign(text, Message); if (strlen(text->str) > 0) g_string_append_c(text, '^'); } if (WantAntique) HiScore = AntiqueScore; else HiScore = MultiScore; if (EndGame) { Score.Money = Play->Cash + Play->Bank - Play->Debt; Score.Name = g_strdup(GetPlayerName(Play)); Score.Dead = (Play->Health == 0); tim = time(NULL); timep = gmtime(&tim); Score.Time = g_new(char, 80); /* Yuck! */ strftime(Score.Time, 80, "%d-%m-%Y", timep); Score.Time[79] = '\0'; for (i = 0; i < NUMHISCORE; i++) { if (InList == -1 && (Score.Money > HiScore[i].Money || !HiScore[i].Time || HiScore[i].Time[0] == 0)) { InList = i; g_string_append(text, _("Congratulations! You made the high scores!")); SendPrintMessage(NULL, C_NONE, Play, text->str); g_free(HiScore[NUMHISCORE - 1].Name); g_free(HiScore[NUMHISCORE - 1].Time); for (j = NUMHISCORE - 1; j > i; j--) { memcpy(&HiScore[j], &HiScore[j - 1], sizeof(struct HISCORE)); } memcpy(&HiScore[i], &Score, sizeof(struct HISCORE)); break; } } if (InList == -1) { g_string_append(text, _("You didn't even make the high score table...")); SendPrintMessage(NULL, C_NONE, Play, text->str); } } SendServerMessage(NULL, C_NONE, C_STARTHISCORE, Play, NULL); j = 0; for (i = 0; i < NUMHISCORE; i++) { if (SendSingleHighScore(Play, &HiScore[i], j, InList == i)) j++; } if (InList == -1 && EndGame) { SendSingleHighScore(Play, &Score, j, TRUE); g_free(Score.Name); g_free(Score.Time); } SendServerMessage(NULL, C_NONE, C_ENDHISCORE, Play, EndGame ? "end" : NULL); if (!EndGame) SendDrugsHere(Play, FALSE); if (EndGame && !HighScoreWrite(ScoreFP, MultiScore, AntiqueScore)) { g_warning(_("Unable to write high score file %s"), HiScoreFile); } for (i = 0; i < NUMHISCORE; i++) { g_free(MultiScore[i].Name); g_free(MultiScore[i].Time); g_free(AntiqueScore[i].Name); g_free(AntiqueScore[i].Time); } g_string_free(text, TRUE); } /* * Sends a single high score in "Score" with position "ind" to player * "Play". If Bold is TRUE, instructs the client to display the score in * bold text. */ int SendSingleHighScore(Player *Play, struct HISCORE *Score, int ind, gboolean Bold) { gchar *Data, *prstr; if (!Score->Time || Score->Time[0] == 0) return 0; Data = g_strdup_printf("%d^%c%c%18s %-14s %-34s %8s%c", ind, Bold ? 'B' : 'N', Bold ? '>' : ' ', prstr = FormatPrice(Score->Money), Score->Time, Score->Name, Score->Dead ? _("(R.I.P.)") : "", Bold ? '<' : ' '); SendServerMessage(NULL, C_NONE, C_HISCORE, Play, Data); g_free(prstr); g_free(Data); return 1; } /* * In order for the server to keep track of the state of each client, each * client's state is identified by its EventNum data member. So, for example, * there is a state for fighting the cops, a state for going to the bank, and * so on. This function instructs client player "To" to carry out the actions * expected of it in its current state. It is the client's responsibility to * ensure that it carries out the correct actions to advance itself to the * "next" state; if it fails in this duty it will hang! */ void SendEvent(Player *To) { price_t Money; int i, j; gchar *text; Player *Play; GSList *list; if (!To) return; if (To->EventNum == E_MAX) To->EventNum = E_NONE; if (To->EventNum == E_NONE || To->EventNum >= E_OUTOFSYNC) return; Money = To->Cash + To->Bank - To->Debt; ClearPrices(To); while (To->EventNum < E_MAX) { switch (To->EventNum) { case E_SUBWAY: SendServerMessage(NULL, C_NONE, C_SUBWAYFLASH, To, NULL); break; case E_OFFOBJECT: To->OnBehalfOf = NULL; for (i = 0; i < To->TipList.Number; i++) { dopelog(3, LF_SERVER, _("%s: Tipoff from %s"), GetPlayerName(To), GetPlayerName(To->TipList.Data[i].Play)); To->OnBehalfOf = To->TipList.Data[i].Play; SendCopOffer(To, FORCECOPS); return; } for (i = 0; i < To->SpyList.Number; i++) { if (To->SpyList.Data[i].Turns < 0) { dopelog(3, LF_SERVER, _("%s: Spy offered by %s"), GetPlayerName(To), GetPlayerName(To->SpyList.Data[i].Play)); To->OnBehalfOf = To->SpyList.Data[i].Play; SendCopOffer(To, FORCEBITCH); return; } To->SpyList.Data[i].Turns++; if (To->SpyList.Data[i].Turns > 3 && brandom(0, 100) < 10 + To->SpyList.Data[i].Turns) { if (TotalGunsCarried(To) > 0) j = brandom(0, NUMDISCOVER); else j = brandom(0, NUMDISCOVER - 1); text = dpg_strdup_printf(_("One of your %tde was spying for %s." "^The spy %s!"), Names.Bitches, GetPlayerName(To->SpyList.Data[i].Play), _(Discover[j])); if (j != DEFECT) LoseBitch(To, NULL, NULL); SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text); g_free(text); text = g_strdup_printf(_("Your spy working with %s has " "been discovered!^The spy %s!"), GetPlayerName(To), _(Discover[j])); if (j == ESCAPE) GainBitch(To->SpyList.Data[i].Play); To->SpyList.Data[i].Play->Flags &= ~SPYINGON; SendPlayerData(To->SpyList.Data[i].Play); SendPrintMessage(NULL, C_NONE, To->SpyList.Data[i].Play, text); g_free(text); RemoveListEntry(&(To->SpyList), i); i--; } } if (Money > 3000000) i = 130; else if (Money > 1000000) i = 115; else i = 100; if (brandom(0, i) > 75) { if (SendCopOffer(To, NOFORCE)) return; } break; case E_SAYING: if (!Sanitized && brandom(0, 100) < 15 && (NumSubway > 0 || NumPlaying > 0)) { int subwaychance = 50; if (NumSubway == 0) subwaychance = 0; if (NumPlaying == 0) subwaychance = 100; if (brandom(0, 100) < subwaychance) { text = g_strdup_printf(_("The lady next to you on the subway " "said,^ \"%s\"%s"), SubwaySaying[brandom(0, NumSubway)], brandom(0, 100) < 30 ? _("^ (at least, you -think- that's " "what she said)") : ""); } else { text = g_strdup_printf(_("You hear someone playing %s"), Playing[brandom(0, NumPlaying)]); } SendPrintMessage(NULL, C_NONE, To, text); g_free(text); } break; case E_LOANSHARK: if (To->IsAt + 1 == LoanSharkLoc && To->Debt > 0) { text = dpg_strdup_printf(_("YN^Would you like to visit %tde?"), Names.LoanSharkName); SendQuestion(NULL, C_ASKLOAN, To, text); g_free(text); return; } break; case E_BANK: if (To->IsAt + 1 == BankLoc) { text = dpg_strdup_printf(_("YN^Would you like to visit %tde?"), Names.BankName); SendQuestion(NULL, C_ASKBANK, To, text); g_free(text); return; } break; case E_GUNSHOP: if (To->IsAt + 1 == GunShopLoc && !Sanitized && NumGun > 0) { text = dpg_strdup_printf(_("YN^Would you like to visit %tde?"), Names.GunShopName); SendQuestion(NULL, C_ASKGUNSHOP, To, text); g_free(text); return; } break; case E_ROUGHPUB: if (To->IsAt + 1 == RoughPubLoc) { text = dpg_strdup_printf(_("YN^Would you like to visit %tde?"), Names.RoughPubName); SendQuestion(NULL, C_ASKPUB, To, text); g_free(text); return; } break; case E_HIREBITCH: if (To->IsAt + 1 == RoughPubLoc) { To->Bitches.Price = prandom(Bitch.MinPrice, Bitch.MaxPrice); text = dpg_strdup_printf(_ ("YN^^Would you like to hire a %tde for %P?"), Names.Bitch, To->Bitches.Price); SendQuestion(NULL, C_ASKBITCH, To, text); g_free(text); return; } break; case E_ARRIVE: for (list = FirstServer; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (IsConnectedPlayer(Play) && Play != To && NumGun > 0 && Play->IsAt == To->IsAt && Play->EventNum == E_NONE && TotalGunsCarried(To) > 0) { text = g_strdup_printf(_("%s^%s is already here!^" "Do you Attack, or Evade?"), attackquestiontr, GetPlayerName(Play)); /* Steal this to keep track of the potential defender */ To->OnBehalfOf = Play; SendDrugsHere(To, TRUE); SendQuestion(NULL, C_MEETPLAYER, To, text); g_free(text); return; } } SendDrugsHere(To, TRUE); break; default: break; } To->EventNum++; } if (To->EventNum >= E_MAX) To->EventNum = E_NONE; } /* * In response to client player "To" being in state E_OFFOBJECT, * randomly engages the client in combat with the cops or offers * other random events. Returns 0 if the client should then be * advanced to the next state, 1 otherwise (i.e. if there are * questions pending which the client must answer first) * If Force==FORCECOPS, engage in combat with the cops for certain * If Force==FORCEBITCH, offer the client a bitch for certain */ int SendCopOffer(Player *To, OfferForce Force) { int i; /* The cops are more likely to attack in locations with higher police * presence ratings */ i = brandom(0, 80 + Location[To->IsAt].PolicePresence); if (Force == FORCECOPS) i = 100; else if (Force == FORCEBITCH) i = 0; else To->OnBehalfOf = NULL; if (i < 33) { return (OfferObject(To, Force == FORCEBITCH)); } else if (i < 50) { return (RandomOffer(To)); } else if (Sanitized || NumCop == 0 || NumGun == 0) { return 0; } else { CopsAttackPlayer(To); return 1; } return 1; } /* * Has the cops attack player "Play". */ void CopsAttackPlayer(Player *Play) { Player *Cops; gint CopIndex, NumDeputy, GunIndex; if (NumCop == 0 || NumGun == 0) { g_warning(_("No cops or guns!")); return; } CopIndex = 1 - Play->CopIndex; if (CopIndex < 0) { g_warning(_("Cops cannot attack other cops!")); return; } if (CopIndex > NumCop) CopIndex = NumCop; Cops = g_new(Player, 1); FirstServer = AddPlayer(0, Cops, FirstServer); SetPlayerName(Cops, Cop[CopIndex - 1].Name); Cops->CopIndex = CopIndex; Cops->Cash = brandom(100, 2000); Cops->Debt = Cops->Bank = 0; NumDeputy = brandom(Cop[CopIndex - 1].MinDeputies, Cop[CopIndex - 1].MaxDeputies); Cops->Bitches.Carried = NumDeputy; GunIndex = Cop[CopIndex - 1].GunIndex; if (GunIndex >= NumGun) GunIndex = NumGun - 1; Cops->Guns[GunIndex].Carried = (NumDeputy * Cop[CopIndex - 1].DeputyGun) + Cop[CopIndex - 1].CopGun; Cops->Health = 100; Play->EventNum++; AttackPlayer(Cops, Play); } /* * Starts combat between player "Play" and player "Attacked"; if * either player is currently engaged in combat, add the other * player to the existing combat. If neither player is currently * fighting, start a new combat between them. Either player can be * the cops. */ void AttackPlayer(Player *Play, Player *Attacked) { GPtrArray *FightArray; g_assert(Play && Attacked); if (Play->FightArray && Attacked->FightArray) { if (Play->FightArray == Attacked->FightArray) { g_error(_("Players are already in a fight!")); } else { g_error(_("Players are already in separate fights!")); } return; } if (NumGun == 0) { g_error(_("Cannot start fight - no guns to use!")); return; } if (!Play->FightArray && !Attacked->FightArray) { FightArray = g_ptr_array_new(); } else { FightArray = Play->FightArray ? Play->FightArray : Attacked->FightArray; } if (!Play->FightArray) { Play->ResyncNum = Play->EventNum; g_ptr_array_add(FightArray, Play); } if (!Attacked->FightArray) { Attacked->ResyncNum = Attacked->EventNum; g_ptr_array_add(FightArray, Attacked); } Play->FightArray = Attacked->FightArray = FightArray; Play->EventNum = Attacked->EventNum = E_FIGHT; Play->Attacking = Attacked; SendFightMessage(Attacked, Play, 0, F_ARRIVED, (price_t)0, TRUE, NULL); Fire(Play); } /* * Returns TRUE if player "Other" is not allied with player "Play". */ gboolean IsOpponent(Player *Play, Player *Other) { return TRUE; } void HandleDamage(Player *Defend, Player *Attack, int Damage, int *BitchesKilled, price_t *Loot) { Inventory *Guns, *Drugs; price_t Bounty; Guns = (Inventory *)g_malloc0(sizeof(Inventory) * NumGun); Drugs = (Inventory *)g_malloc0(sizeof(Inventory) * NumDrug); ClearInventory(Guns, Drugs); Bounty = 0; if (Defend->Health <= Damage && Defend->Bitches.Carried == 0) { Bounty = Defend->Cash + Defend->Bank - Defend->Debt; AddInventory(Guns, Defend->Guns, NumGun); AddInventory(Drugs, Defend->Drugs, NumDrug); Defend->Health = 0; } else if (Defend->Bitches.Carried > 0 && Defend->Health <= Damage) { if (IsCop(Defend)) LoseBitch(Defend, NULL, NULL); else LoseBitch(Defend, Guns, Drugs); Defend->Health = 100; *BitchesKilled = 1; } else { Defend->Health -= Damage; } if (IsCop(Attack)) { /* Don't let cops loot players */ ClearInventory(Guns, Drugs); } else { TruncateInventoryFor(Guns, Drugs, Attack); } SendPlayerData(Defend); if (Bounty < 0) Bounty = 0; if (!IsInventoryClear(Guns, Drugs)) { AddInventory(Attack->Guns, Guns, NumGun); AddInventory(Attack->Drugs, Drugs, NumDrug); ChangeSpaceForInventory(Guns, Drugs, Attack); } Attack->Cash += Bounty; if (Bounty > 0 || !IsInventoryClear(Guns, Drugs)) { if (Bounty > 0) *Loot = Bounty; else *Loot = -1; SendPlayerData(Attack); } g_free(Guns); g_free(Drugs); } void GetFightRatings(Player *Attack, Player *Defend, int *AttackRating, int *DefendRating) { int i; /* Base values */ *AttackRating = 80; *DefendRating = 100; for (i = 0; i < NumGun; i++) { *AttackRating += Gun[i].Damage * Attack->Guns[i].Carried; } if (IsCop(Attack)) *AttackRating -= Cop[Attack->CopIndex - 1].AttackPenalty; *DefendRating -= 5 * Defend->Bitches.Carried; if (IsCop(Defend)) *DefendRating -= Cop[Defend->CopIndex - 1].DefendPenalty; *DefendRating = MAX(*DefendRating, 10); *AttackRating = MAX(*AttackRating, 10); } void AllowNextShooter(Player *Play) { Player *NextShooter; if (FightTimeout) { NextShooter = GetNextShooter(Play); if (NextShooter && !CanPlayerFire(NextShooter)) { NextShooter->FightTimeout = 0; } } } void DoReturnFire(Player *Play) { guint ArrayInd; Player *Defend; if (!Play || !Play->FightArray) return; if (FightTimeout != 0 || !IsCop(Play)) { for (ArrayInd = 0; Play->FightArray && ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (IsCop(Defend) && CanPlayerFire(Defend)) Fire(Defend); } } } /* * Puts the given player into the "fight ended" state. */ static void WaitForFightDone(Player *Play) { if (HaveAbility(Play, A_DONEFIGHT)) { Play->EventNum = E_WAITDONE; } else { Play->EventNum = Play->ResyncNum; SendEvent(Play); } } /* * Withdraws player "Play" from combat, and levies any penalties on * the player for this cowardly act, if applicable. If "ToLocation" * is >=0, then it identifies the location that the player is * trying to run to. */ void RunFromCombat(Player *Play, int ToLocation) { int EscapeProb, RandNum; guint ArrayInd; gboolean FightingCop = FALSE; Player *Defend; char BackupAt; if (!Play || !Play->FightArray) return; EscapeProb = 60; /* Penalise players that are attacking others */ if (Play->Attacking) EscapeProb /= 2; RandNum = brandom(0, 100); if (RandNum < EscapeProb) { if (!IsCop(Play) && brandom(0, 100) < 30) { for (ArrayInd = 0; ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (IsCop(Defend)) { FightingCop = TRUE; break; } } if (FightingCop) Play->CopIndex--; } BackupAt = Play->IsAt; Play->IsAt = ToLocation; WithdrawFromCombat(Play); Play->IsAt = BackupAt; WaitForFightDone(Play); } else { SendFightMessage(Play, NULL, 0, F_FAILFLEE, (price_t)0, TRUE, NULL); AllowNextShooter(Play); if (FightTimeout) SetFightTimeout(Play); DoReturnFire(Play); } } void CheckForKilledPlayers(Player *Play) { Player *Defend; guint ArrayInd; GPtrArray *KilledPlayers; KilledPlayers = g_ptr_array_new(); for (ArrayInd = 0; ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (Defend && Defend != Play && IsOpponent(Play, Defend) && Defend->Health == 0) { g_ptr_array_add(KilledPlayers, (gpointer)Defend); } } for (ArrayInd = 0; ArrayInd < KilledPlayers->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(KilledPlayers, ArrayInd); WithdrawFromCombat(Defend); if (IsCop(Defend)) { if (!IsCop(Play)) Play->CopIndex = -Defend->CopIndex; FirstServer = RemovePlayer(Defend, FirstServer); } else { FinishGame(Defend, _("You're dead! Game over.")); } } g_ptr_array_free(KilledPlayers, TRUE); } /* * If "Play" is attacking someone, and no cops are currently present, * then have the cops intervene (with a probability dependent on the * current location's PolicePresence) */ static void CheckCopsIntervene(Player *Play) { guint ArrayInd; Player *Defend; if (!Play || !Play->FightArray || NumCop == 0 || NumGun == 0) return; /* Sanity check */ if (!Play->Attacking) return; /* Cops don't attack "innocent victims" ;) */ if (brandom(0, 100) > Location[Play->IsAt].PolicePresence) { return; /* The cops shouldn't _always_ attack * (unless P.P. == 100) */ } for (ArrayInd = 0; Play->FightArray && ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (IsCop(Defend)) return; /* We don't want _more_ cops! */ } /* OK - let 'em have it... */ CopsAttackPlayer(Play); } /* * Returns a suitable player (or cop) for "Play" to fire at. If "Play" * is attacking a designated target already, return that, otherwise * return the first valid opponent in the player's FightArray. */ static Player *GetFireTarget(Player *Play) { Player *Defend; guint ArrayInd; if (Play->Attacking && g_slist_find(FirstServer, (gpointer)Play->Attacking)) { return Play->Attacking; } else { Play->Attacking = NULL; for (ArrayInd = 0; ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (Defend && Defend != Play && IsOpponent(Play, Defend)) { return Defend; } } } return NULL; } static int GetArmour(Player *Play) { int Armour; if (IsCop(Play)) { if (Play->Bitches.Carried == 0) Armour = Cop[Play->CopIndex - 1].Armour; else Armour = Cop[Play->CopIndex - 1].DeputyArmour; } else { if (Play->Bitches.Carried == 0) Armour = PlayerArmour; else Armour = BitchArmour; } if (Armour == 0) Armour = 1; return Armour; } /* * Fires all weapons of player "Play" at an opponent, and resets * the fight timeout (the reload time). */ void Fire(Player *Play) { int Damage, i, j; int AttackRating, DefendRating; int BitchesKilled; price_t Loot; FightPoint fp; Player *Defend; if (!Play->FightArray) return; if (!CanPlayerFire(Play)) return; AllowNextShooter(Play); if (FightTimeout) SetFightTimeout(Play); Defend = GetFireTarget(Play); if (Defend) { Damage = 0; BitchesKilled = 0; Loot = 0; if (TotalGunsCarried(Play) > 0) { GetFightRatings(Play, Defend, &AttackRating, &DefendRating); if (brandom(0, AttackRating) > brandom(0, DefendRating)) { fp = F_HIT; for (i = 0; i < NumGun; i++) for (j = 0; j < Play->Guns[i].Carried; j++) { Damage += brandom(0, Gun[i].Damage); } Damage = Damage * 100 / GetArmour(Defend); if (Damage == 0) Damage = 1; HandleDamage(Defend, Play, Damage, &BitchesKilled, &Loot); } else fp = F_MISS; } else fp = F_STAND; SendFightMessage(Play, Defend, BitchesKilled, fp, Loot, TRUE, NULL); } CheckForKilledPlayers(Play); /* Careful, as we might have killed Player "Play" */ if (g_slist_find(FirstServer, (gpointer)Play)) DoReturnFire(Play); if (g_slist_find(FirstServer, (gpointer)Play)) CheckCopsIntervene(Play); } gboolean CanPlayerFire(Player *Play) { return (FightTimeout == 0 || Play->FightTimeout == 0 || Play->FightTimeout <= time(NULL)); } gboolean CanRunHere(Player *Play) { return (Play->ResyncNum < E_ARRIVE && Play->ResyncNum != E_NONE); } /* * To avoid boring waits, return the player who is next in line to be * able to shoot (i.e. with the smallest FightTimeout) so that this * player can be allowed to shoot immediately. If a player is already * eligible to shoot, or there is a tie for "first place" then do * nothing (i.e. return NULL). */ Player *GetNextShooter(Player *Play) { Player *MinPlay, *Defend; time_t MinTimeout; guint mintie; guint ArrayInd; if (!FightTimeout) return NULL; MinPlay = NULL; MinTimeout = 0; mintie = 0; for (ArrayInd = 0; ArrayInd < Play->FightArray->len; ArrayInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, ArrayInd); if (Defend == Play) continue; if (Defend->FightTimeout == 0) return NULL; if (MinTimeout == 0 || Defend->FightTimeout < MinTimeout || (Defend->FightTimeout == MinTimeout && Defend->tiebreak < mintie)) { MinPlay = Defend; MinTimeout = Defend->FightTimeout; mintie = Defend->tiebreak; } } return MinPlay; } void ResolveTipoff(Player *Play) { GString *text; if (IsCop(Play) || !CanRunHere(Play)) return; if (g_slist_find(FirstServer, (gpointer)Play->OnBehalfOf)) { dopelog(4, LF_SERVER, _("%s: tipoff by %s finished OK."), GetPlayerName(Play), GetPlayerName(Play->OnBehalfOf)); RemoveListPlayer(&(Play->TipList), Play->OnBehalfOf); text = g_string_new(""); if (Play->Health == 0) { g_string_sprintf(text, _("Following your tipoff, the cops ambushed %s, " "who was shot dead!"), GetPlayerName(Play)); } else { dpg_string_sprintf(text, _("Following your tipoff, the cops ambushed %s, " "who escaped with %d %tde. "), GetPlayerName(Play), Play->Bitches.Carried, Names.Bitches); } GainBitch(Play->OnBehalfOf); SendPlayerData(Play->OnBehalfOf); SendPrintMessage(NULL, C_NONE, Play->OnBehalfOf, text->str); g_string_free(text, TRUE); } Play->OnBehalfOf = NULL; } /* * Cleans up combat after player "Play" has left. */ void WithdrawFromCombat(Player *Play) { guint AttackInd, DefendInd; gboolean FightDone; Player *Attack, *Defend; GSList *list; gchar *text; for (list = FirstServer; list; list = g_slist_next(list)) { Attack = (Player *)list->data; if (Attack->Attacking == Play) Attack->Attacking = NULL; } if (!Play->FightArray) return; ResolveTipoff(Play); FightDone = TRUE; for (AttackInd = 0; AttackInd < Play->FightArray->len; AttackInd++) { Attack = (Player *)g_ptr_array_index(Play->FightArray, AttackInd); for (DefendInd = 0; DefendInd < AttackInd; DefendInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, DefendInd); if (Attack != Play && Defend != Play && IsOpponent(Attack, Defend)) { FightDone = FALSE; break; } } if (!FightDone) break; } SendFightLeave(Play, FightDone); g_ptr_array_remove(Play->FightArray, (gpointer)Play); if (FightDone) { for (DefendInd = 0; DefendInd < Play->FightArray->len; DefendInd++) { Defend = (Player *)g_ptr_array_index(Play->FightArray, DefendInd); Defend->FightArray = NULL; ResolveTipoff(Defend); if (IsCop(Defend)) { FirstServer = RemovePlayer(Defend, FirstServer); } else if (Defend->Health == 0) { FinishGame(Defend, _("You're dead! Game over.")); } else if (CanRunHere(Defend) && brandom(0, 100) > Location[Defend->IsAt].PolicePresence) { Defend->EventNum = E_DOCTOR; Defend->DocPrice = prandom(Bitch.MinPrice, Bitch.MaxPrice) * Defend->Health / 500; text = dpg_strdup_printf(_ ("YN^Do you pay a doctor %P to sew you up?"), Defend->DocPrice); SendQuestion(NULL, C_ASKSEW, Defend, text); g_free(text); } else { WaitForFightDone(Defend); } } g_ptr_array_free(Play->FightArray, TRUE); } Play->FightArray = NULL; Play->Attacking = NULL; } /* * Inform player "To" of random offers or happenings. Returns 0 if * the client can immediately be advanced to the next state, or 1 * there are first questions to be answered. */ int RandomOffer(Player *To) { int r, amount, ind; GString *text; r = brandom(0, 100); text = g_string_new(NULL); if (!Sanitized && (r < 10)) { g_string_assign(text, _("You were mugged in the subway!")); To->Cash = To->Cash * (price_t)brandom(80, 95) / 100l; } else if (r < 30) { amount = brandom(3, 7); ind = IsCarryingRandom(To, amount); if (ind == -1 && amount > To->CoatSize) { g_string_free(text, TRUE); return 0; } if (ind == -1) { ind = brandom(0, NumDrug); dpg_string_sprintf(text, _("You meet a friend! He gives you %d %tde."), amount, Drug[ind].Name); To->Drugs[ind].Carried += amount; To->CoatSize -= amount; } else { dpg_string_sprintf(text, _("You meet a friend! You give him %d %tde."), amount, Drug[ind].Name); To->Drugs[ind].TotalValue = To->Drugs[ind].TotalValue * (To->Drugs[ind].Carried - amount) / To->Drugs[ind].Carried; To->Drugs[ind].Carried -= amount; To->CoatSize += amount; } SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } else if (Sanitized) { /* Debugging message: we would normally have a random drug-related * event here, but "Sanitized" mode is turned on */ dopelog(3, LF_SERVER, _("Sanitized away a RandomOffer")); } else if (r < 50) { amount = brandom(3, 7); ind = IsCarryingRandom(To, amount); if (ind != -1) { dpg_string_sprintf(text, _("Police dogs chase you for %d blocks! " "You dropped some %tde! That's a drag, man!"), brandom(3, 7), Names.Drugs); To->Drugs[ind].TotalValue = To->Drugs[ind].TotalValue * (To->Drugs[ind].Carried - amount) / To->Drugs[ind].Carried; To->Drugs[ind].Carried -= amount; To->CoatSize += amount; SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } else { ind = brandom(0, NumDrug); amount = brandom(3, 7); if (amount > To->CoatSize) { g_string_free(text, TRUE); return 0; } dpg_string_sprintf(text, _("You find %d %tde on a dead dude in the subway!"), amount, Drug[ind].Name); To->Drugs[ind].Carried += amount; To->CoatSize -= amount; SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } } else if (r < 60 && To->Drugs[WEED].Carried + To->Drugs[HASHISH].Carried > 0) { ind = (To->Drugs[WEED].Carried > To->Drugs[HASHISH].Carried) ? WEED : HASHISH; amount = brandom(2, 6); if (amount > To->Drugs[ind].Carried) amount = To->Drugs[ind].Carried; dpg_string_sprintf(text, _("Your mama made brownies with some of your %tde! " "They were great!"), Drug[ind].Name); To->Drugs[ind].TotalValue = To->Drugs[ind].TotalValue * (To->Drugs[ind].Carried - amount) / To->Drugs[ind].Carried; To->Drugs[ind].Carried -= amount; To->CoatSize += amount; SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } else if (r < 65) { g_string_assign(text, _("YN^There is some weed that smells like paraquat " "here!^It looks good! Will you smoke it? ")); To->EventNum = E_WEED; SendQuestion(NULL, C_NONE, To, text->str); g_string_free(text, TRUE); return 1; } else if (NumStoppedTo > 0) { g_string_sprintf(text, _("You stopped to %s."), StoppedTo[brandom(0, NumStoppedTo)]); amount = brandom(1, 10); if (To->Cash >= amount) To->Cash -= amount; SendPlayerData(To); SendPrintMessage(NULL, C_NONE, To, text->str); } g_string_free(text, TRUE); return 0; } /* * Offers player "To" bitches/trenchcoats or guns. If ForceBitch is * TRUE, then a bitch is definitely offered. Returns 0 if the client * can advance immediately to the next state, 1 otherwise. */ int OfferObject(Player *To, gboolean ForceBitch) { int ObjNum; gchar *text = NULL; if (brandom(0, 100) < 50 || ForceBitch) { if (WantAntique) { To->Bitches.Price = prandom(MINTRENCHPRICE, MAXTRENCHPRICE); text = dpg_strdup_printf(_("YN^Would you like to buy a bigger " "trenchcoat for %P?"), To->Bitches.Price); } else { To->Bitches.Price = prandom(Bitch.MinPrice, Bitch.MaxPrice) / (price_t)10; text = dpg_strdup_printf(_ ("YN^Hey dude! I'll help carry your %tde for a " "mere %P. Yes or no?"), Names.Drugs, To->Bitches.Price); } SendQuestion(NULL, C_ASKBITCH, To, text); g_free(text); return 1; } else if (!Sanitized && NumGun > 0 && (TotalGunsCarried(To) < To->Bitches.Carried + 2)) { ObjNum = brandom(0, NumGun); To->Guns[ObjNum].Price = Gun[ObjNum].Price / 10; if (Gun[ObjNum].Space > To->CoatSize) return 0; text = dpg_strdup_printf(_("YN^Would you like to buy a %tde for %P?"), Gun[ObjNum].Name, To->Guns[ObjNum].Price); SendQuestion(NULL, C_ASKGUN, To, text); g_free(text); return 1; } return 0; } /* Whether a particular drug is especially cheap or expensive */ enum DealType { DT_NORMAL, DT_CHEAP, DT_EXPENSIVE }; /* * Generates drug prices and drug busts etc. for player "To" * "Deal" is an array of size NumDrug. */ static void GenerateDrugsHere(Player *To, enum DealType *Deal) { int NumEvents, NumDrugs, NumRandom, i; for (i = 0; i < NumDrug; i++) { To->Drugs[i].Price = 0; Deal[i] = DT_NORMAL; } NumEvents = 0; if (brandom(0, 100) < 70) NumEvents = 1; if (brandom(0, 100) < 40 && NumEvents == 1) NumEvents = 2; if (brandom(0, 100) < 5 && NumEvents == 2) NumEvents = 3; NumDrugs = 0; while (NumEvents > 0) { i = brandom(0, NumDrug); if (Deal[i] != DT_NORMAL) continue; if (Drug[i].Expensive && (!Drug[i].Cheap || brandom(0, 100) < 50)) { Deal[i] = DT_EXPENSIVE; To->Drugs[i].Price = prandom(Drug[i].MinPrice, Drug[i].MaxPrice) * Drugs.ExpensiveMultiply; NumDrugs++; NumEvents--; } else if (Drug[i].Cheap) { Deal[i] = DT_CHEAP; To->Drugs[i].Price = prandom(Drug[i].MinPrice, Drug[i].MaxPrice) / Drugs.CheapDivide; NumDrugs++; NumEvents--; } } NumRandom = brandom(Location[To->IsAt].MinDrug, Location[To->IsAt].MaxDrug); if (NumRandom > NumDrug) NumRandom = NumDrug; NumDrugs = NumRandom - NumDrugs; while (NumDrugs > 0) { i = brandom(0, NumDrug); if (To->Drugs[i].Price == 0) { To->Drugs[i].Price = prandom(Drug[i].MinPrice, Drug[i].MaxPrice); NumDrugs--; } } } /* * Sends details of drug prices to player "To". If "DisplayBusts" * is TRUE, also regenerates drug prices and sends details of * special events such as drug busts. */ void SendDrugsHere(Player *To, gboolean DisplayBusts) { int i; enum DealType *Deal = NULL; gchar *prstr; GString *text; gboolean First; Deal = g_new0(enum DealType, NumDrug); if (DisplayBusts) GenerateDrugsHere(To, Deal); text = g_string_new(NULL); First = TRUE; if (DisplayBusts) { for (i = 0; i < NumDrug; i++) { if (Deal[i] != DT_NORMAL) { if (!First) g_string_append_c(text, '^'); if (Deal[i] == DT_CHEAP) { g_string_append(text, Drug[i].CheapStr); } else { dpg_string_sprintfa(text, brandom(0, 100) < 50 ? Drugs.ExpensiveStr1 : Drugs.ExpensiveStr2, Drug[i].Name); } First = FALSE; } } } g_free(Deal); if (!First) SendPrintMessage(NULL, C_NONE, To, text->str); g_string_truncate(text, 0); for (i = 0; i < NumDrug; i++) { g_string_sprintfa(text, "%s^", (prstr = pricetostr(To->Drugs[i].Price))); g_free(prstr); } SendServerMessage(NULL, C_NONE, C_DRUGHERE, To, text->str); g_string_free(text, TRUE); } /* * Handles the incoming message in "answer" from player "From" and * intended for player "To". */ void HandleAnswer(Player *From, Player *To, char *answer) { int i; gchar *text; Player *Defender; if (!From || From->EventNum == E_NONE) return; if (answer[0] == 'Y' && From->EventNum == E_OFFOBJECT && From->Bitches.Price && From->Bitches.Price > From->Cash) answer[0] = 'N'; if ((From->EventNum == E_FIGHT || From->EventNum == E_FIGHTASK) && CanRunHere(From)) { From->EventNum = E_FIGHT; if (answer[0] == 'R' || answer[0] == 'Y') { RunFromCombat(From, -1); } else { Fire(From); } } else if (answer[0] == 'Y') switch (From->EventNum) { case E_OFFOBJECT: if (g_slist_find(FirstServer, (gpointer)From->OnBehalfOf)) { dopelog(3, LF_SERVER, _("%s: offer was on behalf of %s"), GetPlayerName(From), GetPlayerName(From->OnBehalfOf)); if (From->Bitches.Price) { text = dpg_strdup_printf(_("%s has accepted your %tde!" "^Use the G key to contact your spy."), GetPlayerName(From), Names.Bitch); From->OnBehalfOf->Flags |= SPYINGON; SendPlayerData(From->OnBehalfOf); SendPrintMessage(NULL, C_NONE, From->OnBehalfOf, text); g_free(text); i = GetListEntry(&(From->SpyList), From->OnBehalfOf); if (i >= 0) From->SpyList.Data[i].Turns = 0; } } if (From->Bitches.Price) { text = g_strdup_printf("bitch^0^1"); BuyObject(From, text); g_free(text); } else { for (i = 0; i < NumGun; i++) if (From->Guns[i].Price) { text = g_strdup_printf("gun^%d^1", i); BuyObject(From, text); g_free(text); break; } } From->OnBehalfOf = NULL; From->EventNum++; SendEvent(From); break; case E_LOANSHARK: SendServerMessage(NULL, C_NONE, C_LOANSHARK, From, NULL); break; case E_BANK: SendServerMessage(NULL, C_NONE, C_BANK, From, NULL); break; case E_GUNSHOP: for (i = 0; i < NumGun; i++) From->Guns[i].Price = Gun[i].Price; SendServerMessage(NULL, C_NONE, C_GUNSHOP, From, NULL); break; case E_HIREBITCH: text = g_strdup_printf("bitch^0^1"); BuyObject(From, text); g_free(text); From->EventNum++; SendEvent(From); break; case E_ROUGHPUB: From->EventNum++; SendEvent(From); break; case E_WEED: FinishGame(From, _("You hallucinated for three days on the wildest " "trip you ever imagined!^Then you died because " "your brain disintegrated!")); break; case E_DOCTOR: if (From->Cash >= From->DocPrice) { From->Cash -= From->DocPrice; From->Health = 100; SendPlayerData(From); } WaitForFightDone(From); break; default: break; } else if (From->EventNum == E_ARRIVE) { if ((answer[0] == 'A' || answer[0] == 'T') && IsConnectedPlayer(From->OnBehalfOf) && g_slist_find(FirstServer, (gpointer)From->OnBehalfOf)) { Defender = From->OnBehalfOf; From->OnBehalfOf = NULL; /* So we don't think it was a tipoff */ if (Defender->IsAt == From->IsAt) { if (answer[0] == 'A') { From->EventNum = Defender->EventNum = E_NONE; AttackPlayer(From, Defender); } } else { text = g_strdup_printf(_("Too late - %s has just left!"), GetPlayerName(Defender)); SendPrintMessage(NULL, C_MISSFIGHT, From, text); g_free(text); From->EventNum++; SendEvent(From); } } else { From->EventNum++; SendEvent(From); } From->OnBehalfOf = NULL; } else switch (From->EventNum) { case E_ROUGHPUB: From->EventNum++; From->EventNum++; SendEvent(From); break; case E_DOCTOR: WaitForFightDone(From); break; case E_HIREBITCH: case E_GUNSHOP: case E_BANK: case E_LOANSHARK: case E_OFFOBJECT: case E_WEED: if (g_slist_find(FirstServer, (gpointer)From->OnBehalfOf)) { dopelog(3, LF_SERVER, _("%s: offer was on behalf of %s"), GetPlayerName(From), GetPlayerName(From->OnBehalfOf)); if (From->Bitches.Price && From->EventNum == E_OFFOBJECT) { text = dpg_strdup_printf(_("%s has rejected your %tde!"), GetPlayerName(From), Names.Bitch); GainBitch(From->OnBehalfOf); SendPlayerData(From->OnBehalfOf); SendPrintMessage(NULL, C_NONE, From->OnBehalfOf, text); g_free(text); RemoveListPlayer(&(From->SpyList), From->OnBehalfOf); } } From->EventNum++; SendEvent(From); break; default: break; } } /* * Processes a request stored in "data" from player "From" to buy an * object (bitch, gun, or drug). * Objects can be sold if the amount given in "data" is negative, and * given away if their current price is zero. */ void BuyObject(Player *From, char *data) { char *cp, *type; int index, i, amount; cp = data; type = GetNextWord(&cp, ""); index = GetNextInt(&cp, 0); amount = GetNextInt(&cp, 0); if (strcmp(type, "drug") == 0) { if (index >= 0 && index < NumDrug && From->Drugs[index].Carried + amount >= 0 && From->CoatSize - amount >= 0 && (From->Drugs[index].Price != 0 || amount < 0) && From->Cash >= amount * From->Drugs[index].Price) { if (amount > 0) { From->Drugs[index].TotalValue += amount * From->Drugs[index].Price; } else if (From->Drugs[index].Carried != 0) { From->Drugs[index].TotalValue = From->Drugs[index].TotalValue * (From->Drugs[index].Carried + amount) / From->Drugs[index].Carried; } From->Drugs[index].Carried += amount; From->CoatSize -= amount; From->Cash -= amount * From->Drugs[index].Price; SendPlayerData(From); if (!Sanitized && NumCop > 0 && NumGun > 0 && (From->Drugs[index].Price == 0 && brandom(0, 100) < Location[From->IsAt].PolicePresence)) { gchar *text; text = dpg_strdup_printf(_("The cops spot you dropping %tde!"), Names.Drugs); SendPrintMessage(NULL, C_NONE, From, text); g_free(text); CopsAttackPlayer(From); } } } else if (strcmp(type, "gun") == 0) { if (index >= 0 && index < NumGun && TotalGunsCarried(From) + amount >= 0 && TotalGunsCarried(From) + amount <= From->Bitches.Carried + 2 && From->Guns[index].Price != 0 && From->CoatSize - amount * Gun[index].Space >= 0 && From->Cash >= amount * From->Guns[index].Price) { From->Guns[index].Carried += amount; From->CoatSize -= amount * Gun[index].Space; From->Cash -= amount * From->Guns[index].Price; SendPlayerData(From); } } else if (strcmp(type, "bitch") == 0) { if (From->Bitches.Carried + amount >= 0 && From->Bitches.Price != 0 && amount * From->Bitches.Price <= From->Cash) { for (i = 0; i < amount; i++) GainBitch(From); if (amount > 0) From->Cash -= amount * From->Bitches.Price; SendPlayerData(From); } } } /* * Clears the bitch and gun prices stored for player "Play". */ void ClearPrices(Player *Play) { int i; Play->Bitches.Price = 0; for (i = 0; i < NumGun; i++) Play->Guns[i].Price = 0; } /* * Gives player "Play" a new bitch (or larger trenchcoat). */ void GainBitch(Player *Play) { Play->CoatSize += 10; Play->Bitches.Carried++; } /* * Loses one bitch belonging to player "Play". If drugs or guns are * lost with the bitch, 1 is returned (0 otherwise) and the lost * items are added to "Guns" and "Drugs" if non-NULL. */ int LoseBitch(Player *Play, Inventory *Guns, Inventory *Drugs) { int losedrug = 0, i, num, drugslost; int *GunIndex, tmp; GunIndex = g_new(int, NumGun); ClearInventory(Guns, Drugs); Play->CoatSize -= 10; if (TotalGunsCarried(Play) > 0) { if (brandom(0, 100) < TotalGunsCarried(Play) * 100 / (Play->Bitches.Carried + 2)) { for (i = 0; i < NumGun; i++) GunIndex[i] = i; for (i = 0; i < NumGun * 5; i++) { num = brandom(0, NumGun - 1); tmp = GunIndex[num + 1]; GunIndex[num + 1] = GunIndex[num]; GunIndex[num] = tmp; } for (i = 0; i < NumGun; i++) { if (Play->Guns[GunIndex[i]].Carried > 0) { Play->Guns[GunIndex[i]].Carried--; losedrug = 1; Play->CoatSize += Gun[GunIndex[i]].Space; if (Guns) Guns[GunIndex[i]].Carried++; break; } } } } for (i = 0; i < NumDrug; i++) if (Play->Drugs[i].Carried > 0) { num = (int)((float)Play->Drugs[i].Carried / (Play->Bitches.Carried + 2.0) + 0.5); if (num > 0) { Play->Drugs[i].TotalValue = Play->Drugs[i].TotalValue * (Play->Drugs[i].Carried - num) / Play->Drugs[i].Carried; Play->Drugs[i].Carried -= num; if (Drugs) Drugs[i].Carried += num; Play->CoatSize += num; losedrug = 1; } } while (Play->CoatSize < 0) { drugslost = 0; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0) { losedrug = 1; drugslost = 1; Play->Drugs[i].TotalValue = Play->Drugs[i].TotalValue * (Play->Drugs[i].Carried - 1) / Play->Drugs[i].Carried; Play->Drugs[i].Carried--; Play->CoatSize++; if (Play->CoatSize >= 0) break; } } if (!drugslost) for (i = 0; i < NumGun; i++) { if (Play->Guns[i].Carried > 0) { losedrug = 1; Play->Guns[i].Carried--; Play->CoatSize += Gun[i].Space; if (Play->CoatSize >= 0) break; } } } Play->Bitches.Carried--; g_free(GunIndex); return losedrug; } /* * If fight timeouts are in force, sets the timeout for the given player. */ void SetFightTimeout(Player *Play) { if (FightTimeout) { Play->FightTimeout = time(NULL) + (time_t) FightTimeout; /* Make sure we have a higher tiebreak value than any other player with * the same fight timeout (since FightTimeout only has second resolution, * and possibly only microseconds have elapsed) */ Play->tiebreak = 0; if (Play->FightTimeout) { GSList *listpt; for (listpt = FirstServer; listpt; listpt = g_slist_next(listpt)) { Player *listplay = (Player *)listpt->data; if (listplay && listplay != Play && listplay->FightTimeout == Play->FightTimeout) { Play->tiebreak = MAX(Play->tiebreak, listplay->tiebreak + 1); } } } } else { Play->FightTimeout = 0; } } /* * Removes any fight timeout for the given player. */ void ClearFightTimeout(Player *Play) { Play->FightTimeout = 0; } /* * Given the time of a pending event in "timeout" and the current time in * "timenow", updates "mintime" with the number of seconds to that event, * unless "mintime" is already smaller (as long as it's not -1, which * means "uninitialized"). Returns 1 if the timeout has already expired. */ int AddTimeout(time_t timeout, time_t timenow, int *mintime) { if (timeout == 0) return 0; else if (timeout <= timenow) return 1; else { if (*mintime < 0 || timeout - timenow < *mintime) *mintime = timeout - timenow; return 0; } } /* * Returns the number of seconds until the next scheduled event. If such * an event has already expired, returns 0. If no events are pending, * returns -1. "First" should point to a list of valid players. */ int GetMinimumTimeout(GSList *First) { Player *Play; GSList *list; int mintime = -1; time_t timenow; timenow = time(NULL); if (AddTimeout(MetaMinTimeout, timenow, &mintime)) return 0; if (AddTimeout(MetaUpdateTimeout, timenow, &mintime)) return 0; for (list = First; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (AddTimeout(Play->FightTimeout, timenow, &mintime) || AddTimeout(Play->IdleTimeout, timenow, &mintime) || AddTimeout(Play->ConnectTimeout, timenow, &mintime)) return 0; } return mintime; } /* * Given a list of players in "First", checks to see if any events * have timed out, and if so, performs the necessary actions. The * new start of the list is returned, since a player may be removed * if their ConnectTimeout has expired. */ GSList *HandleTimeouts(GSList *First) { GSList *list, *nextlist; Player *Play; time_t timenow; timenow = time(NULL); if (MetaMinTimeout <= timenow) { MetaMinTimeout = 0; if (MetaPlayerPending) { dopelog(3, LF_SERVER, _("Sending pending updates to the metaserver...")); RegisterWithMetaServer(TRUE, TRUE, FALSE); } } if (MetaUpdateTimeout != 0 && MetaUpdateTimeout <= timenow) { dopelog(3, LF_SERVER, _("Sending reminder message to the metaserver...")); RegisterWithMetaServer(TRUE, FALSE, FALSE); } list = First; while (list) { nextlist = g_slist_next(list); Play = (Player *)list->data; if (Play->IdleTimeout != 0 && Play->IdleTimeout <= timenow) { Play->IdleTimeout = 0; dopelog(1, LF_SERVER, _("Player removed due to idle timeout")); SendPrintMessage(NULL, C_NONE, Play, "Disconnected due to idle timeout"); ClientLeftServer(Play); /* Blank the name, so that CountPlayers ignores this player */ SetPlayerName(Play, NULL); /* Make sure they do actually disconnect, eventually! */ if (ConnectTimeout) { Play->ConnectTimeout = time(NULL) + (time_t) ConnectTimeout; } } else if (Play->ConnectTimeout != 0 && Play->ConnectTimeout <= timenow) { Play->ConnectTimeout = 0; dopelog(1, LF_SERVER, _("Player removed due to connect timeout")); First = RemovePlayer(Play, First); } else if (IsConnectedPlayer(Play) && Play->FightTimeout != 0 && Play->FightTimeout <= timenow) { ClearFightTimeout(Play); if (IsCop(Play)) Fire(Play); else SendFightReload(Play); } list = nextlist; } return First; } dopewars-1.5.12/src/dopewars.rc0000644001565000007070000000044407537614607013334 00000000000000#include 1 24 "dopewars.manifest" mainicon ICON pill.ico gtkdialog DIALOG 40, 40, 40, 40 STYLE WS_POPUP | WS_CAPTION | WS_THICKFRAME | DS_MODALFRAME | WS_SYSMENU CAPTION "" BEGIN END tabpage DIALOG 40, 40, 40, 40 STYLE DS_CONTROL | WS_CHILD | DS_3DLOOK | WS_VISIBLE BEGIN END dopewars-1.5.12/src/configfile.c0000644001565000007070000001676610355322765013442 00000000000000/************************************************************************ * configfile.c Functions for dealing with dopewars config files * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include /* For memcmp etc. */ #include /* For fgetc etc. */ #include /* For atoi */ #include /* For errno */ #include /* For isprint */ #include #include "configfile.h" #include "convert.h" /* For Converter */ #include "dopewars.h" /* For struct GLOBALS etc. */ #include "nls.h" /* For _ function */ #include "error.h" /* For ErrStrFromErrno */ gchar *LocalCfgEncoding = NULL; /* * Prints the given string to a file, converting control characters * and escaping other special characters. */ static void PrintEscaped(FILE *fp, gchar *str) { guint i; for (i = 0; i < strlen(str); i++) { int ch = (int)(guchar)str[i]; switch(ch) { case '"': case '\'': case '\\': fputc('\\', fp); fputc(ch, fp); break; case '\n': fputs("\\n", fp); break; case '\t': fputs("\\t", fp); break; case '\r': fputs("\\r", fp); break; case '\b': fputs("\\b", fp); break; case '\f': fputs("\\f", fp); break; default: if (isascii(ch) && isprint(ch)) { fputc(ch, fp); } else { fprintf(fp, "\\%o", ch); } } } } /* * Writes a single configuration file variable (identified by GlobalIndex * and StructIndex) to the specified file, in a format suitable for reading * back in (via. ParseNextConfig and friends). */ static void WriteConfigValue(FILE *fp, Converter *conv, int GlobalIndex, int StructIndex) { gchar *GlobalName; if (Globals[GlobalIndex].NameStruct[0]) { GlobalName = g_strdup_printf("%s[%d].%s", Globals[GlobalIndex].NameStruct, StructIndex, Globals[GlobalIndex].Name); } else { GlobalName = Globals[GlobalIndex].Name; } if (Globals[GlobalIndex].IntVal) { fprintf(fp, "%s = %d\n", GlobalName, *GetGlobalInt(GlobalIndex, StructIndex)); } else if (Globals[GlobalIndex].BoolVal) { fprintf(fp, "%s = %s\n", GlobalName, *GetGlobalBoolean(GlobalIndex, StructIndex) ? "TRUE" : "FALSE"); } else if (Globals[GlobalIndex].PriceVal) { gchar *prstr = pricetostr(*GetGlobalPrice(GlobalIndex, StructIndex)); fprintf(fp, "%s = %s\n", GlobalName, prstr); g_free(prstr); } else if (Globals[GlobalIndex].StringVal) { gchar *convstr; fprintf(fp, "%s = \"", GlobalName); convstr = Conv_ToExternal(conv, *GetGlobalString(GlobalIndex, StructIndex), -1); PrintEscaped(fp, convstr); g_free(convstr); fputs("\"\n", fp); } else if (Globals[GlobalIndex].StringList) { int i; gchar *convstr; fprintf(fp, "%s = { ", GlobalName); for (i = 0; i < *Globals[GlobalIndex].MaxIndex; i++) { if (i > 0) fputs(", ", fp); fputc('"', fp); convstr = Conv_ToExternal(conv, (*Globals[GlobalIndex].StringList)[i], -1); PrintEscaped(fp, convstr); g_free(convstr); fputc('"', fp); } fputs(" }\n", fp); } if (Globals[GlobalIndex].NameStruct[0]) g_free(GlobalName); } static void ReadFileToString(FILE *fp, gchar *str, int matchlen) { int len, mpos, ch; gchar *match; GString *file; file = g_string_new(""); len = strlen(str); if (matchlen > 0) { len = MIN(len, matchlen); } match = g_new(gchar, len); mpos = 0; while (mpos < len && (ch = fgetc(fp)) != EOF) { g_string_append_c(file, ch); match[mpos++] = ch; if (ch != str[mpos - 1]) { int start; gboolean shortmatch = FALSE; for (start = 1; start < mpos; start++) { if (memcmp(str, &match[start], mpos - start) == 0) { mpos -= start; memmove(match, &match[start], mpos); shortmatch = TRUE; break; } } if (!shortmatch) mpos = 0; } } g_string_truncate(file, file->len - mpos); g_free(match); rewind(fp); ftruncate(fileno(fp), 0); fputs(file->str, fp); fputs(str, fp); g_string_free(file, TRUE); } /* * Writes all of the configuration file variables that have changed * (together with their values) to the given file. */ static void WriteConfigFile(FILE *fp, gboolean ForceUTF8) { int i, j; Converter *conv = Conv_New(); if (ForceUTF8 && !IsConfigFileUTF8()) { g_free(LocalCfgEncoding); LocalCfgEncoding = g_strdup("UTF-8"); fputs("encoding \"UTF-8\"\n", fp); } if (LocalCfgEncoding && LocalCfgEncoding[0]) { Conv_SetCodeset(conv, LocalCfgEncoding); } for (i = 0; i < NUMGLOB; i++) { if (Globals[i].Modified) { if (Globals[i].NameStruct[0]) { for (j = 1; j <= *Globals[i].MaxIndex; j++) { WriteConfigValue(fp, conv, i, j); } } else { WriteConfigValue(fp, conv, i, 0); } } } Conv_Free(conv); } gboolean UpdateConfigFile(const gchar *cfgfile, gboolean ForceUTF8) { FILE *fp; gchar *defaultfile; static gchar *header = "\n### Everything from here on is written automatically by\n" "### the dopewars program; you can edit it manually, but any\n" "### formatting (comments, etc.) will be lost at the next rewrite.\n\n"; defaultfile = GetLocalConfigFile(); if (!cfgfile || !cfgfile[0]) { cfgfile = defaultfile; if (!cfgfile) { g_warning(_("Could not determine local config file to write to")); return FALSE; } } fp = fopen(cfgfile, "r+"); if (!fp) { fp = fopen(cfgfile, "w+"); } if (!fp) { gchar *errstr = ErrStrFromErrno(errno); g_warning(_("Could not open file %s: %s"), cfgfile, errstr); g_free(errstr); g_free(defaultfile); return FALSE; } ReadFileToString(fp, header, 50); WriteConfigFile(fp, ForceUTF8); fclose(fp); g_free(defaultfile); return TRUE; } gboolean IsConfigFileUTF8(void) { return (LocalCfgEncoding && strcmp(LocalCfgEncoding, "UTF-8") == 0); } dopewars-1.5.12/src/convert.c0000644001565000007070000001003410137122015012753 00000000000000/************************************************************************ * convert.c Codeset conversion functions * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "convert.h" static gchar *int_codeset = NULL; static const gchar *FixedCodeset(const gchar *codeset) { if (strcmp(codeset, "ANSI_X3.4-1968") == 0 || strcmp(codeset, "ASCII") == 0) { return "ISO-8859-1"; } else { return codeset; } } void Conv_SetInternalCodeset(const gchar *codeset) { g_free(int_codeset); int_codeset = g_strdup(FixedCodeset(codeset)); } static const gchar *GetLocaleCodeset(void) { #ifdef HAVE_GLIB2 const gchar *codeset; g_get_charset(&codeset); return FixedCodeset(codeset); #else return "ISO-8859-1"; #endif } Converter *Conv_New(void) { Converter *conv; conv = g_new(Converter, 1); conv->ext_codeset = g_strdup(GetLocaleCodeset()); if (!int_codeset) { int_codeset = g_strdup(GetLocaleCodeset()); } return conv; } void Conv_Free(Converter *conv) { g_free(conv->ext_codeset); g_free(conv); } void Conv_SetCodeset(Converter *conv, const gchar *codeset) { g_free(conv->ext_codeset); conv->ext_codeset = g_strdup(FixedCodeset(codeset)); } gboolean Conv_Needed(Converter *conv) { #ifdef HAVE_GLIB2 return (strcmp(conv->ext_codeset, int_codeset) != 0 || strcmp(int_codeset, "UTF-8") == 0); #else return FALSE; #endif } static gchar *do_convert(const gchar *from_codeset, const gchar *to_codeset, const gchar *from_str, int from_len) { #ifdef HAVE_GLIB2 gchar *to_str; if (strcmp(to_codeset, "UTF-8") == 0 && strcmp(from_codeset, "UTF-8") == 0) { const gchar *start, *end; if (from_len == -1) { to_str = g_strdup(from_str); } else { to_str = g_strndup(from_str, from_len); } start = to_str; while (start && *start && !g_utf8_validate(start, -1, &end) && end && *end) { *((gchar *)end) = '?'; start = ++end; } return to_str; } else { to_str = g_convert_with_fallback(from_str, from_len, to_codeset, from_codeset, "?", NULL, NULL, NULL); if (to_str) { return to_str; } else { return g_strdup("[?]"); } } #else if (from_len == -1) { return g_strdup(from_str); } else { return g_strndup(from_str, from_len); } #endif } gchar *Conv_ToExternal(Converter *conv, const gchar *int_str, int len) { return do_convert(int_codeset, conv->ext_codeset, int_str, len); } gchar *Conv_ToInternal(Converter *conv, const gchar *ext_str, int len) { return do_convert(conv->ext_codeset, int_codeset, ext_str, len); } dopewars-1.5.12/src/dopewars.manifest0000644001565000007070000000122407531164116014520 00000000000000 dopewars drug dealing game dopewars-1.5.12/src/log.h0000644001565000007070000000370410355116554012104 00000000000000/************************************************************************ * log.h Logging functions for dopewars * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_LOG_H__ #define __DP_LOG_H__ #ifdef HAVE_CONFIG_H #include #endif #include typedef enum { LF_SERVER = (1 << 0) } LogFlags; void dopelog(const int loglevel, const LogFlags flags, const gchar *format, ...); GLogLevelFlags LogMask(void); GString *GetLogString(GLogLevelFlags log_level, const gchar *message); void OpenLog(void); void CloseLog(void); #endif /* __DP_LOG_H__ */ dopewars-1.5.12/src/message.h0000644001565000007070000001513110355116554012744 00000000000000/************************************************************************ * message.h Header file for dopewars message-handling routines * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_MESSAGE_H__ #define __DP_MESSAGE_H__ #ifdef HAVE_CONFIG_H #include #endif #include #include "error.h" #include "dopewars.h" #include "network.h" typedef enum { C_PRINTMESSAGE = 'A', C_LIST, C_ENDLIST, C_NEWNAME, C_MSG, C_MSGTO, C_JOIN, C_LEAVE, C_SUBWAYFLASH, C_UPDATE, C_DRUGHERE, C_GUNSHOP, C_LOANSHARK, C_BANK, C_QUESTION, C_UNUSED, C_HISCORE, C_STARTHISCORE, C_ENDHISCORE, C_BUYOBJECT, C_DONE, C_REQUESTJET, C_PAYLOAN, C_ANSWER, C_DEPOSIT, C_PUSH, C_QUIT = 'a', C_RENAME, C_NAME, C_SACKBITCH, C_TIPOFF, C_SPYON, C_WANTQUIT, C_CONTACTSPY, C_KILL, C_REQUESTSCORE, C_INIT, C_DATA, C_FIGHTPRINT, C_FIGHTACT, C_TRADE, C_CHANGEDISP, C_NETMESSAGE, C_ABILITIES } MsgCode; typedef enum { C_NONE = 'A', C_ASKLOAN, C_COPSMESG, C_ASKBITCH, C_ASKGUN, C_ASKGUNSHOP, C_ASKPUB, C_ASKBANK, C_ASKRUN, C_ASKRUNFIGHT, C_ASKSEW, C_MEETPLAYER, C_FIGHT, C_FIGHTDONE, C_MOTD, C_VERSIONCHECK, C_MISSFIGHT } AICode; #define DT_LOCATION 'A' #define DT_DRUG 'B' #define DT_GUN 'C' #define DT_PRICES 'D' typedef enum { F_ARRIVED = 'A', F_STAND = 'S', F_HIT = 'H', F_MISS = 'M', F_RELOAD = 'R', F_LEAVE = 'L', F_LASTLEAVE = 'D', F_FAILFLEE = 'F', F_MSG = 'G' } FightPoint; void SendClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data); void SendNullClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data); void DoSendClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data, Player *BufOwn); void SendServerMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data); void SendPrintMessage(Player *From, AICode AI, Player *To, char *Data); void SendQuestion(Player *From, AICode AI, Player *To, char *Data); #if NETWORKING gboolean PlayerHandleNetwork(Player *Play, gboolean ReadReady, gboolean WriteReady, gboolean *DoneOK); gboolean ReadPlayerDataFromWire(Player *Play); void QueuePlayerMessageForSend(Player *Play, gchar *data); gboolean WritePlayerDataToWire(Player *Play); gchar *GetWaitingPlayerMessage(Player *Play); gboolean OpenMetaHttpConnection(HttpConnection **conn); gboolean HandleWaitingMetaServerData(HttpConnection *conn, GSList **listpt, gboolean *doneOK); void ClearServerList(GSList **listpt); #endif /* NETWORKING */ extern GSList *FirstClient; extern void (*ClientMessageHandlerPt) (char *, Player *); void InitNetwork(void); void AddURLEnc(GString *str, gchar *unenc); void chomp(char *str); void BroadcastToClients(AICode AI, MsgCode Code, char *Data, Player *From, Player *Except); void SendInventory(Player *From, AICode AI, MsgCode Code, Player *To, Inventory *Guns, Inventory *Drugs); void ReceiveInventory(char *Data, Inventory *Guns, Inventory *Drugs); void SendPlayerData(Player *To); void SendSpyReport(Player *To, Player *SpiedOn); void ReceivePlayerData(Player *Play, char *text, Player *From); void SendInitialData(Player *To); void ReceiveInitialData(Player *Play, char *data); void SendMiscData(Player *To); void ReceiveMiscData(char *Data); gchar *GetNextWord(gchar **Data, gchar *Default); void AssignNextWord(gchar **Data, gchar **Dest); int GetNextInt(gchar **Data, int Default); price_t GetNextPrice(gchar **Data, price_t Default); void ShutdownNetwork(Player *Play); void SwitchToSinglePlayer(Player *Play); int ProcessMessage(char *Msg, Player *Play, Player **Other, AICode *AI, MsgCode *Code, char **Data, GSList *First); void ReceiveDrugsHere(char *text, Player *To); gboolean HandleGenericClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data, DispMode *DisplayMode); void InitAbilities(Player *Play); void SendAbilities(Player *Play); void ReceiveAbilities(Player *Play, gchar *Data); void CombineAbilities(Player *Play); void SetAbility(Player *Play, gint Type, gboolean Set); gboolean HaveAbility(Player *Play, gint Type); void SendFightReload(Player *To); void SendOldCanFireMessage(Player *To, GString *text); void SendOldFightPrint(Player *To, GString *text, gboolean FightOver); void SendFightLeave(Player *Play, gboolean FightOver); void ReceiveFightMessage(gchar *Data, gchar **AttackName, gchar **DefendName, int *DefendHealth, int *DefendBitches, gchar **BitchName, int *BitchesKilled, int *ArmPercent, FightPoint *fp, gboolean *CanRunHere, gboolean *Loot, gboolean *CanFire, gchar **Message); void SendFightMessage(Player *Attacker, Player *Defender, int BitchesKilled, FightPoint fp, price_t Loot, gboolean Broadcast, gchar *Msg); void FormatFightMessage(Player *To, GString *text, Player *Attacker, Player *Defender, int BitchesKilled, int ArmPercent, FightPoint fp, price_t Loot); #endif /* __DP_MESSAGE_H__ */ dopewars-1.5.12/src/dopewars.h0000644001565000007070000003327710355116554013157 00000000000000/************************************************************************ * dopewars.h Common structures and stuff for dopewars * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_DOPEWARS_H__ #define __DP_DOPEWARS_H__ #ifdef HAVE_CONFIG_H #include #endif #include /* Be careful not to include both sys/time.h and time.h on those systems * which don't like it */ #if TIME_WITH_SYS_TIME #include #include #else #if HAVE_SYS_TIME_H #include #else #include #endif #endif #include #include "convert.h" #include "error.h" #include "network.h" #include "util.h" /* Make price_t be a long long if the type is supported by the compiler */ #if SIZEOF_LONG_LONG == 0 typedef long price_t; #else typedef long long price_t; #endif /* "Abilities" are protocol extensions, which are negotiated between the * client and server at connect-time. */ typedef enum { A_PLAYERID = 0, /* Use numeric IDs rather than player * names in network messages */ A_DRUGVALUE, /* Server keeps track of purchase price * of drugs */ A_NEWFIGHT, /* Use new unified fighting code */ A_TSTRING, /* We understand the %Txx (tstring) * notation */ A_DONEFIGHT, /* A fight is only considered over once the * client sends the server a C_DONE message */ A_UTF8, /* All strings are sent over the network using * UTF-8 (Unicode) encoding */ A_DATE, /* We can understand "proper" dd-mm-yy dates * rather than just turn numbers */ A_NUM /* N.B. Must be last */ } AbilType; typedef struct ABILITIES { gboolean Local[A_NUM]; /* Abilities that we have */ gboolean Remote[A_NUM]; /* Those that the other end of the * connection has */ gboolean Shared[A_NUM]; /* Abilites shared by us and the * remote host */ gint RemoteNum; /* The remote host's idea of what A_NUM is */ } Abilities; struct NAMES { gchar *Bitch, *Bitches, *Gun, *Guns, *Drug, *Drugs; gchar *Date, *LoanSharkName, *BankName; gchar *GunShopName, *RoughPubName; }; struct SOUNDS { gchar *FightHit, *FightMiss, *FightReload, *Jet, *TalkToAll, *TalkPrivate; gchar *JoinGame, *LeaveGame, *StartGame, *EndGame; gchar *EnemyBitchKilled, *BitchKilled, *EnemyKilled, *Killed; gchar *EnemyFailFlee, *FailFlee, *EnemyFlee, *Flee; }; #ifdef NETWORKING struct METASERVER { gboolean Active; gchar *Name; unsigned Port; gchar *ProxyName; unsigned ProxyPort; gchar *Path, *LocalName, *Password, *Comment; gboolean UseSocks; gchar *authuser, *authpassword, *proxyuser, *proxypassword; }; #endif struct CURRENCY { gchar *Symbol; gboolean Prefix; }; struct PRICES { price_t Spy, Tipoff; }; struct BITCH { price_t MinPrice, MaxPrice; }; typedef enum { CLIENT_AUTO, CLIENT_WINDOW, CLIENT_CURSES } ClientType; typedef enum { DM_NONE, DM_STREET, DM_FIGHT, DM_DEAL } DispMode; typedef enum { E_NONE = 0, E_SUBWAY, E_OFFOBJECT, E_WEED, E_SAYING, E_LOANSHARK, E_BANK, E_GUNSHOP, E_ROUGHPUB, E_HIREBITCH, E_ARRIVE, E_MAX, E_FINISH = 100, E_OUTOFSYNC = 120, E_FIGHT, E_FIGHTASK, E_DOCTOR, E_WAITDONE, E_MAXOOS } EventCode; typedef enum { FIRSTTURN = 1 << 0, DEADHARDASS = 1 << 1, TIPPEDOFF = 1 << 2, SPIEDON = 1 << 3, SPYINGON = 1 << 4, FIGHTING = 1 << 5, CANSHOOT = 1 << 6, TRADING = 1 << 7 } PlayerFlags; typedef enum { ACID = 0, COCAINE, HASHISH, HEROIN, LUDES, MDA, OPIUM, PCP, PEYOTE, SHROOMS, SPEED, WEED } DrugIndex; struct LOG { gchar *File; gint Level; gchar *Timestamp; FILE *fp; }; struct DATE { int day, month, year; }; extern gboolean WantAntique; extern struct DATE StartDate; extern int ClientSock, ListenSock; extern gboolean Network, Client, Server, UseSounds; extern unsigned Port; extern gboolean Sanitized, ConfigVerbose, DrugValue; extern int NumLocation, NumGun, NumCop, NumDrug, NumSubway, NumPlaying, NumStoppedTo; extern int DebtInterest, BankInterest; extern gchar *HiScoreFile, *ServerName, *ConvertFile, *ServerMOTD, *BindAddress, *PlayerName; #ifdef CYGWIN extern gboolean MinToSysTray; #else extern gboolean Daemonize; #endif extern gchar *WebBrowser; extern int LoanSharkLoc, BankLoc, GunShopLoc, RoughPubLoc; extern int DrugSortMethod, FightTimeout, IdleTimeout, ConnectTimeout; extern int MaxClients, AITurnPause; extern struct CURRENCY Currency; extern struct PRICES Prices; extern struct BITCH Bitch; extern price_t StartCash, StartDebt; extern struct NAMES Names; extern struct SOUNDS Sounds; #ifdef NETWORKING extern struct METASERVER MetaServer; extern SocksServer Socks; extern gboolean UseSocks; #endif extern int NumTurns; extern int PlayerArmour, BitchArmour; #define MAXLOG 6 #define DS_ATOZ 1 #define DS_ZTOA 2 #define DS_CHEAPFIRST 3 #define DS_CHEAPLAST 4 #define DS_MAX 5 #define NUMHISCORE 18 #define DEFLOANSHARK 1 #define DEFBANK 1 #define DEFGUNSHOP 2 #define DEFROUGHPUB 2 #define METAVERSION 2 struct COP { gchar *Name, *DeputyName, *DeputiesName; gint Armour, DeputyArmour; gint AttackPenalty, DefendPenalty; gint MinDeputies, MaxDeputies; gint GunIndex; gint CopGun, DeputyGun; }; extern struct COP *Cop; struct GUN { gchar *Name; price_t Price; int Space; int Damage; }; extern struct GUN *Gun; struct HISCORE { gchar *Time; price_t Money; gboolean Dead; gchar *Name; }; struct LOCATION { gchar *Name; int PolicePresence; int MinDrug, MaxDrug; }; extern struct LOCATION *Location; struct DRUG { gchar *Name; price_t MinPrice, MaxPrice; gboolean Cheap, Expensive; gchar *CheapStr; }; extern struct DRUG *Drug; struct DRUGS { gchar *ExpensiveStr1, *ExpensiveStr2; int CheapDivide, ExpensiveMultiply; }; extern struct DRUGS Drugs; struct INVENTORY { price_t Price, TotalValue; int Carried; }; typedef struct INVENTORY Inventory; struct PLAYER_T; typedef struct PLAYER_T Player; struct TDopeEntry { Player *Play; int Turns; }; typedef struct TDopeEntry DopeEntry; struct TDopeList { DopeEntry *Data; int Number; }; typedef struct TDopeList DopeList; struct PLAYER_T { guint ID; int Turn; GDate *date; price_t Cash, Debt, Bank; int Health; int CoatSize; int IsAt; PlayerFlags Flags; gchar *Name; Inventory *Guns, *Drugs, Bitches; EventCode EventNum, ResyncNum; time_t FightTimeout, IdleTimeout, ConnectTimeout; guint tiebreak; price_t DocPrice; DopeList SpyList, TipList; Player *OnBehalfOf; #ifdef NETWORKING NetworkBuffer NetBuf; #endif Abilities Abil; GPtrArray *FightArray; /* If non-NULL, a list of players * in a fight */ Player *Attacking; /* The player that this player * is attacking */ gint CopIndex; /* if >0, then this player is a cop, * described by Cop[CopIndex-1]; * if ==0, this is a normal player that * has killed no cops; * if <0, then this is a normal player, * who has killed cops up to * Cop[-1-CopIndex] */ }; #define SN_PROMPT "(Prompt)" #define SN_META "(MetaServer)" #define SN_SINGLE "(Single)" typedef struct tag_serverdata { char *Name; unsigned Port; int MaxPlayers, CurPlayers; char *Comment, *Version, *Update, *UpSince; } ServerData; struct GLOBALS { int *IntVal; gboolean *BoolVal; price_t *PriceVal; gchar **StringVal; gchar ***StringList; char *Name, *Help; void **StructListPt, *StructStaticPt; int LenStruct; char *NameStruct; int *MaxIndex; void (*ResizeFunc) (int NewNum); gboolean Modified; int MinVal, MaxVal; }; struct CMDLINE { gboolean help, version, antique, colour, network; gboolean convert, admin, ai, server, notifymeta; gboolean setport; gchar *scorefile, *servername, *pidfile, *logfile, *plugin, *convertfile; gchar *playername; unsigned port; ClientType client; GSList *configs; }; extern const int NUMGLOB; extern struct GLOBALS Globals[]; extern Player Noone; extern char **Playing; extern char **SubwaySaying; extern char **StoppedTo; extern GSList *ServerList; extern GScannerConfig ScannerConfig; extern struct LOG Log; extern gint ConfigErrors; GSList *RemovePlayer(Player *Play, GSList *First); Player *GetPlayerByID(guint ID, GSList *First); Player *GetPlayerByName(gchar *Name, GSList *First); int CountPlayers(GSList *First); GSList *AddPlayer(int fd, Player *NewPlayer, GSList *First); void UpdatePlayer(Player *Play); void CopyPlayer(Player *Dest, Player *Src); void ClearInventory(Inventory *Guns, Inventory *Drugs); int IsCarryingRandom(Player *Play, int amount); void ChangeSpaceForInventory(Inventory *Guns, Inventory *Drugs, Player *Play); void InitList(DopeList *List); void AddListEntry(DopeList *List, DopeEntry *NewEntry); void RemoveListEntry(DopeList *List, int Entry); int GetListEntry(DopeList *List, Player *Play); void RemoveListPlayer(DopeList *List, Player *Play); void RemoveAllEntries(DopeList *List, Player *Play); void ClearList(DopeList *List); int TotalGunsCarried(Player *Play); int read_string(FILE *fp, char **buf); int brandom(int bot, int top); price_t prandom(price_t bot, price_t top); void AddInventory(Inventory *Cumul, Inventory *Add, int Length); void TruncateInventoryFor(Inventory *Guns, Inventory *Drugs, Player *Play); void PrintInventory(Inventory *Guns, Inventory *Drugs); price_t strtoprice(char *buf); gchar *pricetostr(price_t price); gchar *FormatPrice(price_t price); char IsInventoryClear(Inventory *Guns, Inventory *Drugs); void ResizeLocations(int NewNum); void ResizeCops(int NewNum); void ResizeGuns(int NewNum); void ResizeDrugs(int NewNum); void ResizeSubway(int NewNum); void ResizePlaying(int NewNum); void ResizeStoppedTo(int NewNum); void AssignName(gchar **dest, gchar *src); void CopyNames(struct NAMES *dest, struct NAMES *src); #ifdef NETWORKING void CopyMetaServer(struct METASERVER *dest, struct METASERVER *src); #endif void CopyLocation(struct LOCATION *dest, struct LOCATION *src); void CopyCop(struct COP *dest, struct COP *src); void CopyGun(struct GUN *dest, struct GUN *src); void CopyDrug(struct DRUG *dest, struct DRUG *src); void CopyDrugs(struct DRUGS *dest, struct DRUGS *src); int GetNextDrugIndex(int OldIndex, Player *Play); gchar *InitialCaps(gchar *string); char StartsWithVowel(char *string); char *GetPlayerName(Player *Play); void SetPlayerName(Player *Play, char *Name); struct CMDLINE *ParseCmdLine(int argc, char *argv[]); void FreeCmdLine(struct CMDLINE *cmdline); void InitConfiguration(struct CMDLINE *cmdline); void HandleHelpTexts(gboolean fullhelp); struct CMDLINE *GeneralStartup(int argc, char *argv[]); void StripTerminators(gchar *str); gboolean ParseNextConfig(GScanner *scanner, Converter *conv, gchar **encoding, gboolean print); int GetGlobalIndex(gchar *ID1, gchar *ID2); gchar **GetGlobalString(int GlobalIndex, int StructIndex); gint *GetGlobalInt(int GlobalIndex, int StructIndex); price_t *GetGlobalPrice(int GlobalIndex, int StructIndex); gboolean *GetGlobalBoolean(int GlobalIndex, int StructIndex); gchar ***GetGlobalStringList(int GlobalIndex, int StructIndex); void PrintConfigValue(int GlobalIndex, int StructIndex, gboolean IndexGiven, GScanner *scanner); gboolean IsCop(Player *Play); void RestoreConfig(void); void GetDateString(GString *str, Player *Play); void ScannerErrorHandler(GScanner *scanner, gchar *msg, gint error); gboolean IsConnectedPlayer(Player *play); void BackupConfig(void); gchar *GetDocRoot(void); gchar *GetDocIndex(void); gchar *GetGlobalConfigFile(void); gchar *GetLocalConfigFile(void); #ifndef CURSES_CLIENT void CursesLoop(struct CMDLINE *cmdline); #endif #ifndef GUI_CLIENT #ifdef CYGWIN gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance, struct CMDLINE *cmdline, gboolean ReturnOnFail); #else gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline, gboolean ReturnOnFail); #endif #endif #endif /* __DP_DOPEWARS_H__ */ dopewars-1.5.12/src/Makefile.am0000644001565000007070000000401007554747343013212 00000000000000# Nasty hack; there seems to be no other way of disabling libtool for the # link of the main executable... if PLUGINS MYLINK = $(LIBTOOL) --mode=link $(CCLD) else MYLINK = $(CCLD) endif LINK = $(MYLINK) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ if GUI_CLIENT GUISUBDIR = gui_client endif if CURSES_CLIENT CURSESSUBDIR = curses_client endif if GTKPORT GTKPORTSUBDIR = gtkport endif if CURSESPORT CURSESPORTSUBDIR = cursesport endif SUBDIRS = $(GUISUBDIR) $(CURSESSUBDIR) $(GTKPORTSUBDIR) $(CURSESPORTSUBDIR) plugins dopewars_LDADD = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @GTK_LIBS@ @INTLLIBS@ @WNDRES@ @PLUGOBJS@ @PLUGLIBS@ @GLIB_LIBS@ dopewars_DEPENDENCIES = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @INTLLIBS@ @WNDRES@ @PLUGOBJS@ bin_PROGRAMS = dopewars dopewars_SOURCES = admin.c admin.h AIPlayer.c AIPlayer.h util.c util.h \ configfile.c configfile.h convert.c convert.h \ dopewars.c dopewars.h error.c error.h log.c log.h \ message.c message.h network.c network.h nls.h \ serverside.c serverside.h sound.c sound.h \ tstring.c tstring.h winmain.c winmain.h INCLUDES = -I../intl -I${srcdir} -I.. @GLIB_CFLAGS@ @GTK_CFLAGS@ DEFS = @DEFS@ PIXDIR = ${DESTDIR}${datadir}/pixmaps DOPEDIR = ${DESTDIR}${bindir} DOPEBIN = ${DOPEDIR}/dopewars PIXMAPS = dopewars-pill.png dopewars-shot.png dopewars-weed.png EXTRA_DIST = ${PIXMAPS} pill.ico magic dopewars.rc dopewars.manifest CLEANFILES = dopewars.res dopewars.exe install-exec-hook: @chgrp games ${DOPEBIN} || chgrp wheel ${DOPEBIN} || \ ( echo "WARNING: Cannot change group of dopewars binary - the high"; \ echo "score file may be unreadable or unwriteable by some users" ) chmod 2755 ${DOPEBIN} install-data-local: ${mkinstalldirs} ${PIXDIR} for pix in ${PIXMAPS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${pix} ${PIXDIR}; \ done uninstall-local: for pix in ${PIXMAPS}; do \ /bin/rm -f ${PIXDIR}/$${pix}; \ done %.res: %.rc windres -O coff -o $@ $< dopewars-1.5.12/src/util.h0000644001565000007070000000535010355116554012277 00000000000000/************************************************************************ * util.h Miscellaneous utility and portability functions * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_UTIL_H__ #define __DP_UTIL_H__ #ifdef HAVE_CONFIG_H #include #endif #include #ifdef CYGWIN /* Definitions for native Win32 build */ #include #include #define SIGWINCH 0 #define SIGPIPE 0 #define SIG_BLOCK 0 #define SIG_UNBLOCK 0 struct sigaction { void *sa_handler; int sa_flags; int sa_mask; }; void sigemptyset(int *mask); void sigaddset(int *mask, int sig); int sigaction(int sig, struct sigaction *sact, char *pt); void sigprocmask(int flag, int *mask, char *pt); int bselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfs, struct timeval *tm); #else /* Definitions for Unix build */ #define bselect select #endif /* CYGWIN */ #ifndef HAVE_GETOPT int getopt(int argc, char *const argv[], const char *str); extern char *optarg; #endif void MicroSleep(int microsec); int ReadLock(FILE *fp); int WriteLock(FILE *fp); void ReleaseLock(FILE *fp); /* Now make definitions if they haven't been done properly */ #ifndef WEXITSTATUS #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif #endif /* __DP_UTIL_H__ */ dopewars-1.5.12/src/error.c0000644001565000007070000001607610355116554012455 00000000000000/************************************************************************ * error.c Error-handling routines for dopewars * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include /* For GString functions */ #include /* For strerror */ #ifdef CYGWIN #include /* For FormatMessage() etc. */ #include /* For WSAxxx constants */ #else #include /* For h_errno error codes */ #endif #include "error.h" #include "nls.h" static gboolean err_utf8_encoding = FALSE; /* * If "want" is TRUE, we want all error texts (via. strerror) in UTF8, * even if the locale's charset is not UTF8. */ void WantUTF8Errors(gboolean want) { err_utf8_encoding = want; } /* * Returns the strerror() error string for the given error code, * possibly translated to UTF8. N.B. Unlike strerror(), this string * must be g_free'd by the caller when no longer needed. */ gchar *ErrStrFromErrno(int errcode) { gchar *untran = strerror(errcode); #ifdef HAVE_GLIB2 if (err_utf8_encoding) { gchar *utf8str; utf8str = g_locale_to_utf8(untran, strlen(untran), NULL, NULL, NULL); if (utf8str) { return utf8str; } else { return g_strdup(_("(Error cannot be displayed in UTF-8)")); } } else { return g_strdup(untran); } #else return g_strdup(untran); #endif } void FreeError(LastError *error) { if (!error) return; if (error->type && error->type->FreeErrorData) { (*error->type->FreeErrorData)(error); } else { g_free(error->data); } g_free(error); } LastError *NewError(ErrorType *type, gint code, gpointer data) { LastError *error; error = g_new0(LastError, 1); error->type = type; error->code = code; error->data = data; return error; } void SetError(LastError **error, ErrorType *type, gint code, gpointer data) { if (!error) return; if (*error) FreeError(*error); *error = NewError(type, code, data); } void LookupErrorCode(GString *str, gint code, ErrTable *table, gchar *fallbackstr) { for (; table && table->string; table++) { if (code == table->code) { g_string_append(str, _(table->string)); return; } } g_string_sprintfa(str, fallbackstr, code); } /* "Custom" error handling */ static ErrTable CustomErrStr[] = { {E_FULLBUF, N_("Connection dropped due to full buffer")}, {0, NULL} }; void CustomAppendError(GString *str, LastError *error) { LookupErrorCode(str, error->code, CustomErrStr, _("Internal error code %d")); } static ErrorType ETCustom = { CustomAppendError, NULL }; ErrorType *ET_CUSTOM = &ETCustom; /* * "errno" error handling */ void ErrnoAppendError(GString *str, LastError *error) { gchar *errstr = ErrStrFromErrno(error->code); g_string_append(str, errstr); g_free(errstr); } static ErrorType ETErrno = { ErrnoAppendError, NULL }; ErrorType *ET_ERRNO = &ETErrno; #ifdef CYGWIN /* Winsock error handling */ static ErrTable WSAErrStr[] = { /* These are the explanations of the various * Windows Sockets error codes */ {WSANOTINITIALISED, N_("WinSock has not been properly initialised")}, {WSASYSNOTREADY, N_("Network subsystem is not ready")}, {WSAVERNOTSUPPORTED, N_("WinSock version not supported")}, {WSAENETDOWN, N_("The network subsystem has failed")}, {WSAEADDRINUSE, N_("Address already in use")}, {WSAENETDOWN, N_("Cannot reach the network")}, {WSAETIMEDOUT, N_("The connection timed out")}, {WSAEMFILE, N_("Out of file descriptors")}, {WSAENOBUFS, N_("Out of buffer space")}, {WSAEOPNOTSUPP, N_("Operation not supported")}, {WSAECONNABORTED, N_("Connection aborted due to failure")}, {WSAECONNRESET, N_("Connection reset by remote host")}, {WSAECONNREFUSED, N_("Connection refused")}, {WSAEAFNOSUPPORT, N_("Address family not supported")}, {WSAEPROTONOSUPPORT, N_("Protocol not supported")}, {WSAESOCKTNOSUPPORT, N_("Socket type not supported")}, {WSAHOST_NOT_FOUND, N_("Host not found")}, {WSATRY_AGAIN, N_("Temporary name server error - try again later")}, {WSANO_RECOVERY, N_("Failed to contact nameserver")}, {WSANO_DATA, N_("Valid name, but no DNS data record present")}, {0, NULL} }; void WinsockAppendError(GString *str, LastError *error) { LookupErrorCode(str, error->code, WSAErrStr, _("Network error code %d")); } static ErrorType ETWinsock = { WinsockAppendError, NULL }; ErrorType *ET_WINSOCK = &ETWinsock; /* * Standard Win32 "GetLastError" handling */ void Win32AppendError(GString *str, LastError *error) { LPTSTR lpMsgBuf; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, error->code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) & lpMsgBuf, 0, NULL); g_string_append(str, lpMsgBuf); LocalFree(lpMsgBuf); } static ErrorType ETWin32 = { Win32AppendError, NULL }; ErrorType *ET_WIN32 = &ETWin32; #else /* h_errno error handling */ static ErrTable DNSErrStr[] = { /* These are the explanations of the various name server error codes */ {HOST_NOT_FOUND, N_("Host not found")}, {TRY_AGAIN, N_("Temporary name server error - try again later")}, {0, NULL} }; void HErrnoAppendError(GString *str, LastError *error) { LookupErrorCode(str, error->code, DNSErrStr, _("Name server error code %d")); } static ErrorType ETHErrno = { HErrnoAppendError, NULL }; ErrorType *ET_HERRNO = ÐErrno; #endif /* CYGWIN */ void g_string_assign_error(GString *str, LastError *error) { g_string_truncate(str, 0); g_string_append_error(str, error); } void g_string_append_error(GString *str, LastError *error) { if (!error || !error->type) return; (*error->type->AppendErrorString) (str, error); } dopewars-1.5.12/src/gtkport/0000777001565000007070000000000010355323331012715 500000000000000dopewars-1.5.12/src/gtkport/clist.h0000644001565000007070000001110510355116554014125 00000000000000/************************************************************************ * clist.h GtkCList implementation for gtkport * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __CLIST_H__ #define __CLIST_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #include #include "gtkenums.h" typedef struct _GtkCList GtkCList; typedef struct _GtkCListRow GtkCListRow; typedef struct _GtkCListColumn GtkCListColumn; typedef gint (*GtkCListCompareFunc) (GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2); struct _GtkCListColumn { gchar *title; gint width; gint optimal_width; GtkJustification justification; guint visible:1; guint resizeable:1; guint auto_resize:1; guint button_passive:1; }; struct _GtkCListRow { gpointer data; gchar **text; }; struct _GtkCList { GtkContainer container; gint cols, rows; HWND header, scrollwin; int scrollpos; gint16 header_size; GSList *rowdata; GtkCListColumn *coldata; GList *selection; GtkSelectionMode mode; GtkCListCompareFunc cmp_func; gint auto_sort:1; }; #define GTK_CLIST(obj) ((GtkCList *)(obj)) GtkWidget *gtk_clist_new(gint columns); GtkWidget *gtk_clist_new_with_titles(gint columns, gchar *titles[]); gint gtk_clist_append(GtkCList *clist, gchar *text[]); void gtk_clist_remove(GtkCList *clist, gint row); void gtk_clist_set_column_title(GtkCList *clist, gint column, const gchar *title); gint gtk_clist_insert(GtkCList *clist, gint row, gchar *text[]); gint gtk_clist_set_text(GtkCList *clist, gint row, gint col, gchar *text); void gtk_clist_set_column_width(GtkCList *clist, gint column, gint width); gint gtk_clist_optimal_column_width(GtkCList *clist, gint column); void gtk_clist_column_title_passive(GtkCList *clist, gint column); void gtk_clist_column_titles_passive(GtkCList *clist); void gtk_clist_column_title_active(GtkCList *clist, gint column); void gtk_clist_column_titles_active(GtkCList *clist); void gtk_clist_set_selection_mode(GtkCList *clist, GtkSelectionMode mode); void gtk_clist_sort(GtkCList *clist); void gtk_clist_freeze(GtkCList *clist); void gtk_clist_thaw(GtkCList *clist); void gtk_clist_clear(GtkCList *clist); void gtk_clist_set_row_data(GtkCList *clist, gint row, gpointer data); gpointer gtk_clist_get_row_data(GtkCList *clist, gint row); void gtk_clist_set_auto_sort(GtkCList *clist, gboolean auto_sort); void gtk_clist_columns_autosize(GtkCList *clist); void gtk_clist_select_row(GtkCList *clist, gint row, gint column); void gtk_clist_unselect_row(GtkCList *clist, gint row, gint column); GtkVisibility gtk_clist_row_is_visible(GtkCList *clist, gint row); void gtk_clist_moveto(GtkCList *clist, gint row, gint column, gfloat row_align, gfloat col_align); void gtk_clist_set_compare_func(GtkCList *clist, GtkCListCompareFunc cmp_func); void gtk_clist_set_column_auto_resize(GtkCList *clist, gint column, gboolean auto_resize); void gtk_clist_set_column_justification(GtkCList *clist, gint column, GtkJustification justification); /* Private functions */ void InitCListClass(HINSTANCE hInstance); #endif /* CYGWIN */ #endif dopewars-1.5.12/src/gtkport/gtkport.c0000644001565000007070000051167510355116554014515 00000000000000/************************************************************************ * gtkport.c Portable "almost-GTK+" for Unix/Win32 * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifndef CYGWIN #include /* For pid_t (fork) */ #include /* For wait */ #ifdef HAVE_UNISTD_H #include /* For fork and execv */ #endif #endif /* !CYGWIN */ #include #include #include #include #include #include "gtkport.h" #include "nls.h" #if CYGWIN || !HAVE_GLIB2 #include "unicodewrap.h" const gchar *GTK_STOCK_OK = N_("_OK"); const gchar *GTK_STOCK_CLOSE = N_("_Close"); const gchar *GTK_STOCK_CANCEL = N_("_Cancel"); const gchar *GTK_STOCK_REFRESH = N_("_Refresh"); const gchar *GTK_STOCK_YES = N_("_Yes"); const gchar *GTK_STOCK_NO = N_("_No"); const gchar *GTK_STOCK_HELP = N_("_Help"); #endif #ifdef CYGWIN #include #include #include #include #include #define LISTITEMVPACK 0 #define PANED_STARTPOS 200 HICON mainIcon = NULL; static WNDPROC customWndProc = NULL; static gboolean HaveRichEdit = FALSE; static gchar *RichEditClass = NULL; static gboolean HaveXPControls = FALSE; static guint RecurseLevel = 0; static const gchar *WC_GTKSEP = "WC_GTKSEP"; static const gchar *WC_GTKVPANED = "WC_GTKVPANED"; static const gchar *WC_GTKHPANED = "WC_GTKHPANED"; static const gchar *WC_GTKDIALOG = "WC_GTKDIALOG"; static const gchar *WC_GTKURL = "WC_GTKURL"; static const int ETDT_DISABLE = 0x1; static const int ETDT_ENABLE = 0x2; static const int ETDT_USETABTEXTURE = 0x4; static const int ETDT_ENABLETAB = 0x6; static void gtk_button_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_entry_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_entry_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_text_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_text_destroy(GtkWidget *widget); static void gtk_button_destroy(GtkWidget *widget); static void gtk_check_button_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_check_button_toggled(GtkCheckButton *check_button, gpointer data); static void gtk_radio_button_clicked(GtkRadioButton *radio_button, gpointer data); static void gtk_radio_button_toggled(GtkRadioButton *radio_button, gpointer data); static void gtk_container_destroy(GtkWidget *widget); static void gtk_container_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_container_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_window_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_window_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_window_destroy(GtkWidget *widget); static void gtk_window_set_menu(GtkWindow *window, GtkMenuBar *menu_bar); static GtkWidget *gtk_window_get_menu_ID(GtkWindow *window, gint ID); static gboolean gtk_window_wndproc(GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef); static void gtk_table_destroy(GtkWidget *widget); static void gtk_table_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_table_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_table_realize(GtkWidget *widget); static void gtk_box_destroy(GtkWidget *widget); static void gtk_hbox_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_hbox_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_vbox_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_vbox_set_size(GtkWidget *widget, GtkAllocation *allocation); static gint gtk_window_delete_event(GtkWidget *widget, GdkEvent *event); static void gtk_window_realize(GtkWidget *widget); static void gtk_window_show(GtkWidget *widget); static void gtk_window_hide(GtkWidget *widget); static void gtk_button_realize(GtkWidget *widget); static void gtk_entry_realize(GtkWidget *widget); static void gtk_text_realize(GtkWidget *widget); static void gtk_check_button_realize(GtkWidget *widget); static void gtk_radio_button_realize(GtkWidget *widget); static void gtk_radio_button_destroy(GtkWidget *widget); static void gtk_box_realize(GtkWidget *widget); static void gtk_label_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_label_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_url_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_label_destroy(GtkWidget *widget); static void gtk_url_destroy(GtkWidget *widget); static void gtk_label_realize(GtkWidget *widget); static void gtk_url_realize(GtkWidget *widget); static void gtk_frame_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_frame_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_frame_destroy(GtkWidget *widget); static void gtk_frame_realize(GtkWidget *widget); static void gtk_box_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_table_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_widget_show_all_full(GtkWidget *widget, gboolean hWndOnly); static void gtk_widget_show_full(GtkWidget *widget, gboolean recurse); static void gtk_widget_update(GtkWidget *widget, gboolean ForceResize); static void gtk_container_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_box_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_table_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_widget_hide_all_full(GtkWidget *widget, gboolean hWndOnly); static void gtk_widget_hide_full(GtkWidget *widget, gboolean recurse); static void gtk_menu_bar_realize(GtkWidget *widget); static void gtk_menu_item_realize(GtkWidget *widget); static void gtk_menu_item_enable(GtkWidget *widget); static void gtk_menu_item_disable(GtkWidget *widget); static void gtk_menu_realize(GtkWidget *widget); static void gtk_menu_shell_realize(GtkWidget *widget); static GtkWidget *gtk_menu_shell_get_menu_ID(GtkMenuShell *menu_shell, gint ID); static void gtk_widget_create(GtkWidget *widget); static void gtk_notebook_realize(GtkWidget *widget); static void gtk_notebook_destroy(GtkWidget *widget); static void gtk_notebook_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_notebook_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_notebook_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_notebook_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_spin_button_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_spin_button_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_spin_button_realize(GtkWidget *widget); static void gtk_spin_button_destroy(GtkWidget *widget); static void gtk_spin_button_show(GtkWidget *widget); static void gtk_spin_button_hide(GtkWidget *widget); static void gtk_separator_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_separator_realize(GtkWidget *widget); static void gtk_paned_show_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_paned_hide_all(GtkWidget *widget, gboolean hWndOnly); static void gtk_paned_realize(GtkWidget *widget); static void gtk_vpaned_realize(GtkWidget *widget); static void gtk_hpaned_realize(GtkWidget *widget); static void gtk_vpaned_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_hpaned_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_vpaned_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_hpaned_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_option_menu_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_option_menu_set_size(GtkWidget *widget, GtkAllocation *allocation); static void gtk_option_menu_realize(GtkWidget *widget); static void gtk_button_set_text(GtkButton *button, gchar *text); static void gtk_menu_item_set_text(GtkMenuItem *menuitem, gchar *text); static void gtk_editable_create(GtkWidget *widget); static void gtk_option_menu_update_selection(GtkWidget *widget); static void gtk_widget_set_focus(GtkWidget *widget); static void gtk_widget_lose_focus(GtkWidget *widget); static void gtk_window_update_focus(GtkWindow *window); static void gtk_window_set_focus(GtkWindow *window); static void gtk_window_handle_user_size(GtkWindow *window, GtkAllocation *allocation); static void gtk_window_handle_minmax_size(GtkWindow *window, LPMINMAXINFO minmax); static void gtk_window_handle_auto_size(GtkWindow *window, GtkAllocation *allocation); static void gtk_window_set_initial_position(GtkWindow *window, GtkAllocation *allocation); static void gtk_progress_bar_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_progress_bar_realize(GtkWidget *widget); static gint gtk_accel_group_add(GtkAccelGroup *accel_group, ACCEL *newaccel); static void gtk_accel_group_set_id(GtkAccelGroup *accel_group, gint ind, gint ID); static void EnableParent(GtkWindow *window); typedef struct _GdkInput GdkInput; struct _GdkInput { gint source; GdkInputCondition condition; GdkInputFunction function; gpointer data; }; typedef struct _GtkTimeout GtkTimeout; struct _GtkTimeout { guint32 interval; GtkFunction function; gpointer data; guint id; }; typedef struct _GtkItemFactoryChild GtkItemFactoryChild; struct _GtkItemFactoryChild { gchar *path; GtkWidget *widget; }; static GtkSignalType GtkObjectSignals[] = { {"create", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkObjectClass = { "object", NULL, sizeof(GtkObject), GtkObjectSignals, NULL }; static GtkClass GtkAdjustmentClass = { "adjustment", &GtkObjectClass, sizeof(GtkAdjustment), NULL, NULL }; static GtkClass GtkItemFactoryClass = { "itemfactory", &GtkObjectClass, sizeof(GtkItemFactory), NULL, NULL }; static GtkSignalType GtkWidgetSignals[] = { {"create", gtk_marshal_VOID__VOID, gtk_widget_create}, {"size_request", gtk_marshal_VOID__GPOIN, NULL}, {"set_size", gtk_marshal_VOID__GPOIN, NULL}, {"realize", gtk_marshal_VOID__VOID, NULL}, {"destroy", gtk_marshal_VOID__VOID, NULL}, {"show", gtk_marshal_VOID__VOID, NULL}, {"hide", gtk_marshal_VOID__VOID, NULL}, {"show_all", gtk_marshal_VOID__BOOL, NULL}, {"hide_all", gtk_marshal_VOID__BOOL, NULL}, {"enable", gtk_marshal_VOID__VOID, NULL}, {"disable", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkWidgetClass = { "widget", &GtkObjectClass, sizeof(GtkWidget), GtkWidgetSignals, NULL }; static GtkSignalType GtkSeparatorSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_separator_size_request}, {"realize", gtk_marshal_VOID__VOID, gtk_separator_realize}, {"", NULL, NULL} }; static GtkSignalType GtkProgressBarSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_progress_bar_size_request}, {"realize", gtk_marshal_VOID__VOID, gtk_progress_bar_realize}, {"", NULL, NULL} }; static GtkClass GtkProgressBarClass = { "progressbar", &GtkWidgetClass, sizeof(GtkProgressBar), GtkProgressBarSignals, NULL }; static GtkClass GtkSeparatorClass = { "separator", &GtkWidgetClass, sizeof(GtkSeparator), GtkSeparatorSignals, NULL }; static GtkClass GtkHSeparatorClass = { "hseparator", &GtkSeparatorClass, sizeof(GtkHSeparator), NULL, NULL }; static GtkClass GtkVSeparatorClass = { "vseparator", &GtkSeparatorClass, sizeof(GtkVSeparator), NULL, NULL }; static GtkClass GtkMenuShellClass = { "menushell", &GtkWidgetClass, sizeof(GtkMenuShell), NULL, NULL }; static GtkSignalType GtkMenuBarSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_menu_bar_realize}, {"", NULL, NULL} }; static GtkClass GtkMenuBarClass = { "menubar", &GtkMenuShellClass, sizeof(GtkMenuBar), GtkMenuBarSignals, NULL }; static GtkSignalType GtkMenuItemSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_menu_item_realize}, {"set_text", gtk_marshal_VOID__GPOIN, gtk_menu_item_set_text}, {"activate", gtk_marshal_VOID__VOID, NULL}, {"enable", gtk_marshal_VOID__VOID, gtk_menu_item_enable}, {"disable", gtk_marshal_VOID__VOID, gtk_menu_item_disable}, {"", NULL, NULL} }; static GtkClass GtkMenuItemClass = { "menuitem", &GtkWidgetClass, sizeof(GtkMenuItem), GtkMenuItemSignals, NULL }; static GtkSignalType GtkMenuSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_menu_realize}, {"", NULL, NULL} }; static GtkClass GtkMenuClass = { "menu", &GtkMenuShellClass, sizeof(GtkMenu), GtkMenuSignals, NULL }; static GtkSignalType GtkEditableSignals[] = { {"create", gtk_marshal_VOID__VOID, gtk_editable_create}, {"activate", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkEditableClass = { "editable", &GtkWidgetClass, sizeof(GtkEditable), GtkEditableSignals, NULL }; static GtkSignalType GtkEntrySignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_entry_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_entry_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_entry_realize}, {"", NULL, NULL} }; static GtkClass GtkEntryClass = { "entry", &GtkEditableClass, sizeof(GtkEntry), GtkEntrySignals, NULL }; static GtkSignalType GtkSpinButtonSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_spin_button_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_spin_button_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_spin_button_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_spin_button_destroy}, {"hide", gtk_marshal_VOID__VOID, gtk_spin_button_hide}, {"show", gtk_marshal_VOID__VOID, gtk_spin_button_show}, {"", NULL, NULL} }; static GtkClass GtkSpinButtonClass = { "spinbutton", &GtkEntryClass, sizeof(GtkSpinButton), GtkSpinButtonSignals, NULL }; static GtkSignalType GtkTextSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_text_size_request}, {"realize", gtk_marshal_VOID__VOID, gtk_text_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_text_destroy}, {"", NULL, NULL} }; static GtkClass GtkTextClass = { "text", &GtkEditableClass, sizeof(GtkText), GtkTextSignals, NULL }; static GtkSignalType GtkLabelSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_label_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_label_set_size}, {"set_text", gtk_marshal_VOID__GPOIN, gtk_label_set_text}, {"realize", gtk_marshal_VOID__VOID, gtk_label_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_label_destroy}, {"", NULL, NULL} }; static GtkClass GtkLabelClass = { "label", &GtkWidgetClass, sizeof(GtkLabel), GtkLabelSignals, NULL }; static GtkSignalType GtkUrlSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_url_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_label_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_url_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_url_destroy}, {"", NULL, NULL} }; static GtkClass GtkUrlClass = { "URL", &GtkLabelClass, sizeof(GtkUrl), GtkUrlSignals, NULL }; static GtkSignalType GtkButtonSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_button_size_request}, {"set_text", gtk_marshal_VOID__GPOIN, gtk_button_set_text}, {"realize", gtk_marshal_VOID__VOID, gtk_button_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_button_destroy}, {"clicked", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkButtonClass = { "button", &GtkWidgetClass, sizeof(GtkButton), GtkButtonSignals, NULL }; static GtkSignalType GtkOptionMenuSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_option_menu_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_option_menu_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_option_menu_realize}, {"", NULL, NULL} }; static GtkClass GtkOptionMenuClass = { "optionmenu", &GtkButtonClass, sizeof(GtkOptionMenu), GtkOptionMenuSignals, NULL }; static GtkSignalType GtkToggleButtonSignals[] = { {"toggled", gtk_marshal_VOID__VOID, NULL}, {"", NULL, NULL} }; static GtkClass GtkToggleButtonClass = { "toggle", &GtkButtonClass, sizeof(GtkToggleButton), GtkToggleButtonSignals, NULL }; static GtkSignalType GtkCheckButtonSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_check_button_size_request}, {"realize", gtk_marshal_VOID__VOID, gtk_check_button_realize}, {"", NULL, NULL} }; static GtkClass GtkCheckButtonClass = { "check", &GtkToggleButtonClass, sizeof(GtkCheckButton), GtkCheckButtonSignals, NULL }; static GtkSignalType GtkRadioButtonSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_radio_button_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_radio_button_destroy}, {"", NULL, NULL} }; static GtkClass GtkRadioButtonClass = { "radio", &GtkCheckButtonClass, sizeof(GtkRadioButton), GtkRadioButtonSignals, NULL }; static GtkSignalType GtkContainerSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_container_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_container_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_container_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_container_destroy}, {"show_all", gtk_marshal_VOID__BOOL, gtk_container_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_container_hide_all}, {"", NULL, NULL} }; GtkClass GtkContainerClass = { "container", &GtkWidgetClass, sizeof(GtkContainer), GtkContainerSignals, NULL }; static GtkSignalType GtkPanedSignals[] = { {"show_all", gtk_marshal_VOID__BOOL, gtk_paned_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_paned_hide_all}, {"", NULL, NULL} }; static GtkClass GtkPanedClass = { "paned", &GtkContainerClass, sizeof(GtkPaned), GtkPanedSignals, NULL }; static GtkSignalType GtkVPanedSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_vpaned_realize}, {"size_request", gtk_marshal_VOID__GPOIN, gtk_vpaned_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_vpaned_set_size}, {"", NULL, NULL} }; static GtkClass GtkVPanedClass = { "vpaned", &GtkPanedClass, sizeof(GtkVPaned), GtkVPanedSignals, NULL }; static GtkSignalType GtkHPanedSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_hpaned_realize}, {"size_request", gtk_marshal_VOID__GPOIN, gtk_hpaned_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_hpaned_set_size}, {"", NULL, NULL} }; static GtkClass GtkHPanedClass = { "hpaned", &GtkPanedClass, sizeof(GtkHPaned), GtkHPanedSignals, NULL }; static GtkSignalType GtkBoxSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_box_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_box_destroy}, {"show_all", gtk_marshal_VOID__BOOL, gtk_box_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_box_hide_all}, {"", NULL, NULL} }; static GtkClass GtkBoxClass = { "box", &GtkContainerClass, sizeof(GtkBox), GtkBoxSignals, NULL }; static GtkSignalType GtkNotebookSignals[] = { {"realize", gtk_marshal_VOID__VOID, gtk_notebook_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_notebook_destroy}, {"size_request", gtk_marshal_VOID__GPOIN, gtk_notebook_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_notebook_set_size}, {"show_all", gtk_marshal_VOID__BOOL, gtk_notebook_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_notebook_hide_all}, {"", NULL, NULL} }; static GtkClass GtkNotebookClass = { "notebook", &GtkContainerClass, sizeof(GtkNotebook), GtkNotebookSignals, NULL }; static GtkSignalType GtkTableSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_table_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_table_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_table_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_table_destroy}, {"show_all", gtk_marshal_VOID__BOOL, gtk_table_show_all}, {"hide_all", gtk_marshal_VOID__BOOL, gtk_table_hide_all}, {"", NULL, NULL} }; static GtkClass GtkTableClass = { "table", &GtkContainerClass, sizeof(GtkTable), GtkTableSignals, NULL }; static GtkSignalType GtkHBoxSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_hbox_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_hbox_set_size}, {"", NULL, NULL} }; static GtkClass GtkHBoxClass = { "hbox", &GtkBoxClass, sizeof(GtkHBox), GtkHBoxSignals, NULL }; static GtkSignalType GtkVBoxSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_vbox_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_vbox_set_size}, {"", NULL, NULL} }; static GtkClass GtkVBoxClass = { "vbox", &GtkBoxClass, sizeof(GtkVBox), GtkVBoxSignals, NULL }; static GtkClass GtkBinClass = { "bin", &GtkContainerClass, sizeof(GtkBin), NULL, NULL }; static GtkSignalType GtkFrameSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_frame_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_frame_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_frame_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_frame_destroy}, {"", NULL, NULL} }; static GtkClass GtkFrameClass = { "frame", &GtkBinClass, sizeof(GtkFrame), GtkFrameSignals, NULL }; static GtkSignalType GtkWindowSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_window_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_window_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_window_realize}, {"destroy", gtk_marshal_VOID__VOID, gtk_window_destroy}, {"show", gtk_marshal_VOID__VOID, gtk_window_show}, {"hide", gtk_marshal_VOID__VOID, gtk_window_hide}, {"delete_event", gtk_marshal_BOOL__GPOIN, GTK_SIGNAL_FUNC(gtk_window_delete_event)}, {"", NULL, NULL} }; static GtkClass GtkWindowClass = { "window", &GtkBinClass, sizeof(GtkWindow), GtkWindowSignals, gtk_window_wndproc }; const GtkType GTK_TYPE_WINDOW = &GtkWindowClass; const GtkType GTK_TYPE_MENU_BAR = &GtkMenuBarClass; const GtkType GTK_TYPE_NOTEBOOK = &GtkNotebookClass; HINSTANCE hInst; HFONT defFont; static HFONT urlFont; static GSList *WindowList = NULL; static GSList *GdkInputs = NULL; static GSList *GtkTimeouts = NULL; static HWND TopLevel = NULL; static WNDPROC wpOrigEntryProc, wpOrigTextProc; void gtk_set_default_font(HWND hWnd) { mySendMessage(hWnd, WM_SETFONT, (WPARAM)defFont, MAKELPARAM(FALSE, 0)); } GtkObject *GtkNewObject(GtkClass *klass) { GtkObject *newObj; newObj = g_malloc0(klass->Size); newObj->klass = klass; gtk_signal_emit(newObj, "create"); return newObj; } static void DispatchSocketEvent(SOCKET sock, long event) { GSList *list; GdkInput *input; for (list = GdkInputs; list; list = g_slist_next(list)) { input = (GdkInput *)(list->data); if (input->source == sock) { (*input->function) (input->data, input->source, (event & (FD_READ | FD_CLOSE | FD_ACCEPT) ? GDK_INPUT_READ : 0) | (event & (FD_WRITE | FD_CONNECT) ? GDK_INPUT_WRITE : 0)); break; } } } static void DispatchTimeoutEvent(UINT id) { GSList *list; GtkTimeout *timeout; for (list = GtkTimeouts; list; list = g_slist_next(list)) { timeout = (GtkTimeout *)list->data; if (timeout->id == id) { if (timeout->function) { if (!(*timeout->function) (timeout->data)) { gtk_timeout_remove(id); } } break; } } } static HWND gtk_get_window_hwnd(GtkWidget *widget) { widget = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (widget) { return widget->hWnd; } else { return NULL; } } HWND gtk_get_parent_hwnd(GtkWidget *widget) { GtkWidget *child = NULL; while (widget && GTK_OBJECT(widget)->klass != GTK_TYPE_WINDOW && GTK_OBJECT(widget)->klass != GTK_TYPE_NOTEBOOK) { child = widget; widget = widget->parent; } if (widget) { if (GTK_OBJECT(widget)->klass == GTK_TYPE_NOTEBOOK) { GSList *children; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { GtkNotebookChild *note_child; note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child == child) { return note_child->tabpage; } } return NULL; } else { return widget->hWnd; } } else { return NULL; } } static void UpdatePanedGhostRect(GtkPaned *paned, RECT *OldRect, RECT *NewRect, gint16 x, gint16 y) { HWND hWnd, parent; RECT rect, clrect; POINT MouseCoord; HDC hDC; GtkWidget *widget = GTK_WIDGET(paned); if (!OldRect && !NewRect) return; parent = gtk_get_parent_hwnd(widget); hWnd = widget->hWnd; if (!parent || !hWnd) return; MouseCoord.x = x; MouseCoord.y = y; MapWindowPoints(hWnd, parent, &MouseCoord, 1); rect.left = paned->true_alloc.x; rect.top = paned->true_alloc.y; GetClientRect(hWnd, &clrect); if (clrect.right > clrect.bottom) { rect.right = paned->true_alloc.x + paned->true_alloc.width; rect.bottom = MouseCoord.y; } else { rect.bottom = paned->true_alloc.y + paned->true_alloc.height; rect.right = MouseCoord.x; } if (OldRect && NewRect && OldRect->right == rect.right && OldRect->bottom == rect.bottom) return; hDC = GetDC(parent); if (OldRect) DrawFocusRect(hDC, OldRect); if (NewRect) { CopyRect(NewRect, &rect); DrawFocusRect(hDC, NewRect); } ReleaseDC(parent, hDC); } LRESULT CALLBACK GtkPanedProc(HWND hwnd, UINT msg, UINT wParam, LONG lParam) { PAINTSTRUCT ps; HPEN oldpen, dkpen, ltpen; RECT rect; static RECT GhostRect; HDC hDC; gint newpos; GtkPaned *paned; paned = GTK_PANED(myGetWindowLong(hwnd, GWL_USERDATA)); switch (msg) { case WM_PAINT: if (GetUpdateRect(hwnd, NULL, TRUE)) { BeginPaint(hwnd, &ps); GetClientRect(hwnd, &rect); hDC = ps.hdc; ltpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DHILIGHT)); dkpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DSHADOW)); if (rect.right > rect.bottom) { oldpen = SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.right, rect.top); SelectObject(hDC, dkpen); MoveToEx(hDC, rect.left, rect.bottom - 1, NULL); LineTo(hDC, rect.right, rect.bottom - 1); } else { oldpen = SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.left, rect.bottom); SelectObject(hDC, ltpen); MoveToEx(hDC, rect.right - 1, rect.top, NULL); LineTo(hDC, rect.right - 1, rect.bottom); } SelectObject(hDC, oldpen); DeleteObject(ltpen); DeleteObject(dkpen); EndPaint(hwnd, &ps); } return TRUE; case WM_LBUTTONDOWN: if (!paned) break; SetCapture(hwnd); paned->Tracking = TRUE; UpdatePanedGhostRect(paned, NULL, &GhostRect, LOWORD(lParam), HIWORD(lParam)); return TRUE; case WM_MOUSEMOVE: if (!paned || !paned->Tracking) break; UpdatePanedGhostRect(paned, &GhostRect, &GhostRect, LOWORD(lParam), HIWORD(lParam)); return TRUE; case WM_LBUTTONUP: if (!paned || !paned->Tracking) break; ReleaseCapture(); paned->Tracking = FALSE; UpdatePanedGhostRect(paned, &GhostRect, NULL, LOWORD(lParam), HIWORD(lParam)); GetClientRect(hwnd, &rect); if (rect.right > rect.bottom) { newpos = ((gint16)HIWORD(lParam) + GTK_WIDGET(paned)->allocation.y - paned->true_alloc.y) * 100 / paned->true_alloc.height; } else { newpos = ((gint16)LOWORD(lParam) + GTK_WIDGET(paned)->allocation.x - paned->true_alloc.x) * 100 / paned->true_alloc.width; } gtk_paned_set_position(paned, newpos); return TRUE; default: return myDefWindowProc(hwnd, msg, wParam, lParam); } return FALSE; } void DisplayHTML(GtkWidget *parent, const gchar *bin, const gchar *target) { ShellExecute(parent->hWnd, "open", target, NULL, NULL, 0); } LRESULT CALLBACK GtkUrlProc(HWND hwnd, UINT msg, UINT wParam, LONG lParam) { GtkWidget *widget; if (msg == WM_PAINT) { gchar *text; RECT wndrect; PAINTSTRUCT ps; HDC hDC; HFONT oldFont; widget = GTK_WIDGET(myGetWindowLong(hwnd, GWL_USERDATA)); text = GTK_LABEL(widget)->text; if (text && BeginPaint(hwnd, &ps)) { hDC = ps.hdc; oldFont = SelectObject(hDC, urlFont); SetTextColor(hDC, RGB(0, 0, 0xCC)); SetBkMode(hDC, TRANSPARENT); GetClientRect(hwnd, &wndrect); myDrawText(hDC, text, -1, &wndrect, DT_CENTER | DT_VCENTER | DT_END_ELLIPSIS); SelectObject(hDC, oldFont); EndPaint(hwnd, &ps); } return TRUE; } else if (msg == WM_LBUTTONUP) { widget = GTK_WIDGET(myGetWindowLong(hwnd, GWL_USERDATA)); DisplayHTML(widget, NULL, GTK_URL(widget)->target); return FALSE; } else return myDefWindowProc(hwnd, msg, wParam, lParam); } LRESULT CALLBACK GtkSepProc(HWND hwnd, UINT msg, UINT wParam, LONG lParam) { PAINTSTRUCT ps; HPEN oldpen, dkpen, ltpen; RECT rect; HDC hDC; if (msg == WM_PAINT) { if (GetUpdateRect(hwnd, NULL, TRUE)) { BeginPaint(hwnd, &ps); GetClientRect(hwnd, &rect); hDC = ps.hdc; ltpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DHILIGHT)); dkpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DSHADOW)); if (rect.right > rect.bottom) { oldpen = SelectObject(hDC, dkpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.right, rect.top); SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left, rect.top + 1, NULL); LineTo(hDC, rect.right, rect.top + 1); } else { oldpen = SelectObject(hDC, dkpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.left, rect.bottom); SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left + 1, rect.top, NULL); LineTo(hDC, rect.left + 1, rect.bottom); } SelectObject(hDC, oldpen); DeleteObject(ltpen); DeleteObject(dkpen); EndPaint(hwnd, &ps); } return TRUE; } else return myDefWindowProc(hwnd, msg, wParam, lParam); } gboolean gtk_window_wndproc(GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef) { RECT rect; GtkAllocation alloc; GtkWidget *menu; gboolean signal_return; GdkEvent event = 0; switch(msg) { case WM_SIZE: GetWindowRect(widget->hWnd, &rect); alloc.x = rect.left; alloc.y = rect.top; alloc.width = rect.right - rect.left; alloc.height = rect.bottom - rect.top; gtk_window_handle_user_size(GTK_WINDOW(widget), &alloc); gtk_widget_set_size(widget, &alloc); InvalidateRect(widget->hWnd, NULL, TRUE); UpdateWindow(widget->hWnd); return FALSE; case WM_GETMINMAXINFO: gtk_window_handle_minmax_size(GTK_WINDOW(widget), (LPMINMAXINFO)lParam); return FALSE; case WM_ACTIVATE: case WM_ACTIVATEAPP: if ((msg == WM_ACTIVATE && LOWORD(wParam) != WA_INACTIVE) || (msg == WM_ACTIVATEAPP && wParam)) { if (GTK_WINDOW(widget)->focus) { gtk_widget_set_focus(GTK_WINDOW(widget)->focus); } if (!GTK_WINDOW(widget)->focus) { gtk_window_set_focus(GTK_WINDOW(widget)); } } else if (msg == WM_ACTIVATE && LOWORD(wParam) == WA_INACTIVE) { gtk_window_update_focus(GTK_WINDOW(widget)); } return FALSE; case WM_CLOSE: gtk_signal_emit(GTK_OBJECT(widget), "delete_event", &event, &signal_return); *dodef = FALSE; return TRUE; case WM_COMMAND: if (HIWORD(wParam) == 0 || HIWORD(wParam) == 1) { menu = gtk_window_get_menu_ID(GTK_WINDOW(widget), LOWORD(wParam)); if (menu) { if (GTK_MENU_ITEM(menu)->check) { gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu), !GTK_CHECK_MENU_ITEM(menu)->active); } gtk_signal_emit(GTK_OBJECT(menu), "activate"); return FALSE; } } break; } return FALSE; } static BOOL HandleWinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef) { GtkWidget *widget; GtkClass *klass; LPMEASUREITEMSTRUCT lpmis; HDC hDC; TEXTMETRIC tm; LPDRAWITEMSTRUCT lpdis; HD_NOTIFY FAR *phdr; NMHDR *nmhdr; gboolean retval = FALSE; *dodef = TRUE; if (customWndProc && myCallWindowProc(customWndProc, hwnd, msg, wParam, lParam)) return TRUE; widget = GTK_WIDGET(myGetWindowLong(hwnd, GWL_USERDATA)); if (widget && (klass = GTK_OBJECT(widget)->klass) && klass->wndproc) { retval = klass->wndproc(widget, msg, wParam, lParam, dodef); } switch (msg) { case WM_DRAWITEM: if ((lpdis = (LPDRAWITEMSTRUCT)lParam) && (widget = GTK_WIDGET(myGetWindowLong(lpdis->hwndItem, GWL_USERDATA))) && (klass = GTK_OBJECT(widget)->klass) && klass->wndproc) { retval = klass->wndproc(widget, msg, wParam, lParam, dodef); } break; case WM_MEASUREITEM: lpmis = (LPMEASUREITEMSTRUCT)lParam; hDC = GetDC(hwnd); if (!GetTextMetrics(hDC, &tm)) g_warning("GetTextMetrics failed"); ReleaseDC(hwnd, hDC); if (lpmis) { lpmis->itemHeight = tm.tmHeight + LISTITEMVPACK * 2; return TRUE; } break; case WM_COMMAND: widget = GTK_WIDGET(myGetWindowLong((HWND)lParam, GWL_USERDATA)); klass = NULL; if (widget && (klass = GTK_OBJECT(widget)->klass) && klass->wndproc) { retval = klass->wndproc(widget, msg, wParam, lParam, dodef); } if (lParam && klass == &GtkOptionMenuClass && HIWORD(wParam) == CBN_SELENDOK) { gtk_option_menu_update_selection(widget); } else if (lParam && HIWORD(wParam) == BN_CLICKED) { gtk_signal_emit(GTK_OBJECT(widget), "clicked"); } else return TRUE; break; case WM_NOTIFY: phdr = (HD_NOTIFY FAR *)lParam; nmhdr = (NMHDR *)lParam; if (!nmhdr) break; widget = GTK_WIDGET(myGetWindowLong(nmhdr->hwndFrom, GWL_USERDATA)); if (widget && (klass = GTK_OBJECT(widget)->klass) && klass->wndproc) { retval = klass->wndproc(widget, msg, wParam, lParam, dodef); } if (widget && nmhdr->code == TCN_SELCHANGE) { gtk_notebook_set_page(GTK_NOTEBOOK(widget), TabCtrl_GetCurSel(nmhdr->hwndFrom)); return FALSE; } break; case MYWM_SOCKETDATA: /* Ignore network messages if in recursive message loops, to avoid * dodgy race conditions */ if (RecurseLevel <= 1) { /* Make any error available by the usual WSAGetLastError() mechanism */ WSASetLastError(WSAGETSELECTERROR(lParam)); DispatchSocketEvent((SOCKET)wParam, WSAGETSELECTEVENT(lParam)); } break; case WM_TIMER: DispatchTimeoutEvent((UINT)wParam); return FALSE; } return retval; } LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { gboolean retval, dodef = TRUE; retval = HandleWinMessage(hwnd, msg, wParam, lParam, &dodef); if (dodef) { return myDefWindowProc(hwnd, msg, wParam, lParam); } else { return retval; } } BOOL APIENTRY MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { gboolean dodef; if (msg == WM_INITDIALOG) { return TRUE; } else { return HandleWinMessage(hwnd, msg, wParam, lParam, &dodef); } } LRESULT APIENTRY EntryWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { GtkWidget *widget; if (msg == WM_KEYUP && wParam == VK_RETURN) { widget = GTK_WIDGET(myGetWindowLong(hwnd, GWL_USERDATA)); if (widget) gtk_signal_emit(GTK_OBJECT(widget), "activate"); return FALSE; } return myCallWindowProc(wpOrigEntryProc, hwnd, msg, wParam, lParam); } LRESULT APIENTRY TextWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { GtkWidget *widget; if (msg == WM_GETDLGCODE) { widget = GTK_WIDGET(myGetWindowLong(hwnd, GWL_USERDATA)); if (!GTK_EDITABLE(widget)->is_editable) { return DLGC_HASSETSEL | DLGC_WANTARROWS; } } return myCallWindowProc(wpOrigTextProc, hwnd, msg, wParam, lParam); } void SetCustomWndProc(WNDPROC wndproc) { customWndProc = wndproc; } /* * Returns TRUE if we are using version 6 of the Common Controls library * (as shipped with Windows XP) and thus need to worry about visual themes */ static gboolean CheckForXPControls(void) { HINSTANCE hDll; BOOL retval = FALSE; hDll = LoadLibrary("COMCTL32.DLL"); if (hDll) { DLLGETVERSIONPROC getverproc; getverproc = (DLLGETVERSIONPROC)GetProcAddress(hDll, "DllGetVersion"); if (getverproc) { DLLVERSIONINFO dvi; HRESULT hr; ZeroMemory(&dvi, sizeof(dvi)); dvi.cbSize = sizeof(dvi); hr = getverproc(&dvi); if (SUCCEEDED(hr) && dvi.dwMajorVersion >= 6) { retval = TRUE; } } FreeLibrary(hDll); } return retval; } /* * On systems with suitable DLLs, sets the background texture of the * given dialog. dwFlags can be one or more of the ETDT_ constants. */ static void myEnableThemeDialogTexture(HWND hWnd, DWORD dwFlags) { typedef HRESULT (*ENABLETHEMEDIALOGTEXTUREPROC)(HWND hWnd, DWORD dwFlags); HINSTANCE module; /* Dialog textures are only worth setting when using XP common controls */ if (!HaveXPControls) return; module = LoadLibrary("UXTHEME.DLL"); if (module) { ENABLETHEMEDIALOGTEXTUREPROC func; HRESULT result; func = (ENABLETHEMEDIALOGTEXTUREPROC) GetProcAddress(module, "EnableThemeDialogTexture"); if (func) { result = func(hWnd, dwFlags); } FreeLibrary(module); } } void win32_init(HINSTANCE hInstance, HINSTANCE hPrevInstance, char *MainIcon) { WNDCLASS wc; hInst = hInstance; InitUnicodeSupport(); defFont = (HFONT) GetStockObject(DEFAULT_GUI_FONT); urlFont = CreateFont(14, 0, 0, 0, FW_SEMIBOLD, FALSE, TRUE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FF_SWISS | DEFAULT_PITCH, NULL); WindowList = NULL; RecurseLevel = 0; customWndProc = NULL; if (MainIcon) { mainIcon = LoadIcon(hInstance, MainIcon); } else { mainIcon = LoadIcon(NULL, IDI_APPLICATION); } InitCommonControls(); LoadLibrary("RICHED20.DLL"); /* Rich Edit controls have two different class names, depending on whether * we want ANSI or Unicode - argh! */ if (HaveUnicodeSupport()) { RichEditClass = "RichEdit20W"; } else { RichEditClass = "RichEdit20A"; } HaveRichEdit = GetClassInfo(hInstance, RichEditClass, &wc); HaveXPControls = CheckForXPControls(); if (!hPrevInstance) { wc.style = 0; wc.lpfnWndProc = MainWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = mainIcon; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = "mainwin"; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = MainWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKDIALOG; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = GtkPanedProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_SIZEWE); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKHPANED; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = GtkPanedProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_SIZENS); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKVPANED; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = GtkSepProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKSEP; myRegisterClass(&wc); wc.style = 0; wc.lpfnWndProc = GtkUrlProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_HAND); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKURL; myRegisterClass(&wc); InitCListClass(hInstance); } } guint gtk_main_level(void) { return RecurseLevel; } void gtk_widget_update(GtkWidget *widget, gboolean ForceResize) { GtkRequisition req; GtkWidget *window; GtkAllocation alloc; if (!GTK_WIDGET_REALIZED(widget)) return; gtk_widget_size_request(widget, &req); window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window) { alloc.x = alloc.y = 0; alloc.width = window->requisition.width; alloc.height = window->requisition.height; gtk_window_handle_auto_size(GTK_WINDOW(window), &alloc); if (alloc.width != window->allocation.width || alloc.height != window->allocation.height || ForceResize) { gtk_widget_set_size(window, &alloc); } } } void gtk_widget_show(GtkWidget *widget) { gtk_widget_show_full(widget, TRUE); } void gtk_widget_show_full(GtkWidget *widget, gboolean recurse) { GtkAllocation alloc; if (GTK_WIDGET_VISIBLE(widget)) return; GTK_WIDGET_SET_FLAGS(widget, GTK_VISIBLE); if (recurse) gtk_widget_show_all_full(widget, TRUE); else gtk_signal_emit(GTK_OBJECT(widget), "show"); if (!GTK_WIDGET_REALIZED(widget) && GTK_OBJECT(widget)->klass == &GtkWindowClass) { gtk_widget_realize(widget); alloc.x = alloc.y = 0; alloc.width = widget->requisition.width; alloc.height = widget->requisition.height; gtk_window_set_initial_position(GTK_WINDOW(widget), &alloc); gtk_widget_set_size(widget, &alloc); ShowWindow(widget->hWnd, SW_SHOWNORMAL); UpdateWindow(widget->hWnd); } else if (GTK_WIDGET_REALIZED(widget) && GTK_OBJECT(widget)->klass != &GtkWindowClass) { gtk_widget_update(widget, TRUE); if (!recurse) ShowWindow(widget->hWnd, SW_SHOWNORMAL); } // g_print("widget show - set focus\n"); gtk_widget_set_focus(widget); } void gtk_widget_hide(GtkWidget *widget) { gtk_widget_hide_full(widget, TRUE); } void gtk_widget_hide_full(GtkWidget *widget, gboolean recurse) { GtkAllocation alloc; GtkRequisition req; GtkWidget *window; if (!GTK_WIDGET_VISIBLE(widget)) return; if (recurse) gtk_widget_hide_all_full(widget, TRUE); else { gtk_signal_emit(GTK_OBJECT(widget), "hide"); if (widget->hWnd) ShowWindow(widget->hWnd, SW_HIDE); } GTK_WIDGET_UNSET_FLAGS(widget, GTK_VISIBLE); gtk_widget_lose_focus(widget); gtk_widget_size_request(widget, &req); if (GTK_WIDGET_REALIZED(widget)) { window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window) { alloc.x = alloc.y = 0; alloc.width = window->requisition.width; alloc.height = window->requisition.height; gtk_window_handle_auto_size(GTK_WINDOW(window), &alloc); gtk_widget_set_size(window, &alloc); } } } void gtk_widget_set_focus(GtkWidget *widget) { GtkWidget *window; if (!widget || !GTK_WIDGET_CAN_FOCUS(widget) || !GTK_WIDGET_SENSITIVE(widget) || !GTK_WIDGET_VISIBLE(widget)) return; window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); gtk_window_update_focus(GTK_WINDOW(window)); if (!window || GTK_WINDOW(window)->focus) return; // g_print("Window %p focus set to widget %p // (%s)\n",window,widget,GTK_OBJECT(widget)->klass->Name); GTK_WINDOW(window)->focus = widget; if (widget->hWnd) { // if (!SetFocus(widget->hWnd)) g_print("SetFocus failed on widget // %p\n",widget); SetFocus(widget->hWnd); } // else g_print("Cannot call SetFocus - no hWnd\n"); } static BOOL CALLBACK SetFocusEnum(HWND hWnd, LPARAM data) { GtkWidget *widget; GtkWindow *window = GTK_WINDOW(data); widget = GTK_WIDGET(myGetWindowLong(hWnd, GWL_USERDATA)); if (!widget || !GTK_WIDGET_CAN_FOCUS(widget) || !GTK_WIDGET_SENSITIVE(widget) || !GTK_WIDGET_VISIBLE(widget) || window->focus == widget) { return TRUE; } else { // g_print("gtk_window_set_focus: focus set to widget %p\n",widget); window->focus = widget; SetFocus(widget->hWnd); return FALSE; } } void gtk_window_set_focus(GtkWindow *window) { if (!window || !GTK_WIDGET(window)->hWnd) return; EnumChildWindows(GTK_WIDGET(window)->hWnd, SetFocusEnum, (LPARAM)window); } void gtk_widget_lose_focus(GtkWidget *widget) { GtkWidget *window; if (!widget || !GTK_WIDGET_CAN_FOCUS(widget)) return; window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); gtk_window_update_focus(GTK_WINDOW(window)); if (GTK_WINDOW(window)->focus == widget) { gtk_window_set_focus(GTK_WINDOW(window)); } } void gtk_window_update_focus(GtkWindow *window) { GtkWidget *widget; HWND FocusWnd; if (GTK_WIDGET(window)->hWnd != GetActiveWindow()) return; FocusWnd = GetFocus(); window->focus = NULL; if (FocusWnd) { widget = GTK_WIDGET(myGetWindowLong(FocusWnd, GWL_USERDATA)); if (widget && GTK_WIDGET(window)->hWnd && IsChild(GTK_WIDGET(window)->hWnd, FocusWnd)) { window->focus = widget; } } } void gtk_widget_realize(GtkWidget *widget) { GtkRequisition req; if (GTK_WIDGET_REALIZED(widget)) return; gtk_signal_emit(GTK_OBJECT(widget), "realize", &req); if (widget->hWnd) mySetWindowLong(widget->hWnd, GWL_USERDATA, (LONG)widget); GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED); gtk_widget_set_sensitive(widget, GTK_WIDGET_SENSITIVE(widget)); gtk_widget_size_request(widget, &req); } void gtk_widget_create(GtkWidget *widget) { GTK_WIDGET_SET_FLAGS(widget, GTK_SENSITIVE); widget->usize.width = 0; widget->usize.height = 0; } void gtk_widget_destroy(GtkWidget *widget) { if (!widget) return; /* If we're closing a modal window, reactivate the parent _before_ * calling DestroyWindow, to avoid annoying flicker caused if Windows * chooses to reactivate another application when we close the modal * dialog */ if (GTK_OBJECT(widget)->klass == &GtkWindowClass) { EnableParent(GTK_WINDOW(widget)); } gtk_widget_lose_focus(widget); if (widget->hWnd) DestroyWindow(widget->hWnd); widget->hWnd = NULL; gtk_signal_emit(GTK_OBJECT(widget), "destroy"); g_free(widget); } void gtk_widget_set_sensitive(GtkWidget *widget, gboolean sensitive) { if (sensitive) { GTK_WIDGET_SET_FLAGS(widget, GTK_SENSITIVE); if (widget->hWnd) EnableWindow(widget->hWnd, sensitive); gtk_widget_set_focus(widget); } else { GTK_WIDGET_UNSET_FLAGS(widget, GTK_SENSITIVE); gtk_widget_lose_focus(widget); if (widget->hWnd) EnableWindow(widget->hWnd, sensitive); } gtk_signal_emit(GTK_OBJECT(widget), sensitive ? "enable" : "disable"); if (sensitive && widget->hWnd && GTK_OBJECT(widget)->klass == &GtkWindowClass) SetActiveWindow(widget->hWnd); } void gtk_widget_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkRequisition req; requisition->width = requisition->height = 0; if (GTK_WIDGET_VISIBLE(widget)) { gtk_signal_emit(GTK_OBJECT(widget), "size_request", requisition); } if (requisition->width < widget->usize.width) requisition->width = widget->usize.width; if (requisition->height < widget->usize.height) requisition->height = widget->usize.height; if (requisition->width != widget->requisition.width || requisition->height != widget->requisition.height) { memcpy(&widget->requisition, requisition, sizeof(GtkRequisition)); if (widget->parent) gtk_widget_size_request(widget->parent, &req); } } void MapWidgetOrigin(GtkWidget *widget, POINT *pt) { HWND imm_parent, window_parent; imm_parent = GetParent(widget->hWnd); window_parent = gtk_get_window_hwnd(widget); if (imm_parent && window_parent && imm_parent != window_parent) { MapWindowPoints(window_parent, imm_parent, pt, 1); } } void gtk_widget_set_size(GtkWidget *widget, GtkAllocation *allocation) { gtk_signal_emit(GTK_OBJECT(widget), "set_size", allocation); memcpy(&widget->allocation, allocation, sizeof(GtkAllocation)); if (widget->hWnd) { POINT pt; pt.x = allocation->x; pt.y = allocation->y; MapWidgetOrigin(widget, &pt); SetWindowPos(widget->hWnd, HWND_TOP, pt.x, pt.y, allocation->width, allocation->height, SWP_NOZORDER | (GTK_OBJECT(widget)->klass == &GtkWindowClass ? SWP_NOMOVE : 0)); } } GtkWidget *gtk_window_new(GtkWindowType type) { GtkWindow *win; win = GTK_WINDOW(GtkNewObject(&GtkWindowClass)); win->title = g_strdup(""); win->type = type; win->allow_grow = TRUE; return GTK_WIDGET(win); } void gtk_window_set_title(GtkWindow *window, const gchar *title) { g_free(window->title); window->title = g_strdup(title); } gint gtk_window_delete_event(GtkWidget *widget, GdkEvent *event) { gtk_widget_destroy(widget); return TRUE; } void gtk_window_set_default_size(GtkWindow *window, gint width, gint height) { window->default_width = width; window->default_height = height; } void gtk_window_set_transient_for(GtkWindow *window, GtkWindow *parent) { if (window && parent) { GTK_WIDGET(window)->parent = GTK_WIDGET(parent); if (GTK_WIDGET(window)->hWnd && GTK_WIDGET(parent)->hWnd) { SetParent(GTK_WIDGET(window)->hWnd, GTK_WIDGET(parent)->hWnd); } } } void gtk_window_set_policy(GtkWindow *window, gint allow_shrink, gint allow_grow, gint auto_shrink) { window->allow_shrink = allow_shrink; window->allow_grow = allow_grow; window->auto_shrink = auto_shrink; } void gtk_window_set_menu(GtkWindow *window, GtkMenuBar *menu_bar) { HWND hWnd; HMENU hMenu; hWnd = GTK_WIDGET(window)->hWnd; hMenu = GTK_MENU_SHELL(menu_bar)->menu; if (hWnd && hMenu) SetMenu(hWnd, hMenu); window->menu_bar = menu_bar; } void gtk_container_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkContainer *container; GtkAllocation child_alloc; container = GTK_CONTAINER(widget); if (container->child) { child_alloc.x = allocation->x + container->border_width; child_alloc.y = allocation->y + container->border_width; child_alloc.width = allocation->width - container->border_width * 2; child_alloc.height = allocation->height - container->border_width * 2; gtk_widget_set_size(container->child, &child_alloc); } } void gtk_frame_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkFrame *frame; GtkContainer *container; frame = GTK_FRAME(widget); container = GTK_CONTAINER(widget); allocation->x += container->border_width; allocation->y += container->border_width; allocation->width -= container->border_width * 2; allocation->height -= container->border_width * 2; if (container->child) { GtkAllocation child_alloc; child_alloc.x = allocation->x + 3; child_alloc.y = allocation->y + 3 + frame->label_req.height; child_alloc.width = allocation->width - 6; child_alloc.height = allocation->height - frame->label_req.height - 6; gtk_widget_set_size(container->child, &child_alloc); } } void gtk_frame_set_shadow_type(GtkFrame *frame, GtkShadowType type) { } void gtk_container_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkContainer *container; container = GTK_CONTAINER(widget); if (container->child) { requisition->width = container->child->requisition.width + container->border_width * 2; requisition->height = container->child->requisition.height + container->border_width * 2; } } void gtk_window_size_request(GtkWidget *widget, GtkRequisition *requisition) { gtk_container_size_request(widget, requisition); requisition->width += GetSystemMetrics(SM_CXSIZEFRAME) * 2; requisition->height += GetSystemMetrics(SM_CYSIZEFRAME) * 2 + GetSystemMetrics(SM_CYCAPTION); if (GTK_WINDOW(widget)->menu_bar) { requisition->height += GetSystemMetrics(SM_CYMENU); } } void gtk_window_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkAllocation child_alloc; GtkWindow *window = GTK_WINDOW(widget); child_alloc.x = child_alloc.y = 0; child_alloc.width = allocation->width - GetSystemMetrics(SM_CXSIZEFRAME) * 2; child_alloc.height = allocation->height - GetSystemMetrics(SM_CYSIZEFRAME) * 2 - GetSystemMetrics(SM_CYCAPTION); if (window->menu_bar) { child_alloc.height -= GetSystemMetrics(SM_CYMENU); } gtk_container_set_size(widget, &child_alloc); } void gtk_button_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size, minsize; GtkButton *but = GTK_BUTTON(widget); gtk_container_size_request(widget, requisition); /* Without minsize, an unexpanded "OK" button looks silly... */ if (GetTextSize(widget->hWnd, but->text, &size, defFont) && GetTextSize(widget->hWnd, "Cancel", &minsize, defFont)) { size.cx = MAX(size.cx, minsize.cx); size.cy = MAX(size.cy, minsize.cy); requisition->width = size.cx + 15; requisition->height = size.cy + 10; } } BOOL GetTextSize(HWND hWnd, char *text, LPSIZE lpSize, HFONT hFont) { HDC hDC; BOOL RetVal = 0; SIZE LineSize; HFONT oldFont; char *endpt, *startpt; hDC = GetDC(hWnd); oldFont = SelectObject(hDC, hFont); startpt = text; lpSize->cx = lpSize->cy = 0; while (startpt) { endpt = startpt; while (endpt && *endpt != '\n' && *endpt) endpt++; if (endpt) { if ((endpt == startpt && GetTextExtentPoint32(hDC, "W", 1, &LineSize)) || (endpt != startpt && GetTextExtentPoint32(hDC, startpt, endpt - startpt, &LineSize))) { RetVal = 1; if (LineSize.cx > lpSize->cx) lpSize->cx = LineSize.cx; lpSize->cy += LineSize.cy; } if (*endpt == '\0') break; startpt = endpt + 1; } else break; } SelectObject(hDC, oldFont); ReleaseDC(hWnd, hDC); return RetVal; } void gtk_entry_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "text", &size, defFont)) { requisition->width = size.cx * 6; requisition->height = size.cy + 8; } } void gtk_text_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "Sample text", &size, defFont)) { requisition->width = size.cx; requisition->height = size.cy * 2 + 8; } } void gtk_frame_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; GtkFrame *frame = GTK_FRAME(widget); gtk_container_size_request(widget, requisition); if (GetTextSize(widget->hWnd, frame->text, &size, defFont)) { frame->label_req.width = size.cx; frame->label_req.height = size.cy; if (size.cx > requisition->width) requisition->width = size.cx; requisition->width += 6; requisition->height += size.cy + 6; } } void gtk_check_button_size_request(GtkWidget *widget, GtkRequisition *requisition) { gtk_button_size_request(widget, requisition); requisition->width += 10; } GtkWidget *gtk_button_new_with_label(const gchar *label) { GtkButton *but; but = GTK_BUTTON(GtkNewObject(&GtkButtonClass)); but->text = g_strdup(label); g_strdelimit(but->text, "_", '&'); return GTK_WIDGET(but); } GtkWidget *gtk_check_button_new_with_label(const gchar *label) { GtkButton *but; but = GTK_BUTTON(GtkNewObject(&GtkCheckButtonClass)); but->text = g_strdup(label); g_strdelimit(but->text, "_", '&'); return GTK_WIDGET(but); } GtkWidget *gtk_radio_button_new_with_label_from_widget(GtkRadioButton *group, const gchar *label) { GSList *list; list = gtk_radio_button_group(group); return (gtk_radio_button_new_with_label(list, label)); } GtkWidget *gtk_radio_button_new_with_label(GSList *group, const gchar *label) { GtkButton *but; GtkRadioButton *radio; GSList *listpt; but = GTK_BUTTON(GtkNewObject(&GtkRadioButtonClass)); but->text = g_strdup(label); g_strdelimit(but->text, "_", '&'); if (group == NULL) GTK_TOGGLE_BUTTON(but)->toggled = TRUE; group = g_slist_append(group, GTK_RADIO_BUTTON(but)); for (listpt = group; listpt; listpt = g_slist_next(listpt)) { radio = GTK_RADIO_BUTTON(listpt->data); radio->group = group; } return GTK_WIDGET(but); } GtkWidget *gtk_label_new(const gchar *text) { GtkLabel *label; label = GTK_LABEL(GtkNewObject(&GtkLabelClass)); gtk_label_set_text(label, text); return GTK_WIDGET(label); } GtkWidget *gtk_url_new(const gchar *text, const gchar *target, const gchar *bin) { GtkUrl *url; url = GTK_URL(GtkNewObject(&GtkUrlClass)); GTK_LABEL(url)->text = g_strdup(text); url->target = g_strdup(target); /* N.B. "bin" argument is ignored under Win32 */ return GTK_WIDGET(url); } GtkWidget *gtk_hbox_new(gboolean homogeneous, gint spacing) { GtkBox *hbox; hbox = GTK_BOX(GtkNewObject(&GtkHBoxClass)); hbox->spacing = spacing; hbox->homogeneous = homogeneous; return GTK_WIDGET(hbox); } GtkWidget *gtk_vbox_new(gboolean homogeneous, gint spacing) { GtkBox *vbox; vbox = GTK_BOX(GtkNewObject(&GtkVBoxClass)); vbox->spacing = spacing; vbox->homogeneous = homogeneous; return GTK_WIDGET(vbox); } GtkWidget *gtk_frame_new(const gchar *text) { GtkFrame *frame; frame = GTK_FRAME(GtkNewObject(&GtkFrameClass)); frame->text = g_strdup(text); return GTK_WIDGET(frame); } GtkWidget *gtk_text_new(GtkAdjustment *hadj, GtkAdjustment *vadj) { GtkText *text; text = GTK_TEXT(GtkNewObject(&GtkTextClass)); text->buffer = g_new(GtkTextBuffer, 1); g_datalist_init(&text->buffer->tags); return GTK_WIDGET(text); } GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg) { GtkWidget *text; text = gtk_text_new(NULL, NULL); *pack_widg = text; return text; } GtkWidget *gtk_entry_new() { GtkEntry *entry; entry = GTK_ENTRY(GtkNewObject(&GtkEntryClass)); entry->is_visible = TRUE; return GTK_WIDGET(entry); } GSList *gtk_radio_button_group(GtkRadioButton *radio_button) { return radio_button->group; } static void gtk_editable_sync_text(GtkEditable *editable) { HWND hWnd; gchar *buffer; hWnd = GTK_WIDGET(editable)->hWnd; if (!hWnd) { return; } buffer = myGetWindowText(hWnd); g_string_assign(editable->text, buffer); g_free(buffer); } void gtk_editable_insert_text(GtkEditable *editable, const gchar *new_text, gint new_text_length, gint *position) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; gint i; GString *newstr; gtk_editable_sync_text(editable); /* Convert Unix-style lone '\n' to Windows-style '\r\n' */ newstr = g_string_new(""); for (i = 0; i < new_text_length && new_text[i]; i++) { if (new_text[i] == '\n' && (i == 0 || new_text[i - 1] != '\r')) { g_string_append_c(newstr, '\r'); } g_string_append_c(newstr, new_text[i]); } g_string_insert(editable->text, *position, newstr->str); hWnd = widget->hWnd; if (hWnd) { mySendMessage(hWnd, EM_SETSEL, (WPARAM)*position, (LPARAM)*position); myEditReplaceSel(hWnd, FALSE, newstr->str); *position += newstr->len; gtk_editable_set_position(editable, *position); } g_string_free(newstr, TRUE); } static void gtk_text_view_set_format(GtkTextView *textview, const gchar *tagname, guint len, gint endpos) { CHARFORMAT *cf, cfdef; GtkWidget *widget = GTK_WIDGET(textview); GtkTextBuffer *buffer; DWORD st, end; if (!GTK_WIDGET_REALIZED(widget)) { return; } /* RichEdit controls do something odd behind the scenes with line ends, * so we use our guess for the last character position, and then read * back the resultant selection to get the true "length" of the control */ mySendMessage(widget->hWnd, EM_SETSEL, (WPARAM)endpos, (LPARAM)endpos); mySendMessage(widget->hWnd, EM_GETSEL, (WPARAM)&st, (LPARAM)&end); endpos = (gint)end; mySendMessage(widget->hWnd, EM_SETSEL, (WPARAM)(endpos - len), (LPARAM)endpos); if (!tagname || !(buffer = gtk_text_view_get_buffer(textview)) || !(cf = g_datalist_get_data(&buffer->tags, tagname))) { cfdef.cbSize = sizeof(CHARFORMAT); cfdef.dwMask = CFM_COLOR; cfdef.dwEffects = CFE_AUTOCOLOR; cf = &cfdef; } mySendMessage(widget->hWnd, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)cf); } void gtk_editable_delete_text(GtkEditable *editable, gint start_pos, gint end_pos) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; gtk_editable_sync_text(editable); if (end_pos < 0 || end_pos >= editable->text->len) end_pos = editable->text->len; g_string_erase(editable->text, start_pos, end_pos - start_pos); hWnd = widget->hWnd; if (hWnd) { mySetWindowText(hWnd, editable->text->str); } } gchar *gtk_editable_get_chars(GtkEditable *editable, gint start_pos, gint end_pos) { gchar *retbuf; gint copylen; gtk_editable_sync_text(editable); if (end_pos < 0 || end_pos >= editable->text->len) end_pos = editable->text->len; copylen = end_pos - start_pos; retbuf = g_new(gchar, copylen + 1); memcpy(retbuf, &editable->text->str[start_pos], copylen); retbuf[copylen] = '\0'; return retbuf; } void gtk_editable_set_editable(GtkEditable *editable, gboolean is_editable) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; editable->is_editable = is_editable; hWnd = widget->hWnd; if (hWnd) mySendMessage(hWnd, EM_SETREADONLY, (WPARAM)(!is_editable), (LPARAM)0); } void gtk_editable_set_position(GtkEditable *editable, gint position) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; if (!GTK_WIDGET_REALIZED(widget)) return; hWnd = widget->hWnd; /* RichEdit 2.0 doesn't appear to show the caret unless we show the * selection */ mySendMessage(hWnd, EM_HIDESELECTION, 0, 0); mySendMessage(hWnd, EM_SETSEL, (WPARAM)position, (LPARAM)position); mySendMessage(hWnd, EM_SCROLLCARET, 0, 0); mySendMessage(hWnd, EM_HIDESELECTION, 1, 0); } gint gtk_editable_get_position(GtkEditable *editable) { GtkWidget *widget = GTK_WIDGET(editable); HWND hWnd; DWORD EndPos; if (!GTK_WIDGET_REALIZED(widget)) return 0; hWnd = widget->hWnd; mySendMessage(hWnd, EM_GETSEL, (WPARAM)NULL, (LPARAM)&EndPos); return (gint)EndPos; } guint gtk_text_get_length(GtkText *text) { return GTK_EDITABLE(text)->text->len; } void gtk_box_pack_start(GtkBox *box, GtkWidget *child, gboolean Expand, gboolean Fill, gint Padding) { GtkBoxChild *newChild; newChild = g_new0(GtkBoxChild, 1); newChild->widget = child; newChild->expand = Expand; newChild->fill = Fill; box->children = g_list_append(box->children, (gpointer)newChild); child->parent = GTK_WIDGET(box); if (GTK_WIDGET_REALIZED(GTK_WIDGET(box))) { gtk_widget_realize(child); gtk_widget_update(GTK_WIDGET(box), TRUE); } } void gtk_box_pack_start_defaults(GtkBox *box, GtkWidget *child) { gtk_box_pack_start(box, child, FALSE, FALSE, 0); } void gtk_button_destroy(GtkWidget *widget) { g_free(GTK_BUTTON(widget)->text); } void gtk_frame_destroy(GtkWidget *widget) { gtk_container_destroy(widget); g_free(GTK_FRAME(widget)->text); } void gtk_container_destroy(GtkWidget *widget) { GtkWidget *child = GTK_CONTAINER(widget)->child; if (child) gtk_widget_destroy(child); } void gtk_box_destroy(GtkWidget *widget) { GtkBoxChild *child; GList *children; gtk_container_destroy(widget); for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget) gtk_widget_destroy(child->widget); g_free(child); } g_list_free(GTK_BOX(widget)->children); } static void gtk_text_destroy(GtkWidget *widget) { GtkText *text = GTK_TEXT(widget); GtkTextBuffer *buffer = gtk_text_view_get_buffer(text); if (buffer) { g_datalist_clear(&buffer->tags); g_free(buffer); } } static void EnableParent(GtkWindow *window) { GtkWidget *parent; parent = GTK_WIDGET(window)->parent; if (window->modal && parent) { GSList *list; GtkWindow *listwin; HWND ourhWnd, parenthWnd; ourhWnd = GTK_WIDGET(window)->hWnd; parenthWnd = parent->hWnd; for (list = WindowList; list; list = g_slist_next(list)) { listwin = GTK_WINDOW(list->data); if (listwin != window && listwin->modal && GTK_WIDGET_VISIBLE(GTK_WIDGET(listwin)) && GTK_WIDGET(listwin)->parent == parent) return; } gtk_widget_set_sensitive(parent, TRUE); if (ourhWnd && parenthWnd && ourhWnd == GetActiveWindow()) { SetActiveWindow(parenthWnd); } } } void gtk_window_destroy(GtkWidget *widget) { GtkWindow *window = GTK_WINDOW(widget); WindowList = g_slist_remove(WindowList, (gpointer)window); gtk_container_destroy(widget); if (window->accel_group) gtk_accel_group_destroy(window->accel_group); if (window->hAccel) DestroyAcceleratorTable(window->hAccel); g_free(window->title); } void gtk_window_show(GtkWidget *widget) { GtkWindow *window = GTK_WINDOW(widget); if (window->modal && widget->parent) gtk_widget_set_sensitive(widget->parent, FALSE); } void gtk_window_hide(GtkWidget *widget) { GtkWindow *window = GTK_WINDOW(widget); EnableParent(window); } void gtk_hbox_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkBoxChild *child; GList *children; GtkRequisition *child_req; gint spacing = GTK_BOX(widget)->spacing, numchildren = 0; gint maxreq = 0; gboolean homogeneous = GTK_BOX(widget)->homogeneous; gboolean first = TRUE; for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && GTK_WIDGET_VISIBLE(child->widget)) { if (first) { first = FALSE; } else { requisition->width += spacing; } child_req = &child->widget->requisition; if (homogeneous) { numchildren++; if (child_req->width > maxreq) maxreq = child_req->width; } else { requisition->width += child_req->width; } if (child_req->height > requisition->height) requisition->height = child_req->height; } } if (homogeneous) requisition->width += numchildren * maxreq; GTK_BOX(widget)->maxreq = maxreq; requisition->width += 2 * GTK_CONTAINER(widget)->border_width; requisition->height += 2 * GTK_CONTAINER(widget)->border_width; } void gtk_vbox_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkBoxChild *child; GList *children; GtkRequisition *child_req; gint spacing = GTK_BOX(widget)->spacing, numchildren = 0; gint maxreq = 0; gboolean homogeneous = GTK_BOX(widget)->homogeneous; gboolean first = TRUE; for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && GTK_WIDGET_VISIBLE(child->widget)) { if (first) { first = FALSE; } else { requisition->height += spacing; } child_req = &child->widget->requisition; child_req = &child->widget->requisition; if (homogeneous) { numchildren++; if (child_req->height > maxreq) maxreq = child_req->height; } else { requisition->height += child_req->height; } if (child_req->width > requisition->width) requisition->width = child_req->width; } } if (homogeneous) requisition->height += numchildren * maxreq; GTK_BOX(widget)->maxreq = maxreq; requisition->width += 2 * GTK_CONTAINER(widget)->border_width; requisition->height += 2 * GTK_CONTAINER(widget)->border_width; } static void gtk_box_count_children(GtkBox *box, gint16 allocation, gint16 requisition, gint *extra) { GtkBoxChild *child; GList *children; gint NumCanExpand = 0; for (children = box->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && GTK_WIDGET_VISIBLE(child->widget) && child->expand) NumCanExpand++; } *extra = allocation - requisition; if (NumCanExpand > 0) *extra /= NumCanExpand; } static void gtk_box_size_child(GtkBox *box, GtkBoxChild *child, gint extra, gint16 maxpos, gint16 requisition, gint16 *pos, gint16 *size, GList *listpt, gint16 *curpos) { gboolean TooSmall = FALSE; *pos = *curpos; if (extra < 0) { extra = 0; TooSmall = TRUE; } if (child->expand && child->fill) { *size = requisition + extra; *curpos += requisition + extra; } else if (child->expand) { *size = requisition; *pos += extra / 2; *curpos += requisition + extra; } else { *size = requisition; *curpos += requisition; } *curpos += box->spacing; if (TooSmall) { if (*pos >= maxpos) { *pos = *size = 0; } else if (*pos + *size > maxpos) { *size = maxpos - *pos; } } } void gtk_hbox_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkBox *box; GtkBoxChild *child; GList *children; GtkAllocation child_alloc; gint extra; gint16 curpos; gint maxpos, height, border_width; border_width = GTK_CONTAINER(widget)->border_width; maxpos = allocation->x + allocation->width - border_width; height = allocation->height - 2 * border_width; box = GTK_BOX(widget); curpos = allocation->x + border_width; gtk_box_count_children(box, allocation->width, widget->requisition.width, &extra); for (children = box->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && GTK_WIDGET_VISIBLE(child->widget)) { gtk_box_size_child(box, child, extra, maxpos, box->homogeneous ? box->maxreq : child->widget->requisition.width, &child_alloc.x, &child_alloc.width, children, &curpos); child_alloc.y = allocation->y + border_width; child_alloc.height = height; gtk_widget_set_size(child->widget, &child_alloc); } } } void gtk_vbox_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkBox *box; GtkBoxChild *child; GList *children; GtkAllocation child_alloc; gint extra; gint16 curpos; gint width, maxpos, border_width; border_width = GTK_CONTAINER(widget)->border_width; width = allocation->width - 2 * border_width; maxpos = allocation->y + allocation->height - border_width; box = GTK_BOX(widget); curpos = allocation->y + border_width; gtk_box_count_children(box, allocation->height, widget->requisition.height, &extra); for (children = box->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget && GTK_WIDGET_VISIBLE(child->widget)) { gtk_box_size_child(box, child, extra, maxpos, box->homogeneous ? box->maxreq : child->widget->requisition.height, &child_alloc.y, &child_alloc.height, children, &curpos); child_alloc.x = allocation->x + border_width; child_alloc.width = width; gtk_widget_set_size(child->widget, &child_alloc); } } } void gtk_window_realize(GtkWidget *widget) { GtkWindow *win = GTK_WINDOW(widget); HWND Parent; DWORD resize = 0; if (win->allow_shrink || win->allow_grow) resize = WS_SIZEBOX; Parent = gtk_get_parent_hwnd(widget->parent); if (Parent) { widget->hWnd = myCreateDialog(hInst, "gtkdialog", Parent, MainDlgProc); mySetWindowText(widget->hWnd, win->title); } else { widget->hWnd = myCreateWindow("mainwin", win->title, WS_OVERLAPPEDWINDOW | CS_HREDRAW | CS_VREDRAW | resize, CW_USEDEFAULT, 0, 0, 0, Parent, NULL, hInst, NULL); if (!TopLevel) TopLevel = widget->hWnd; } WindowList = g_slist_append(WindowList, (gpointer)win); gtk_set_default_font(widget->hWnd); gtk_container_realize(widget); if (win->accel_group && win->accel_group->numaccel) { win->hAccel = CreateAcceleratorTable(win->accel_group->accel, win->accel_group->numaccel); } } void gtk_container_realize(GtkWidget *widget) { GtkWidget *child = GTK_CONTAINER(widget)->child; if (child) gtk_widget_realize(child); } void gtk_box_realize(GtkWidget *widget) { GtkBoxChild *child; GList *children; gtk_container_realize(widget); for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget) gtk_widget_realize(child->widget); } } void gtk_button_realize(GtkWidget *widget) { GtkButton *but = GTK_BUTTON(widget); HWND Parent; GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow("BUTTON", but->text, WS_CHILD | WS_TABSTOP | (GTK_WIDGET_FLAGS(widget) & GTK_IS_DEFAULT ? BS_DEFPUSHBUTTON : BS_PUSHBUTTON), widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); } void gtk_entry_realize(GtkWidget *widget) { HWND Parent; Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_TABSTOP | ES_AUTOHSCROLL, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); /* Subclass the window (we assume that all edit boxes have the same * window procedure) */ wpOrigEntryProc = (WNDPROC)mySetWindowLong(widget->hWnd, GWL_WNDPROC, (LONG)EntryWndProc); gtk_set_default_font(widget->hWnd); gtk_editable_set_editable(GTK_EDITABLE(widget), GTK_EDITABLE(widget)->is_editable); gtk_entry_set_visibility(GTK_ENTRY(widget), GTK_ENTRY(widget)->is_visible); mySetWindowText(widget->hWnd, GTK_EDITABLE(widget)->text->str); } void gtk_text_realize(GtkWidget *widget) { HWND Parent; gboolean editable; Parent = gtk_get_parent_hwnd(widget); editable = GTK_EDITABLE(widget)->is_editable; GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, HaveRichEdit ? RichEditClass : "EDIT", "", WS_CHILD | (editable ? WS_TABSTOP : 0) | ES_MULTILINE | ES_WANTRETURN | WS_VSCROLL | (GTK_TEXT(widget)->word_wrap ? 0 : ES_AUTOHSCROLL), 0, 0, 0, 0, Parent, NULL, hInst, NULL); /* Subclass the window (we assume that all multiline edit boxes have the * same window procedure) */ wpOrigTextProc = (WNDPROC)mySetWindowLong(widget->hWnd, GWL_WNDPROC, (LONG)TextWndProc); gtk_set_default_font(widget->hWnd); gtk_editable_set_editable(GTK_EDITABLE(widget), GTK_EDITABLE(widget)->is_editable); mySetWindowText(widget->hWnd, GTK_EDITABLE(widget)->text->str); } void gtk_frame_realize(GtkWidget *widget) { HWND Parent; GtkFrame *frame = GTK_FRAME(widget); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow("BUTTON", frame->text, WS_CHILD | BS_GROUPBOX, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); gtk_container_realize(widget); } void gtk_check_button_realize(GtkWidget *widget) { GtkButton *but = GTK_BUTTON(widget); HWND Parent; gboolean toggled; Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindow("BUTTON", but->text, WS_CHILD | WS_TABSTOP | BS_CHECKBOX, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); gtk_signal_connect(GTK_OBJECT(widget), "clicked", gtk_toggle_button_toggled, NULL); gtk_signal_connect(GTK_OBJECT(widget), "toggled", gtk_check_button_toggled, NULL); toggled = GTK_TOGGLE_BUTTON(widget)->toggled; GTK_TOGGLE_BUTTON(widget)->toggled = !toggled; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), toggled); } void gtk_radio_button_realize(GtkWidget *widget) { GtkButton *but = GTK_BUTTON(widget); HWND Parent; gboolean toggled; Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindow("BUTTON", but->text, WS_CHILD | WS_TABSTOP | BS_RADIOBUTTON, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); gtk_signal_connect(GTK_OBJECT(widget), "clicked", gtk_radio_button_clicked, NULL); gtk_signal_connect(GTK_OBJECT(widget), "toggled", gtk_radio_button_toggled, NULL); toggled = GTK_TOGGLE_BUTTON(widget)->toggled; GTK_TOGGLE_BUTTON(widget)->toggled = !toggled; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), toggled); } void gtk_radio_button_destroy(GtkWidget *widget) { GSList *group, *listpt; GtkRadioButton *radio; gtk_button_destroy(widget); group = GTK_RADIO_BUTTON(widget)->group; group = g_slist_remove(group, GTK_RADIO_BUTTON(widget)); for (listpt = group; listpt; listpt = g_slist_next(listpt)) { radio = GTK_RADIO_BUTTON(listpt->data); radio->group = group; } } void gtk_container_show_all(GtkWidget *widget, gboolean hWndOnly) { GtkContainer *container = GTK_CONTAINER(widget); if (container->child) gtk_widget_show_all_full(container->child, hWndOnly); } void gtk_container_hide_all(GtkWidget *widget, gboolean hWndOnly) { GtkContainer *container = GTK_CONTAINER(widget); if (container->child) gtk_widget_hide_all_full(container->child, hWndOnly); } void gtk_box_show_all(GtkWidget *widget, gboolean hWndOnly) { GtkBoxChild *child; GList *children; gtk_container_show_all(widget, hWndOnly); for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget) gtk_widget_show_all_full(child->widget, hWndOnly); } } void gtk_box_hide_all(GtkWidget *widget, gboolean hWndOnly) { GtkBoxChild *child; GList *children; gtk_container_hide_all(widget, hWndOnly); for (children = GTK_BOX(widget)->children; children; children = g_list_next(children)) { child = (GtkBoxChild *)(children->data); if (child && child->widget) gtk_widget_hide_all_full(child->widget, hWndOnly); } } void gtk_table_show_all(GtkWidget *widget, gboolean hWndOnly) { GList *children; GtkTableChild *child; gtk_container_show_all(widget, hWndOnly); for (children = GTK_TABLE(widget)->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (child && child->widget) gtk_widget_show_all_full(child->widget, hWndOnly); } } void gtk_table_hide_all(GtkWidget *widget, gboolean hWndOnly) { GList *children; GtkTableChild *child; gtk_container_hide_all(widget, hWndOnly); for (children = GTK_TABLE(widget)->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (child && child->widget) gtk_widget_hide_all_full(child->widget, hWndOnly); } } void gtk_widget_hide_all(GtkWidget *widget) { gtk_widget_hide_all_full(widget, FALSE); } void gtk_widget_hide_all_full(GtkWidget *widget, gboolean hWndOnly) { gtk_signal_emit(GTK_OBJECT(widget), "hide_all", hWndOnly); if (hWndOnly) { gtk_signal_emit(GTK_OBJECT(widget), "hide"); if (widget->hWnd) ShowWindow(widget->hWnd, SW_HIDE); } else gtk_widget_hide_full(widget, FALSE); } void gtk_widget_show_all(GtkWidget *widget) { gtk_widget_show_all_full(widget, FALSE); } void gtk_widget_show_all_full(GtkWidget *widget, gboolean hWndOnly) { GtkAllocation alloc; gboolean InitWindow = FALSE; if (!GTK_WIDGET_REALIZED(widget) && GTK_OBJECT(widget)->klass == &GtkWindowClass) InitWindow = TRUE; if (InitWindow) gtk_widget_realize(widget); gtk_signal_emit(GTK_OBJECT(widget), "show_all", hWndOnly); if (hWndOnly) { if (GTK_WIDGET_VISIBLE(widget)) { gtk_signal_emit(GTK_OBJECT(widget), "show"); if (widget->hWnd) ShowWindow(widget->hWnd, SW_SHOWNORMAL); } } else { gtk_widget_show_full(widget, FALSE); } if (InitWindow) { gtk_widget_update(widget, TRUE); alloc.x = alloc.y = 0; alloc.width = widget->requisition.width; alloc.height = widget->requisition.height; gtk_window_set_initial_position(GTK_WINDOW(widget), &alloc); ShowWindow(widget->hWnd, SW_SHOWNORMAL); UpdateWindow(widget->hWnd); } } GtkWidget *gtk_widget_get_ancestor(GtkWidget *widget, GtkType type) { if (!widget) return NULL; while (widget && GTK_OBJECT(widget)->klass != type) { widget = widget->parent; } return widget; } void gtk_label_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; GtkLabel *label = GTK_LABEL(widget); if (GetTextSize(widget->hWnd, label->text, &size, defFont)) { requisition->width = size.cx; requisition->height = size.cy; } } void gtk_url_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; GtkLabel *label = GTK_LABEL(widget); if (GetTextSize(widget->hWnd, label->text, &size, urlFont)) { requisition->width = size.cx; requisition->height = size.cy; } } void gtk_label_set_size(GtkWidget *widget, GtkAllocation *allocation) { gint yexcess; yexcess = allocation->height - widget->requisition.height; if (yexcess > 0) { allocation->y += yexcess / 2; allocation->height -= yexcess; } } void gtk_entry_set_size(GtkWidget *widget, GtkAllocation *allocation) { gint yexcess; yexcess = allocation->height - widget->requisition.height; if (yexcess > 0) { allocation->y += yexcess / 2; allocation->height -= yexcess; } } void gtk_label_destroy(GtkWidget *widget) { g_free(GTK_LABEL(widget)->text); } void gtk_url_destroy(GtkWidget *widget) { g_free(GTK_LABEL(widget)->text); g_free(GTK_URL(widget)->target); } void gtk_label_realize(GtkWidget *widget) { GtkLabel *label = GTK_LABEL(widget); HWND Parent; Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow("STATIC", label->text, WS_CHILD | SS_CENTER, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); } void gtk_url_realize(GtkWidget *widget) { HWND Parent; Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow(WC_GTKURL, GTK_LABEL(widget)->text, WS_CHILD, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); } void gtk_container_add(GtkContainer *container, GtkWidget *widget) { container->child = widget; widget->parent = GTK_WIDGET(container); if (GTK_WIDGET_REALIZED(GTK_WIDGET(container))) { gtk_widget_realize(widget); gtk_widget_update(GTK_WIDGET(container), TRUE); } } void gtk_container_set_border_width(GtkContainer *container, guint border_width) { container->border_width = border_width; } GtkWidget *gtk_table_new(guint rows, guint cols, gboolean homogeneous) { GtkTable *table; table = GTK_TABLE(GtkNewObject(&GtkTableClass)); table->nrows = rows; table->ncols = cols; table->homogeneous = homogeneous; table->rows = g_new0(GtkTableRowCol, rows); table->cols = g_new0(GtkTableRowCol, cols); return GTK_WIDGET(table); } void gtk_table_resize(GtkTable *table, guint rows, guint cols) { gint i; table->rows = g_realloc(table->rows, sizeof(GtkTableRowCol) * rows); table->cols = g_realloc(table->cols, sizeof(GtkTableRowCol) * cols); for (i = table->nrows; i < rows; i++) { table->rows[i].requisition = 0; table->rows[i].allocation = 0; table->rows[i].spacing = table->row_spacing; } for (i = table->ncols; i < cols; i++) { table->cols[i].requisition = 0; table->cols[i].allocation = 0; table->cols[i].spacing = table->column_spacing; } table->nrows = rows; table->ncols = cols; gtk_widget_update(GTK_WIDGET(table), FALSE); } void gtk_table_attach_defaults(GtkTable *table, GtkWidget *widget, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach) { gtk_table_attach(table, widget, left_attach, right_attach, top_attach, bottom_attach, GTK_EXPAND, GTK_EXPAND, 0, 0); } void gtk_table_attach(GtkTable *table, GtkWidget *widget, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach, GtkAttachOptions xoptions, GtkAttachOptions yoptions, guint xpadding, guint ypadding) { GtkTableChild *newChild; newChild = g_new0(GtkTableChild, 1); newChild->widget = widget; newChild->left_attach = left_attach; newChild->right_attach = right_attach; newChild->top_attach = top_attach; newChild->bottom_attach = bottom_attach; newChild->xoptions = xoptions; newChild->yoptions = yoptions; table->children = g_list_append(table->children, (gpointer)newChild); widget->parent = GTK_WIDGET(table); if (GTK_WIDGET_REALIZED(GTK_WIDGET(table))) { gtk_widget_realize(widget); gtk_widget_update(GTK_WIDGET(table), TRUE); } } void gtk_table_destroy(GtkWidget *widget) { GList *children; GtkTableChild *child; gtk_container_destroy(widget); for (children = GTK_TABLE(widget)->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (child->widget) gtk_widget_destroy(child->widget); g_free(child); } g_list_free(GTK_TABLE(widget)->children); } static void gtk_table_get_size_children(GtkTable *table, GtkAttachOptions colopts, GtkAttachOptions *cols) { GList *children; for (children = table->children; children; children = g_list_next(children)) { GtkRequisition child_req; GtkWidget *child_wid; int i; GtkTableChild *child = (GtkTableChild *)(children->data); if (!child) continue; if (colopts) { if (child->xoptions & colopts) { for (i = child->left_attach; i < child->right_attach; i++) { cols[i] = colopts; } } else { continue; } } else if (child->xoptions & GTK_SHRINK) { continue; } child_wid = child->widget; if (child_wid && child->left_attach < child->right_attach && child->top_attach < child->bottom_attach && GTK_WIDGET_VISIBLE(child_wid)) { child_req.width = child_wid->requisition.width; child_req.height = child_wid->requisition.height; child_req.height /= (child->bottom_attach - child->top_attach); if (colopts) { child_req.width /= (child->right_attach - child->left_attach); for (i = child->left_attach; i < child->right_attach; i++) { if (child_req.width > table->cols[i].requisition) table->cols[i].requisition = child_req.width; } } else { for (i = child->left_attach; i < child->right_attach; i++) { child_req.width -= table->cols[i].requisition; } if (child_req.width > 0) { int nexpand = 0, ntotal = child->right_attach - child->left_attach; for (i = child->left_attach; i < child->right_attach; i++) { if (cols[i] == 0) { nexpand++; } } if (nexpand) { for (i = child->left_attach; i < child->right_attach; i++) { if (cols[i] == 0) { table->cols[i].requisition += child_req.width / nexpand; } } } else { for (i = child->left_attach; i < child->right_attach; i++) { table->cols[i].requisition += child_req.width / ntotal; } } } } for (i = child->top_attach; i < child->bottom_attach; i++) { if (child_req.height > table->rows[i].requisition) table->rows[i].requisition = child_req.height; } } } } void gtk_table_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkTable *table; gint16 MaxReq; int i; GtkAttachOptions *cols; table = GTK_TABLE(widget); for (i = 0; i < table->ncols; i++) table->cols[i].requisition = 0; for (i = 0; i < table->nrows; i++) table->rows[i].requisition = 0; gtk_container_size_request(widget, requisition); cols = g_new0(GtkAttachOptions, table->ncols); if (!table->homogeneous) { gtk_table_get_size_children(table, GTK_SHRINK, cols); } gtk_table_get_size_children(table, 0, cols); g_free(cols); if (table->homogeneous) { MaxReq = 0; for (i = 0; i < table->ncols; i++) if (table->cols[i].requisition > MaxReq) { MaxReq = table->cols[i].requisition; } for (i = 0; i < table->ncols; i++) table->cols[i].requisition = MaxReq; MaxReq = 0; for (i = 0; i < table->nrows; i++) if (table->rows[i].requisition > MaxReq) { MaxReq = table->rows[i].requisition; } for (i = 0; i < table->nrows; i++) table->rows[i].requisition = MaxReq; } requisition->width = requisition->height = 2 * GTK_CONTAINER(widget)->border_width; for (i = 0; i < table->ncols; i++) requisition->width += table->cols[i].requisition; for (i = 0; i < table->ncols - 1; i++) requisition->width += table->cols[i].spacing; for (i = 0; i < table->nrows; i++) requisition->height += table->rows[i].requisition; for (i = 0; i < table->nrows - 1; i++) requisition->height += table->rows[i].spacing; } void gtk_table_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkTable *table; gint row_extra = 0, col_extra = 0, i, row_expand = 0, col_expand = 0; GtkAllocation child_alloc; GList *children; GtkTableChild *child; gint border_width; GtkAttachOptions *rowopt, *colopt; table = GTK_TABLE(widget); border_width = GTK_CONTAINER(widget)->border_width; rowopt = g_new0(GtkAttachOptions, table->nrows); colopt = g_new0(GtkAttachOptions, table->ncols); for (children = table->children; children; children = g_list_next(children)) { GtkTableChild *child = (GtkTableChild *)(children->data); GtkWidget *child_wid; if (!child) continue; child_wid = child->widget; if (child_wid && child->left_attach < child->right_attach && child->top_attach < child->bottom_attach && GTK_WIDGET_VISIBLE(child_wid)) { if (child->xoptions & GTK_SHRINK) { for (i = child->left_attach; i < child->right_attach; i++) { colopt[i] |= GTK_SHRINK; } } if (child->yoptions & GTK_EXPAND) { for (i = child->top_attach; i < child->bottom_attach; i++) { rowopt[i] |= GTK_EXPAND; } } } } for (i = 0; i < table->ncols; i++) { if (!(colopt[i] & GTK_SHRINK)) { col_expand++; } } for (i = 0; i < table->nrows; i++) { if (rowopt[i] & GTK_EXPAND) { row_expand++; } } if (col_expand) { col_extra = (allocation->width - widget->requisition.width) / col_expand; } if (row_expand) { row_extra = (allocation->height - widget->requisition.height) / row_expand; } for (i = 0; i < table->ncols; i++) { table->cols[i].allocation = table->cols[i].requisition + (colopt[i] & GTK_SHRINK ? 0 : col_extra); } for (i = 0; i < table->nrows; i++) { table->rows[i].allocation = table->rows[i].requisition + (rowopt[i] & GTK_SHRINK ? 0 : row_extra); } g_free(rowopt); g_free(colopt); for (children = table->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (!child || !child->widget || !GTK_WIDGET_VISIBLE(child->widget)) continue; child_alloc.x = allocation->x + border_width; child_alloc.y = allocation->y + border_width; child_alloc.width = child_alloc.height = 0; for (i = 0; i < child->left_attach; i++) { child_alloc.x += table->cols[i].allocation + table->cols[i].spacing; } for (i = 0; i < child->top_attach; i++) { child_alloc.y += table->rows[i].allocation + table->rows[i].spacing; } for (i = child->left_attach; i < child->right_attach; i++) { child_alloc.width += table->cols[i].allocation; if (i < child->right_attach - 1) { child_alloc.width += table->cols[i].spacing; } } for (i = child->top_attach; i < child->bottom_attach; i++) { child_alloc.height += table->rows[i].allocation; if (i < child->bottom_attach - 1) { child_alloc.height += table->rows[i].spacing; } } gtk_widget_set_size(child->widget, &child_alloc); } } void gtk_table_realize(GtkWidget *widget) { GList *children; GtkTableChild *child; gtk_container_realize(widget); for (children = GTK_TABLE(widget)->children; children; children = g_list_next(children)) { child = (GtkTableChild *)(children->data); if (child->widget) gtk_widget_realize(child->widget); } } void gtk_table_set_row_spacing(GtkTable *table, guint row, guint spacing) { if (table && row >= 0 && row < table->nrows) { table->rows[row].spacing = spacing; } } void gtk_table_set_col_spacing(GtkTable *table, guint column, guint spacing) { if (table && column >= 0 && column < table->ncols) { table->cols[column].spacing = spacing; } } void gtk_table_set_row_spacings(GtkTable *table, guint spacing) { int i; table->row_spacing = spacing; for (i = 0; i < table->nrows; i++) table->rows[i].spacing = spacing; } void gtk_table_set_col_spacings(GtkTable *table, guint spacing) { int i; table->column_spacing = spacing; for (i = 0; i < table->ncols; i++) table->cols[i].spacing = spacing; } void gtk_toggle_button_toggled(GtkToggleButton *toggle_button) { toggle_button->toggled = !toggle_button->toggled; gtk_signal_emit(GTK_OBJECT(toggle_button), "toggled"); } void gtk_check_button_toggled(GtkCheckButton *check_button, gpointer data) { HWND hWnd; gboolean is_active = GTK_TOGGLE_BUTTON(check_button)->toggled; hWnd = GTK_WIDGET(check_button)->hWnd; if (hWnd) { mySendMessage(hWnd, BM_SETCHECK, is_active ? BST_CHECKED : BST_UNCHECKED, 0); } } void gtk_radio_button_clicked(GtkRadioButton *radio_button, gpointer data) { GtkToggleButton *toggle = GTK_TOGGLE_BUTTON(radio_button); if (toggle->toggled) return; else gtk_toggle_button_toggled(toggle); } void gtk_radio_button_toggled(GtkRadioButton *radio_button, gpointer data) { HWND hWnd; GSList *group; GtkRadioButton *radio; gboolean is_active = GTK_TOGGLE_BUTTON(radio_button)->toggled; hWnd = GTK_WIDGET(radio_button)->hWnd; if (hWnd) { mySendMessage(hWnd, BM_SETCHECK, is_active ? BST_CHECKED : BST_UNCHECKED, 0); } if (is_active) { for (group = radio_button->group; group; group = g_slist_next(group)) { radio = GTK_RADIO_BUTTON(group->data); if (radio && radio != radio_button) { GTK_TOGGLE_BUTTON(radio)->toggled = FALSE; hWnd = GTK_WIDGET(radio)->hWnd; if (hWnd) mySendMessage(hWnd, BM_SETCHECK, BST_UNCHECKED, 0); } } } } gboolean gtk_toggle_button_get_active(GtkToggleButton *toggle_button) { return (toggle_button->toggled); } void gtk_toggle_button_set_active(GtkToggleButton *toggle_button, gboolean is_active) { if (toggle_button->toggled == is_active) return; else gtk_toggle_button_toggled(toggle_button); } void gtk_main_quit() { PostQuitMessage(0); } void gtk_main() { MSG msg; GSList *list; BOOL MsgDone; GtkWidget *widget, *window; HACCEL hAccel; RecurseLevel++; while (myGetMessage(&msg, NULL, 0, 0)) { MsgDone = FALSE; widget = GTK_WIDGET(myGetWindowLong(msg.hwnd, GWL_USERDATA)); window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window) { hAccel = GTK_WINDOW(window)->hAccel; if (hAccel) { MsgDone = TranslateAccelerator(window->hWnd, hAccel, &msg); } } if (!MsgDone) for (list = WindowList; list && !MsgDone; list = g_slist_next(list)) { widget = GTK_WIDGET(list->data); if (widget && widget->hWnd && (MsgDone = myIsDialogMessage(widget->hWnd, &msg)) == TRUE) break; } if (!MsgDone) { TranslateMessage(&msg); myDispatchMessage(&msg); } } RecurseLevel--; } typedef struct _GtkSignal GtkSignal; struct _GtkSignal { GtkSignalFunc func; GtkObject *slot_object; gpointer func_data; }; typedef gint (*GtkGIntSignalFunc) (); void gtk_marshal_BOOL__GINT(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args) { gboolean *retval; gint arg1; GtkSignal *signal; GtkGIntSignalFunc sigfunc; arg1 = va_arg(args, gint); retval = va_arg(args, gboolean *); if (!retval) { g_warning("gtk_marshal_BOOL__GINT: retval NULL"); return; } while (actions) { signal = (GtkSignal *)actions->data; sigfunc = (GtkGIntSignalFunc)signal->func; if (signal->slot_object) { *retval = (*sigfunc) (signal->slot_object, arg1); } else *retval = (*sigfunc) (object, arg1, signal->func_data); if (*retval) return; actions = g_slist_next(actions); } sigfunc = (GtkGIntSignalFunc)default_action; if (sigfunc) *retval = (*sigfunc) (object, arg1); } void gtk_marshal_BOOL__GPOIN(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args) { gboolean *retval; gpointer arg1; GtkSignal *signal; GtkGIntSignalFunc sigfunc; arg1 = va_arg(args, gpointer); retval = va_arg(args, gboolean *); if (!retval) { g_warning("gtk_marshal_BOOL__GPOIN: retval NULL"); return; } while (actions) { signal = (GtkSignal *)actions->data; sigfunc = (GtkGIntSignalFunc)signal->func; if (signal->slot_object) { *retval = (*sigfunc) (signal->slot_object, arg1); } else *retval = (*sigfunc) (object, arg1, signal->func_data); if (*retval) return; actions = g_slist_next(actions); } sigfunc = (GtkGIntSignalFunc)default_action; if (sigfunc) *retval = (*sigfunc) (object, arg1); } void gtk_marshal_VOID__VOID(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args) { GtkSignal *signal; while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object); } else (*signal->func) (object, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object); } void gtk_marshal_VOID__GINT(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args) { gint arg1; GtkSignal *signal; arg1 = va_arg(args, gint); while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object, arg1); } else (*signal->func) (object, arg1, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object, arg1); } void gtk_marshal_VOID__GPOIN(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args) { gpointer arg1; GtkSignal *signal; arg1 = va_arg(args, gpointer); while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object, arg1); } else (*signal->func) (object, arg1, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object, arg1); } void gtk_marshal_VOID__BOOL(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args) { gboolean arg1; GtkSignal *signal; arg1 = va_arg(args, gboolean); while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object, arg1); } else (*signal->func) (object, arg1, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object, arg1); } void gtk_marshal_VOID__GINT_GINT_EVENT(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args) { gint arg1, arg2; GdkEvent *arg3; GtkSignal *signal; arg1 = va_arg(args, gint); arg2 = va_arg(args, gint); arg3 = va_arg(args, GdkEvent *); while (actions) { signal = (GtkSignal *)actions->data; if (signal->slot_object) { (*signal->func) (signal->slot_object, arg1, arg2, arg3); } else (*signal->func) (object, arg1, arg2, arg3, signal->func_data); actions = g_slist_next(actions); } if (default_action) (*default_action) (object, arg1, arg2, arg3); } static GtkSignalType *gtk_get_signal_type(GtkObject *object, const gchar *name) { GtkClass *klass; GtkSignalType *signals; for (klass = object->klass; klass; klass = klass->parent) { for (signals = klass->signals; signals && signals->name[0]; signals++) { if (strcmp(signals->name, name) == 0) return signals; } } return NULL; } void gtk_signal_emit(GtkObject *object, const gchar *name, ...) { GSList *signal_list; GtkSignalType *signal_type; va_list ap; if (!object) return; va_start(ap, name); signal_list = (GSList *)g_datalist_get_data(&object->signals, name); signal_type = gtk_get_signal_type(object, name); if (signal_type && signal_type->marshaller) { (*signal_type->marshaller) (object, signal_list, signal_type->default_action, ap); } va_end(ap); if (!signal_type) g_warning("gtk_signal_emit: unknown signal %s", name); } guint gtk_signal_connect(GtkObject *object, const gchar *name, GtkSignalFunc func, gpointer func_data) { GtkSignal *signal; GtkSignalType *signal_type; GSList *signal_list; if (!object) return 0; signal_type = gtk_get_signal_type(object, name); if (!signal_type) { g_warning("gtk_signal_connect: unknown signal %s", name); return 0; } signal_list = (GSList *)g_datalist_get_data(&object->signals, name); signal = g_new0(GtkSignal, 1); signal->func = func; signal->func_data = func_data; signal_list = g_slist_append(signal_list, signal); g_datalist_set_data(&object->signals, name, signal_list); return 0; } guint gtk_signal_connect_object(GtkObject *object, const gchar *name, GtkSignalFunc func, GtkObject *slot_object) { GtkSignal *signal; GtkSignalType *signal_type; GSList *signal_list; if (!object) return 0; signal_type = gtk_get_signal_type(object, name); if (!signal_type) { g_warning("gtk_signal_connect_object: unknown signal %s", name); return 0; } signal_list = (GSList *)g_datalist_get_data(&object->signals, name); signal = g_new0(GtkSignal, 1); signal->func = func; signal->slot_object = slot_object; signal_list = g_slist_append(signal_list, signal); g_datalist_set_data(&object->signals, name, signal_list); return 0; } GtkItemFactory *gtk_item_factory_new(GtkType container_type, const gchar *path, GtkAccelGroup *accel_group) { GtkItemFactory *new_fac; new_fac = (GtkItemFactory *)GtkNewObject(&GtkItemFactoryClass); new_fac->path = g_strdup(path); new_fac->accel_group = accel_group; new_fac->top_widget = gtk_menu_bar_new(); new_fac->translate_func = NULL; return new_fac; } static gint PathCmp(const gchar *path1, const gchar *path2) { gint Match = 1; if (!path1 || !path2) return 0; while (*path1 && *path2 && Match) { while (*path1 == '_') path1++; while (*path2 == '_') path2++; if (*path1 == *path2) { path1++; path2++; } else Match = 0; } if (*path1 || *path2) Match = 0; return Match; } static gchar *TransPath(GtkItemFactory *ifactory, gchar *path) { gchar *transpath = NULL; if (ifactory->translate_func) { transpath = (*ifactory->translate_func) (path, ifactory->translate_data); } return transpath ? transpath : path; } static void gtk_item_factory_parse_path(GtkItemFactory *ifactory, gchar *path, GtkItemFactoryChild **parent, GString *menu_title) { GSList *list; GtkItemFactoryChild *child; gchar *root, *pt, *transpath; transpath = TransPath(ifactory, path); pt = strrchr(transpath, '/'); if (pt) g_string_assign(menu_title, pt + 1); pt = strrchr(path, '/'); if (!pt) return; root = g_strdup(path); root[pt - path] = '\0'; for (list = ifactory->children; list; list = g_slist_next(list)) { child = (GtkItemFactoryChild *)list->data; if (PathCmp(child->path, root) == 1) { *parent = child; break; } } g_free(root); } static gboolean gtk_item_factory_parse_accel(GtkItemFactory *ifactory, gchar *accelerator, GString *menu_title, ACCEL *accel) { gchar *apt; if (!accelerator) return FALSE; apt = accelerator; accel->fVirt = 0; accel->key = 0; accel->cmd = 0; g_string_append(menu_title, "\t"); if (strncmp(apt, "", 9) == 0) { accel->fVirt |= FCONTROL; g_string_append(menu_title, "Ctrl+"); apt += 9; } if (strlen(apt) == 1) { g_string_append_c(menu_title, *apt); accel->key = *apt; accel->fVirt |= FVIRTKEY; } else if (strcmp(apt, "F1") == 0) { g_string_append(menu_title, apt); accel->fVirt |= FVIRTKEY; accel->key = VK_F1; } return (accel->key != 0); } void gtk_item_factory_create_item(GtkItemFactory *ifactory, GtkItemFactoryEntry *entry, gpointer callback_data, guint callback_type) { GtkItemFactoryChild *new_child, *parent = NULL; GString *menu_title; GtkWidget *menu_item, *menu; ACCEL accel; gboolean haveaccel; new_child = g_new0(GtkItemFactoryChild, 1); new_child->path = g_strdup(entry->path); menu_title = g_string_new(""); gtk_item_factory_parse_path(ifactory, new_child->path, &parent, menu_title); haveaccel = gtk_item_factory_parse_accel(ifactory, entry->accelerator, menu_title, &accel); menu_item = gtk_menu_item_new_with_label(menu_title->str); if (entry->item_type && strcmp(entry->item_type, "") == 0) { GTK_CHECK_MENU_ITEM(menu_item)->check = 1; } new_child->widget = menu_item; if (entry->callback) { gtk_signal_connect(GTK_OBJECT(menu_item), "activate", entry->callback, callback_data); } if (parent) { menu = GTK_WIDGET(GTK_MENU_ITEM(parent->widget)->submenu); if (!menu) { menu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(parent->widget), menu); } gtk_menu_append(GTK_MENU(menu), menu_item); } else { gtk_menu_bar_append(GTK_MENU_BAR(ifactory->top_widget), menu_item); } if (haveaccel && ifactory->accel_group) { GTK_MENU_ITEM(menu_item)->accelind = gtk_accel_group_add(ifactory->accel_group, &accel); } g_string_free(menu_title, TRUE); ifactory->children = g_slist_append(ifactory->children, new_child); } void gtk_item_factory_create_items(GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries, gpointer callback_data) { gint i; for (i = 0; i < n_entries; i++) { gtk_item_factory_create_item(ifactory, &entries[i], callback_data, 0); } } GtkWidget *gtk_item_factory_get_widget(GtkItemFactory *ifactory, const gchar *path) { gint root_len; GSList *list; GtkItemFactoryChild *child; root_len = strlen(ifactory->path); if (!path || strlen(path) < root_len) return NULL; if (strncmp(ifactory->path, path, root_len) != 0) return NULL; if (strlen(path) == root_len) return ifactory->top_widget; for (list = ifactory->children; list; list = g_slist_next(list)) { child = (GtkItemFactoryChild *)list->data; if (PathCmp(child->path, &path[root_len]) == 1) return child->widget; } return NULL; } void gtk_menu_shell_insert(GtkMenuShell *menu_shell, GtkWidget *child, gint position) { menu_shell->children = g_slist_insert(menu_shell->children, (gpointer)child, position); child->parent = GTK_WIDGET(menu_shell); } void gtk_menu_shell_append(GtkMenuShell *menu_shell, GtkWidget *child) { gtk_menu_shell_insert(menu_shell, child, -1); } void gtk_menu_shell_prepend(GtkMenuShell *menu_shell, GtkWidget *child) { gtk_menu_shell_insert(menu_shell, child, 0); } GtkWidget *gtk_menu_bar_new() { GtkMenuBar *menu_bar; menu_bar = GTK_MENU_BAR(GtkNewObject(&GtkMenuBarClass)); return GTK_WIDGET(menu_bar); } void gtk_menu_bar_insert(GtkMenuBar *menu_bar, GtkWidget *child, gint position) { gtk_menu_shell_insert(GTK_MENU_SHELL(menu_bar), child, position); } void gtk_menu_bar_append(GtkMenuBar *menu_bar, GtkWidget *child) { gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), child); } void gtk_menu_bar_prepend(GtkMenuBar *menu_bar, GtkWidget *child) { gtk_menu_shell_prepend(GTK_MENU_SHELL(menu_bar), child); } GtkWidget *gtk_menu_new() { GtkMenu *menu; menu = GTK_MENU(GtkNewObject(&GtkMenuClass)); return GTK_WIDGET(menu); } void gtk_menu_insert(GtkMenu *menu, GtkWidget *child, gint position) { gtk_menu_shell_insert(GTK_MENU_SHELL(menu), child, position); } void gtk_menu_append(GtkMenu *menu, GtkWidget *child) { gtk_menu_shell_append(GTK_MENU_SHELL(menu), child); } void gtk_menu_prepend(GtkMenu *menu, GtkWidget *child) { gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), child); } GtkWidget *gtk_menu_item_new_with_label(const gchar *label) { GtkMenuItem *menu_item; menu_item = GTK_MENU_ITEM(GtkNewObject(&GtkMenuItemClass)); menu_item->accelind = -1; menu_item->text = g_strdup(label); menu_item->check = 0; menu_item->active = 0; g_strdelimit(menu_item->text, "_", '&'); return GTK_WIDGET(menu_item); } void gtk_menu_item_set_submenu(GtkMenuItem *menu_item, GtkWidget *submenu) { menu_item->submenu = GTK_MENU(submenu); submenu->parent = GTK_WIDGET(menu_item); } void gtk_check_menu_item_set_active(GtkMenuItem *menu_item, gboolean active) { GtkWidget *widget = GTK_WIDGET(menu_item); menu_item->active = active; if (GTK_WIDGET_REALIZED(widget)) { MENUITEMINFO mii; HMENU parent_menu; parent_menu = GTK_MENU_SHELL(widget->parent)->menu; mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_STATE; mii.fState = active ? MFS_CHECKED : MFS_UNCHECKED; mySetMenuItemInfo(parent_menu, menu_item->ID, FALSE, &mii); } } static GtkWidget *gtk_menu_item_get_menu_ID(GtkMenuItem *menu_item, gint ID) { if (menu_item->ID == ID) { return GTK_WIDGET(menu_item); } else if (menu_item->submenu) { return gtk_menu_shell_get_menu_ID(GTK_MENU_SHELL(menu_item->submenu), ID); } else return NULL; } GtkWidget *gtk_menu_shell_get_menu_ID(GtkMenuShell *menu_shell, gint ID) { GSList *list; GtkWidget *menu_item; for (list = menu_shell->children; list; list = list->next) { menu_item = gtk_menu_item_get_menu_ID(GTK_MENU_ITEM(list->data), ID); if (menu_item) return menu_item; } return NULL; } GtkWidget *gtk_window_get_menu_ID(GtkWindow *window, gint ID) { if (window->menu_bar) { return gtk_menu_shell_get_menu_ID(GTK_MENU_SHELL(window->menu_bar), ID); } else return NULL; } void gtk_menu_bar_realize(GtkWidget *widget) { GtkMenuBar *menu_bar = GTK_MENU_BAR(widget); GtkWidget *window; HMENU hMenu; hMenu = GTK_MENU_SHELL(widget)->menu = CreateMenu(); menu_bar->LastID = 1000; gtk_menu_shell_realize(widget); window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); gtk_window_set_menu(GTK_WINDOW(window), menu_bar); } void gtk_menu_item_realize(GtkWidget *widget) { GtkMenuItem *menu_item = GTK_MENU_ITEM(widget); MENUITEMINFO mii; GtkWidget *menu_bar, *window; HMENU parent_menu; gint pos; menu_bar = gtk_widget_get_ancestor(widget, GTK_TYPE_MENU_BAR); if (menu_bar) menu_item->ID = GTK_MENU_BAR(menu_bar)->LastID++; if (menu_item->accelind >= 0) { window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window && GTK_WINDOW(window)->accel_group) { gtk_accel_group_set_id(GTK_WINDOW(window)->accel_group, menu_item->accelind, menu_item->ID); } } if (menu_item->submenu) gtk_widget_realize(GTK_WIDGET(menu_item->submenu)); parent_menu = GTK_MENU_SHELL(widget->parent)->menu; pos = g_slist_index(GTK_MENU_SHELL(widget->parent)->children, widget); mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_TYPE | MIIM_ID | MIIM_STATE; if (menu_item->submenu) { mii.fMask |= MIIM_SUBMENU; mii.hSubMenu = GTK_MENU_SHELL(menu_item->submenu)->menu; } mii.fType = MFT_STRING; if (GTK_WIDGET_SENSITIVE(widget)) { mii.fState = MFS_ENABLED; } else { mii.fState = MFS_GRAYED; } if (menu_item->check) { mii.fState |= (menu_item->active ? MFS_CHECKED : MFS_UNCHECKED); } mii.wID = menu_item->ID; mii.dwTypeData = (LPTSTR)menu_item->text; mii.cch = myw32strlen(menu_item->text); myInsertMenuItem(parent_menu, pos, TRUE, &mii); } void gtk_menu_realize(GtkWidget *widget) { GTK_MENU_SHELL(widget)->menu = CreatePopupMenu(); gtk_menu_shell_realize(widget); } void gtk_menu_set_active(GtkMenu *menu, guint index) { menu->active = index; } void gtk_menu_shell_realize(GtkWidget *widget) { GSList *children; GtkMenuShell *menu = GTK_MENU_SHELL(widget); for (children = menu->children; children; children = g_slist_next(children)) { gtk_widget_realize(GTK_WIDGET(children->data)); } } void gtk_menu_item_enable(GtkWidget *widget) { GtkWidget *parent; HMENU hMenu; HWND hWnd; parent = widget->parent; if (!parent) return; hMenu = GTK_MENU_SHELL(parent)->menu; if (hMenu) EnableMenuItem(hMenu, GTK_MENU_ITEM(widget)->ID, MF_BYCOMMAND | MF_ENABLED); hWnd = gtk_get_parent_hwnd(widget); if (hWnd) DrawMenuBar(hWnd); } void gtk_menu_item_disable(GtkWidget *widget) { GtkWidget *parent; HMENU hMenu; HWND hWnd; parent = widget->parent; if (!parent) return; hMenu = GTK_MENU_SHELL(parent)->menu; if (hMenu) EnableMenuItem(hMenu, GTK_MENU_ITEM(widget)->ID, MF_BYCOMMAND | MF_GRAYED); hWnd = gtk_get_parent_hwnd(widget); if (hWnd) DrawMenuBar(hWnd); } GtkWidget *gtk_notebook_new() { GtkNotebook *notebook; notebook = GTK_NOTEBOOK(GtkNewObject(&GtkNotebookClass)); return GTK_WIDGET(notebook); } void gtk_notebook_append_page(GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label) { gtk_notebook_insert_page(notebook, child, tab_label, -1); } void gtk_notebook_insert_page(GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label, gint position) { GtkNotebookChild *note_child; GtkWidget *widget = GTK_WIDGET(notebook); note_child = g_new0(GtkNotebookChild, 1); note_child->child = child; note_child->tab_label = tab_label; note_child->tabpage = myCreateDialog(hInst, "tabpage", gtk_get_parent_hwnd(widget->parent), MainDlgProc); myEnableThemeDialogTexture(note_child->tabpage, ETDT_ENABLETAB); notebook->children = g_slist_insert(notebook->children, note_child, position); child->parent = GTK_WIDGET(notebook); } void gtk_notebook_set_page(GtkNotebook *notebook, gint page_num) { GSList *children; GtkNotebookChild *note_child; GtkWidget *widget = GTK_WIDGET(notebook); gint pos = 0; if (page_num < 0) page_num = g_slist_length(notebook->children) - 1; notebook->selection = page_num; if (GTK_WIDGET_REALIZED(widget)) { if (widget->hWnd) TabCtrl_SetCurSel(widget->hWnd, page_num); for (children = notebook->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child) { if (pos == page_num) { ShowWindow(note_child->tabpage, SW_SHOW); } else { ShowWindow(note_child->tabpage, SW_HIDE); } pos++; } } } } gint gtk_notebook_get_current_page(GtkNotebook *notebook) { return notebook->selection; } void gtk_notebook_realize(GtkWidget *widget) { GSList *children; GtkNotebookChild *note_child; HWND Parent; gint tab_pos = 0; TC_ITEM tie; Parent = gtk_get_parent_hwnd(widget->parent); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindow(WC_TABCONTROL, "", WS_CHILD | WS_TABSTOP, 0, 0, 0, 0, Parent, NULL, hInst, NULL); if (widget->hWnd == NULL) g_print("Error creating window!\n"); gtk_set_default_font(widget->hWnd); tie.mask = TCIF_TEXT | TCIF_IMAGE; tie.iImage = -1; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child) { if (note_child->tab_label) tie.pszText = GTK_LABEL(note_child->tab_label)->text; else tie.pszText = "No label"; myTabCtrl_InsertItem(widget->hWnd, tab_pos++, &tie); note_child->tabpage = myCreateDialog(hInst, "tabpage", gtk_get_parent_hwnd(widget->parent), MainDlgProc); myEnableThemeDialogTexture(note_child->tabpage, ETDT_ENABLETAB); if (note_child->child) { gtk_widget_realize(note_child->child); } } } gtk_notebook_set_page(GTK_NOTEBOOK(widget), GTK_NOTEBOOK(widget)->selection); } void gtk_notebook_show_all(GtkWidget *widget, gboolean hWndOnly) { GSList *children; GtkNotebookChild *note_child; if (!hWndOnly) for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child) gtk_widget_show_all_full(note_child->child, hWndOnly); } gtk_notebook_set_page(GTK_NOTEBOOK(widget), GTK_NOTEBOOK(widget)->selection); } void gtk_notebook_hide_all(GtkWidget *widget, gboolean hWndOnly) { GSList *children; GtkNotebookChild *note_child; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child) gtk_widget_hide_all_full(note_child->child, hWndOnly); ShowWindow(note_child->tabpage, SW_HIDE); } } void gtk_notebook_destroy(GtkWidget *widget) { GSList *children; GtkNotebookChild *note_child; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child) { gtk_widget_destroy(note_child->child); gtk_widget_destroy(note_child->tab_label); DestroyWindow(note_child->tabpage); } g_free(note_child); } g_slist_free(GTK_NOTEBOOK(widget)->children); } void gtk_notebook_set_size(GtkWidget *widget, GtkAllocation *allocation) { GSList *children; RECT rect; gtk_container_set_size(widget, allocation); rect.left = allocation->x; rect.top = allocation->y; rect.right = allocation->x + allocation->width; rect.bottom = allocation->y + allocation->height; TabCtrl_AdjustRect(widget->hWnd, FALSE, &rect); for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { GtkNotebookChild *note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child) { GtkAllocation child_alloc; child_alloc.x = rect.left + GTK_CONTAINER(widget)->border_width; child_alloc.y = rect.top + GTK_CONTAINER(widget)->border_width; child_alloc.width = rect.right - rect.left - 2 * GTK_CONTAINER(widget)->border_width; child_alloc.height = rect.bottom - rect.top - 2 * GTK_CONTAINER(widget)->border_width; SetWindowPos(note_child->tabpage, HWND_TOP, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOZORDER); gtk_widget_set_size(note_child->child, &child_alloc); } } } void gtk_notebook_size_request(GtkWidget *widget, GtkRequisition *requisition) { GSList *children; GtkNotebookChild *note_child; GtkRequisition *child_req; RECT rect; requisition->width = requisition->height = 0; for (children = GTK_NOTEBOOK(widget)->children; children; children = g_slist_next(children)) { note_child = (GtkNotebookChild *)(children->data); if (note_child && note_child->child && GTK_WIDGET_VISIBLE(note_child->child)) { child_req = ¬e_child->child->requisition; if (child_req->width > requisition->width) requisition->width = child_req->width; if (child_req->height > requisition->height) requisition->height = child_req->height; } } requisition->width += GTK_CONTAINER(widget)->border_width * 2; requisition->height += GTK_CONTAINER(widget)->border_width * 2; rect.left = rect.top = 0; rect.right = requisition->width; rect.bottom = requisition->height; TabCtrl_AdjustRect(widget->hWnd, TRUE, &rect); requisition->width = rect.right - rect.left; requisition->height = rect.bottom - rect.top; } GtkObject *gtk_adjustment_new(gfloat value, gfloat lower, gfloat upper, gfloat step_increment, gfloat page_increment, gfloat page_size) { GtkAdjustment *adj; adj = (GtkAdjustment *)(GtkNewObject(&GtkAdjustmentClass)); adj->value = value; adj->lower = lower; adj->upper = upper; adj->step_increment = step_increment; adj->page_increment = page_increment; adj->page_size = page_size; return GTK_OBJECT(adj); } GtkWidget *gtk_spin_button_new(GtkAdjustment *adjustment, gfloat climb_rate, guint digits) { GtkSpinButton *spin; spin = GTK_SPIN_BUTTON(GtkNewObject(&GtkSpinButtonClass)); GTK_ENTRY(spin)->is_visible = TRUE; gtk_spin_button_set_adjustment(spin, adjustment); return GTK_WIDGET(spin); } void gtk_spin_button_size_request(GtkWidget *widget, GtkRequisition *requisition) { gtk_entry_size_request(widget, requisition); } void gtk_spin_button_set_size(GtkWidget *widget, GtkAllocation *allocation) { int width = allocation->width, udwidth; HWND updown; udwidth = GetSystemMetrics(SM_CXVSCROLL); width = allocation->width; allocation->width -= udwidth; updown = GTK_SPIN_BUTTON(widget)->updown; if (updown) { POINT pt; pt.x = allocation->x; pt.y = allocation->y; MapWidgetOrigin(widget, &pt); SetWindowPos(updown, HWND_TOP, pt.x + allocation->width, pt.y, udwidth, allocation->height, SWP_NOZORDER); } } gint gtk_spin_button_get_value_as_int(GtkSpinButton *spin_button) { HWND hWnd; LRESULT lres; hWnd = spin_button->updown; if (hWnd) { lres = mySendMessage(hWnd, UDM_GETPOS, 0, 0); if (HIWORD(lres) != 0) return 0; else return (gint)LOWORD(lres); } else return (gint)spin_button->adj->value; } void gtk_spin_button_set_value(GtkSpinButton *spin_button, gfloat value) { HWND hWnd; spin_button->adj->value = value; hWnd = spin_button->updown; if (hWnd) mySendMessage(hWnd, UDM_SETPOS, 0, (LPARAM)MAKELONG((short)value, 0)); } void gtk_spin_button_set_adjustment(GtkSpinButton *spin_button, GtkAdjustment *adjustment) { HWND hWnd; spin_button->adj = adjustment; hWnd = spin_button->updown; if (hWnd) { mySendMessage(hWnd, UDM_SETRANGE, 0, (LPARAM)MAKELONG((short)adjustment->upper, (short)adjustment->lower)); mySendMessage(hWnd, UDM_SETPOS, 0, (LPARAM)MAKELONG((short)adjustment->value, 0)); } } void gtk_spin_button_realize(GtkWidget *widget) { GtkSpinButton *spin = GTK_SPIN_BUTTON(widget); HWND Parent; gtk_entry_realize(widget); Parent = gtk_get_parent_hwnd(widget->parent); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); spin->updown = CreateUpDownControl(WS_CHILD | WS_BORDER | WS_TABSTOP | UDS_SETBUDDYINT | UDS_NOTHOUSANDS | UDS_ARROWKEYS, 0, 0, 0, 0, Parent, 0, hInst, widget->hWnd, 20, 10, 15); gtk_set_default_font(spin->updown); gtk_spin_button_set_adjustment(spin, spin->adj); } void gtk_spin_button_destroy(GtkWidget *widget) { g_free(GTK_SPIN_BUTTON(widget)->adj); } void gtk_spin_button_show(GtkWidget *widget) { HWND updown; updown = GTK_SPIN_BUTTON(widget)->updown; if (updown) ShowWindow(updown, SW_SHOWNORMAL); } void gtk_spin_button_hide(GtkWidget *widget) { HWND updown; updown = GTK_SPIN_BUTTON(widget)->updown; if (updown) ShowWindow(updown, SW_HIDE); } void gtk_spin_button_update(GtkSpinButton *spin_button) { } void gdk_input_remove(gint tag) { GSList *list; GdkInput *input; for (list = GdkInputs; list; list = g_slist_next(list)) { input = (GdkInput *)list->data; if (input->source == tag) { WSAAsyncSelect(input->source, TopLevel, 0, 0); GdkInputs = g_slist_remove(GdkInputs, input); g_free(input); break; } } } gint gdk_input_add(gint source, GdkInputCondition condition, GdkInputFunction function, gpointer data) { GdkInput *input; int rc; input = g_new(GdkInput, 1); input->source = source; input->condition = condition; input->function = function; input->data = data; rc = WSAAsyncSelect(source, TopLevel, MYWM_SOCKETDATA, (condition & GDK_INPUT_READ ? FD_READ | FD_CLOSE | FD_ACCEPT : 0) | (condition & GDK_INPUT_WRITE ? FD_WRITE | FD_CONNECT : 0)); GdkInputs = g_slist_append(GdkInputs, input); return source; } GtkWidget *gtk_hseparator_new() { return GTK_WIDGET(GtkNewObject(&GtkHSeparatorClass)); } GtkWidget *gtk_vseparator_new() { return GTK_WIDGET(GtkNewObject(&GtkVSeparatorClass)); } void gtk_separator_size_request(GtkWidget *widget, GtkRequisition *requisition) { requisition->height = requisition->width = 2; } void gtk_separator_realize(GtkWidget *widget) { HWND Parent; Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow(WC_GTKSEP, "", WS_CHILD, 0, 0, 0, 0, Parent, NULL, hInst, NULL); } void gtk_object_set_data(GtkObject *object, const gchar *key, gpointer data) { g_datalist_set_data(&object->object_data, key, data); } gpointer gtk_object_get_data(GtkObject *object, const gchar *key) { return g_datalist_get_data(&object->object_data, key); } GtkAccelGroup *gtk_accel_group_new() { GtkAccelGroup *new_accel; new_accel = g_new0(GtkAccelGroup, 1); new_accel->accel = NULL; new_accel->numaccel = 0; return new_accel; } gint gtk_accel_group_add(GtkAccelGroup *accel_group, ACCEL *newaccel) { accel_group->numaccel++; accel_group->accel = g_realloc(accel_group->accel, accel_group->numaccel * sizeof(ACCEL)); memcpy(&accel_group->accel[accel_group->numaccel - 1], newaccel, sizeof(ACCEL)); return (accel_group->numaccel - 1); } void gtk_accel_group_set_id(GtkAccelGroup *accel_group, gint ind, gint ID) { if (ind < accel_group->numaccel) accel_group->accel[ind].cmd = ID; } void gtk_accel_group_destroy(GtkAccelGroup *accel_group) { g_free(accel_group->accel); g_free(accel_group); } void gtk_item_factory_set_translate_func(GtkItemFactory *ifactory, GtkTranslateFunc func, gpointer data, GtkDestroyNotify notify) { ifactory->translate_func = func; ifactory->translate_data = data; } void gtk_widget_grab_default(GtkWidget *widget) { GTK_WIDGET_SET_FLAGS(widget, GTK_IS_DEFAULT); } void gtk_widget_grab_focus(GtkWidget *widget) { if (widget->hWnd && GTK_WIDGET_CAN_FOCUS(widget)) { SetFocus(widget->hWnd); } } void gtk_window_set_modal(GtkWindow *window, gboolean modal) { window->modal = modal; } void gtk_window_add_accel_group(GtkWindow *window, GtkAccelGroup *accel_group) { window->accel_group = accel_group; } void gtk_entry_set_text(GtkEntry *entry, const gchar *text) { int pos = 0; gtk_editable_delete_text(GTK_EDITABLE(entry), 0, -1); gtk_editable_insert_text(GTK_EDITABLE(entry), text, strlen(text), &pos); } void gtk_entry_set_visibility(GtkEntry *entry, gboolean visible) { HWND hWnd; entry->is_visible = visible; hWnd = GTK_WIDGET(entry)->hWnd; if (hWnd) mySendMessage(hWnd, EM_SETPASSWORDCHAR, visible ? 0 : (WPARAM)'*', 0); } guint SetAccelerator(GtkWidget *labelparent, gchar *Text, GtkWidget *sendto, gchar *signal, GtkAccelGroup *accel_group, gboolean needalt) { gtk_signal_emit(GTK_OBJECT(labelparent), "set_text", Text); return 0; } void gtk_widget_add_accelerator(GtkWidget *widget, const gchar *accel_signal, GtkAccelGroup *accel_group, guint accel_key, guint accel_mods, GtkAccelFlags accel_flags) { } void gtk_widget_remove_accelerator(GtkWidget *widget, GtkAccelGroup *accel_group, guint accel_key, guint accel_mods) { } GtkWidget *gtk_vpaned_new() { GtkVPaned *vpaned; vpaned = GTK_VPANED(GtkNewObject(&GtkVPanedClass)); GTK_PANED(vpaned)->handle_size = 5; GTK_PANED(vpaned)->handle_pos = PANED_STARTPOS; return GTK_WIDGET(vpaned); } GtkWidget *gtk_hpaned_new() { GtkHPaned *hpaned; hpaned = GTK_HPANED(GtkNewObject(&GtkHPanedClass)); GTK_PANED(hpaned)->handle_size = 5; GTK_PANED(hpaned)->handle_pos = PANED_STARTPOS; return GTK_WIDGET(hpaned); } static void gtk_paned_pack(GtkPaned *paned, gint pos, GtkWidget *child, gboolean resize, gboolean shrink) { paned->children[pos].widget = child; paned->children[pos].resize = resize; paned->children[pos].shrink = shrink; child->parent = GTK_WIDGET(paned); } void gtk_paned_pack1(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink) { gtk_paned_pack(paned, 0, child, resize, shrink); } void gtk_paned_pack2(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink) { gtk_paned_pack(paned, 1, child, resize, shrink); } void gtk_paned_add1(GtkPaned *paned, GtkWidget *child) { gtk_paned_pack1(paned, child, FALSE, TRUE); } void gtk_paned_add2(GtkPaned *paned, GtkWidget *child) { gtk_paned_pack2(paned, child, FALSE, TRUE); } void gtk_paned_show_all(GtkWidget *widget, gboolean hWndOnly) { GtkPaned *paned = GTK_PANED(widget); gint i; for (i = 0; i < 2; i++) if (paned->children[i].widget) { gtk_widget_show_all_full(paned->children[i].widget, hWndOnly); } } void gtk_paned_hide_all(GtkWidget *widget, gboolean hWndOnly) { GtkPaned *paned = GTK_PANED(widget); gint i; for (i = 0; i < 2; i++) if (paned->children[i].widget) gtk_widget_hide_all_full(paned->children[i].widget, hWndOnly); } void gtk_paned_realize(GtkWidget *widget) { GtkPaned *paned = GTK_PANED(widget); gint i; for (i = 0; i < 2; i++) if (paned->children[i].widget) { gtk_widget_realize(paned->children[i].widget); } } void gtk_vpaned_realize(GtkWidget *widget) { HWND Parent; gtk_paned_realize(widget); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow(WC_GTKVPANED, "", WS_CHILD, 0, 0, 0, 0, Parent, NULL, hInst, NULL); } void gtk_hpaned_realize(GtkWidget *widget) { HWND Parent; gtk_paned_realize(widget); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindow(WC_GTKHPANED, "", WS_CHILD, 0, 0, 0, 0, Parent, NULL, hInst, NULL); } static void gtk_paned_set_handle_percent(GtkPaned *paned, gint16 req[2]) { if (req[0] + req[1]) paned->handle_pos = req[0] * 100 / (req[0] + req[1]); else paned->handle_pos = 0; } void gtk_vpaned_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkPaned *paned = GTK_PANED(widget); gint i; gint16 req[2] = { 0, 0 }; requisition->width = requisition->height = 0; for (i = 0; i < 2; i++) if (paned->children[i].widget) { if (paned->children[i].widget->requisition.width > requisition->width) requisition->width = paned->children[i].widget->requisition.width; req[i] = paned->children[i].widget->requisition.height; requisition->height += req[i]; } requisition->height += paned->handle_size; gtk_paned_set_handle_percent(paned, req); } void gtk_hpaned_size_request(GtkWidget *widget, GtkRequisition *requisition) { GtkPaned *paned = GTK_PANED(widget); gint i; gint16 req[2] = { 0, 0 }; requisition->width = requisition->height = 0; for (i = 0; i < 2; i++) if (paned->children[i].widget) { if (paned->children[i].widget->requisition.height > requisition->height) requisition->height = paned->children[i].widget->requisition.height; req[i] = paned->children[i].widget->requisition.width; requisition->width += req[i]; } requisition->width += paned->handle_size; gtk_paned_set_handle_percent(paned, req); } void gtk_vpaned_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkPaned *paned = GTK_PANED(widget); GtkWidget *child; gint16 alloc; GtkAllocation child_alloc; memcpy(&paned->true_alloc, allocation, sizeof(GtkAllocation)); alloc = allocation->height - paned->handle_size; child = paned->children[0].widget; if (child) { child_alloc.x = allocation->x; child_alloc.y = allocation->y; child_alloc.width = allocation->width; child_alloc.height = alloc * paned->handle_pos / 100; gtk_widget_set_size(child, &child_alloc); } child = paned->children[1].widget; if (child) { child_alloc.x = allocation->x; child_alloc.width = allocation->width; child_alloc.height = alloc * (100 - paned->handle_pos) / 100; child_alloc.y = allocation->y + allocation->height - child_alloc.height; gtk_widget_set_size(child, &child_alloc); } allocation->y += alloc * paned->handle_pos / 100; allocation->height = paned->handle_size; } void gtk_hpaned_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkPaned *paned = GTK_PANED(widget); GtkWidget *child; gint16 alloc; GtkAllocation child_alloc; memcpy(&paned->true_alloc, allocation, sizeof(GtkAllocation)); alloc = allocation->width - paned->handle_size; child = paned->children[0].widget; if (child) { child_alloc.x = allocation->x; child_alloc.y = allocation->y; child_alloc.height = allocation->height; child_alloc.width = alloc * paned->handle_pos / 100; gtk_widget_set_size(child, &child_alloc); } child = paned->children[1].widget; if (child) { child_alloc.x = allocation->x; child_alloc.height = allocation->height; child_alloc.width = alloc * (100 - paned->handle_pos) / 100; child_alloc.x = allocation->x + allocation->width - child_alloc.width; gtk_widget_set_size(child, &child_alloc); } allocation->x += alloc * paned->handle_pos / 100; allocation->width = paned->handle_size; } void gtk_text_set_editable(GtkText *text, gboolean is_editable) { gtk_editable_set_editable(GTK_EDITABLE(text), is_editable); } void gtk_text_set_word_wrap(GtkText *text, gboolean word_wrap) { text->word_wrap = word_wrap; } void gtk_text_freeze(GtkText *text) { } void gtk_text_thaw(GtkText *text) { } GtkTextBuffer *gtk_text_view_get_buffer(GtkText *text) { return text->buffer; } static int parse_colcomp(const gchar *hexval) { int col = 0, i, ch; for (i = 0; i < 4; ++i) { col <<= 4; ch = toupper(hexval[i]); if (ch >= '0' && ch <= '9') { col |= (ch - '0'); } else if (ch >= 'A' && ch <= 'F') { col |= (ch - 'A' + 10); } } return col / 257; /* Scale from 0-65535 to 0-255 */ } static gboolean parse_color(const gchar *name, COLORREF *color) { int red, green, blue, i, ch; if (!name || strlen(name) != 13 || name[0] != '#') { return FALSE; } for (i = strlen(name) - 1; i >= 1; --i) { ch = toupper(name[i]); if (!((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F'))) { return FALSE; } } red = parse_colcomp(&name[1]); green = parse_colcomp(&name[5]); blue = parse_colcomp(&name[9]); if (color) { *color = RGB(red, green, blue); } return TRUE; } void gtk_text_buffer_create_tag(GtkTextBuffer *buffer, const gchar *name, ...) { va_list ap; gchar *attr, *data; CHARFORMAT *cf; va_start(ap, name); cf = g_new(CHARFORMAT, 1); cf->cbSize = sizeof(CHARFORMAT); cf->dwMask = 0; do { attr = va_arg(ap, gchar *); if (attr) { if (strcmp(attr, "foreground") == 0) { data = va_arg(ap, gchar *); cf->dwMask |= CFM_COLOR; cf->dwEffects = 0; if (!parse_color(data, &cf->crTextColor)) { cf->dwEffects = CFE_AUTOCOLOR; } } } } while (attr); g_datalist_set_data_full(&buffer->tags, name, cf, g_free); va_end(ap); } GtkWidget *gtk_option_menu_new() { GtkOptionMenu *option_menu; option_menu = GTK_OPTION_MENU(GtkNewObject(&GtkOptionMenuClass)); return GTK_WIDGET(option_menu); } GtkWidget *gtk_option_menu_get_menu(GtkOptionMenu *option_menu) { return option_menu->menu; } void gtk_option_menu_set_menu(GtkOptionMenu *option_menu, GtkWidget *menu) { GSList *list; GtkMenuItem *menu_item; HWND hWnd; if (!menu) return; option_menu->menu = menu; hWnd = GTK_WIDGET(option_menu)->hWnd; if (hWnd) { mySendMessage(hWnd, CB_RESETCONTENT, 0, 0); for (list = GTK_MENU_SHELL(menu)->children; list; list = g_slist_next(list)) { menu_item = GTK_MENU_ITEM(list->data); if (menu_item && menu_item->text) { myComboBox_AddString(hWnd, menu_item->text); } } mySendMessage(hWnd, CB_SETCURSEL, (WPARAM)GTK_MENU(menu)->active, 0); } } void gtk_option_menu_set_history(GtkOptionMenu *option_menu, guint index) { GtkWidget *menu; menu = gtk_option_menu_get_menu(option_menu); if (menu) gtk_menu_set_active(GTK_MENU(menu), index); } void gtk_option_menu_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "Sample text", &size, defFont)) { requisition->width = size.cx + 40; requisition->height = size.cy + 4; } } void gtk_option_menu_set_size(GtkWidget *widget, GtkAllocation *allocation) { allocation->height *= 6; } void gtk_option_menu_realize(GtkWidget *widget) { HWND Parent; GtkOptionMenu *option_menu = GTK_OPTION_MENU(widget); Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, "COMBOBOX", "", WS_CHILD | WS_TABSTOP | WS_VSCROLL | CBS_HASSTRINGS | CBS_DROPDOWNLIST, 0, 0, 0, 0, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); gtk_option_menu_set_menu(option_menu, option_menu->menu); } void gtk_label_set_text(GtkLabel *label, const gchar *str) { HWND hWnd; g_free(label->text); label->text = g_strdup(str ? str : ""); g_strdelimit(label->text, "_", '&'); hWnd = GTK_WIDGET(label)->hWnd; if (hWnd) { gtk_widget_update(GTK_WIDGET(label), FALSE); mySetWindowText(hWnd, label->text); } } void gtk_button_set_text(GtkButton *button, gchar *text) { HWND hWnd; g_free(button->text); button->text = g_strdup(text ? text : ""); g_strdelimit(button->text, "_", '&'); hWnd = GTK_WIDGET(button)->hWnd; if (hWnd) { gtk_widget_update(GTK_WIDGET(button), FALSE); mySetWindowText(hWnd, button->text); } } static void gtk_menu_item_set_text(GtkMenuItem *menuitem, gchar *text) { GtkWidget *widget = GTK_WIDGET(menuitem); g_free(menuitem->text); menuitem->text = g_strdup(text ? text : ""); g_strdelimit(menuitem->text, "_", '&'); if (GTK_WIDGET_REALIZED(widget)) { MENUITEMINFO mii; HMENU parent_menu; parent_menu = GTK_MENU_SHELL(widget->parent)->menu; mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_TYPE; mii.fType = MFT_STRING; mii.dwTypeData = (LPTSTR)menuitem->text; mii.cch = myw32strlen(menuitem->text); mySetMenuItemInfo(parent_menu, menuitem->ID, FALSE, &mii); } } guint gtk_label_parse_uline(GtkLabel *label, const gchar *str) { gint i; gtk_label_set_text(label, str); if (str) for (i = 0; i < strlen(str); i++) { if (str[i] == '_') { return str[i + 1]; } } return 0; } void gtk_label_get(GtkLabel *label, gchar **str) { *str = label->text; } void gtk_text_set_point(GtkText *text, guint index) { gtk_editable_set_position(GTK_EDITABLE(text), index); } void gtk_widget_set_usize(GtkWidget *widget, gint width, gint height) { widget->usize.width = width; widget->usize.height = height; } void gtk_editable_create(GtkWidget *widget) { GtkEditable *editable = GTK_EDITABLE(widget); gtk_widget_create(widget); editable->is_editable = TRUE; editable->text = g_string_new(""); } void gtk_option_menu_update_selection(GtkWidget *widget) { LRESULT lres; GtkMenuShell *menu; GtkWidget *menu_item; if (widget->hWnd == NULL) return; lres = mySendMessage(widget->hWnd, CB_GETCURSEL, 0, 0); if (lres == CB_ERR) return; menu = GTK_MENU_SHELL(gtk_option_menu_get_menu(GTK_OPTION_MENU(widget))); if (menu) { menu_item = GTK_WIDGET(g_slist_nth_data(menu->children, lres)); if (menu_item) gtk_signal_emit(GTK_OBJECT(menu_item), "activate"); } } void gtk_window_handle_user_size(GtkWindow *window, GtkAllocation *allocation) { } void gtk_window_handle_minmax_size(GtkWindow *window, LPMINMAXINFO minmax) { GtkRequisition *req; req = >K_WIDGET(window)->requisition; if (!window->allow_shrink) { minmax->ptMinTrackSize.x = req->width; minmax->ptMinTrackSize.y = req->height; } if (!window->allow_grow) { minmax->ptMaxTrackSize.x = req->width; minmax->ptMaxTrackSize.y = req->height; } } void gtk_window_set_initial_position(GtkWindow *window, GtkAllocation *allocation) { RECT rect; GtkWidget *widget = GTK_WIDGET(window); GetWindowRect(GetDesktopWindow(), &rect); if (widget->parent) { allocation->x = rect.left + (rect.right - rect.left - allocation->width) / 2; allocation->y = rect.top + (rect.bottom - rect.top - allocation->height) / 2; if (allocation->x < 0) allocation->x = 0; if (allocation->y < 0) allocation->y = 0; if (widget->hWnd) SetWindowPos(widget->hWnd, HWND_TOP, allocation->x, allocation->y, 0, 0, SWP_NOSIZE | SWP_NOZORDER); } } void gtk_window_handle_auto_size(GtkWindow *window, GtkAllocation *allocation) { GtkWidget *widget = GTK_WIDGET(window); if (allocation->width < window->default_width) { allocation->width = window->default_width; } if (allocation->height < window->default_height) { allocation->height = window->default_height; } if (allocation->width < widget->allocation.width) { allocation->width = widget->allocation.width; } if (allocation->height < widget->allocation.height) { allocation->height = widget->allocation.height; } } void gtk_paned_set_position(GtkPaned *paned, gint position) { GtkAllocation allocation; if (position < 0) position = 0; if (position > 100) position = 100; paned->handle_pos = position; memcpy(&allocation, &paned->true_alloc, sizeof(GtkAllocation)); gtk_widget_set_size(GTK_WIDGET(paned), &allocation); } void gtk_misc_set_alignment(GtkMisc *misc, gfloat xalign, gfloat yalign) { } GtkWidget *gtk_progress_bar_new() { GtkProgressBar *prog; prog = GTK_PROGRESS_BAR(GtkNewObject(&GtkProgressBarClass)); prog->orient = GTK_PROGRESS_LEFT_TO_RIGHT; prog->position = 0; return GTK_WIDGET(prog); } void gtk_progress_bar_set_orientation(GtkProgressBar *pbar, GtkProgressBarOrientation orientation) { pbar->orient = orientation; } void gtk_progress_bar_update(GtkProgressBar *pbar, gfloat percentage) { GtkWidget *widget; widget = GTK_WIDGET(pbar); pbar->position = percentage; if (GTK_WIDGET_REALIZED(widget)) { mySendMessage(widget->hWnd, PBM_SETPOS, (WPARAM)(10000.0 * pbar->position), 0); } } void gtk_progress_bar_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "Sample", &size, defFont)) { requisition->width = size.cx; requisition->height = size.cy; } } void gtk_progress_bar_realize(GtkWidget *widget) { HWND Parent; GtkProgressBar *prog; prog = GTK_PROGRESS_BAR(widget); Parent = gtk_get_parent_hwnd(widget); widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, PROGRESS_CLASS, "", WS_CHILD, widget->allocation.x, widget->allocation.y, widget->allocation.width, widget->allocation.height, Parent, NULL, hInst, NULL); gtk_set_default_font(widget->hWnd); mySendMessage(widget->hWnd, PBM_SETRANGE, 0, MAKELPARAM(0, 10000)); mySendMessage(widget->hWnd, PBM_SETPOS, (WPARAM)(10000.0 * prog->position), 0); } gint GtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, GtkMessageType type, gint Options) { gint retval; RecurseLevel++; switch(type) { case GTK_MESSAGE_WARNING: Options |= MB_ICONWARNING; break; case GTK_MESSAGE_ERROR: Options |= MB_ICONERROR; break; case GTK_MESSAGE_QUESTION: Options |= MB_ICONQUESTION; break; default: break; } retval = myMessageBox(parent && parent->hWnd ? parent->hWnd : NULL, Text, Title, Options); RecurseLevel--; return retval; } guint gtk_timeout_add(guint32 interval, GtkFunction function, gpointer data) { GtkTimeout *timeout; GSList *list; guint id = 1; /* Get an unused ID */ list = GtkTimeouts; while (list) { timeout = (GtkTimeout *)list->data; if (timeout->id == id) { id++; list = GtkTimeouts; } else { list = g_slist_next(list); } } timeout = g_new(GtkTimeout, 1); timeout->interval = interval; timeout->function = function; timeout->data = data; timeout->id = SetTimer(TopLevel, id, interval, NULL); if (timeout->id == 0) { g_warning("Failed to create timer!"); } GtkTimeouts = g_slist_append(GtkTimeouts, timeout); return timeout->id; } void gtk_timeout_remove(guint timeout_handler_id) { GSList *list; GtkTimeout *timeout; for (list = GtkTimeouts; list; list = g_slist_next(list)) { timeout = (GtkTimeout *)list->data; if (timeout->id == timeout_handler_id) { if (KillTimer(TopLevel, timeout->id) == 0) { g_warning("Failed to kill timer!"); } GtkTimeouts = g_slist_remove(GtkTimeouts, timeout); g_free(timeout); break; } } } GtkWidget *NewStockButton(const gchar *label, GtkAccelGroup *accel_group) { return gtk_button_new_with_label(_(label)); } /* We don't really handle styles, so these are just placeholder functions */ static GtkStyle statstyle; GtkStyle *gtk_style_new(void) { return &statstyle; } void gtk_widget_set_style(GtkWidget *widget, GtkStyle *style) { } static gint hbbox_spacing = 0; GtkWidget *gtk_hbutton_box_new() { GtkWidget *hbbox, *spacer; hbbox = gtk_hbox_new(TRUE, hbbox_spacing); spacer = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(hbbox), spacer, TRUE, TRUE, 0); return hbbox; } void gtk_hbutton_box_set_spacing_default(gint spacing) { hbbox_spacing = spacing; } /* * Win32 doesn't use a window manager, so this is just a placeholder. */ void gtk_window_set_type_hint(GtkWindow *window, GdkWindowTypeHint hint) { } void gtk_window_set_position(GtkWindow *window, GtkWindowPosition position) { } gchar *GtkGetFile(const GtkWidget *parent, const gchar *oldname, const gchar *title) { OPENFILENAME ofn; char file[800]; if (oldname) { strncpy(file, oldname, sizeof(file)); file[sizeof(file) - 1] = '\0'; } else { file[0] = '\0'; } ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = parent ? parent->hWnd : NULL; ofn.hInstance = NULL; ofn.lpstrFilter = NULL; ofn.lpstrCustomFilter = NULL; ofn.nFilterIndex = 1; ofn.lpstrFile = file; ofn.nMaxFile = sizeof(file); ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; ofn.lpstrInitialDir = NULL; ofn.lpstrTitle = title; ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_NOCHANGEDIR; ofn.lpstrDefExt = NULL; if (GetOpenFileName(&ofn)) { return g_strdup(file); } else { return NULL; } } #else /* CYGWIN */ guint SetAccelerator(GtkWidget *labelparent, gchar *Text, GtkWidget *sendto, gchar *signal, GtkAccelGroup *accel_group, gboolean needalt) { guint AccelKey; AccelKey = gtk_label_parse_uline(GTK_LABEL(GTK_BIN(labelparent)->child), Text); if (sendto && AccelKey) { gtk_widget_add_accelerator(sendto, signal, accel_group, AccelKey, needalt ? GDK_MOD1_MASK : 0, GTK_ACCEL_VISIBLE); } return AccelKey; } #ifdef HAVE_GLIB2 GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg) { GtkWidget *textview, *scrollwin, *frame; textview = gtk_text_view_new(); frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); scrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(scrollwin), textview); gtk_container_add(GTK_CONTAINER(frame), scrollwin); *pack_widg = frame; return textview; } void TextViewAppend(GtkTextView *textview, const gchar *text, const gchar *tagname, gboolean scroll) { GtkTextBuffer *buffer; GtkTextIter iter; GtkTextMark *insert; buffer = gtk_text_view_get_buffer(textview); gtk_text_buffer_get_end_iter(buffer, &iter); gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, text, -1, tagname, NULL); if (scroll) { gtk_text_buffer_place_cursor(buffer, &iter); insert = gtk_text_buffer_get_mark(buffer, "insert"); gtk_text_view_scroll_mark_onscreen(textview, insert); } } void TextViewClear(GtkTextView *textview) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(textview); gtk_text_buffer_set_text(buffer, "", -1); } #else GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg) { GtkWidget *hbox, *text, *vscroll; GtkAdjustment *adj; hbox = gtk_hbox_new(FALSE, 0); adj = (GtkAdjustment *)gtk_adjustment_new(0.0, 0.0, 100.0, 1.0, 10.0, 10.0); text = gtk_text_new(NULL, adj); gtk_box_pack_start(GTK_BOX(hbox), text, TRUE, TRUE, 0); vscroll = gtk_vscrollbar_new(adj); gtk_box_pack_start(GTK_BOX(hbox), vscroll, FALSE, FALSE, 0); *pack_widg = hbox; return text; } #endif static void DestroyGtkMessageBox(GtkWidget *widget, gpointer data) { gtk_main_quit(); } static void GtkMessageBoxCallback(GtkWidget *widget, gpointer data) { gint *retval; GtkWidget *dialog; dialog = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); retval = (gint *)gtk_object_get_data(GTK_OBJECT(widget), "retval"); if (retval) *retval = GPOINTER_TO_INT(data); gtk_widget_destroy(dialog); } gint OldGtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, gint Options) { GtkWidget *dialog, *button, *label, *vbox, *hbbox, *hsep; GtkAccelGroup *accel_group; gint i; static gint retval; gboolean imm_return; const gchar *ButtonData[MB_MAX] = { GTK_STOCK_OK, GTK_STOCK_CANCEL, GTK_STOCK_YES, GTK_STOCK_NO }; imm_return = Options & MB_IMMRETURN; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); if (parent) gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(parent)); if (!imm_return) { gtk_signal_connect(GTK_OBJECT(dialog), "destroy", GTK_SIGNAL_FUNC(DestroyGtkMessageBox), NULL); } if (Title) gtk_window_set_title(GTK_WINDOW(dialog), Title); vbox = gtk_vbox_new(FALSE, 7); if (Text) { label = gtk_label_new(Text); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); } hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); retval = MB_CANCEL; hbbox = gtk_hbutton_box_new(); for (i = 0; i < MB_MAX; i++) { if (Options & (1 << i)) { button = NewStockButton(ButtonData[i], accel_group); if (!imm_return) { gtk_object_set_data(GTK_OBJECT(button), "retval", &retval); } gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(GtkMessageBoxCallback), GINT_TO_POINTER(1 << i)); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); } } gtk_box_pack_start(GTK_BOX(vbox), hbbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); if (!imm_return) gtk_main(); return retval; } #ifdef HAVE_GLIB2 GtkWidget *NewStockButton(const gchar *label, GtkAccelGroup *accel_group) { return gtk_button_new_from_stock(label); } gint GtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, GtkMessageType type, gint Options) { GtkWidget *dialog; gint retval; GtkButtonsType buttons = GTK_BUTTONS_NONE; if (Options & MB_IMMRETURN || !parent) { return OldGtkMessageBox(parent, Text, Title, Options); } if (Options & MB_CANCEL) buttons = GTK_BUTTONS_OK_CANCEL; else if (Options & MB_OK) buttons = GTK_BUTTONS_OK; else if (Options & MB_YESNO) buttons = GTK_BUTTONS_YES_NO; dialog = gtk_message_dialog_new(GTK_WINDOW(parent), GTK_DIALOG_MODAL, type, buttons, Text); if (Title) gtk_window_set_title(GTK_WINDOW(dialog), Title); retval = gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); return retval; } #else gint GtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, GtkMessageType type, gint Options) { return OldGtkMessageBox(parent, Text, Title, Options); } GtkWidget *NewStockButton(const gchar *label, GtkAccelGroup *accel_group) { GtkWidget *button; button = gtk_button_new_with_label(""); SetAccelerator(button, _(label), button, "clicked", accel_group, FALSE); return button; } #endif static void gtk_url_set_cursor(GtkWidget *widget, GtkWidget *label) { GdkCursor *cursor; cursor = gdk_cursor_new(GDK_HAND2); gdk_window_set_cursor(label->window, cursor); gdk_cursor_destroy(cursor); } void DisplayHTML(GtkWidget *parent, const gchar *bin, const gchar *target) { #ifdef HAVE_FORK char *args[3]; pid_t pid; int status; if (target && target[0] && bin && bin[0]) { args[0] = (char *)bin; args[1] = (char *)target; args[2] = NULL; /* Fork twice so that the spawned process gets init as its parent */ pid = fork(); if (pid > 0) { wait(&status); } else if (pid == 0) { pid = fork(); if (pid == 0) { execv(bin, args); g_print("dopewars: cannot execute %s\n", bin); _exit(EXIT_FAILURE); } else { _exit(EXIT_SUCCESS); } } } #endif } static gboolean gtk_url_triggered(GtkWidget *widget, GdkEventButton *event, gpointer data) { gchar *bin, *target; bin = (gchar *)gtk_object_get_data(GTK_OBJECT(widget), "bin"); target = (gchar *)gtk_object_get_data(GTK_OBJECT(widget), "target"); DisplayHTML(widget, bin, target); return TRUE; } GtkWidget *gtk_url_new(const gchar *text, const gchar *target, const gchar *bin) { GtkWidget *label, *eventbox; gchar *pattern; GtkStyle *style; GdkColor color; color.red = 0; color.green = 0; color.blue = 0xDDDD; label = gtk_label_new(text); /* Set the text colour */ style = gtk_rc_get_style(label); if (!style) { style = label->style; } style = gtk_style_copy(style); style->fg[GTK_STATE_NORMAL] = color; gtk_widget_set_style(label, style); gtk_style_unref(style); /* Make the text underlined */ pattern = g_strnfill(strlen(text), '_'); gtk_label_set_pattern(GTK_LABEL(label), pattern); g_free(pattern); /* We cannot set the cursor until the widget is realized, so set up a * handler to do this later */ gtk_signal_connect(GTK_OBJECT(label), "realize", GTK_SIGNAL_FUNC(gtk_url_set_cursor), label); eventbox = gtk_event_box_new(); gtk_object_set_data_full(GTK_OBJECT(eventbox), "target", g_strdup(target), g_free); gtk_object_set_data_full(GTK_OBJECT(eventbox), "bin", g_strdup(bin), g_free); gtk_signal_connect(GTK_OBJECT(eventbox), "button-release-event", GTK_SIGNAL_FUNC(gtk_url_triggered), NULL); gtk_container_add(GTK_CONTAINER(eventbox), label); return eventbox; } static void store_filename(GtkWidget *widget, gchar **filename) { GtkWidget *file_select = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); g_assert(file_select != NULL); *filename = g_strdup(gtk_file_selection_get_filename( GTK_FILE_SELECTION(file_select))); } gchar *GtkGetFile(const GtkWidget *parent, const gchar *oldname, const gchar *title) { GtkWidget *file_select, *ok, *cancel; gchar *filename = NULL; file_select = gtk_file_selection_new(title); if (parent) { gtk_window_set_modal(GTK_WINDOW(file_select), TRUE); gtk_window_set_transient_for(GTK_WINDOW(file_select), GTK_WINDOW(parent)); } ok = GTK_FILE_SELECTION(file_select)->ok_button; cancel = GTK_FILE_SELECTION(file_select)->cancel_button; if (oldname) { gtk_file_selection_set_filename(GTK_FILE_SELECTION(file_select), oldname); } gtk_signal_connect(GTK_OBJECT(ok), "clicked", GTK_SIGNAL_FUNC(store_filename), (gpointer)&filename); gtk_signal_connect_object(GTK_OBJECT(ok), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), file_select); gtk_signal_connect_object(GTK_OBJECT(cancel), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), file_select); gtk_signal_connect(GTK_OBJECT(file_select), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_widget_show(file_select); gtk_main(); return filename; } gboolean HaveUnicodeSupport(void) { #ifdef HAVE_GLIB2 return TRUE; #else return FALSE; #endif } #endif /* CYGWIN */ #if CYGWIN || !HAVE_GLIB2 void TextViewAppend(GtkTextView *textview, const gchar *text, const gchar *tagname, gboolean scroll) { gint editpos; editpos = gtk_text_get_length(GTK_TEXT(textview)); gtk_editable_insert_text(GTK_EDITABLE(textview), text, strlen(text), &editpos); #ifdef CYGWIN gtk_text_view_set_format(textview, tagname, myw32strlen(text), editpos); #endif if (scroll) { gtk_editable_set_position(GTK_EDITABLE(textview), editpos); } } void TextViewClear(GtkTextView *textview) { gtk_editable_delete_text(GTK_EDITABLE(textview), 0, -1); } #endif dopewars-1.5.12/src/gtkport/clist.c0000644001565000007070000006263210355116554014133 00000000000000/************************************************************************ * clist.c GtkCList implementation for gtkport * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "gtkport.h" #ifdef CYGWIN #include #include #include "unicodewrap.h" #define LISTITEMHPACK 3 #define LISTHEADERPACK 6 static const gchar *WC_GTKCLISTHDR = "WC_GTKCLISTHDR"; static WNDPROC wpOrigListProc; static void gtk_clist_size_request(GtkWidget *widget, GtkRequisition *requisition); static void gtk_clist_set_size(GtkWidget *widget, GtkAllocation *allocation); static gboolean gtk_clist_wndproc(GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef); static void gtk_clist_realize(GtkWidget *widget); static void gtk_clist_show(GtkWidget *widget); static void gtk_clist_hide(GtkWidget *widget); static void gtk_clist_draw_row(GtkCList *clist, LPDRAWITEMSTRUCT lpdis); static void gtk_clist_update_selection(GtkWidget *widget); static void gtk_clist_update_widths(GtkCList *clist, gchar *text[]); static void gtk_clist_update_all_widths(GtkCList *clist); static void gtk_clist_do_auto_resize(GtkCList *clist); static void gtk_clist_set_column_width_full(GtkCList *clist, gint column, gint width, gboolean ResizeHeader); static GtkSignalType GtkCListSignals[] = { {"size_request", gtk_marshal_VOID__GPOIN, gtk_clist_size_request}, {"set_size", gtk_marshal_VOID__GPOIN, gtk_clist_set_size}, {"realize", gtk_marshal_VOID__VOID, gtk_clist_realize}, {"click-column", gtk_marshal_VOID__GINT, NULL}, {"select_row", gtk_marshal_VOID__GINT_GINT_EVENT, NULL}, {"unselect_row", gtk_marshal_VOID__GINT_GINT_EVENT, NULL}, {"show", gtk_marshal_VOID__VOID, gtk_clist_show}, {"hide", gtk_marshal_VOID__VOID, gtk_clist_hide}, {"", NULL, NULL} }; static GtkClass GtkCListClass = { "clist", &GtkContainerClass, sizeof(GtkCList), GtkCListSignals, gtk_clist_wndproc }; static void SetCListHeaderSize(GtkCList *clist) { RECT rc; HWND hWnd; int width; hWnd = GTK_WIDGET(clist)->hWnd; clist->scrollpos = GetScrollPos(hWnd, SB_HORZ); GetWindowRect(hWnd, &rc); width = (int)mySendMessage(hWnd, LB_GETHORIZONTALEXTENT, 0, 0); width = MAX(width, rc.right - rc.left) + 100; SetWindowPos(clist->header, HWND_TOP, -clist->scrollpos, 0, width, clist->header_size, SWP_NOZORDER); } static LRESULT APIENTRY ListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { LRESULT retval; GtkWidget *widget; widget = GTK_WIDGET(GetWindowLong(hwnd, GWL_USERDATA)); retval = myCallWindowProc(wpOrigListProc, hwnd, msg, wParam, lParam); if (msg == WM_HSCROLL && widget) { GtkCList *clist = GTK_CLIST(widget); SetCListHeaderSize(clist); } return retval; } gboolean gtk_clist_wndproc(GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef) { LPDRAWITEMSTRUCT lpdis; HD_NOTIFYA FAR *phdr; HD_NOTIFYW FAR *phdrw; NMHDR *nmhdr; switch(msg) { case WM_COMMAND: if (lParam && HIWORD(wParam) == LBN_SELCHANGE) { gtk_clist_update_selection(widget); return FALSE; } break; case WM_DRAWITEM: lpdis = (LPDRAWITEMSTRUCT)lParam; if (lpdis) { gtk_clist_draw_row(GTK_CLIST(widget), lpdis); *dodef = FALSE; return TRUE; } break; case WM_NOTIFY: nmhdr = (NMHDR *)lParam; if (nmhdr) { switch(nmhdr->code) { case HDN_ENDTRACKA: phdr = (HD_NOTIFYA FAR *)lParam; gtk_clist_set_column_width_full(GTK_CLIST(widget), phdr->iItem, phdr->pitem->cxy, FALSE); return FALSE; case HDN_ENDTRACKW: phdrw = (HD_NOTIFYW FAR *)lParam; gtk_clist_set_column_width_full(GTK_CLIST(widget), phdrw->iItem, phdrw->pitem->cxy, FALSE); return FALSE; case HDN_ITEMCLICKA: phdr = (HD_NOTIFYA FAR *)lParam; gtk_signal_emit(GTK_OBJECT(widget), "click-column", (gint)phdr->iItem); return FALSE; case HDN_ITEMCLICKW: phdrw = (HD_NOTIFYW FAR *)lParam; gtk_signal_emit(GTK_OBJECT(widget), "click-column", (gint)phdrw->iItem); return FALSE; default: break; } } break; } return FALSE; } static void gtk_clist_set_extent(GtkCList *clist) { gint i; HWND hWnd; hWnd = GTK_WIDGET(clist)->hWnd; if (hWnd) { int width = 0; for (i = 0; i < clist->cols; i++) { width += clist->coldata[i].width; } mySendMessage(hWnd, LB_SETHORIZONTALEXTENT, (WPARAM)width, 0); SetCListHeaderSize(clist); } } void gtk_clist_set_size(GtkWidget *widget, GtkAllocation *allocation) { GtkCList *clist = GTK_CLIST(widget); gtk_container_set_size(widget, allocation); if (clist->header) { POINT pt; pt.x = allocation->x; pt.y = allocation->y; MapWidgetOrigin(widget, &pt); SetWindowPos(clist->scrollwin, HWND_TOP, pt.x, pt.y, allocation->width, clist->header_size, SWP_NOZORDER); allocation->y += clist->header_size - 1; allocation->height -= clist->header_size - 1; } gtk_clist_set_extent(clist); } GtkWidget *gtk_clist_new(gint columns) { GtkCList *clist; int i; clist = GTK_CLIST(GtkNewObject(&GtkCListClass)); clist->scrollpos = 0; clist->cols = columns; clist->coldata = g_new0(GtkCListColumn, columns); clist->rows = 0; clist->rowdata = NULL; for (i = 0; i < columns; i++) { clist->coldata[i].width = 0; clist->coldata[i].optimal_width = 0; clist->coldata[i].visible = TRUE; clist->coldata[i].resizeable = TRUE; clist->coldata[i].justification = GTK_JUSTIFY_LEFT; } return GTK_WIDGET(clist); } void gtk_clist_size_request(GtkWidget *widget, GtkRequisition *requisition) { SIZE size; if (GetTextSize(widget->hWnd, "Sample text", &size, defFont)) { requisition->width = size.cx; requisition->height = size.cy * 6 + 12; } } void gtk_clist_realize(GtkWidget *widget) { HWND Parent, header, scrollwin; HD_LAYOUT hdl; HD_ITEM hdi; RECT rcParent; WINDOWPOS wp; GtkCList *clist = GTK_CLIST(widget); GSList *rows; GtkCListRow *row; gint i; gtk_container_realize(widget); Parent = gtk_get_parent_hwnd(widget); GTK_WIDGET_SET_FLAGS(widget, GTK_CAN_FOCUS); rcParent.left = rcParent.top = 0; rcParent.right = rcParent.bottom = 800; scrollwin = myCreateWindow(WC_GTKCLISTHDR, NULL, WS_CHILD | WS_BORDER, 0, 0, 0, 0, Parent, NULL, hInst, NULL); SetWindowLong(scrollwin, GWL_USERDATA, (LONG)widget); header = myCreateWindowEx(0, WC_HEADER, NULL, WS_CHILD | HDS_HORZ | WS_VISIBLE | (GTK_CLIST(widget)->coldata[0].button_passive ? 0 : HDS_BUTTONS), 0, 0, 0, 0, scrollwin, NULL, hInst, NULL); SetWindowLong(header, GWL_USERDATA, (LONG)widget); GTK_CLIST(widget)->header = header; GTK_CLIST(widget)->scrollwin = scrollwin; gtk_set_default_font(header); hdl.prc = &rcParent; hdl.pwpos = ℘ mySendMessage(header, HDM_LAYOUT, 0, (LPARAM)&hdl); clist->header_size = wp.cy; widget->hWnd = myCreateWindowEx(WS_EX_CLIENTEDGE, "LISTBOX", "", WS_CHILD | WS_TABSTOP | WS_VSCROLL | WS_HSCROLL | LBS_OWNERDRAWFIXED | LBS_NOTIFY, 0, 0, 0, 0, Parent, NULL, hInst, NULL); /* Subclass the window */ wpOrigListProc = (WNDPROC)mySetWindowLong(widget->hWnd, GWL_WNDPROC, (LONG)ListWndProc); gtk_set_default_font(widget->hWnd); for (rows = clist->rowdata; rows; rows = g_slist_next(rows)) { row = (GtkCListRow *)rows->data; if (row) { mySendMessage(widget->hWnd, LB_ADDSTRING, 0, 1); } } gtk_clist_update_all_widths(clist); for (i = 0; i < clist->cols; i++) { if (clist->coldata[i].auto_resize) { clist->coldata[i].width = clist->coldata[i].optimal_width; } hdi.mask = HDI_TEXT | HDI_FORMAT | HDI_WIDTH; hdi.pszText = clist->coldata[i].title; if (hdi.pszText) { if (i == clist->cols - 1) hdi.cxy = 9000; else hdi.cxy = clist->coldata[i].width; hdi.cchTextMax = strlen(hdi.pszText); hdi.fmt = HDF_LEFT | HDF_STRING; myHeader_InsertItem(header, i + 1, &hdi); } } } void gtk_clist_show(GtkWidget *widget) { if (GTK_WIDGET_REALIZED(widget)) { ShowWindow(GTK_CLIST(widget)->scrollwin, SW_SHOWNORMAL); } } void gtk_clist_hide(GtkWidget *widget) { if (GTK_WIDGET_REALIZED(widget)) { ShowWindow(GTK_CLIST(widget)->scrollwin, SW_HIDE); } } void gtk_clist_draw_row(GtkCList *clist, LPDRAWITEMSTRUCT lpdis) { HBRUSH bkgrnd; COLORREF textcol, oldtextcol; RECT rcCol; int oldbkmode; gint i, CurrentX, right; GtkCListRow *row; if (lpdis->itemState & ODS_SELECTED) { bkgrnd = (HBRUSH)(1 + COLOR_HIGHLIGHT); textcol = (COLORREF)GetSysColor(COLOR_HIGHLIGHTTEXT); } else { bkgrnd = (HBRUSH)(1 + COLOR_WINDOW); textcol = (COLORREF)GetSysColor(COLOR_WINDOWTEXT); } oldtextcol = SetTextColor(lpdis->hDC, textcol); oldbkmode = SetBkMode(lpdis->hDC, TRANSPARENT); FillRect(lpdis->hDC, &lpdis->rcItem, bkgrnd); if (lpdis->itemID >= 0 && lpdis->itemID < clist->rows) { int width; row = (GtkCListRow *)g_slist_nth_data(clist->rowdata, lpdis->itemID); width = CurrentX = 0; for (i = 0; i < clist->cols; i++) { width += clist->coldata[i].width; } right = MAX(lpdis->rcItem.right, width); rcCol.top = lpdis->rcItem.top; rcCol.bottom = lpdis->rcItem.bottom; if (row->text) for (i = 0; i < clist->cols; i++) { rcCol.left = CurrentX + LISTITEMHPACK; CurrentX += clist->coldata[i].width; rcCol.right = CurrentX - LISTITEMHPACK; if (rcCol.left > right) rcCol.left = right; if (rcCol.right > right - LISTITEMHPACK) rcCol.right = right - LISTITEMHPACK; if (i == clist->cols - 1) rcCol.right = right - LISTITEMHPACK; if (row->text[i]) { UINT align; switch(clist->coldata[i].justification) { case GTK_JUSTIFY_RIGHT: align = DT_RIGHT; break; case GTK_JUSTIFY_CENTER: align = DT_CENTER; break; default: align = DT_LEFT; break; } myDrawText(lpdis->hDC, row->text[i], -1, &rcCol, align | DT_SINGLELINE | DT_VCENTER | DT_END_ELLIPSIS); } } } SetTextColor(lpdis->hDC, oldtextcol); SetBkMode(lpdis->hDC, oldbkmode); if (lpdis->itemState & ODS_FOCUS) { DrawFocusRect(lpdis->hDC, &lpdis->rcItem); } } void gtk_clist_do_auto_resize(GtkCList *clist) { gint i; for (i = 0; i < clist->cols; i++) if (clist->coldata[i].auto_resize) { gtk_clist_set_column_width(clist, i, clist->coldata[i].optimal_width); } } gint gtk_clist_optimal_column_width(GtkCList *clist, gint column) { return clist->coldata[column].optimal_width; } void gtk_clist_update_all_widths(GtkCList *clist) { GSList *list; GtkCListRow *row; SIZE size; HWND header; gint i; header = clist->header; if (header) { for (i = 0; i < clist->cols; i++) { if (GetTextSize(header, clist->coldata[i].title, &size, defFont)) { int new_width = size.cx + 4 + 2 * LISTHEADERPACK; clist->coldata[i].width = MAX(clist->coldata[i].width, new_width); clist->coldata[i].optimal_width = MAX(clist->coldata[i].optimal_width, new_width); } } } for (list = clist->rowdata; list; list = g_slist_next(list)) { row = (GtkCListRow *)list->data; if (row && row->text) { gtk_clist_update_widths(clist, row->text); } } gtk_clist_set_extent(clist); } void gtk_clist_update_widths(GtkCList *clist, gchar *text[]) { gint i; SIZE size; HWND hWnd; hWnd = GTK_WIDGET(clist)->hWnd; if (!hWnd) return; for (i = 0; i < clist->cols; i++) { if (GetTextSize(hWnd, text[i], &size, defFont)) { int new_width = size.cx + 4 + 2 * LISTITEMHPACK; clist->coldata[i].optimal_width = MAX(clist->coldata[i].optimal_width, new_width); } } } gint gtk_clist_insert(GtkCList *clist, gint row, gchar *text[]) { GtkWidget *widget = GTK_WIDGET(clist); HWND hWnd; GtkCListRow *new_row; gint i; if (row < 0) row = clist->rows; new_row = g_new0(GtkCListRow, 1); new_row->text = g_new0(gchar *, clist->cols); new_row->data = GINT_TO_POINTER(1); for (i = 0; i < clist->cols; i++) { new_row->text[i] = g_strdup(text[i]); } gtk_clist_update_widths(clist, new_row->text); gtk_clist_do_auto_resize(clist); clist->rowdata = g_slist_insert(clist->rowdata, (gpointer)new_row, row); clist->rows = g_slist_length(clist->rowdata); if (GTK_WIDGET_REALIZED(widget)) { hWnd = widget->hWnd; mySendMessage(hWnd, LB_INSERTSTRING, (WPARAM)row, 1); } return row; } gint gtk_clist_set_text(GtkCList *clist, gint row, gint col, gchar *text) { GtkCListRow *list_row; if (row < 0 || row >= clist->rows || col < 0 || col >= clist->cols) return -1; list_row = (GtkCListRow *)g_slist_nth_data(clist->rowdata, row); g_free(list_row->text[col]); list_row->text[col] = g_strdup(text); if (GTK_WIDGET_REALIZED(GTK_WIDGET(clist))) { HWND hWnd = GTK_WIDGET(clist)->hWnd; InvalidateRect(hWnd, NULL, FALSE); UpdateWindow(hWnd); } return row; } void gtk_clist_remove(GtkCList *clist, gint row) { if (row >= 0 && row < clist->rows) { GSList *dellink; GtkCListRow *delrow; int i; gtk_clist_unselect_row(clist, row, 0); dellink = g_slist_nth(clist->rowdata, row); delrow = (GtkCListRow *)dellink->data; for (i = 0; i < clist->cols; i++) { g_free(delrow->text[i]); } g_free(delrow->text); clist->rowdata = g_slist_remove_link(clist->rowdata, dellink); g_free(dellink); clist->rows = g_slist_length(clist->rowdata); if (GTK_WIDGET_REALIZED(GTK_WIDGET(clist))) { HWND hWnd = GTK_WIDGET(clist)->hWnd; mySendMessage(hWnd, LB_DELETESTRING, (WPARAM)row, 0); } } } GtkWidget *gtk_clist_new_with_titles(gint columns, gchar *titles[]) { GtkWidget *widget; GtkCList *clist; gint i; widget = gtk_clist_new(columns); clist = GTK_CLIST(widget); for (i = 0; i < clist->cols; i++) { gtk_clist_set_column_title(clist, i, titles[i]); } return widget; } GtkWidget *gtk_scrolled_clist_new_with_titles(gint columns, gchar *titles[], GtkWidget **pack_widg) { GtkWidget *widget; widget = gtk_clist_new_with_titles(columns, titles); *pack_widg = widget; return widget; } gint gtk_clist_append(GtkCList *clist, gchar *text[]) { return gtk_clist_insert(clist, -1, text); } void gtk_clist_set_column_title(GtkCList *clist, gint column, const gchar *title) { HWND hWnd; if (column < 0 || column >= clist->cols) return; g_free(clist->coldata[column].title); clist->coldata[column].title = g_strdup(title); if (GTK_WIDGET_REALIZED(GTK_WIDGET(clist))) { hWnd = GTK_WIDGET(clist)->hWnd; InvalidateRect(hWnd, NULL, FALSE); UpdateWindow(hWnd); } } void gtk_clist_column_title_passive(GtkCList *clist, gint column) { if (column >= 0 && column < clist->cols) clist->coldata[column].button_passive = TRUE; } void gtk_clist_column_titles_passive(GtkCList *clist) { gint i; for (i = 0; i < clist->cols; i++) { gtk_clist_column_title_passive(clist, i); } } void gtk_clist_column_title_active(GtkCList *clist, gint column) { if (column >= 0 && column < clist->cols) clist->coldata[column].button_passive = FALSE; } void gtk_clist_column_titles_active(GtkCList *clist) { gint i; for (i = 0; i < clist->cols; i++) { gtk_clist_column_title_active(clist, i); } } void gtk_clist_set_column_width(GtkCList *clist, gint column, gint width) { gtk_clist_set_column_width_full(clist, column, width, TRUE); } void gtk_clist_set_column_width_full(GtkCList *clist, gint column, gint width, gboolean ResizeHeader) { HWND hWnd, header; HD_ITEM hdi; if (column < 0 || column >= clist->cols) return; clist->coldata[column].width = width; if (GTK_WIDGET_REALIZED(GTK_WIDGET(clist))) { header = clist->header; if (ResizeHeader && header) { hdi.mask = HDI_WIDTH; if (column == clist->cols - 1) width = 9000; hdi.cxy = width; if (mySendMessage(header, HDM_GETITEM, (WPARAM)column, (LPARAM)&hdi) && hdi.cxy != width) { hdi.mask = HDI_WIDTH; hdi.cxy = width; mySendMessage(header, HDM_SETITEM, (WPARAM)column, (LPARAM)&hdi); } } gtk_clist_set_extent(clist); hWnd = GTK_WIDGET(clist)->hWnd; if (hWnd) InvalidateRect(hWnd, NULL, FALSE); } } void gtk_clist_set_selection_mode(GtkCList *clist, GtkSelectionMode mode) { clist->mode = mode; } static GtkCList *sorting_clist; static gint gtk_clist_sort_func(gconstpointer a, gconstpointer b) { return (*sorting_clist->cmp_func) (sorting_clist, a, b); } void gtk_clist_sort(GtkCList *clist) { HWND hWnd; gint rowind; GList *sel; GSList *rowpt; sorting_clist = clist; if (clist && clist->cmp_func && clist->rows) { /* Since the order of the list may change, we need to change the * selection as well. Do this by converting the row indices into * GSList pointers (which are invariant to the sort) and then convert * back afterwards */ for (sel = clist->selection; sel; sel = g_list_next(sel)) { rowind = GPOINTER_TO_INT(sel->data); sel->data = (gpointer)g_slist_nth(clist->rowdata, rowind); } clist->rowdata = g_slist_sort(clist->rowdata, gtk_clist_sort_func); for (sel = clist->selection; sel; sel = g_list_next(sel)) { rowpt = (GSList *)(sel->data); sel->data = GINT_TO_POINTER(g_slist_position(clist->rowdata, rowpt)); } if (GTK_WIDGET_REALIZED(GTK_WIDGET(clist))) { hWnd = GTK_WIDGET(clist)->hWnd; if (clist->mode == GTK_SELECTION_SINGLE) { sel = clist->selection; if (sel) rowind = GPOINTER_TO_INT(sel->data); else rowind = -1; mySendMessage(hWnd, LB_SETCURSEL, (WPARAM)rowind, 0); } else { for (rowind = 0; rowind < clist->rows; rowind++) { mySendMessage(hWnd, LB_SETSEL, (WPARAM)FALSE, (LPARAM)rowind); } for (sel = clist->selection; sel; sel = g_list_next(sel)) { rowind = GPOINTER_TO_INT(sel->data); mySendMessage(hWnd, LB_SETSEL, (WPARAM)TRUE, (LPARAM)rowind); } } InvalidateRect(hWnd, NULL, FALSE); UpdateWindow(hWnd); } } } void gtk_clist_freeze(GtkCList *clist) { } void gtk_clist_thaw(GtkCList *clist) { } void gtk_clist_clear(GtkCList *clist) { GtkCListRow *row; GSList *list; gint i; HWND hWnd; for (list = clist->rowdata; list; list = g_slist_next(list)) { row = (GtkCListRow *)list->data; for (i = 0; i < clist->cols; i++) { g_free(row->text[i]); } g_free(row); } g_slist_free(clist->rowdata); clist->rowdata = NULL; clist->rows = 0; gtk_clist_update_all_widths(clist); hWnd = GTK_WIDGET(clist)->hWnd; if (hWnd) { mySendMessage(hWnd, LB_RESETCONTENT, 0, 0); } } void gtk_clist_set_row_data(GtkCList *clist, gint row, gpointer data) { GtkCListRow *list_row; if (row >= 0 && row < clist->rows) { list_row = (GtkCListRow *)g_slist_nth_data(clist->rowdata, row); if (list_row) list_row->data = data; } } gpointer gtk_clist_get_row_data(GtkCList *clist, gint row) { GtkCListRow *list_row; if (row >= 0 && row < clist->rows) { list_row = (GtkCListRow *)g_slist_nth_data(clist->rowdata, row); if (list_row) return list_row->data; } return NULL; } void gtk_clist_set_auto_sort(GtkCList *clist, gboolean auto_sort) { clist->auto_sort = auto_sort; } void gtk_clist_columns_autosize(GtkCList *clist) { } void gtk_clist_select_row(GtkCList *clist, gint row, gint column) { HWND hWnd; hWnd = GTK_WIDGET(clist)->hWnd; if (hWnd) { if (clist->mode == GTK_SELECTION_SINGLE) { mySendMessage(hWnd, LB_SETCURSEL, (WPARAM)row, 0); } else { mySendMessage(hWnd, LB_SETSEL, (WPARAM)TRUE, (LPARAM)row); } gtk_clist_update_selection(GTK_WIDGET(clist)); } } void gtk_clist_unselect_row(GtkCList *clist, gint row, gint column) { HWND hWnd; hWnd = GTK_WIDGET(clist)->hWnd; if (hWnd) { if (clist->mode == GTK_SELECTION_SINGLE) { mySendMessage(hWnd, LB_SETCURSEL, (WPARAM)(-1), 0); } else { mySendMessage(hWnd, LB_SETSEL, (WPARAM)FALSE, (LPARAM)row); } gtk_clist_update_selection(GTK_WIDGET(clist)); } } GtkVisibility gtk_clist_row_is_visible(GtkCList *clist, gint row) { return GTK_VISIBILITY_FULL; } void gtk_clist_moveto(GtkCList *clist, gint row, gint column, gfloat row_align, gfloat col_align) { } void gtk_clist_set_compare_func(GtkCList *clist, GtkCListCompareFunc cmp_func) { if (clist) clist->cmp_func = cmp_func; } void gtk_clist_set_column_auto_resize(GtkCList *clist, gint column, gboolean auto_resize) { if (clist && column >= 0 && column < clist->cols) { clist->coldata[column].auto_resize = auto_resize; } } void gtk_clist_update_selection(GtkWidget *widget) { GtkCList *clist = GTK_CLIST(widget); GList *oldsel, *selpt; gint i; oldsel = clist->selection; clist->selection = NULL; if (widget->hWnd) { for (i = 0; i < clist->rows; i++) { if (mySendMessage(widget->hWnd, LB_GETSEL, (WPARAM)i, 0) > 0) { clist->selection = g_list_append(clist->selection, GINT_TO_POINTER(i)); } } for (selpt = oldsel; selpt; selpt = g_list_next(selpt)) { gint row = GPOINTER_TO_INT(selpt->data); if (!g_list_find(clist->selection, GINT_TO_POINTER(row))) { gtk_signal_emit(GTK_OBJECT(widget), "unselect_row", row, 0, NULL); } } for (selpt = clist->selection; selpt; selpt = g_list_next(selpt)) { gint row = GPOINTER_TO_INT(selpt->data); if (!g_list_find(oldsel, GINT_TO_POINTER(row))) { gtk_signal_emit(GTK_OBJECT(widget), "select_row", row, 0, NULL); } } } g_list_free(oldsel); } void gtk_clist_set_column_justification(GtkCList *clist, gint column, GtkJustification justification) { clist->coldata[column].justification = justification; } static LRESULT CALLBACK CListHdrWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { GtkWidget *widget; gboolean retval = FALSE, dodef = TRUE; widget = GTK_WIDGET(GetWindowLong(hwnd, GWL_USERDATA)); if (widget) { retval = gtk_clist_wndproc(widget, msg, wParam, lParam, &dodef); } if (dodef) { return myDefWindowProc(hwnd, msg, wParam, lParam); } else { return retval; } } void InitCListClass(HINSTANCE hInstance) { WNDCLASS wc; wc.style = 0; wc.lpfnWndProc = CListHdrWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = NULL; wc.lpszMenuName = NULL; wc.lpszClassName = WC_GTKCLISTHDR; myRegisterClass(&wc); } #else /* for systems with GTK+ */ GtkWidget *gtk_scrolled_clist_new_with_titles(gint columns, gchar *titles[], GtkWidget **pack_widg) { GtkWidget *scrollwin, *clist; clist = gtk_clist_new_with_titles(columns, titles); scrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(scrollwin), clist); *pack_widg = scrollwin; return clist; } #endif dopewars-1.5.12/src/gtkport/unicodewrap.c0000644001565000007070000003172610137122016015321 00000000000000/************************************************************************ * unicodewrap.c Unicode wrapper functions for Win32 * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #include #include #include "unicodewrap.h" static gboolean unicode_support = FALSE; /* * Sets the global variable unicode_support to reflect whether this version * of Windows understands Unicode. (WinNT/2000/XP do, 95/98/ME do not.) * This is done by calling the Unicode version of GetVersionEx, which should * have no undesirable side effects. On non-Unicode systems, this is just * a stub function that returns an error. */ void InitUnicodeSupport(void) { OSVERSIONINFOW verinfo; verinfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); unicode_support = (GetVersionExW(&verinfo) || GetLastError() != ERROR_CALL_NOT_IMPLEMENTED); } gboolean HaveUnicodeSupport(void) { return unicode_support; } /* * Converts a string from our internal representation (UTF-8) to a form * suitable for Windows Unicode-aware functions (i.e. UTF-16). This * returned string must be g_free'd when no longer needed. */ static gunichar2 *strtow32(const char *instr, int len) { gunichar2 *outstr; if (!instr) { return NULL; } outstr = g_utf8_to_utf16(instr, len, NULL, NULL, NULL); if (!outstr) { outstr = g_utf8_to_utf16("[?]", len, NULL, NULL, NULL); } return outstr; } static gchar *w32tostr(const gunichar2 *instr, int len) { gchar *outstr; if (!instr) { return NULL; } outstr = g_utf16_to_utf8(instr, len, NULL, NULL, NULL); if (!outstr) { outstr = g_strdup("[?]"); } return outstr; } BOOL mySetWindowText(HWND hWnd, LPCTSTR lpString) { BOOL retval; if (unicode_support) { gunichar2 *text; text = strtow32(lpString, -1); retval = SetWindowTextW(hWnd, text); g_free(text); } else { retval = SetWindowTextA(hWnd, lpString); } return retval; } HWND myCreateWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam) { return myCreateWindowEx(0, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hwndParent, hMenu, hInstance, lpParam); } HWND myCreateWindowEx(DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam) { HWND retval; if (unicode_support) { gunichar2 *classname, *winname; classname = strtow32(lpClassName, -1); winname = strtow32(lpWindowName, -1); retval = CreateWindowExW(dwExStyle, classname, winname, dwStyle, x, y, nWidth, nHeight, hwndParent, hMenu, hInstance, lpParam); g_free(classname); g_free(winname); } else { retval = CreateWindowExA(dwExStyle, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hwndParent, hMenu, hInstance, lpParam); } return retval; } gchar *myGetWindowText(HWND hWnd) { gint textlen; textlen = SendMessage(hWnd, WM_GETTEXTLENGTH, 0, 0); if (unicode_support) { gunichar2 *buffer; gchar *retstr; buffer = g_new0(gunichar2, textlen + 1); GetWindowTextW(hWnd, buffer, textlen + 1); buffer[textlen] = '\0'; retstr = w32tostr(buffer, textlen); g_free(buffer); return retstr; } else { gchar *buffer; buffer = g_new0(gchar, textlen + 1); GetWindowTextA(hWnd, buffer, textlen + 1); buffer[textlen] = '\0'; return buffer; } } int myDrawText(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat) { int retval; if (unicode_support) { gunichar2 *text; text = strtow32(lpString, nCount); retval = DrawTextW(hDC, text, -1, lpRect, uFormat); g_free(text); } else { retval = DrawTextA(hDC, lpString, nCount, lpRect, uFormat); } return retval; } static BOOL makeMenuItemInfoW(LPMENUITEMINFOW lpmiiw, LPMENUITEMINFO lpmii) { BOOL strdata; strdata = (lpmii->fMask & MIIM_TYPE) && !(lpmii->fType & (MFT_BITMAP | MFT_SEPARATOR)); lpmiiw->cbSize = sizeof(MENUITEMINFOW); lpmiiw->fMask = lpmii->fMask; lpmiiw->fType = lpmii->fType; lpmiiw->fState = lpmii->fState; lpmiiw->wID = lpmii->wID; lpmiiw->hSubMenu = lpmii->hSubMenu; lpmiiw->hbmpChecked = lpmii->hbmpChecked; lpmiiw->hbmpUnchecked = lpmii->hbmpUnchecked; lpmiiw->dwItemData = lpmii->dwItemData; lpmiiw->dwTypeData = strdata ? strtow32(lpmii->dwTypeData, -1) : (LPWSTR)lpmii->dwTypeData; lpmiiw->cch = lpmii->cch; return strdata; } BOOL WINAPI mySetMenuItemInfo(HMENU hMenu, UINT uItem, BOOL fByPosition, LPMENUITEMINFO lpmii) { BOOL retval; if (unicode_support) { MENUITEMINFOW miiw; BOOL strdata; strdata = makeMenuItemInfoW(&miiw, lpmii); retval = SetMenuItemInfoW(hMenu, uItem, fByPosition, &miiw); if (strdata) { g_free(miiw.dwTypeData); } } else { retval = SetMenuItemInfoA(hMenu, uItem, fByPosition, lpmii); } return retval; } BOOL WINAPI myInsertMenuItem(HMENU hMenu, UINT uItem, BOOL fByPosition, LPMENUITEMINFO lpmii) { BOOL retval; if (unicode_support) { MENUITEMINFOW miiw; BOOL strdata; strdata = makeMenuItemInfoW(&miiw, lpmii); retval = InsertMenuItemW(hMenu, uItem, fByPosition, &miiw); if (strdata) { g_free(miiw.dwTypeData); } } else { retval = InsertMenuItemA(hMenu, uItem, fByPosition, lpmii); } return retval; } static BOOL makeHeaderItemW(HD_ITEMW *phdiw, const HD_ITEM *phdi) { BOOL strdata; strdata = phdi->mask & HDI_TEXT; phdiw->mask = phdi->mask; phdiw->cxy = phdi->cxy; phdiw->pszText = strdata ? strtow32(phdi->pszText, -1) : (LPWSTR)phdi->pszText; phdiw->hbm = phdi->hbm; phdiw->cchTextMax = phdi->cchTextMax; phdiw->fmt = phdi->fmt; phdiw->lParam = phdi->lParam; return strdata; } static BOOL makeTabItemW(TC_ITEMW *tiew, const TC_ITEM *tie) { BOOL strdata; strdata = tie->mask & TCIF_TEXT; tiew->mask = tie->mask; tiew->pszText = strdata ? strtow32(tie->pszText, -1) : (LPWSTR)tie->pszText; tiew->cchTextMax = tie->cchTextMax; tiew->iImage = tie->iImage; tiew->lParam = tie->lParam; return strdata; } int myHeader_InsertItem(HWND hWnd, int index, const HD_ITEM *phdi) { int retval; if (unicode_support && IsWindowUnicode(hWnd)) { HD_ITEMW hdiw; BOOL strdata; strdata = makeHeaderItemW(&hdiw, phdi); retval = (int)SendMessageW(hWnd, HDM_INSERTITEMW, (WPARAM)index, (LPARAM)&hdiw); if (strdata) { g_free(hdiw.pszText); } } else { retval = (int)SendMessageA(hWnd, HDM_INSERTITEMA, (WPARAM)index, (LPARAM)phdi); } return retval; } int myTabCtrl_InsertItem(HWND hWnd, int index, const TC_ITEM *pitem) { int retval; if (unicode_support) { TC_ITEMW tiew; BOOL strdata; strdata = makeTabItemW(&tiew, pitem); retval = (int)SendMessageW(hWnd, TCM_INSERTITEMW, (WPARAM)index, (LPARAM)&tiew); if (strdata) { g_free(tiew.pszText); } } else { retval = (int)SendMessageA(hWnd, TCM_INSERTITEMA, (WPARAM)index, (LPARAM)pitem); } return retval; } ATOM myRegisterClass(CONST WNDCLASS *lpWndClass) { ATOM retval; if (unicode_support) { WNDCLASSW wcw; wcw.style = lpWndClass->style; wcw.lpfnWndProc = lpWndClass->lpfnWndProc; wcw.cbClsExtra = lpWndClass->cbClsExtra; wcw.cbWndExtra = lpWndClass->cbWndExtra; wcw.hInstance = lpWndClass->hInstance; wcw.hIcon = lpWndClass->hIcon; wcw.hCursor = lpWndClass->hCursor; wcw.hbrBackground = lpWndClass->hbrBackground; wcw.lpszMenuName = strtow32(lpWndClass->lpszMenuName, -1); wcw.lpszClassName = strtow32(lpWndClass->lpszClassName, -1); retval = RegisterClassW(&wcw); g_free((LPWSTR)wcw.lpszMenuName); g_free((LPWSTR)wcw.lpszClassName); } else { retval = RegisterClassA(lpWndClass); } return retval; } HWND myCreateDialog(HINSTANCE hInstance, LPCTSTR lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc) { HWND retval; if (unicode_support) { gunichar2 *text; text = strtow32(lpTemplate, -1); retval = CreateDialogW(hInstance, text, hWndParent, lpDialogFunc); g_free(text); } else { retval = CreateDialogA(hInstance, lpTemplate, hWndParent, lpDialogFunc); } return retval; } LRESULT mySendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { if (unicode_support) { return SendMessageW(hWnd, Msg, wParam, lParam); } else { return SendMessageA(hWnd, Msg, wParam, lParam); } } void myEditReplaceSel(HWND hWnd, BOOL fCanUndo, LPCSTR lParam) { if (unicode_support) { gunichar2 *text; text = strtow32(lParam, -1); SendMessageW(hWnd, EM_REPLACESEL, (WPARAM)fCanUndo, (LPARAM)text); g_free(text); } else { SendMessageA(hWnd, EM_REPLACESEL, (WPARAM)fCanUndo, (LPARAM)lParam); } } LONG mySetWindowLong(HWND hWnd, int nIndex, LONG dwNewLong) { if (unicode_support) { return SetWindowLongW(hWnd, nIndex, dwNewLong); } else { return SetWindowLongA(hWnd, nIndex, dwNewLong); } } LONG myGetWindowLong(HWND hWnd, int nIndex) { if (unicode_support) { return GetWindowLongW(hWnd, nIndex); } else { return GetWindowLongA(hWnd, nIndex); } } LRESULT myCallWindowProc(WNDPROC lpPrevWndProc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { if (unicode_support) { return CallWindowProcW(lpPrevWndProc, hWnd, Msg, wParam, lParam); } else { return CallWindowProcA(lpPrevWndProc, hWnd, Msg, wParam, lParam); } } LRESULT myDefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { if (unicode_support) { return DefWindowProcW(hWnd, Msg, wParam, lParam); } else { return DefWindowProcA(hWnd, Msg, wParam, lParam); } } int myMessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType) { int retval; if (unicode_support) { gunichar2 *text, *caption; text = strtow32(lpText, -1); caption = strtow32(lpCaption, -1); retval = MessageBoxW(hWnd, text, caption, uType); g_free(text); g_free(caption); } else { retval = MessageBoxA(hWnd, lpText, lpCaption, uType); } return retval; } BOOL myGetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax) { if (unicode_support) { return GetMessageW(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); } else { return GetMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax); } } LONG myDispatchMessage(CONST MSG *lpmsg) { if (unicode_support) { return DispatchMessageW(lpmsg); } else { return DispatchMessageA(lpmsg); } } BOOL myIsDialogMessage(HWND hDlg, LPMSG lpMsg) { if (unicode_support) { return IsDialogMessageW(hDlg, lpMsg); } else { return IsDialogMessageA(hDlg, lpMsg); } } size_t myw32strlen(const char *str) { if (unicode_support) { return g_utf8_strlen(str, -1); } else { return strlen(str); } } LRESULT myComboBox_AddString(HWND hWnd, LPCTSTR text) { LRESULT retval; if (unicode_support) { gunichar2 *w32text; w32text = strtow32(text, -1); retval = SendMessageW(hWnd, CB_ADDSTRING, 0, (LPARAM)w32text); g_free(w32text); } else { retval = SendMessageA(hWnd, CB_ADDSTRING, 0, (LPARAM)text); } return retval; } #endif /* CYGWIN */ dopewars-1.5.12/src/gtkport/Makefile.am0000644001565000007070000000040707531165020014667 00000000000000noinst_LIBRARIES = libgtkport.a libgtkport_a_SOURCES = gtkport.c gtkport.h clist.c clist.h gtkenums.h \ unicodewrap.c unicodewrap.h INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@ @GLIB_CFLAGS@ DEFS = @DEFS@ dopewars-1.5.12/src/gtkport/unicodewrap.h0000644001565000007070000000737610137122016015332 00000000000000/************************************************************************ * unicodewrap.h Unicode wrapper functions for Win32 * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __UNICODEWRAP_H__ #define __UNICODEWRAP_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #include #include void InitUnicodeSupport(void); BOOL mySetWindowText(HWND hWnd, LPCTSTR lpString); HWND myCreateWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam); HWND myCreateWindowEx(DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU hMenu, HANDLE hInstance, LPVOID lpParam); gchar *myGetWindowText(HWND hWnd); int myDrawText(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat); BOOL WINAPI mySetMenuItemInfo(HMENU hMenu, UINT uItem, BOOL fByPosition, LPMENUITEMINFO lpmii); BOOL WINAPI myInsertMenuItem(HMENU hMenu, UINT uItem, BOOL fByPosition, LPMENUITEMINFO lpmii); int myHeader_InsertItem(HWND hWnd, int index, const HD_ITEM *phdi); int myTabCtrl_InsertItem(HWND hWnd, int index, const TC_ITEM *pitem); ATOM myRegisterClass(CONST WNDCLASS *lpWndClass); HWND myCreateDialog(HINSTANCE hInstance, LPCTSTR lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc); LRESULT mySendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); void myEditReplaceSel(HWND hWnd, BOOL fCanUndo, LPCSTR lParam); LONG mySetWindowLong(HWND hWnd, int nIndex, LONG dwNewLong); LONG myGetWindowLong(HWND hWnd, int nIndex); LRESULT myCallWindowProc(WNDPROC lpPrevWndProc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); LRESULT myDefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); int myMessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType); BOOL myGetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax); LONG myDispatchMessage(CONST MSG *lpmsg); BOOL myIsDialogMessage(HWND hDlg, LPMSG lpMsg); size_t myw32strlen(const char *str); LRESULT myComboBox_AddString(HWND hWnd, LPCTSTR text); #endif /* CYGWIN */ #endif /* __UNICODEWRAP_H__ */ dopewars-1.5.12/src/gtkport/gtkenums.h0000644001565000007070000000705110137122016014635 00000000000000/************************************************************************ * gtkenums.h Enumerated types for gtkport code * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __GTKENUMS_H__ #define __GTKENUMS_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN typedef enum { GTK_WINDOW_TOPLEVEL, GTK_WINDOW_DIALOG, GTK_WINDOW_POPUP } GtkWindowType; typedef enum { GTK_ACCEL_VISIBLE = 1 << 0, GTK_ACCEL_SIGNAL_VISIBLE = 1 << 1 } GtkAccelFlags; typedef enum { GTK_BUTTONBOX_SPREAD, GTK_BUTTONBOX_EDGE, GTK_BUTTONBOX_START, GTK_BUTTONBOX_END } GtkButtonBoxStyle; typedef enum { GTK_STATE_NORMAL, GTK_STATE_ACTIVE, GTK_STATE_PRELIGHT, GTK_STATE_SELECTED, GTK_STATE_INSENSITIVE } GtkStateType; typedef enum { GTK_VISIBILITY_NONE, GTK_VISIBILITY_PARTIAL, GTK_VISIBILITY_FULL } GtkVisibility; typedef enum { GTK_PROGRESS_LEFT_TO_RIGHT, GTK_PROGRESS_RIGHT_TO_LEFT, GTK_PROGRESS_BOTTOM_TO_TOP, GTK_PROGRESS_TOP_TO_BOTTOM } GtkProgressBarOrientation; typedef enum { GTK_EXPAND = 1 << 0, GTK_SHRINK = 1 << 1, GTK_FILL = 1 << 2 } GtkAttachOptions; typedef enum { GTK_SELECTION_SINGLE, GTK_SELECTION_BROWSE, GTK_SELECTION_MULTIPLE, GTK_SELECTION_EXTENDED } GtkSelectionMode; typedef enum { GDK_INPUT_READ = 1 << 0, GDK_INPUT_WRITE = 1 << 1, GDK_INPUT_EXCEPTION = 1 << 2 } GdkInputCondition; typedef enum { GTK_SHADOW_NONE, GTK_SHADOW_IN, GTK_SHADOW_OUT, GTK_SHADOW_ETCHED_IN, GTK_SHADOW_ETCHED_OUT } GtkShadowType; typedef enum { GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, GTK_JUSTIFY_FILL } GtkJustification; typedef enum { GTK_REALIZED = 1 << 6, GTK_VISIBLE = 1 << 8, GTK_SENSITIVE = 1 << 10, GTK_CAN_FOCUS = 1 << 11, GTK_HAS_FOCUS = 1 << 12, GTK_CAN_DEFAULT = 1 << 13, GTK_IS_DEFAULT = 1 << 14 } GtkWidgetFlags; typedef enum { GDK_WINDOW_TYPE_HINT_NORMAL, GDK_WINDOW_TYPE_HINT_DIALOG, GDK_WINDOW_TYPE_HINT_MENU, GDK_WINDOW_TYPE_HINT_TOOLBAR } GdkWindowTypeHint; typedef enum { GTK_WIN_POS_NONE, GTK_WIN_POS_CENTER, GTK_WIN_POS_MOUSE, GTK_WIN_POS_CENTER_ALWAYS, GTK_WIN_POS_CENTER_ON_PARENT } GtkWindowPosition; #endif /* CYGWIN */ #endif /* __GTKENUMS_H__ */ dopewars-1.5.12/src/gtkport/gtkport.h0000644001565000007070000006622110355116554014512 00000000000000/************************************************************************ * gtkport.h Portable "almost-GTK+" for Unix/Win32 * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __GTKPORT_H__ #define __GTKPORT_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN /* GTK+ emulation prototypes etc. for Win32 platform */ #include #include #include #include "gtkenums.h" #define MB_IMMRETURN 0 #define MYWM_SOCKETDATA (WM_USER+100) #define MYWM_TASKBAR (WM_USER+101) #define MYWM_SERVICE (WM_USER+102) #define GDK_MOD1_MASK 0 extern HICON mainIcon; #define GDK_KP_0 0xFFB0 #define GDK_KP_1 0xFFB1 #define GDK_KP_2 0xFFB2 #define GDK_KP_3 0xFFB3 #define GDK_KP_4 0xFFB4 #define GDK_KP_5 0xFFB5 #define GDK_KP_6 0xFFB6 #define GDK_KP_7 0xFFB7 #define GDK_KP_8 0xFFB8 #define GDK_KP_9 0xFFB9 typedef gint (*GtkFunction) (gpointer data); typedef void (*GdkInputFunction) (gpointer data, gint source, GdkInputCondition condition); typedef gchar *(*GtkTranslateFunc) (const gchar *path, gpointer func_data); typedef void (*GtkDestroyNotify) (gpointer data); #define GTK_VISIBLE 1 typedef struct _GtkClass GtkClass; typedef struct _GtkObject GtkObject; typedef struct _GtkRequisition GtkRequisition; typedef struct _GtkAllocation GtkAllocation; typedef struct _GtkWidget GtkWidget; typedef struct _GtkSignalType GtkSignalType; typedef struct _GtkContainer GtkContainer; typedef void (*GtkSignalFunc) (); typedef void (*GtkItemFactoryCallback) (); typedef void (*GtkSignalMarshaller) (GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args); typedef struct _GdkColor GdkColor; typedef struct _GtkStyle GtkStyle; typedef struct _GtkMenuShell GtkMenuShell; typedef struct _GtkMenuBar GtkMenuBar; typedef struct _GtkMenuItem GtkMenuItem; typedef struct _GtkMenu GtkMenu; typedef struct _GtkAdjustment GtkAdjustment; typedef struct _GtkSeparator GtkSeparator; typedef struct _GtkMisc GtkMisc; typedef struct _GtkProgressBar GtkProgressBar; typedef struct _GtkHSeparator GtkHSeparator; typedef struct _GtkVSeparator GtkVSeparator; typedef struct _GtkAccelGroup GtkAccelGroup; typedef struct _GtkPanedChild GtkPanedChild; typedef struct _GtkPaned GtkPaned; typedef struct _GtkVPaned GtkVPaned; typedef struct _GtkHPaned GtkHPaned; typedef struct _GtkOptionMenu GtkOptionMenu; struct _GtkAccelGroup { ACCEL *accel; /* list of ACCEL structures */ gint numaccel; }; struct _GtkSignalType { gchar *name; GtkSignalMarshaller marshaller; GtkSignalFunc default_action; }; struct _GdkColor { gulong pixel; gushort red; gushort green; gushort blue; }; struct _GtkStyle { GdkColor fg[5]; GdkColor bg[5]; }; typedef gboolean (*GtkWndProc) (GtkWidget *widget, UINT msg, WPARAM wParam, LPARAM lParam, gboolean *dodef); struct _GtkClass { gchar *Name; GtkClass *parent; gint Size; GtkSignalType *signals; GtkWndProc wndproc; }; typedef GtkClass *GtkType; struct _GtkObject { GtkClass *klass; GData *object_data; GData *signals; guint32 flags; }; struct _GtkAdjustment { GtkObject object; gfloat value, lower, upper; gfloat step_increment, page_increment, page_size; }; struct _GtkRequisition { gint16 width, height; }; struct _GtkAllocation { gint16 x, y, width, height; }; struct _GtkWidget { GtkObject object; HWND hWnd; GtkRequisition requisition; GtkAllocation allocation; GtkRequisition usize; GtkWidget *parent; }; struct _GtkContainer { GtkWidget widget; GtkWidget *child; guint border_width:16; }; #include "clist.h" struct _GtkMisc { GtkWidget widget; }; struct _GtkProgressBar { GtkWidget widget; GtkProgressBarOrientation orient; gfloat position; }; struct _GtkSeparator { GtkWidget widget; }; struct _GtkHSeparator { GtkSeparator separator; }; struct _GtkVSeparator { GtkSeparator separator; }; struct _GtkMenuItem { GtkWidget widget; GtkMenu *submenu; gint ID; gint accelind; gchar *text; gint check:1; gint active:1; }; struct _GtkMenuShell { GtkWidget widget; HMENU menu; GSList *children; }; struct _GtkMenu { GtkMenuShell menushell; guint active; }; struct _GtkMenuBar { GtkMenuShell menushell; gint LastID; }; typedef struct _GtkEditable GtkEditable; typedef struct _GtkEntry GtkEntry; typedef struct _GtkText GtkText; typedef struct _GtkTextBuffer GtkTextBuffer; typedef struct _GtkSpinButton GtkSpinButton; struct _GtkEditable { GtkWidget widget; GString *text; gint is_editable:1; }; struct _GtkEntry { GtkEditable editable; gint is_visible:1; }; struct _GtkSpinButton { GtkEntry entry; GtkAdjustment *adj; HWND updown; }; struct _GtkTextBuffer { GData *tags; }; struct _GtkText { GtkEditable editable; gint word_wrap:1; GtkTextBuffer *buffer; }; typedef struct _GtkLabel GtkLabel; struct _GtkLabel { GtkWidget widget; gchar *text; }; typedef struct _GtkUrl GtkUrl; struct _GtkUrl { GtkLabel label; gchar *target; }; struct _GtkPanedChild { GtkWidget *widget; gint resize:1; gint shrink:1; }; struct _GtkPaned { GtkContainer container; GtkPanedChild children[2]; GtkAllocation true_alloc; gint handle_size, gutter_size; gint handle_pos; gint Tracking:1; }; struct _GtkVPaned { GtkPaned paned; }; struct _GtkHPaned { GtkPaned paned; }; typedef struct _GtkBox GtkBox; typedef struct _GtkBoxChild GtkBoxChild; typedef struct _GtkHBox GtkHBox; typedef struct _GtkVBox GtkVBox; typedef struct _GtkNotebookChild GtkNotebookChild; typedef struct _GtkNotebook GtkNotebook; typedef struct _GtkItemFactoryEntry GtkItemFactoryEntry; typedef struct _GtkItemFactory GtkItemFactory; struct _GtkItemFactoryEntry { gchar *path; gchar *accelerator; GtkItemFactoryCallback callback; guint callback_action; gchar *item_type; }; struct _GtkItemFactory { GtkObject object; GSList *children; gchar *path; GtkAccelGroup *accel_group; GtkWidget *top_widget; GtkTranslateFunc translate_func; gpointer translate_data; }; struct _GtkBoxChild { GtkWidget *widget; guint expand:1; guint fill:1; }; struct _GtkBox { GtkContainer container; GList *children; guint16 spacing; gint maxreq; guint homogeneous:1; }; struct _GtkHBox { GtkBox box; }; struct _GtkVBox { GtkBox box; }; struct _GtkNotebookChild { GtkWidget *child, *tab_label; HWND tabpage; }; struct _GtkNotebook { GtkContainer container; GSList *children; gint selection; }; typedef struct _GtkBin GtkBin; struct _GtkBin { GtkContainer container; GtkWidget *child; }; typedef struct _GtkFrame GtkFrame; typedef struct _GtkButton GtkButton; typedef struct _GtkToggleButton GtkToggleButton; typedef struct _GtkCheckButton GtkCheckButton; typedef struct _GtkRadioButton GtkRadioButton; struct _GtkFrame { GtkBin bin; gchar *text; GtkRequisition label_req; }; struct _GtkButton { GtkWidget widget; gchar *text; }; struct _GtkOptionMenu { GtkButton button; GtkWidget *menu; guint selection; }; struct _GtkToggleButton { GtkButton button; gboolean toggled; }; struct _GtkCheckButton { GtkToggleButton toggle; }; struct _GtkRadioButton { GtkCheckButton check; GSList *group; }; typedef struct _GtkWindow GtkWindow; struct _GtkWindow { GtkBin bin; GtkWindowType type; gchar *title; gint default_width, default_height; GtkMenuBar *menu_bar; GtkAccelGroup *accel_group; GtkWidget *focus; HACCEL hAccel; guint modal:1; guint allow_shrink:1; guint allow_grow:1; guint auto_shrink:1; }; typedef struct _GtkTable GtkTable; typedef struct _GtkTableChild GtkTableChild; typedef struct _GtkTableRowCol GtkTableRowCol; struct _GtkTable { GtkContainer container; GList *children; GtkTableRowCol *rows, *cols; guint16 nrows, ncols; guint16 column_spacing, row_spacing; guint homogeneous:1; }; struct _GtkTableChild { GtkWidget *widget; guint16 left_attach, right_attach, top_attach, bottom_attach; GtkAttachOptions xoptions, yoptions; }; struct _GtkTableRowCol { guint16 requisition; guint16 allocation; gint16 spacing; }; extern GtkClass GtkContainerClass; extern HFONT defFont; extern HINSTANCE hInst; #define GTK_OBJECT(obj) ((GtkObject *)(obj)) #define GTK_CONTAINER(obj) ((GtkContainer *)(obj)) #define GTK_PANED(obj) ((GtkPaned *)(obj)) #define GTK_VPANED(obj) ((GtkVPaned *)(obj)) #define GTK_HPANED(obj) ((GtkHPaned *)(obj)) #define GTK_BIN(obj) ((GtkBin *)(obj)) #define GTK_FRAME(obj) ((GtkFrame *)(obj)) #define GTK_BOX(obj) ((GtkBox *)(obj)) #define GTK_HBOX(obj) ((GtkHBox *)(obj)) #define GTK_VBOX(obj) ((GtkVBox *)(obj)) #define GTK_NOTEBOOK(obj) ((GtkNotebook *)(obj)) #define GTK_WIDGET(obj) ((GtkWidget *)(obj)) #define GTK_EDITABLE(obj) ((GtkEditable *)(obj)) #define GTK_ENTRY(obj) ((GtkEntry *)(obj)) #define GTK_SPIN_BUTTON(obj) ((GtkSpinButton *)(obj)) #define GTK_TEXT(obj) ((GtkText *)(obj)) #define GTK_WINDOW(obj) ((GtkWindow *)(obj)) #define GTK_BUTTON(obj) ((GtkButton *)(obj)) #define GTK_OPTION_MENU(obj) ((GtkOptionMenu *)(obj)) #define GTK_TOGGLE_BUTTON(obj) ((GtkToggleButton *)(obj)) #define GTK_RADIO_BUTTON(obj) ((GtkRadioButton *)(obj)) #define GTK_CHECK_BUTTON(obj) ((GtkCheckButton *)(obj)) #define GTK_LABEL(obj) ((GtkLabel *)(obj)) #define GTK_URL(obj) ((GtkUrl *)(obj)) #define GTK_TABLE(obj) ((GtkTable *)(obj)) #define GTK_MENU_SHELL(obj) ((GtkMenuShell *)(obj)) #define GTK_MENU_BAR(obj) ((GtkMenuBar *)(obj)) #define GTK_MENU_ITEM(obj) ((GtkMenuItem *)(obj)) #define GTK_CHECK_MENU_ITEM(obj) ((GtkMenuItem *)(obj)) #define GTK_MENU(obj) ((GtkMenu *)(obj)) #define GTK_MISC(obj) ((GtkMisc *)(obj)) #define GTK_PROGRESS_BAR(obj) ((GtkProgressBar *)(obj)) #define GTK_SIGNAL_FUNC(f) ((GtkSignalFunc) f) #define GTK_OBJECT_FLAGS(obj) (GTK_OBJECT(obj)->flags) #define GTK_WIDGET_FLAGS(wid) (GTK_OBJECT_FLAGS(wid)) #define GTK_WIDGET_REALIZED(wid) ((GTK_WIDGET_FLAGS(wid)>K_REALIZED) != 0) #define GTK_WIDGET_VISIBLE(wid) ((GTK_WIDGET_FLAGS(wid)>K_VISIBLE) != 0) #define GTK_WIDGET_SENSITIVE(wid) ((GTK_WIDGET_FLAGS(wid)>K_SENSITIVE) != 0) #define GTK_WIDGET_CAN_FOCUS(wid) ((GTK_WIDGET_FLAGS(wid)>K_CAN_FOCUS) != 0) #define GTK_WIDGET_HAS_FOCUS(wid) ((GTK_WIDGET_FLAGS(wid)>K_HAS_FOCUS) != 0) #define GTK_WIDGET_SET_FLAGS(wid,flag) (GTK_WIDGET_FLAGS(wid) |= (flag)) #define GTK_WIDGET_UNSET_FLAGS(wid,flag) (GTK_WIDGET_FLAGS(wid) &= ~(flag)) typedef int GdkEvent; void gtk_widget_show(GtkWidget *widget); void gtk_widget_show_all(GtkWidget *widget); void gtk_widget_hide_all(GtkWidget *widget); void gtk_widget_hide(GtkWidget *widget); void gtk_widget_destroy(GtkWidget *widget); void gtk_widget_realize(GtkWidget *widget); void gtk_widget_set_sensitive(GtkWidget *widget, gboolean sensitive); void gtk_widget_size_request(GtkWidget *widget, GtkRequisition *requisition); void gtk_widget_set_size(GtkWidget *widget, GtkAllocation *allocation); GtkWidget *gtk_widget_get_ancestor(GtkWidget *widget, GtkType type); GtkWidget *gtk_window_new(GtkWindowType type); void gtk_window_set_title(GtkWindow *window, const gchar *title); void gtk_window_set_default_size(GtkWindow *window, gint width, gint height); void gtk_window_set_transient_for(GtkWindow *window, GtkWindow *parent); void gtk_window_set_policy(GtkWindow *window, gint allow_shrink, gint allow_grow, gint auto_shrink); void gtk_container_add(GtkContainer *container, GtkWidget *widget); void gtk_container_set_border_width(GtkContainer *container, guint border_width); GtkWidget *gtk_button_new_with_label(const gchar *label); GtkWidget *gtk_label_new(const gchar *text); GtkWidget *gtk_hbox_new(gboolean homogeneous, gint spacing); GtkWidget *gtk_vbox_new(gboolean homogeneous, gint spacing); GtkWidget *gtk_check_button_new_with_label(const gchar *label); GtkWidget *gtk_radio_button_new_with_label(GSList *group, const gchar *label); GtkWidget *gtk_radio_button_new_with_label_from_widget(GtkRadioButton *group, const gchar *label); GtkWidget *gtk_frame_new(const gchar *text); void gtk_frame_set_shadow_type(GtkFrame *frame, GtkShadowType type); GtkWidget *gtk_text_new(GtkAdjustment *hadj, GtkAdjustment *vadj); GtkWidget *gtk_entry_new(); void gtk_entry_set_visibility(GtkEntry *entry, gboolean visible); GtkWidget *gtk_table_new(guint rows, guint cols, gboolean homogeneous); void gtk_table_resize(GtkTable *table, guint rows, guint cols); GtkItemFactory *gtk_item_factory_new(GtkType container_type, const gchar *path, GtkAccelGroup *accel_group); void gtk_item_factory_create_item(GtkItemFactory *ifactory, GtkItemFactoryEntry *entry, gpointer callback_data, guint callback_type); void gtk_item_factory_create_items(GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries, gpointer callback_data); GtkWidget *gtk_item_factory_get_widget(GtkItemFactory *ifactory, const gchar *path); GSList *gtk_radio_button_group(GtkRadioButton *radio_button); void gtk_editable_insert_text(GtkEditable *editable, const gchar *new_text, gint new_text_length, gint *position); void gtk_editable_delete_text(GtkEditable *editable, gint start_pos, gint end_pos); gchar *gtk_editable_get_chars(GtkEditable *editable, gint start_pos, gint end_pos); void gtk_editable_set_editable(GtkEditable *editable, gboolean is_editable); void gtk_editable_set_position(GtkEditable *editable, gint position); gint gtk_editable_get_position(GtkEditable *editable); guint gtk_text_get_length(GtkText *text); void gtk_text_set_editable(GtkText *text, gboolean is_editable); void gtk_text_set_word_wrap(GtkText *text, gboolean word_wrap); void gtk_text_freeze(GtkText *text); void gtk_text_thaw(GtkText *text); GtkTextBuffer *gtk_text_view_get_buffer(GtkText *text); void gtk_text_buffer_create_tag(GtkTextBuffer *buffer, const gchar *name, ...); void gtk_table_attach(GtkTable *table, GtkWidget *widget, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach, GtkAttachOptions xoptions, GtkAttachOptions yoptions, guint xpadding, guint ypadding); void gtk_table_attach_defaults(GtkTable *table, GtkWidget *widget, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach); void gtk_table_set_row_spacing(GtkTable *table, guint row, guint spacing); void gtk_table_set_col_spacing(GtkTable *table, guint column, guint spacing); void gtk_table_set_row_spacings(GtkTable *table, guint spacing); void gtk_table_set_col_spacings(GtkTable *table, guint spacing); void gtk_box_pack_start(GtkBox *box, GtkWidget *child, gboolean Expand, gboolean Fill, gint Padding); void gtk_box_pack_start_defaults(GtkBox *box, GtkWidget *child); void gtk_toggle_button_toggled(GtkToggleButton *toggle_button); gboolean gtk_toggle_button_get_active(GtkToggleButton *toggle_button); void gtk_toggle_button_set_active(GtkToggleButton *toggle_button, gboolean is_active); void gtk_main_quit(); void gtk_main(); guint gtk_signal_connect(GtkObject *object, const gchar *name, GtkSignalFunc func, gpointer func_data); guint gtk_signal_connect_object(GtkObject *object, const gchar *name, GtkSignalFunc func, GtkObject *slot_object); void gtk_signal_emit(GtkObject *object, const gchar *name, ...); void SetCustomWndProc(WNDPROC wndproc); void win32_init(HINSTANCE hInstance, HINSTANCE hPrevInstance, char *MainIcon); void gtk_menu_shell_insert(GtkMenuShell *menu_shell, GtkWidget *child, gint position); void gtk_menu_shell_append(GtkMenuShell *menu_shell, GtkWidget *child); void gtk_menu_shell_prepend(GtkMenuShell *menu_shell, GtkWidget *child); GtkWidget *gtk_menu_bar_new(); void gtk_menu_bar_insert(GtkMenuBar *menu_bar, GtkWidget *child, gint position); void gtk_menu_bar_append(GtkMenuBar *menu_bar, GtkWidget *child); void gtk_menu_bar_prepend(GtkMenuBar *menu_bar, GtkWidget *child); GtkWidget *gtk_menu_new(); void gtk_menu_insert(GtkMenu *menu, GtkWidget *child, gint position); void gtk_menu_append(GtkMenu *menu, GtkWidget *child); void gtk_menu_prepend(GtkMenu *menu, GtkWidget *child); GtkWidget *gtk_menu_item_new_with_label(const gchar *label); void gtk_menu_item_set_submenu(GtkMenuItem *menu_item, GtkWidget *submenu); void gtk_check_menu_item_set_active(GtkMenuItem *menu_item, gboolean active); void gtk_menu_set_active(GtkMenu *menu, guint index); GtkWidget *gtk_notebook_new(); void gtk_notebook_append_page(GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label); void gtk_notebook_insert_page(GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label, gint position); void gtk_notebook_set_page(GtkNotebook *notebook, gint page_num); gint gtk_notebook_get_current_page(GtkNotebook *notebook); GtkObject *gtk_adjustment_new(gfloat value, gfloat lower, gfloat upper, gfloat step_increment, gfloat page_increment, gfloat page_size); GtkWidget *gtk_spin_button_new(GtkAdjustment *adjustment, gfloat climb_rate, guint digits); void gdk_input_remove(gint tag); gint gdk_input_add(gint source, GdkInputCondition condition, GdkInputFunction function, gpointer data); GtkWidget *gtk_hseparator_new(); GtkWidget *gtk_vseparator_new(); void gtk_object_set_data(GtkObject *object, const gchar *key, gpointer data); gpointer gtk_object_get_data(GtkObject *object, const gchar *key); GtkAccelGroup *gtk_accel_group_new(); void gtk_accel_group_destroy(GtkAccelGroup *accel_group); void gtk_item_factory_set_translate_func(GtkItemFactory *ifactory, GtkTranslateFunc func, gpointer data, GtkDestroyNotify notify); void gtk_widget_grab_default(GtkWidget *widget); void gtk_widget_grab_focus(GtkWidget *widget); void gtk_window_set_modal(GtkWindow *window, gboolean modal); void gtk_window_add_accel_group(GtkWindow *window, GtkAccelGroup *accel_group); void gtk_entry_set_text(GtkEntry *entry, const gchar *text); void gtk_widget_add_accelerator(GtkWidget *widget, const gchar *accel_signal, GtkAccelGroup *accel_group, guint accel_key, guint accel_mods, GtkAccelFlags accel_flags); void gtk_widget_remove_accelerator(GtkWidget *widget, GtkAccelGroup *accel_group, guint accel_key, guint accel_mods); extern const GtkType GTK_TYPE_WINDOW, GTK_TYPE_MENU_BAR; GtkWidget *gtk_vpaned_new(); GtkWidget *gtk_hpaned_new(); void gtk_paned_add1(GtkPaned *paned, GtkWidget *child); void gtk_paned_add2(GtkPaned *paned, GtkWidget *child); void gtk_paned_pack1(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink); void gtk_paned_pack2(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink); void gtk_paned_set_position(GtkPaned *paned, gint position); #define gtk_container_border_width gtk_container_set_border_width GtkWidget *gtk_hbutton_box_new(); void gtk_hbutton_box_set_spacing_default(gint spacing); #define gtk_vbutton_box_new() gtk_vbox_new(TRUE, 5) #define gtk_hbutton_box_set_layout_default(layout) {} #define gtk_vbutton_box_set_spacing_default(spacing) {} #define gtk_vbutton_box_set_layout_default(layout) {} GtkWidget *gtk_option_menu_new(void); GtkWidget *gtk_option_menu_get_menu(GtkOptionMenu *option_menu); void gtk_option_menu_set_menu(GtkOptionMenu *option_menu, GtkWidget *menu); void gtk_option_menu_set_history(GtkOptionMenu *option_menu, guint index); void gtk_label_set_text(GtkLabel *label, const gchar *str); guint gtk_label_parse_uline(GtkLabel *label, const gchar *str); void gtk_label_get(GtkLabel *label, gchar **str); void gtk_text_set_point(GtkText *text, guint index); void gtk_widget_set_usize(GtkWidget *widget, gint width, gint height); gint gtk_spin_button_get_value_as_int(GtkSpinButton *spin_button); void gtk_spin_button_set_value(GtkSpinButton *spin_button, gfloat value); void gtk_spin_button_set_adjustment(GtkSpinButton *spin_button, GtkAdjustment *adjustment); void gtk_spin_button_update(GtkSpinButton *spin_button); void gtk_misc_set_alignment(GtkMisc *misc, gfloat xalign, gfloat yalign); GtkWidget *gtk_progress_bar_new(); void gtk_progress_bar_set_orientation(GtkProgressBar *pbar, GtkProgressBarOrientation orientation); void gtk_progress_bar_update(GtkProgressBar *pbar, gfloat percentage); guint gtk_timeout_add(guint32 interval, GtkFunction function, gpointer data); void gtk_timeout_remove(guint timeout_handler_id); guint gtk_main_level(void); GtkObject *GtkNewObject(GtkClass *klass); BOOL GetTextSize(HWND hWnd, char *text, LPSIZE lpSize, HFONT hFont); void gtk_container_realize(GtkWidget *widget); void gtk_set_default_font(HWND hWnd); HWND gtk_get_parent_hwnd(GtkWidget *widget); GtkStyle *gtk_style_new(void); void gtk_widget_set_style(GtkWidget *widget, GtkStyle *style); void gtk_window_set_type_hint(GtkWindow *window, GdkWindowTypeHint hint); void gtk_window_set_position(GtkWindow *window, GtkWindowPosition position); /* Functions for handling emitted signals */ void gtk_marshal_BOOL__GPOIN(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args); void gtk_marshal_BOOL__GINT(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args); void gtk_marshal_VOID__VOID(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args); void gtk_marshal_VOID__BOOL(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args); void gtk_marshal_VOID__GPOIN(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args); void gtk_marshal_VOID__GINT(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args); void gtk_marshal_VOID__GINT_GINT_EVENT(GtkObject *object, GSList *actions, GtkSignalFunc default_action, va_list args); /* Private functions */ void gtk_container_set_size(GtkWidget *widget, GtkAllocation *allocation); void MapWidgetOrigin(GtkWidget *widget, POINT *pt); #else /* CYGWIN */ /* Include standard GTK+ headers on Unix systems */ /* We'd like to do this under GTK+2, but we can't until we get rid of clists, gtk_object, etc. #define GTK_DISABLE_DEPRECATED 1 */ #include #include /* Defines for GtkMessageBox options */ #define MB_OK 1 #define MB_CANCEL 2 #define MB_YES 4 #define MB_NO 8 #define MB_MAX 4 #define MB_YESNO (MB_YES|MB_NO) #ifdef HAVE_GLIB2 #define IDOK GTK_RESPONSE_OK #define IDCANCEL GTK_RESPONSE_CANCEL #define IDYES GTK_RESPONSE_YES #define IDNO GTK_RESPONSE_NO #else #define IDOK 1 #define IDCANCEL 2 #define IDYES 4 #define IDNO 8 #endif /* Other flags */ #define MB_IMMRETURN 16 typedef struct _GtkUrl GtkUrl; struct _GtkUrl { GtkLabel *label; gchar *target, *bin; }; #endif /* CYGWIN */ #if CYGWIN || !HAVE_GLIB2 extern const gchar *GTK_STOCK_OK, *GTK_STOCK_CLOSE, *GTK_STOCK_CANCEL, *GTK_STOCK_REFRESH, *GTK_STOCK_YES, *GTK_STOCK_NO, *GTK_STOCK_HELP; typedef enum { GTK_MESSAGE_INFO, GTK_MESSAGE_WARNING, GTK_MESSAGE_QUESTION, GTK_MESSAGE_ERROR } GtkMessageType; #define gtk_text_view_set_editable(text, edit) gtk_text_set_editable(text, edit) #define gtk_text_view_set_wrap_mode(text, wrap) gtk_text_set_word_wrap(text, wrap) #define GTK_WRAP_WORD TRUE #define GTK_TEXT_VIEW(wid) GTK_TEXT(wid) #define GtkTextView GtkText #endif /* Global functions */ gint GtkMessageBox(GtkWidget *parent, const gchar *Text, const gchar *Title, GtkMessageType type, gint Options); GtkWidget *gtk_scrolled_clist_new_with_titles(gint columns, gchar *titles[], GtkWidget **pack_widg); guint SetAccelerator(GtkWidget *labelparent, gchar *Text, GtkWidget *sendto, gchar *signal, GtkAccelGroup *accel_group, gboolean needalt); GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg); void TextViewAppend(GtkTextView *textview, const gchar *text, const gchar *tagname, gboolean scroll); void TextViewClear(GtkTextView *textview); GtkWidget *gtk_url_new(const gchar *text, const gchar *target, const gchar *bin); GtkWidget *NewStockButton(const gchar *label, GtkAccelGroup *accel_group); gchar *GtkGetFile(const GtkWidget *parent, const gchar *oldname, const gchar *title); void DisplayHTML(GtkWidget *parent, const gchar *bin, const gchar *target); gboolean HaveUnicodeSupport(void); #endif /* __GTKPORT_H__ */ dopewars-1.5.12/src/gtkport/Makefile.in0000644001565000007070000003535210355323276014716 00000000000000# Makefile.in generated by automake 1.9.5 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@ SOURCES = $(libgtkport_a_SOURCES) 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@ target_triplet = @target@ subdir = src/gtkport DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libgtkport_a_AR = $(AR) $(ARFLAGS) libgtkport_a_LIBADD = am_libgtkport_a_OBJECTS = gtkport.$(OBJEXT) clist.$(OBJEXT) \ unicodewrap.$(OBJEXT) libgtkport_a_OBJECTS = $(am_libgtkport_a_OBJECTS) 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 = $(libgtkport_a_SOURCES) DIST_SOURCES = $(libgtkport_a_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ noinst_LIBRARIES = libgtkport.a libgtkport_a_SOURCES = gtkport.c gtkport.h clist.c clist.h gtkenums.h \ unicodewrap.c unicodewrap.h INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@ @GLIB_CFLAGS@ 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/gtkport/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/gtkport/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 clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libgtkport.a: $(libgtkport_a_OBJECTS) $(libgtkport_a_DEPENDENCIES) -rm -f libgtkport.a $(libgtkport_a_AR) libgtkport.a $(libgtkport_a_OBJECTS) $(libgtkport_a_LIBADD) $(RANLIB) libgtkport.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtkport.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unicodewrap.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 $(LIBRARIES) installdirs: 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-generic clean-libtool clean-noinstLIBRARIES \ 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-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-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-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-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: dopewars-1.5.12/src/plugins/0000777001565000007070000000000010355323331012704 500000000000000dopewars-1.5.12/src/plugins/sound_esd.c0000644001565000007070000000573010355116554014763 00000000000000/************************************************************************ * sound_esd.c dopewars sound system (ESD/esound driver) * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_ESD #include #include #include #include #include "../sound.h" #define MAXCACHE 6 struct SoundCache { int esdid; gchar *name; } cache[MAXCACHE]; static int sock, nextcache; static gboolean SoundOpen_ESD(void) { int i; sock = esd_open_sound(NULL); for (i = 0; i < MAXCACHE; i++) { cache[i].esdid = -1; cache[i].name = NULL; } nextcache = 0; return TRUE; } static void SoundClose_ESD(void) { int i; for (i = 0; i < MAXCACHE; i++) { g_free(cache[i].name); if (cache[i].esdid != -1) { esd_sample_free(sock, cache[i].esdid); } } esd_close(sock); } static void SoundPlay_ESD(const gchar *snd) { int i; for (i = 0; i < MAXCACHE; i++) { if (cache[i].name && strcmp(cache[i].name, snd) == 0) { esd_sample_play(sock, cache[i].esdid); return; } } if (cache[nextcache].esdid != -1) { esd_sample_free(sock, cache[nextcache].esdid); g_free(cache[nextcache].name); } cache[nextcache].esdid = esd_file_cache(sock, PACKAGE, snd); cache[nextcache].name = g_strdup(snd); esd_sample_play(sock, cache[nextcache].esdid); nextcache = (nextcache + 1) % MAXCACHE; } SoundDriver *sound_esd_init(void) { static SoundDriver driver; driver.name = "esd"; driver.open = SoundOpen_ESD; driver.close = SoundClose_ESD; driver.play = SoundPlay_ESD; return &driver; } #endif /* HAVE_ESD */ dopewars-1.5.12/src/plugins/sound_sdl.h0000644001565000007070000000340610355116554014775 00000000000000/************************************************************************ * sound_sdl.h Header file for dopewars sound system (SDL driver) * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_SOUND_SDL_H__ #define __DP_SOUND_SDL_H__ #ifdef HAVE_CONFIG_H #include #endif #include "sound.h" #ifdef HAVE_SDL_MIXER SoundDriver *sound_sdl_init(void); #endif /* HAVE_SDL_MIXER */ #endif /* __DP_SOUND_SDL_H__ */ dopewars-1.5.12/src/plugins/sound_sdl.c0000644001565000007070000000654510355116554014777 00000000000000/************************************************************************ * sound_sdl.c dopewars sound system (SDL driver) * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_SDL_MIXER #include #include #include #include #include #include "../sound.h" struct ChannelStruct { Mix_Chunk *chunk; gchar *name; } channel[MIX_CHANNELS]; static gboolean SoundOpen_SDL(void) { const int audio_rate = MIX_DEFAULT_FREQUENCY; const int audio_format = MIX_DEFAULT_FORMAT; const int audio_channels = 2; int i; if (SDL_Init(SDL_INIT_AUDIO) < 0) { return FALSE; } if (Mix_OpenAudio(audio_rate, audio_format, audio_channels, 4096) < 0) { SDL_Quit(); return FALSE; } Mix_AllocateChannels(MIX_CHANNELS); for (i = 0; i < MIX_CHANNELS; i++) { channel[i].chunk = NULL; channel[i].name = NULL; } return TRUE; } static void SoundClose_SDL(void) { int i; for (i = 0; i < MIX_CHANNELS; i++) { g_free(channel[i].name); if (channel[i].chunk) { Mix_FreeChunk(channel[i].chunk); } } Mix_CloseAudio(); SDL_Quit(); } static void SoundPlay_SDL(const gchar *snd) { int i, chan_num; Mix_Chunk *chunk; for (i = 0; i < MIX_CHANNELS; i++) { if (channel[i].name && strcmp(channel[i].name, snd) == 0) { Mix_PlayChannel(-1, channel[i].chunk, 0); return; } } chunk = Mix_LoadWAV(snd); if (!chunk) { return; } chan_num = Mix_PlayChannel(-1, chunk, 0); if (chan_num < 0) { Mix_FreeChunk(chunk); return; } if (channel[chan_num].chunk) { Mix_FreeChunk(channel[chan_num].chunk); g_free(channel[chan_num].name); } channel[chan_num].chunk = chunk; channel[chan_num].name = g_strdup(snd); } SoundDriver *sound_sdl_init(void) { static SoundDriver driver; driver.name = "sdl"; driver.open = SoundOpen_SDL; driver.close = SoundClose_SDL; driver.play = SoundPlay_SDL; return &driver; } #endif /* HAVE_SDL_MIXER */ dopewars-1.5.12/src/plugins/Makefile.am0000644001565000007070000000263007554753136014676 00000000000000noinst_LTLIBRARIES = libsound_esd.la libsound_sdl.la libsound_winmm.la libsound_esd_la_SOURCES = sound_esd.c sound_esd.h libsound_esd_la_LDFLAGS = @ESD_LIBS@ libsound_sdl_la_SOURCES = sound_sdl.c sound_sdl.h libsound_sdl_la_LDFLAGS = @SDL_LIBS@ libsound_winmm_la_SOURCES = sound_winmm.c sound_winmm.h LIBS = @GLIB_LIBS@ INCLUDES = @SOUND_CFLAGS@ @GLIB_CFLAGS@ LINKNOO = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) if PLUGINS PLUGINDIR = ${DESTDIR}${plugindir} if ESD ESD_SO = .libs/libsound_esd.so endif if SDL SDL_SO = .libs/libsound_sdl.so endif PLUGINS = $(ESD_SO) $(SDL_SO) all-local: ${PLUGINS} .libs/libsound_esd.so: $(libsound_esd_la_OBJECTS) $(LINKNOO) -o libsound_esd.la -rpath $(libdir) $(libsound_esd_la_LDFLAGS) $(libsound_esd_la_OBJECTS) $(libsound_esd_la_LIBADD) $(LIBS) .libs/libsound_sdl.so: $(libsound_sdl_la_OBJECTS) $(LINKNOO) -o libsound_sdl.la -rpath $(libdir) $(libsound_sdl_la_LDFLAGS) $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_LIBADD) $(LIBS) .libs/libsound_winmm.so: $(libsound_winmm_la_OBJECTS) $(LINKNOO) -o libsound_winmm.la -rpath $(libdir) $(libsound_winmm_la_LDFLAGS) $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_LIBADD) $(LIBS) install-exec-am: ${mkinstalldirs} ${PLUGINDIR} for plug in ${PLUGINS}; do \ ${INSTALL} $${plug} ${PLUGINDIR}; \ done uninstall-local: for plug in ${PLUGINS}; do \ /bin/rm -f ${PLUGINDIR}/`basename $${plug}`; \ done endif dopewars-1.5.12/src/plugins/sound_winmm.c0000644001565000007070000000415010355116554015332 00000000000000/************************************************************************ * sound_winmm.c dopewars sound system (Windows MM driver) * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_WINMM #include #include #include #include "../sound.h" static gboolean SoundOpen_WinMM(void) { return TRUE; } static void SoundClose_WinMM(void) { sndPlaySound(NULL, 0); } static void SoundPlay_WinMM(const gchar *snd) { sndPlaySound(snd, SND_ASYNC); } SoundDriver *sound_winmm_init(void) { static SoundDriver driver; driver.name = "winmm"; driver.open = SoundOpen_WinMM; driver.close = SoundClose_WinMM; driver.play = SoundPlay_WinMM; return &driver; } #endif /* HAVE_WINMM */ dopewars-1.5.12/src/plugins/sound_winmm.h0000644001565000007070000000340610355116554015342 00000000000000/************************************************************************ * sound_winmm.h Header file for dopewars sound system (WinMM driver) * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_SOUND_WINMM_H__ #define __DP_SOUND_WINMM_H__ #ifdef HAVE_CONFIG_H #include #endif #include "sound.h" #ifdef HAVE_WINMM SoundDriver *sound_winmm_init(void); #endif /* HAVE_WINMM */ #endif /* __DP_SOUND_WINMM_H__ */ dopewars-1.5.12/src/plugins/sound_esd.h0000644001565000007070000000337210355116554014770 00000000000000/************************************************************************ * sound_esd.h Header file for dopewars sound system (ESD driver) * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_SOUND_ESD_H__ #define __DP_SOUND_ESD_H__ #ifdef HAVE_CONFIG_H #include #endif #include "sound.h" #ifdef HAVE_ESD SoundDriver *sound_esd_init(void); #endif /* HAVE_ESD */ #endif /* __DP_SOUND_ESD_H__ */ dopewars-1.5.12/src/plugins/Makefile.in0000644001565000007070000004226110355323277014703 00000000000000# Makefile.in generated by automake 1.9.5 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@ SOURCES = $(libsound_esd_la_SOURCES) $(libsound_sdl_la_SOURCES) $(libsound_winmm_la_SOURCES) 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@ target_triplet = @target@ subdir = src/plugins DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libsound_esd_la_LIBADD = am_libsound_esd_la_OBJECTS = sound_esd.lo libsound_esd_la_OBJECTS = $(am_libsound_esd_la_OBJECTS) libsound_sdl_la_LIBADD = am_libsound_sdl_la_OBJECTS = sound_sdl.lo libsound_sdl_la_OBJECTS = $(am_libsound_sdl_la_OBJECTS) libsound_winmm_la_LIBADD = am_libsound_winmm_la_OBJECTS = sound_winmm.lo libsound_winmm_la_OBJECTS = $(am_libsound_winmm_la_OBJECTS) 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 = $(libsound_esd_la_SOURCES) $(libsound_sdl_la_SOURCES) \ $(libsound_winmm_la_SOURCES) DIST_SOURCES = $(libsound_esd_la_SOURCES) $(libsound_sdl_la_SOURCES) \ $(libsound_winmm_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @GLIB_LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ noinst_LTLIBRARIES = libsound_esd.la libsound_sdl.la libsound_winmm.la libsound_esd_la_SOURCES = sound_esd.c sound_esd.h libsound_esd_la_LDFLAGS = @ESD_LIBS@ libsound_sdl_la_SOURCES = sound_sdl.c sound_sdl.h libsound_sdl_la_LDFLAGS = @SDL_LIBS@ libsound_winmm_la_SOURCES = sound_winmm.c sound_winmm.h INCLUDES = @SOUND_CFLAGS@ @GLIB_CFLAGS@ LINKNOO = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) @PLUGINS_TRUE@PLUGINDIR = ${DESTDIR}${plugindir} @ESD_TRUE@@PLUGINS_TRUE@ESD_SO = .libs/libsound_esd.so @PLUGINS_TRUE@@SDL_TRUE@SDL_SO = .libs/libsound_sdl.so @PLUGINS_TRUE@PLUGINS = $(ESD_SO) $(SDL_SO) 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/plugins/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/plugins/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 clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libsound_esd.la: $(libsound_esd_la_OBJECTS) $(libsound_esd_la_DEPENDENCIES) $(LINK) $(libsound_esd_la_LDFLAGS) $(libsound_esd_la_OBJECTS) $(libsound_esd_la_LIBADD) $(LIBS) libsound_sdl.la: $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_DEPENDENCIES) $(LINK) $(libsound_sdl_la_LDFLAGS) $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_LIBADD) $(LIBS) libsound_winmm.la: $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_DEPENDENCIES) $(LINK) $(libsound_winmm_la_LDFLAGS) $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_esd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_sdl.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_winmm.Plo@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 @PLUGINS_FALSE@all-local: all-am: Makefile $(LTLIBRARIES) all-local installdirs: 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." @PLUGINS_FALSE@uninstall-local: clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 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: @PLUGINS_FALSE@install-exec-am: 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-info-am uninstall-local .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-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-info-am uninstall-local @PLUGINS_TRUE@all-local: ${PLUGINS} @PLUGINS_TRUE@.libs/libsound_esd.so: $(libsound_esd_la_OBJECTS) @PLUGINS_TRUE@ $(LINKNOO) -o libsound_esd.la -rpath $(libdir) $(libsound_esd_la_LDFLAGS) $(libsound_esd_la_OBJECTS) $(libsound_esd_la_LIBADD) $(LIBS) @PLUGINS_TRUE@.libs/libsound_sdl.so: $(libsound_sdl_la_OBJECTS) @PLUGINS_TRUE@ $(LINKNOO) -o libsound_sdl.la -rpath $(libdir) $(libsound_sdl_la_LDFLAGS) $(libsound_sdl_la_OBJECTS) $(libsound_sdl_la_LIBADD) $(LIBS) @PLUGINS_TRUE@.libs/libsound_winmm.so: $(libsound_winmm_la_OBJECTS) @PLUGINS_TRUE@ $(LINKNOO) -o libsound_winmm.la -rpath $(libdir) $(libsound_winmm_la_LDFLAGS) $(libsound_winmm_la_OBJECTS) $(libsound_winmm_la_LIBADD) $(LIBS) @PLUGINS_TRUE@install-exec-am: @PLUGINS_TRUE@ ${mkinstalldirs} ${PLUGINDIR} @PLUGINS_TRUE@ for plug in ${PLUGINS}; do \ @PLUGINS_TRUE@ ${INSTALL} $${plug} ${PLUGINDIR}; \ @PLUGINS_TRUE@ done @PLUGINS_TRUE@uninstall-local: @PLUGINS_TRUE@ for plug in ${PLUGINS}; do \ @PLUGINS_TRUE@ /bin/rm -f ${PLUGINDIR}/`basename $${plug}`; \ @PLUGINS_TRUE@ done # 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: dopewars-1.5.12/src/dopewars-shot.png0000755001565000007070000000047507305052400014452 00000000000000‰PNG  IHDR/0s‰>ÑgAMA± üaPLTEÿÿÿÀÀÿÿÿÀÿÿÀÿÑðQ4tRNS@æØfbKGDˆH pHYsÂÂ(J€tIMEÑ'Q/?£‘IDATxœÍÔÁ à PË,‚0½GN'Ï ºÿ u•ëÿ‘šCù< ÈA) õ_Јh¿V ËeuŒªMÜN߉E DDDòúDˆn‘½·4±€‰=‚8!ÓVL|A—¯Û´@ ’Xi LÌ‹aRÅ1!$ë ᯵W|4&Èþƒÿàºú'øz³ÌãIEND®B`‚dopewars-1.5.12/src/nls.h0000644001565000007070000000404010355116554012111 00000000000000/************************************************************************ * nls.h Header file for NLS (internationalization) defines * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_NLS_H__ #define __DP_NLS_H__ #ifdef HAVE_CONFIG_H # include #endif #ifdef ENABLE_NLS # include # include # define _(String) gettext (String) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else # define gettext(String) (String) # define dgettext(Domain,Message) (Message) # define dcgettext(Domain,Message,Type) (Message) # define _(String) (String) # define N_(String) (String) #endif #endif /* __DP_NLS_H__ */ dopewars-1.5.12/src/dopewars.c0000644001565000007070000030640210355322765013146 00000000000000/************************************************************************ * dopewars.c dopewars - general purpose routines and init * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #define _GNU_SOURCE #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_GETOPT_LONG #include #endif #include #include #include #include #include "configfile.h" #include "convert.h" #include "dopewars.h" #include "admin.h" #include "log.h" #include "message.h" #include "nls.h" #include "serverside.h" #include "sound.h" #include "tstring.h" #include "AIPlayer.h" #include "util.h" #include "winmain.h" #ifdef CURSES_CLIENT #include "curses_client/curses_client.h" #endif #ifdef GUI_CLIENT #include "gui_client/gtk_client.h" #endif #ifdef GUI_SERVER #include "gtkport/gtkport.h" #endif int ClientSock, ListenSock; gboolean Network, Client, Server, WantAntique = FALSE, UseSounds = TRUE; /* * dopewars acting as standalone TCP server: * Network=Server=TRUE Client=FALSE * dopewars acting as client, connecting to standalone server: * Network=Client=TRUE Server=FALSE * dopewars in single-player or antique mode: * Network=Server=Client=FALSE */ unsigned Port = 7902; gboolean Sanitized, ConfigVerbose, DrugValue, Antique = FALSE; gchar *HiScoreFile = NULL, *ServerName = NULL; gchar *ServerMOTD = NULL, *BindAddress = NULL, *PlayerName = NULL; struct DATE StartDate = { 1, 12, 1984 }; #ifdef CYGWIN gboolean MinToSysTray = TRUE; #else gboolean Daemonize = TRUE; #endif #ifdef CYGWIN #define SNDPATH "sounds\\19.5degs\\" #else #define SNDPATH DPDATADIR"/dopewars/" #endif gchar *WebBrowser = NULL; gint ConfigErrors = 0; int NumLocation = 0, NumGun = 0, NumCop = 0, NumDrug = 0, NumSubway = 0; int NumPlaying = 0, NumStoppedTo = 0; int DebtInterest = 10, BankInterest = 5; Player Noone; int LoanSharkLoc, BankLoc, GunShopLoc, RoughPubLoc; int DrugSortMethod = DS_ATOZ; int FightTimeout = 5, IdleTimeout = 14400, ConnectTimeout = 300; int MaxClients = 20, AITurnPause = 5; price_t StartCash = 2000, StartDebt = 5500; GSList *ServerList = NULL; GScannerConfig ScannerConfig = { " \t\n", /* Ignore these characters */ /* Valid characters for starting an identifier */ G_CSET_a_2_z "_" G_CSET_A_2_Z, /* Valid characters for continuing an identifier */ G_CSET_a_2_z "._-0123456789" G_CSET_A_2_Z, "#\n", /* Single line comments start with # and * end with \n */ FALSE, /* Are symbols case sensitive? */ TRUE, /* Ignore C-style comments? */ TRUE, /* Ignore single-line comments? */ TRUE, /* Treat C-style comments as single tokens * - do not break into words? */ TRUE, /* Read identifiers as tokens? */ TRUE, /* Read single-character identifiers as * 1-character strings? */ TRUE, /* Allow the parsing of NULL as the * G_TOKEN_IDENTIFIER_NULL ? */ FALSE, /* Allow symbols (defined by * g_scanner_scope_add_symbol) ? */ TRUE, /* Allow binary numbers in 0b1110 format ? */ TRUE, /* Allow octal numbers in C-style e.g. 034 ? */ FALSE, /* Allow floats? */ TRUE, /* Allow hex numbers in C-style e.g. 0xFF ? */ TRUE, /* Allow hex numbers in $FF format ? */ TRUE, /* Allow '' strings (no escaping) ? */ TRUE, /* Allow "" strings (\ escapes parsed) ? */ TRUE, /* Convert octal, binary and hex to int? */ FALSE, /* Convert ints to floats? */ FALSE, /* Treat all identifiers as strings? */ TRUE, /* Leave single characters (e.g. {,=) * unchanged, instead of returning * G_TOKEN_CHAR ? */ FALSE, /* Replace read symbols with the token * given by their value, instead of * G_TOKEN_SYMBOL ? */ FALSE /* scope_0_fallback... */ }; struct LOCATION StaticLocation, *Location = NULL; struct DRUG StaticDrug, *Drug = NULL; struct GUN StaticGun, *Gun = NULL; struct COP StaticCop, *Cop = NULL; struct NAMES Names = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; struct SOUNDS Sounds = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; /* N.B. The slightly over-enthusiastic comments here are for the benefit * of translators ;) */ struct NAMES DefaultNames = { /* Name of a single bitch - if you need to use different words for * "bitch" depending on where in the sentence it occurs (e.g. subject or * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. * This notation can be used for most of the translatable strings in * dopewars. */ N_("bitch"), /* Word used for two or more bitches */ N_("bitches"), /* Word used for a single gun */ N_("gun"), /* Word used for two or more guns */ N_("guns"), /* Word used for a single drug */ N_("drug"), /* Word used for two or more drugs */ N_("drugs"), /* String for displaying the game date or turn number. This is passed * to the strftime() function, with the exception that %T is used to * mean the turn number rather than the calendar date. */ N_("%m-%d-%Y"), /* Names of the loan shark, the bank, the gun shop, and the pub, * respectively */ N_("the Loan Shark"), N_("the Bank"), N_("Dan\'s House of Guns"), N_("the pub") }; struct CURRENCY Currency = { NULL, TRUE }; struct PRICES Prices = { 20000, 10000 }; struct BITCH Bitch = { 50000, 150000 }; #ifdef NETWORKING struct METASERVER MetaServer = { FALSE, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, FALSE, NULL, NULL, NULL, NULL }; struct METASERVER DefaultMetaServer = { TRUE, "dopewars.sourceforge.net", 80, "", 8080, "/metaserver.php", "", "", "dopewars server", FALSE, "", "", "", "" }; SocksServer Socks = { NULL, 0, 0, FALSE, NULL, NULL, NULL }; gboolean UseSocks; #endif int NumTurns = 31; int PlayerArmour = 100, BitchArmour = 50; struct LOG Log; struct GLOBALS Globals[] = { /* The following strings are the helptexts for all the options that can * be set in a dopewars configuration file, or in the server. See * doc/configfile.html for more detailed explanations. */ {&Port, NULL, NULL, NULL, NULL, "Port", N_("Network port to connect to"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 65535}, {NULL, NULL, NULL, &HiScoreFile, NULL, "HiScoreFile", N_("Name of the high score file"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &ServerName, NULL, "Server", N_("Name of the server to connect to"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &ServerMOTD, NULL, "ServerMOTD", N_("Server's welcome message of the day"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &BindAddress, NULL, "BindAddress", N_("Network address for the server to listen on"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #ifdef NETWORKING {NULL, &UseSocks, NULL, NULL, NULL, "Socks.Active", N_("TRUE if a SOCKS server should be used for networking"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #ifndef CYGWIN {NULL, &Socks.numuid, NULL, NULL, NULL, "Socks.NumUID", N_("TRUE if numeric user IDs should be used for SOCKS4"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #endif {NULL, NULL, NULL, &Socks.user, NULL, "Socks.User", N_("If not blank, the username to use for SOCKS4"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Socks.name, NULL, "Socks.Name", N_("The hostname of a SOCKS server to use"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&Socks.port, NULL, NULL, NULL, NULL, "Socks.Port", N_("The port number of a SOCKS server to use"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 65535}, {&Socks.version, NULL, NULL, NULL, NULL, "Socks.Version", N_("The version of the SOCKS protocol to use (4 or 5)"), NULL, NULL, 0, "", NULL, NULL, FALSE, 4, 5}, {NULL, NULL, NULL, &Socks.authuser, NULL, "Socks.Auth.User", N_("Username for SOCKS5 authentication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Socks.authpassword, NULL, "Socks.Auth.Password", N_("Password for SOCKS5 authentication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &MetaServer.Active, NULL, NULL, NULL, "MetaServer.Active", N_("TRUE if server should report to a metaserver"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.Name, NULL, "MetaServer.Name", N_("Metaserver name to report/get server details to/from"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&MetaServer.Port, NULL, NULL, NULL, NULL, "MetaServer.Port", N_("Port for metaserver communication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 65535}, {NULL, NULL, NULL, &MetaServer.ProxyName, NULL, "MetaServer.ProxyName", N_("Name of a proxy for metaserver communication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&MetaServer.ProxyPort, NULL, NULL, NULL, NULL, "MetaServer.ProxyPort", N_("Port for communicating with the proxy server"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 65535}, {NULL, NULL, NULL, &MetaServer.Path, NULL, "MetaServer.Path", N_("Path of the script on the metaserver"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.LocalName, NULL, "MetaServer.LocalName", N_("Preferred hostname of your server machine"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.Password, NULL, "MetaServer.Password", N_("Authentication for LocalName with the metaserver"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.Comment, NULL, "MetaServer.Comment", N_("Server description, reported to the metaserver"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &MetaServer.UseSocks, NULL, NULL, NULL, "MetaServer.UseSocks", N_("If TRUE, use SOCKS for metaserver communication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.authuser, NULL, "MetaServer.Auth.User", N_("Username for HTTP Basic authentication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.authpassword, NULL, "MetaServer.Auth.Password", N_("Password for HTTP Basic authentication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.proxyuser, NULL, "MetaServer.Proxy.User", N_("Username for HTTP Basic proxy authentication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &MetaServer.proxypassword, NULL, "MetaServer.Proxy.Password", N_("Password for HTTP Basic proxy authentication"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #endif /* NETWORKING */ #ifdef CYGWIN {NULL, &MinToSysTray, NULL, NULL, NULL, "MinToSysTray", N_("If TRUE, the server minimizes to the System Tray"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #else {NULL, &Daemonize, NULL, NULL, NULL, "Daemonize", N_("If TRUE, the server runs in the background"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &WebBrowser, NULL, "WebBrowser", N_("The command used to start your web browser"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, #endif {&NumTurns, NULL, NULL, NULL, NULL, "NumTurns", N_("No. of game turns (if 0, game never ends)"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&StartDate.day, NULL, NULL, NULL, NULL, "StartDate.Day", N_("Day of the month on which the game starts"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 31}, {&StartDate.month, NULL, NULL, NULL, NULL, "StartDate.Month", N_("Month in which the game starts"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 12}, {&StartDate.year, NULL, NULL, NULL, NULL, "StartDate.Year", N_("Year in which the game starts"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, &Currency.Symbol, NULL, "Currency.Symbol", N_("The currency symbol (e.g. $)"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &Currency.Prefix, NULL, NULL, NULL, "Currency.Prefix", N_("If TRUE, the currency symbol precedes prices"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Log.File, NULL, "Log.File", N_("File to write log messages to"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&Log.Level, NULL, NULL, NULL, NULL, "Log.Level", N_("Controls the number of log messages produced"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 5}, {NULL, NULL, NULL, &Log.Timestamp, NULL, "Log.Timestamp", N_("strftime() format string for log timestamps"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &Sanitized, NULL, NULL, NULL, "Sanitized", N_("Random events are sanitized"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &DrugValue, NULL, NULL, NULL, "DrugValue", N_("TRUE if the value of bought drugs should be saved"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &ConfigVerbose, NULL, NULL, NULL, "ConfigVerbose", N_("Be verbose in processing config file"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&NumLocation, NULL, NULL, NULL, NULL, "NumLocation", N_("Number of locations in the game"), (void **)(&Location), NULL, sizeof(struct LOCATION), "", NULL, ResizeLocations, FALSE, 1, -1}, {&NumCop, NULL, NULL, NULL, NULL, "NumCop", N_("Number of types of cop in the game"), (void **)(&Cop), NULL, sizeof(struct COP), "", NULL, ResizeCops, FALSE, 0, -1}, {&NumGun, NULL, NULL, NULL, NULL, "NumGun", N_("Number of guns in the game"), (void **)(&Gun), NULL, sizeof(struct GUN), "", NULL, ResizeGuns, FALSE, 0, -1}, {&NumDrug, NULL, NULL, NULL, NULL, "NumDrug", N_("Number of drugs in the game"), (void **)(&Drug), NULL, sizeof(struct DRUG), "", NULL, ResizeDrugs, FALSE, 1, -1}, {&LoanSharkLoc, NULL, NULL, NULL, NULL, "LoanShark", N_("Location of the Loan Shark"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&BankLoc, NULL, NULL, NULL, NULL, "Bank", N_("Location of the bank"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&GunShopLoc, NULL, NULL, NULL, NULL, "GunShop", N_("Location of the gun shop"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&RoughPubLoc, NULL, NULL, NULL, NULL, "RoughPub", N_("Location of the pub"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&DebtInterest, NULL, NULL, NULL, NULL, "DebtInterest", N_("Daily interest rate on the loan shark debt"), NULL, NULL, 0, "", NULL, NULL, FALSE, -100, -200}, {&BankInterest, NULL, NULL, NULL, NULL, "BankInterest", N_("Daily interest rate on your bank balance"), NULL, NULL, 0, "", NULL, NULL, FALSE, -100, -200}, {NULL, NULL, NULL, &Names.LoanSharkName, NULL, "LoanSharkName", N_("Name of the loan shark"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.BankName, NULL, "BankName", N_("Name of the bank"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.GunShopName, NULL, "GunShopName", N_("Name of the gun shop"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.RoughPubName, NULL, "RoughPubName", N_("Name of the pub"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, &UseSounds, NULL, NULL, NULL, "UseSounds", N_("TRUE if sounds should be enabled"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.FightHit, NULL, "Sounds.FightHit", N_("Sound file played for a gun \"hit\""), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.FightMiss, NULL, "Sounds.FightMiss", N_("Sound file played for a gun \"miss\""), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.FightReload, NULL, "Sounds.FightReload", N_("Sound file played when guns are reloaded"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EnemyBitchKilled, NULL, "Sounds.EnemyBitchKilled", N_("Sound file played when an enemy bitch/deputy is killed"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.BitchKilled, NULL, "Sounds.BitchKilled", N_("Sound file played when one of your bitches is killed"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EnemyKilled, NULL, "Sounds.EnemyKilled", N_("Sound file played when another player or cop is killed"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.Killed, NULL, "Sounds.Killed", N_("Sound file played when you are killed"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EnemyFailFlee, NULL, "Sounds.EnemyFailFlee", N_("Sound file played when a player tries to escape, but fails"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.FailFlee, NULL, "Sounds.FailFlee", N_("Sound file played when you try to escape, but fail"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EnemyFlee, NULL, "Sounds.EnemyFlee", N_("Sound file played when a player successfully escapes"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.Flee, NULL, "Sounds.Flee", N_("Sound file played when you successfully escape"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.Jet, NULL, "Sounds.Jet", N_("Sound file played on arriving at a new location"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.TalkToAll, NULL, "Sounds.TalkToAll", N_("Sound file played when a player sends a public chat message"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.TalkPrivate, NULL, "Sounds.TalkPrivate", N_("Sound file played when a player sends a private chat message"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.JoinGame, NULL, "Sounds.JoinGame", N_("Sound file played when a player joins the game"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.LeaveGame, NULL, "Sounds.LeaveGame", N_("Sound file played when a player leaves the game"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.StartGame, NULL, "Sounds.StartGame", N_("Sound file played at the start of the game"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Sounds.EndGame, NULL, "Sounds.EndGame", N_("Sound file played at the end of the game"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&DrugSortMethod, NULL, NULL, NULL, NULL, "DrugSortMethod", N_("Sort key for listing available drugs"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 4}, {&FightTimeout, NULL, NULL, NULL, NULL, "FightTimeout", N_("No. of seconds in which to return fire"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&IdleTimeout, NULL, NULL, NULL, NULL, "IdleTimeout", N_("Players are disconnected after this many seconds"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&ConnectTimeout, NULL, NULL, NULL, NULL, "ConnectTimeout", N_("Time in seconds for connections to be made or broken"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&MaxClients, NULL, NULL, NULL, NULL, "MaxClients", N_("Maximum number of TCP/IP connections"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {&AITurnPause, NULL, NULL, NULL, NULL, "AITurnPause", N_("Seconds between turns of AI players"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &StartCash, NULL, NULL, "StartCash", N_("Amount of cash that each player starts with"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &StartDebt, NULL, NULL, "StartDebt", N_("Amount of debt that each player starts with"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, &StaticLocation.Name, NULL, "Name", N_("Name of each location"), (void **)(&Location), &StaticLocation, sizeof(struct LOCATION), "Location", &NumLocation, NULL, FALSE, 0, -1}, {&(StaticLocation.PolicePresence), NULL, NULL, NULL, NULL, "PolicePresence", N_("Police presence at each location (%)"), (void **)(&Location), &StaticLocation, sizeof(struct LOCATION), "Location", &NumLocation, NULL, FALSE, 0, 100}, {&(StaticLocation.MinDrug), NULL, NULL, NULL, NULL, "MinDrug", N_("Minimum number of drugs at each location"), (void **)(&Location), &StaticLocation, sizeof(struct LOCATION), "Location", &NumLocation, NULL, FALSE, 1, -1}, {&(StaticLocation.MaxDrug), NULL, NULL, NULL, NULL, "MaxDrug", N_("Maximum number of drugs at each location"), (void **)(&Location), &StaticLocation, sizeof(struct LOCATION), "Location", &NumLocation, NULL, FALSE, 1, -1}, {&PlayerArmour, NULL, NULL, NULL, NULL, "PlayerArmour", N_("% resistance to gunshots of each player"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 100}, {&BitchArmour, NULL, NULL, NULL, NULL, "BitchArmour", N_("% resistance to gunshots of each bitch"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, 100}, {NULL, NULL, NULL, &StaticCop.Name, NULL, "Name", N_("Name of each cop"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &StaticCop.DeputyName, NULL, "DeputyName", N_("Name of each cop's deputy"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &StaticCop.DeputiesName, NULL, "DeputiesName", N_("Name of each cop's deputies"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 0}, {&StaticCop.Armour, NULL, NULL, NULL, NULL, "Armour", N_("% resistance to gunshots of each cop"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 1, 100}, {&StaticCop.DeputyArmour, NULL, NULL, NULL, NULL, "DeputyArmour", N_("% resistance to gunshots of each deputy"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 1, 100}, {&StaticCop.AttackPenalty, NULL, NULL, NULL, NULL, "AttackPenalty", N_("Attack penalty relative to a player"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 100}, {&StaticCop.DefendPenalty, NULL, NULL, NULL, NULL, "DefendPenalty", N_("Defend penalty relative to a player"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, 100}, {&StaticCop.MinDeputies, NULL, NULL, NULL, NULL, "MinDeputies", N_("Minimum number of accompanying deputies"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {&StaticCop.MaxDeputies, NULL, NULL, NULL, NULL, "MaxDeputies", N_("Maximum number of accompanying deputies"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {&StaticCop.GunIndex, NULL, NULL, NULL, NULL, "GunIndex", N_("Zero-based index of the gun that cops are armed with"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {&StaticCop.CopGun, NULL, NULL, NULL, NULL, "CopGun", N_("Number of guns that each cop carries"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {&StaticCop.DeputyGun, NULL, NULL, NULL, NULL, "DeputyGun", N_("Number of guns that each deputy carries"), (void **)(&Cop), &StaticCop, sizeof(struct COP), "Cop", &NumCop, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, &StaticDrug.Name, NULL, "Name", N_("Name of each drug"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 0, 0}, {NULL, NULL, &(StaticDrug.MinPrice), NULL, NULL, "MinPrice", N_("Minimum normal price of each drug"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 1, -1}, {NULL, NULL, &(StaticDrug.MaxPrice), NULL, NULL, "MaxPrice", N_("Maximum normal price of each drug"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 1, -1}, {NULL, &(StaticDrug.Cheap), NULL, NULL, NULL, "Cheap", N_("TRUE if this drug can be specially cheap"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 0, 0}, {NULL, &(StaticDrug.Expensive), NULL, NULL, NULL, "Expensive", N_("TRUE if this drug can be specially expensive"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &StaticDrug.CheapStr, NULL, "CheapStr", N_("Message displayed when this drug is specially cheap"), (void **)(&Drug), &StaticDrug, sizeof(struct DRUG), "Drug", &NumDrug, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Drugs.ExpensiveStr1, NULL, "Drugs.ExpensiveStr1", N_("Format string used for expensive drugs 50% of time"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Drugs.ExpensiveStr2, NULL, "Drugs.ExpensiveStr2", N_("Format string used for expensive drugs 50% of time"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {&(Drugs.CheapDivide), NULL, NULL, NULL, NULL, "Drugs.CheapDivide", N_("Divider for drug price when it's specially cheap"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, -1}, {&(Drugs.ExpensiveMultiply), NULL, NULL, NULL, NULL, "Drugs.ExpensiveMultiply", N_("Multiplier for specially expensive drug prices"), NULL, NULL, 0, "", NULL, NULL, FALSE, 1, -1}, {NULL, NULL, NULL, &StaticGun.Name, NULL, "Name", N_("Name of each gun"), (void **)(&Gun), &StaticGun, sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, 0}, {NULL, NULL, &(StaticGun.Price), NULL, NULL, "Price", N_("Price of each gun"), (void **)(&Gun), &StaticGun, sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, 0}, {&(StaticGun.Space), NULL, NULL, NULL, NULL, "Space", N_("Space taken by each gun"), (void **)(&Gun), &StaticGun, sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, -1}, {&(StaticGun.Damage), NULL, NULL, NULL, NULL, "Damage", N_("Damage done by each gun"), (void **)(&Gun), &StaticGun, sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, &Names.Bitch, NULL, "Names.Bitch", N_("Word used to denote a single \"bitch\""), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Bitches, NULL, "Names.Bitches", N_("Word used to denote two or more \"bitches\""), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Gun, NULL, "Names.Gun", N_("Word used to denote a single gun or equivalent"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Guns, NULL, "Names.Guns", N_("Word used to denote two or more guns"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Drug, NULL, "Names.Drug", N_("Word used to denote a single drug or equivalent"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Drugs, NULL, "Names.Drugs", N_("Word used to denote two or more drugs"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, NULL, &Names.Date, NULL, "Names.Date", N_("strftime() format string for displaying the game turn"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, 0}, {NULL, NULL, &Prices.Spy, NULL, NULL, "Prices.Spy", N_("Cost for a bitch to spy on the enemy"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &Prices.Tipoff, NULL, NULL, "Prices.Tipoff", N_("Cost for a bitch to tipoff the cops to an enemy"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &Bitch.MinPrice, NULL, NULL, "Bitch.MinPrice", N_("Minimum price to hire a bitch"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, &Bitch.MaxPrice, NULL, NULL, "Bitch.MaxPrice", N_("Maximum price to hire a bitch"), NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, {NULL, NULL, NULL, NULL, &SubwaySaying, "SubwaySaying", N_("List of things which you overhear on the subway"), NULL, NULL, 0, "", &NumSubway, ResizeSubway, FALSE, 0, 0}, {&NumSubway, NULL, NULL, NULL, NULL, "NumSubwaySaying", N_("Number of subway sayings"), NULL, NULL, 0, "", NULL, ResizeSubway, FALSE, 0, -1}, {NULL, NULL, NULL, NULL, &Playing, "Playing", N_("List of songs which you can hear playing"), NULL, NULL, 0, "", &NumPlaying, ResizePlaying, FALSE, 0, 0}, {&NumPlaying, NULL, NULL, NULL, NULL, "NumPlaying", N_("Number of playing songs"), NULL, NULL, 0, "", NULL, ResizePlaying, FALSE, 0, -1}, {NULL, NULL, NULL, NULL, &StoppedTo, "StoppedTo", N_("List of things which you can stop to do"), NULL, NULL, 0, "", &NumStoppedTo, ResizeStoppedTo, FALSE, 0, 0}, {&NumStoppedTo, NULL, NULL, NULL, NULL, "NumStoppedTo", N_("Number of things which you can stop to do"), NULL, NULL, 0, "", NULL, ResizeStoppedTo, FALSE, 0, -1} }; const int NUMGLOB = sizeof(Globals) / sizeof(Globals[0]); char **Playing = NULL; char *DefaultPlaying[] = { /* Default list of songs that you can hear playing (N.B. this can be * overridden in the configuration file with the "Playing" variable) - * look for "You hear someone playing %s" to see how these are used. */ N_("`Are you Experienced` by Jimi Hendrix"), N_("`Cheeba Cheeba` by Tone Loc"), N_("`Comin` in to Los Angeles` by Arlo Guthrie"), N_("`Commercial` by Spanky and Our Gang"), N_("`Late in the Evening` by Paul Simon"), N_("`Light Up` by Styx"), N_("`Mexico` by Jefferson Airplane"), N_("`One toke over the line` by Brewer & Shipley"), N_("`The Smokeout` by Shel Silverstein"), N_("`White Rabbit` by Jefferson Airplane"), N_("`Itchycoo Park` by Small Faces"), N_("`White Punks on Dope` by the Tubes"), N_("`Legend of a Mind` by the Moody Blues"), N_("`Eight Miles High` by the Byrds"), N_("`Acapulco Gold` by Riders of the Purple Sage"), N_("`Kicks` by Paul Revere & the Raiders"), N_("the Nixon tapes"), N_("`Legalize It` by Mojo Nixon & Skid Roper") }; char **StoppedTo = NULL; char *DefaultStoppedTo[] = { /* Default list of things which you can "stop to do" (random events that * cost you a little money). These can be overridden with the "StoppedTo" * variable in the configuration file. See the later string "You stopped * to %s." to see how these strings are used. */ N_("have a beer"), N_("smoke a joint"), N_("smoke a cigar"), N_("smoke a Djarum"), N_("smoke a cigarette") }; struct COP DefaultCop[] = { /* Name of the first police officer to attack you */ {N_("Officer Hardass"), /* Name of a single deputy of the first police officer */ N_("deputy"), /* Word used for more than one deputy of the first police officer */ N_("deputies"), 4, 3, 30, 30, 2, 8, 0, 1, 1}, /* Ditto, for the other police officers */ {N_("Officer Bob"), N_("deputy"), N_("deputies"), 15, 4, 30, 20, 4, 10, 0, 2, 1}, {N_("Agent Smith"), N_("cop"), N_("cops"), 50, 6, 20, 20, 6, 18, 1, 3, 2} }; struct GUN DefaultGun[] = { /* The names of the default guns */ {N_("Baretta"), 3000, 4, 5}, {N_(".38 Special"), 3500, 4, 9}, {N_("Ruger"), 2900, 4, 4}, {N_("Saturday Night Special"), 3100, 4, 7} }; struct DRUG DefaultDrug[] = { /* The names of the default drugs, and the messages displayed when they * are specially cheap or expensive */ {N_("Acid"), 1000, 4400, TRUE, FALSE, N_("The market is flooded with cheap home-made acid!")}, {N_("Cocaine"), 15000, 29000, FALSE, TRUE, ""}, {N_("Hashish"), 480, 1280, TRUE, FALSE, N_("The Marrakesh Express has arrived!")}, {N_("Heroin"), 5500, 13000, FALSE, TRUE, ""}, {N_("Ludes"), 11, 60, TRUE, FALSE, N_("Rival drug dealers raided a pharmacy and are selling cheap ludes!")}, {N_("MDA"), 1500, 4400, FALSE, FALSE, ""}, {N_("Opium"), 540, 1250, FALSE, TRUE, ""}, {N_("PCP"), 1000, 2500, FALSE, FALSE, ""}, {N_("Peyote"), 220, 700, FALSE, FALSE, ""}, {N_("Shrooms"), 630, 1300, FALSE, FALSE, ""}, {N_("Speed"), 90, 250, FALSE, TRUE, ""}, {N_("Weed"), 315, 890, TRUE, FALSE, N_("Columbian freighter dusted the Coast Guard! " "Weed prices have bottomed out!")} }; #define NUMDRUG (sizeof(DefaultDrug)/sizeof(DefaultDrug[0])) struct LOCATION DefaultLocation[] = { /* The names of the default locations */ {N_("Bronx"), 10, NUMDRUG / 2 + 1, NUMDRUG}, {N_("Ghetto"), 5, NUMDRUG / 2 + 2, NUMDRUG}, {N_("Central Park"), 15, NUMDRUG / 2, NUMDRUG}, {N_("Manhattan"), 90, NUMDRUG / 2 - 2, NUMDRUG - 2}, {N_("Coney Island"), 20, NUMDRUG / 2, NUMDRUG}, {N_("Brooklyn"), 70, NUMDRUG / 2 - 2, NUMDRUG - 1}, {N_("Queens"), 50, NUMDRUG / 2, NUMDRUG}, {N_("Staten Island"), 20, NUMDRUG / 2, NUMDRUG} }; struct DRUGS Drugs = { NULL, NULL, 0, 0 }; struct DRUGS DefaultDrugs = { /* Messages displayed for drug busts, etc. */ N_("Cops made a big %tde bust! Prices are outrageous!"), N_("Addicts are buying %tde at ridiculous prices!"), 4, 4 }; char **SubwaySaying = NULL; char *DefaultSubwaySaying[] = { /* Default list of things which the "lady on the subway" can tell you * (N.B. can be overridden with the "SubwaySaying" config. file * variable). Look for "the lady next to you" to see how these strings * are used. */ N_("Wouldn\'t it be funny if everyone suddenly quacked at once?"), N_("The Pope was once Jewish, you know"), N_("I\'ll bet you have some really interesting dreams"), N_("So I think I\'m going to Amsterdam this year"), N_("Son, you need a yellow haircut"), N_("I think it\'s wonderful what they\'re doing with incense these days"), N_("I wasn\'t always a woman, you know"), N_("Does your mother know you\'re a dope dealer?"), N_("Are you high on something?"), N_("Oh, you must be from California"), N_("I used to be a hippie, myself"), N_("There\'s nothing like having lots of money"), N_("You look like an aardvark!"), N_("I don\'t believe in Ronald Reagan"), N_("Courage! Bush is a noodle!"), N_("Haven\'t I seen you on TV?"), N_("I think hemorrhoid commercials are really neat!"), N_("We\'re winning the war for drugs!"), N_("A day without dope is like night"), /* xgettext:no-c-format */ N_("We only use 20% of our brains, so why not burn out the other 80%"), N_("I\'m soliciting contributions for Zombies for Christ"), N_("I\'d like to sell you an edible poodle"), N_("Winners don\'t do drugs... unless they do"), N_("Kill a cop for Christ!"), N_("I am the walrus!"), N_("Jesus loves you more than you will know"), N_("I feel an unaccountable urge to dye my hair blue"), N_("Wasn\'t Jane Fonda wonderful in Barbarella"), N_("Just say No... well, maybe... ok, what the hell!"), N_("Would you like a jelly baby?"), N_("Drugs can be your friend!") }; static gboolean SetConfigValue(int GlobalIndex, int StructIndex, gboolean IndexGiven, Converter *conv, GScanner *scanner); /* * Returns a random integer not less than bot and less than top. */ int brandom(int bot, int top) { return (int)((float)(top - bot) * rand() / (RAND_MAX + 1.0)) + bot; } /* * Returns a random price not less than bot and less than top. */ price_t prandom(price_t bot, price_t top) { return (price_t)((float)(top - bot) * rand() / (RAND_MAX + 1.0)) + bot; } /* * Returns the total numbers of players in the list starting at "First"; * players still in the process of connecting or leaving, and those that * are actually cops (server-created internal AI players) are ignored. */ int CountPlayers(GSList *First) { GSList *list; Player *Play; int count = 0; for (list = First; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (strlen(GetPlayerName(Play)) > 0 && !IsCop(Play)) count++; } return count; } /* * Adds the new Player structure "NewPlayer" to the linked list * pointed to by "First", and initialises all fields. Returns the new * start of the list. If this function is called by the server, then * it should pass the file descriptor of the socket used to * communicate with the client player. */ GSList *AddPlayer(int fd, Player *NewPlayer, GSList *First) { Player *tmp; GSList *list; list = First; NewPlayer->ID = 0; /* Generate a unique player ID, if we're the server (clients get their * IDs from the server, so don't need to generate IDs) */ if (Server) { while (list) { tmp = (Player *)list->data; if (tmp->ID == NewPlayer->ID) { NewPlayer->ID++; list = First; } else { list = g_slist_next(list); } } } NewPlayer->Name = NULL; SetPlayerName(NewPlayer, NULL); NewPlayer->IsAt = 0; NewPlayer->EventNum = E_NONE; NewPlayer->FightTimeout = NewPlayer->ConnectTimeout = NewPlayer->IdleTimeout = 0; NewPlayer->Guns = (Inventory *)g_malloc0(NumGun * sizeof(Inventory)); NewPlayer->Drugs = (Inventory *)g_malloc0(NumDrug * sizeof(Inventory)); InitList(&(NewPlayer->SpyList)); InitList(&(NewPlayer->TipList)); NewPlayer->Turn = 1; NewPlayer->date = g_date_new_dmy(StartDate.day, StartDate.month, StartDate.year); NewPlayer->Cash = StartCash; NewPlayer->Debt = StartDebt; NewPlayer->Bank = 0; NewPlayer->Bitches.Carried = 8; NewPlayer->CopIndex = 0; NewPlayer->Health = 100; NewPlayer->CoatSize = 100; NewPlayer->Flags = 0; #if NETWORKING InitNetworkBuffer(&NewPlayer->NetBuf, '\n', '\r', UseSocks ? &Socks : NULL); if (Server) BindNetworkBufferToSocket(&NewPlayer->NetBuf, fd); #endif InitAbilities(NewPlayer); NewPlayer->FightArray = NULL; NewPlayer->Attacking = NULL; return g_slist_append(First, (gpointer)NewPlayer); } /* * Returns TRUE only if the given player has properly connected (i.e. has * a valid name). */ gboolean IsConnectedPlayer(Player *play) { return (play && play->Name && play->Name[0]); } /* * Redimensions the Gun and Drug lists for "Play". */ void UpdatePlayer(Player *Play) { Play->Guns = (Inventory *)g_realloc(Play->Guns, NumGun * sizeof(Inventory)); Play->Drugs = (Inventory *)g_realloc(Play->Drugs, NumDrug * sizeof(Inventory)); } /* * Removes the Player structure pointed to by "Play" from the linked * list starting at "First". The client socket is freed if called * from the server. The new start of the list is returned. */ GSList *RemovePlayer(Player *Play, GSList *First) { g_assert(Play); g_assert(First); First = g_slist_remove(First, (gpointer)Play); #if NETWORKING if (!IsCop(Play)) ShutdownNetworkBuffer(&Play->NetBuf); #endif ClearList(&(Play->SpyList)); ClearList(&(Play->TipList)); g_date_free(Play->date); g_free(Play->Name); g_free(Play->Guns); g_free(Play->Drugs); g_free(Play); return First; } /* * Copies player "Src" to player "Dest". */ void CopyPlayer(Player *Dest, Player *Src) { if (!Dest || !Src) return; Dest->Turn = Src->Turn; Dest->Cash = Src->Cash; Dest->Debt = Src->Debt; Dest->Bank = Src->Bank; Dest->Health = Src->Health; ClearInventory(Dest->Guns, Dest->Drugs); AddInventory(Dest->Guns, Src->Guns, NumGun); AddInventory(Dest->Drugs, Src->Drugs, NumDrug); Dest->CoatSize = Src->CoatSize; Dest->IsAt = Src->IsAt; g_free(Dest->Name); Dest->Name = g_strdup(Src->Name); Dest->Bitches.Carried = Src->Bitches.Carried; Dest->Flags = Src->Flags; } gboolean IsCop(Player *Play) { return (Play->CopIndex > 0); } char *GetPlayerName(Player *Play) { if (Play->Name) return Play->Name; else return ""; } void SetPlayerName(Player *Play, char *Name) { if (Play->Name) g_free(Play->Name); if (!Name) Play->Name = g_strdup(""); else Play->Name = g_strdup(Name); } /* * Searches the linked list starting at "First" for a Player structure * with the given ID. Returns a pointer to this structure, or NULL if * no match can be found. */ Player *GetPlayerByID(guint ID, GSList *First) { GSList *list; Player *Play; for (list = First; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (Play->ID == ID) return Play; } return NULL; } /* * Searches the linked list starting at "First" for a Player structure * with the name "Name". Returns a pointer to this structure, or NULL * if no match can be found. */ Player *GetPlayerByName(char *Name, GSList *First) { GSList *list; Player *Play; if (Name == NULL || Name[0] == 0) return &Noone; for (list = First; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (!IsCop(Play) && strcmp(GetPlayerName(Play), Name) == 0) return Play; } return NULL; } /* * Forms a price based on the string representation in "buf". */ price_t strtoprice(char *buf) { guint i, buflen, FracNum; gchar digit, suffix; gboolean minus, InFrac; price_t val = 0; minus = FALSE; if (!buf || !buf[0]) return 0; buflen = strlen(buf); suffix = buf[buflen - 1]; suffix = toupper(suffix); if (suffix == 'M') FracNum = 6; else if (suffix == 'K') FracNum = 3; else FracNum = 0; for (i = 0, InFrac = FALSE; i < buflen && (!InFrac || FracNum > 0); i++) { digit = buf[i]; if (digit == '.' || digit == ',') { InFrac = TRUE; } else if (digit >= '0' && digit <= '9') { if (InFrac) FracNum--; val *= 10; val += (digit - '0'); } else if (digit == '-') minus = TRUE; } for (i = 0; i < FracNum; i++) val *= 10; if (minus) val = -val; return val; } /* * Prints "price" directly into a dynamically-allocated string buffer * and returns a pointer to this buffer. It is the responsbility of * the user to g_free this buffer when it is finished with. */ gchar *pricetostr(price_t price) { GString *PriceStr; gchar *NewBuffer; price_t absprice; if (price < 0) absprice = -price; else absprice = price; PriceStr = g_string_new(NULL); while (absprice != 0) { g_string_prepend_c(PriceStr, '0' + (absprice % 10)); absprice /= 10; if (absprice == 0) { if (price < 0) g_string_prepend_c(PriceStr, '-'); } } NewBuffer = PriceStr->str; /* Free the string structure, but not the actual char array */ g_string_free(PriceStr, FALSE); return NewBuffer; } /* * Takes the number in "price" and prints it into a dynamically-allocated * string, adding commas to split up thousands, and adding a currency * symbol to the start. Returns a pointer to the string, which must be * g_free'd by the user when it is finished with. */ gchar *FormatPrice(price_t price) { GString *PriceStr; gchar *NewBuffer; char thou[10]; gboolean First = TRUE; price_t absprice; PriceStr = g_string_new(NULL); if (price < 0) absprice = -price; else absprice = price; while (First || absprice > 0) { if (absprice >= 1000) sprintf(thou, "%03d", (int)(absprice % 1000l)); else sprintf(thou, "%d", (int)(price % 1000l)); price /= 1000l; absprice /= 1000l; if (!First) g_string_prepend_c(PriceStr, ','); g_string_prepend(PriceStr, thou); First = FALSE; } if (Currency.Prefix) g_string_prepend(PriceStr, Currency.Symbol); else g_string_append(PriceStr, Currency.Symbol); NewBuffer = PriceStr->str; /* Free the string structure only, not the char data */ g_string_free(PriceStr, FALSE); return NewBuffer; } /* * Returns the total number of guns being carried by "Play". */ int TotalGunsCarried(Player *Play) { int i, c; c = 0; for (i = 0; i < NumGun; i++) c += Play->Guns[i].Carried; return c; } /* * Capitalises the first character of "string" and writes the resultant * string into a dynamically-allocated copy; the user must g_free this * string (a pointer to which is returned) when it is no longer needed. */ gchar *InitialCaps(gchar *string) { gchar *buf; if (!string) return NULL; buf = g_strdup(string); if (strlen(buf) >= 1) buf[0] = toupper(buf[0]); return buf; } /* * Returns TRUE if "string" starts with a vowel. */ char StartsWithVowel(char *string) { int c; if (!string || strlen(string) < 1) return FALSE; c = toupper(string[0]); return (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U'); } /* * Reads a NULL-terminated string into the buffer "buf" from file "fp". * buf is sized to hold the string; this is a dynamic string and must be * freed by the calling routine. Returns 0 on success, EOF on failure. */ int read_string(FILE *fp, char **buf) { int c; GString *text; text = g_string_new(""); do { c = fgetc(fp); if (c != EOF && c != 0) g_string_append_c(text, (char)c); } while (c != EOF && c != 0); *buf = text->str; /* Free the GString, but not the actual data text->str */ g_string_free(text, FALSE); if (c == EOF) return EOF; else return 0; } /* * This function simply clears the given inventories "Guns" * and "Drugs" if they are non-NULL. */ void ClearInventory(Inventory *Guns, Inventory *Drugs) { int i; if (Guns) for (i = 0; i < NumGun; i++) { Guns[i].Carried = 0; Guns[i].TotalValue = 0; } if (Drugs) for (i = 0; i < NumDrug; i++) { Drugs[i].Carried = 0; Drugs[i].TotalValue = 0; } } /* * Returns TRUE only if "Guns" and "Drugs" contain no objects. */ char IsInventoryClear(Inventory *Guns, Inventory *Drugs) { int i; if (Guns) for (i = 0; i < NumGun; i++) if (Guns[i].Carried > 0) return FALSE; if (Drugs) for (i = 0; i < NumDrug; i++) if (Drugs[i].Carried > 0) return FALSE; return TRUE; } /* * Adds inventory "Add" into the contents of inventory "Cumul" * Each inventory is of length "Length". * N.B. TotalValue is not modified, as it is assumed that the * new items are free (if this is not the case it must be * handled elsewhere). */ void AddInventory(Inventory *Cumul, Inventory *Add, int Length) { int i; for (i = 0; i < Length; i++) Cumul[i].Carried += Add[i].Carried; } /* * Given the lists of "Guns" and "Drugs" (which the given player "Play" * must have sufficient room to carry) updates the player's space to * reflect carrying them. */ void ChangeSpaceForInventory(Inventory *Guns, Inventory *Drugs, Player *Play) { int i; if (Guns) for (i = 0; i < NumGun; i++) { Play->CoatSize -= Guns[i].Carried * Gun[i].Space; } if (Drugs) for (i = 0; i < NumDrug; i++) { Play->CoatSize -= Drugs[i].Carried; } } /* * Discards items from "Guns" and/or "Drugs" (if non-NULL) if necessary * such that player "Play" is able to carry them all. The cheapest * objects are discarded. */ void TruncateInventoryFor(Inventory *Guns, Inventory *Drugs, Player *Play) { int i, Total, CheapIndex; int CheapestGun; Total = 0; if (Guns) for (i = 0; i < NumGun; i++) Total += Guns[i].Carried; Total += TotalGunsCarried(Play); while (Guns && Total > Play->Bitches.Carried + 2) { CheapIndex = -1; for (i = 0; i < NumGun; i++) if (Guns[i].Carried && (CheapIndex == -1 || Gun[i].Price <= Gun[CheapIndex].Price)) { CheapIndex = i; } i = Total - Play->Bitches.Carried - 2; if (Guns[CheapIndex].Carried > i) { Guns[CheapIndex].Carried -= i; Total -= i; } else { Total -= Guns[CheapIndex].Carried; Guns[CheapIndex].Carried = 0; } } Total = Play->CoatSize; if (Guns) for (i = 0; i < NumGun; i++) Total -= Guns[i].Carried * Gun[i].Space; if (Drugs) for (i = 0; i < NumDrug; i++) Total -= Drugs[i].Carried; while (Total < 0) { CheapestGun = -1; CheapIndex = -1; if (Guns) for (i = 0; i < NumGun; i++) if (Guns[i].Carried && (CheapIndex == -1 || Gun[i].Price <= Gun[CheapIndex].Price)) { CheapIndex = i; CheapestGun = Gun[i].Price / Gun[i].Space; } if (Drugs) for (i = 0; i < NumDrug; i++) if (Drugs[i].Carried && (CheapIndex == -1 || (CheapestGun == -1 && Drug[i].MinPrice <= Drug[CheapIndex].MinPrice) || (CheapestGun >= 0 && Drug[i].MinPrice <= CheapestGun))) { CheapIndex = i; CheapestGun = -1; } if (Guns && CheapestGun >= 0) { Guns[CheapIndex].Carried--; Total += Gun[CheapIndex].Space; } else { if (Drugs && Drugs[CheapIndex].Carried >= -Total) { Drugs[CheapIndex].TotalValue = Drugs[CheapIndex].TotalValue * (Drugs[CheapIndex].Carried + Total) / Drugs[CheapIndex].Carried; Drugs[CheapIndex].Carried += Total; Total = 0; } else { Total += Drugs[CheapIndex].Carried; Drugs[CheapIndex].Carried = 0; Drugs[CheapIndex].TotalValue = 0; } } } } /* * Returns an index into the drugs array of a random drug that "Play" is * carrying at least "amount" of. If no suitable drug is found after 5 * attempts, returns -1. */ int IsCarryingRandom(Player *Play, int amount) { int i, ind; for (i = 0; i < 5; i++) { ind = brandom(0, NumDrug); if (Play->Drugs[ind].Carried >= amount) { return ind; } } return -1; } /* * Returns an index into the "Drugs" array maintained by player "Play" * of the next available drug after "OldIndex", following the current * sort method (defined globally as "DrugSortMethod"). */ int GetNextDrugIndex(int OldIndex, Player *Play) { int i, MaxIndex; MaxIndex = -1; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Price != 0 && i != OldIndex && i != MaxIndex && (MaxIndex == -1 || (DrugSortMethod == DS_ATOZ && g_strcasecmp(Drug[MaxIndex].Name, Drug[i].Name) > 0) || (DrugSortMethod == DS_ZTOA && g_strcasecmp(Drug[MaxIndex].Name, Drug[i].Name) < 0) || (DrugSortMethod == DS_CHEAPFIRST && Play->Drugs[MaxIndex].Price > Play->Drugs[i].Price) || (DrugSortMethod == DS_CHEAPLAST && Play->Drugs[MaxIndex].Price < Play->Drugs[i].Price)) && (OldIndex == -1 || (DrugSortMethod == DS_ATOZ && g_strcasecmp(Drug[OldIndex].Name, Drug[i].Name) <= 0) || (DrugSortMethod == DS_ZTOA && g_strcasecmp(Drug[OldIndex].Name, Drug[i].Name) >= 0) || (DrugSortMethod == DS_CHEAPFIRST && Play->Drugs[OldIndex].Price <= Play->Drugs[i].Price) || (DrugSortMethod == DS_CHEAPLAST && Play->Drugs[OldIndex].Price >= Play->Drugs[i].Price))) { MaxIndex = i; } } return MaxIndex; } /* * A DopeList is akin to a Vector class; it is a list of DopeEntry * structures, which can be dynamically extended or compressed. This * function initialises the newly-created list pointed to by "List" * (A DopeEntry contains a Player pointer and a counter, and is used * by the server to keep track of tipoffs and spies.) */ void InitList(DopeList *List) { List->Data = NULL; List->Number = 0; } /* * Clears the list pointed to by "List". */ void ClearList(DopeList *List) { g_free(List->Data); InitList(List); } /* * Adds a new DopeEntry (pointed to by "NewEntry") to the list "List". * A copy of NewEntry is placed into the list, so the original * structure pointed to by NewEntry can be reused. */ void AddListEntry(DopeList *List, DopeEntry *NewEntry) { if (!NewEntry || !List) return; List->Number++; List->Data = (DopeEntry *)g_realloc(List->Data, List->Number * sizeof(DopeEntry)); g_memmove(&(List->Data[List->Number - 1]), NewEntry, sizeof(DopeEntry)); } /* * Removes the DopeEntry at index "Index" from list "List". */ void RemoveListEntry(DopeList *List, int Index) { if (!List || Index < 0 || Index >= List->Number) return; if (Index < List->Number - 1) { g_memmove(&(List->Data[Index]), &(List->Data[Index + 1]), (List->Number - 1 - Index) * sizeof(DopeEntry)); } List->Number--; List->Data = (DopeEntry *)g_realloc(List->Data, List->Number * sizeof(DopeEntry)); if (List->Number == 0) List->Data = NULL; } /* * Returns the index of the DopeEntry matching "Play" in list "List" * or -1 if this is not found. */ int GetListEntry(DopeList *List, Player *Play) { int i; for (i = List->Number - 1; i >= 0; i--) { if (List->Data[i].Play == Play) return i; } return -1; } /* * Removes (if it exists) the DopeEntry in list "List" matching "Play". */ void RemoveListPlayer(DopeList *List, Player *Play) { RemoveListEntry(List, GetListEntry(List, Play)); } /* * Similar to RemoveListPlayer, except that if the list contains "Play" more * than once, all the matching entries are removed, not just the first. */ void RemoveAllEntries(DopeList *List, Player *Play) { int i; do { i = GetListEntry(List, Play); if (i >= 0) RemoveListEntry(List, i); } while (i >= 0); } void ResizeLocations(int NewNum) { int i; if (NewNum < NumLocation) for (i = NewNum; i < NumLocation; i++) { g_free(Location[i].Name); } Location = g_realloc(Location, sizeof(struct LOCATION) * NewNum); if (NewNum > NumLocation) { memset(&Location[NumLocation], 0, (NewNum - NumLocation) * sizeof(struct LOCATION)); for (i = NumLocation; i < NewNum; i++) { Location[i].Name = g_strdup(""); } } NumLocation = NewNum; } void ResizeCops(int NewNum) { int i; if (NewNum < NumCop) for (i = NewNum; i < NumCop; i++) { g_free(Cop[i].Name); g_free(Cop[i].DeputyName); g_free(Cop[i].DeputiesName); } Cop = g_realloc(Cop, sizeof(struct COP) * NewNum); if (NewNum > NumCop) { memset(&Cop[NumCop], 0, (NewNum - NumCop) * sizeof(struct COP)); for (i = NumCop; i < NewNum; i++) { Cop[i].Name = g_strdup(""); Cop[i].DeputyName = g_strdup(""); Cop[i].DeputiesName = g_strdup(""); } } NumCop = NewNum; } void ResizeGuns(int NewNum) { int i; if (NewNum < NumGun) for (i = NewNum; i < NumGun; i++) { g_free(Gun[i].Name); } Gun = g_realloc(Gun, sizeof(struct GUN) * NewNum); if (NewNum > NumGun) { memset(&Gun[NumGun], 0, (NewNum - NumGun) * sizeof(struct GUN)); for (i = NumGun; i < NewNum; i++) { Gun[i].Name = g_strdup(""); } } NumGun = NewNum; } void ResizeDrugs(int NewNum) { int i; if (NewNum < NumDrug) for (i = NewNum; i < NumDrug; i++) { g_free(Drug[i].Name); g_free(Drug[i].CheapStr); } Drug = g_realloc(Drug, sizeof(struct DRUG) * NewNum); if (NewNum > NumDrug) { memset(&Drug[NumDrug], 0, (NewNum - NumDrug) * sizeof(struct DRUG)); for (i = NumDrug; i < NewNum; i++) { Drug[i].Name = g_strdup(""); Drug[i].CheapStr = g_strdup(""); } } NumDrug = NewNum; } void ResizeSubway(int NewNum) { int i; if (NewNum < NumSubway) for (i = NewNum; i < NumSubway; i++) { g_free(SubwaySaying[i]); } SubwaySaying = g_realloc(SubwaySaying, sizeof(char *) * NewNum); if (NewNum > NumSubway) for (i = NumSubway; i < NewNum; i++) { SubwaySaying[i] = g_strdup(""); } NumSubway = NewNum; } void ResizePlaying(int NewNum) { int i; if (NewNum < NumPlaying) for (i = NewNum; i < NumPlaying; i++) { g_free(Playing[i]); } Playing = g_realloc(Playing, sizeof(char *) * NewNum); if (NewNum > NumPlaying) for (i = NumPlaying; i < NewNum; i++) { Playing[i] = g_strdup(""); } NumPlaying = NewNum; } void ResizeStoppedTo(int NewNum) { int i; if (NewNum < NumStoppedTo) for (i = NewNum; i < NumStoppedTo; i++) { g_free(StoppedTo[i]); } StoppedTo = g_realloc(StoppedTo, sizeof(char *) * NewNum); if (NewNum > NumStoppedTo) for (i = NumStoppedTo; i < NewNum; i++) { StoppedTo[i] = g_strdup(""); } NumStoppedTo = NewNum; } /* * Sets the dynamically-sized string pointed to by *dest to a copy of * "src" - src can safely be freed or reused afterwards. Any existing * string in "dest" is freed. The function returns immediately if src * and *dest are already the same. */ void AssignName(gchar **dest, gchar *src) { if (*dest == src) return; g_free(*dest); *dest = g_strdup(src); } void CopyNames(struct NAMES *dest, struct NAMES *src) { AssignName(&dest->Bitch, _(src->Bitch)); AssignName(&dest->Bitches, _(src->Bitches)); AssignName(&dest->Gun, _(src->Gun)); AssignName(&dest->Guns, _(src->Guns)); AssignName(&dest->Drug, _(src->Drug)); AssignName(&dest->Drugs, _(src->Drugs)); AssignName(&dest->Date, _(src->Date)); AssignName(&dest->LoanSharkName, _(src->LoanSharkName)); AssignName(&dest->BankName, _(src->BankName)); AssignName(&dest->GunShopName, _(src->GunShopName)); AssignName(&dest->RoughPubName, _(src->RoughPubName)); } #ifdef NETWORKING void CopyMetaServer(struct METASERVER *dest, struct METASERVER *src) { dest->Active = src->Active; dest->Port = src->Port; dest->ProxyPort = src->ProxyPort; dest->UseSocks = src->UseSocks; AssignName(&dest->Name, src->Name); AssignName(&dest->ProxyName, src->ProxyName); AssignName(&dest->Path, src->Path); AssignName(&dest->LocalName, src->LocalName); AssignName(&dest->Password, src->Password); AssignName(&dest->Comment, src->Comment); AssignName(&dest->authuser, src->authuser); AssignName(&dest->authpassword, src->authpassword); AssignName(&dest->proxyuser, src->proxyuser); AssignName(&dest->proxypassword, src->proxypassword); } #endif void CopyLocation(struct LOCATION *dest, struct LOCATION *src) { AssignName(&dest->Name, _(src->Name)); dest->PolicePresence = src->PolicePresence; dest->MinDrug = src->MinDrug; dest->MaxDrug = src->MaxDrug; } void CopyCop(struct COP *dest, struct COP *src) { AssignName(&dest->Name, _(src->Name)); AssignName(&dest->DeputyName, _(src->DeputyName)); AssignName(&dest->DeputiesName, _(src->DeputiesName)); dest->Armour = src->Armour; dest->DeputyArmour = src->DeputyArmour; dest->AttackPenalty = src->AttackPenalty; dest->DefendPenalty = src->DefendPenalty; dest->MinDeputies = src->MinDeputies; dest->MaxDeputies = src->MaxDeputies; dest->GunIndex = src->GunIndex; dest->CopGun = src->CopGun; dest->DeputyGun = src->DeputyGun; } void CopyGun(struct GUN *dest, struct GUN *src) { AssignName(&dest->Name, _(src->Name)); dest->Price = src->Price; dest->Space = src->Space; dest->Damage = src->Damage; } void CopyDrug(struct DRUG *dest, struct DRUG *src) { AssignName(&dest->Name, src->Name[0] ? _(src->Name) : ""); dest->MinPrice = src->MinPrice; dest->MaxPrice = src->MaxPrice; dest->Cheap = src->Cheap; dest->Expensive = src->Expensive; AssignName(&dest->CheapStr, src->CheapStr[0] ? _(src->CheapStr) : ""); } void CopyDrugs(struct DRUGS *dest, struct DRUGS *src) { AssignName(&dest->ExpensiveStr1, _(src->ExpensiveStr1)); AssignName(&dest->ExpensiveStr2, _(src->ExpensiveStr2)); dest->CheapDivide = src->CheapDivide; dest->ExpensiveMultiply = src->ExpensiveMultiply; } static struct PRICES BackupPrices; static struct NAMES BackupNames; static struct DRUG *BackupDrug = NULL; static struct GUN *BackupGun = NULL; static struct LOCATION *BackupLocation = NULL; static struct CURRENCY BackupCurrency = { NULL, TRUE }; static gint NumBackupDrug = 0, NumBackupGun = 0, NumBackupLocation = 0; void BackupConfig(void) { gint i; BackupPrices.Spy = Prices.Spy; BackupPrices.Tipoff = Prices.Tipoff; AssignName(&BackupCurrency.Symbol, Currency.Symbol); BackupCurrency.Prefix = Currency.Prefix; CopyNames(&BackupNames, &Names); /* Free existing backups of guns, drugs, and locations */ for (i = 0; i < NumBackupGun; i++) g_free(BackupGun[i].Name); g_free(BackupGun); for (i = 0; i < NumBackupDrug; i++) { g_free(BackupDrug[i].Name); g_free(BackupDrug[i].CheapStr); } g_free(BackupDrug); for (i = 0; i < NumBackupLocation; i++) g_free(BackupLocation[i].Name); g_free(BackupLocation); NumBackupGun = NumGun; BackupGun = g_new0(struct GUN, NumGun); for (i = 0; i < NumGun; i++) CopyGun(&BackupGun[i], &Gun[i]); NumBackupDrug = NumDrug; BackupDrug = g_new0(struct DRUG, NumDrug); for (i = 0; i < NumDrug; i++) CopyDrug(&BackupDrug[i], &Drug[i]); NumBackupLocation = NumLocation; BackupLocation = g_new0(struct LOCATION, NumLocation); for (i = 0; i < NumLocation; i++) CopyLocation(&BackupLocation[i], &Location[i]); } void RestoreConfig(void) { gint i; Prices.Spy = BackupPrices.Spy; Prices.Tipoff = BackupPrices.Tipoff; CopyNames(&Names, &BackupNames); AssignName(&Currency.Symbol, BackupCurrency.Symbol); Currency.Prefix = BackupCurrency.Prefix; ResizeGuns(NumBackupGun); for (i = 0; i < NumGun; i++) CopyGun(&Gun[i], &BackupGun[i]); ResizeDrugs(NumBackupDrug); for (i = 0; i < NumDrug; i++) CopyDrug(&Drug[i], &BackupDrug[i]); ResizeLocations(NumBackupLocation); for (i = 0; i < NumLocation; i++) CopyLocation(&Location[i], &BackupLocation[i]); } void ScannerErrorHandler(GScanner *scanner, gchar *msg, gint error) { g_print("%s\n", msg); } /* * On Windows systems, check the current config file referenced by "scanner" * for a UTF-8 header. If one is found, "conv" and "encoding" are set * for UTF-8 encoding. */ static void CheckConfigHeader(GScanner *scanner, Converter *conv, gchar **encoding) { #ifdef CYGWIN GTokenType token; token = g_scanner_peek_next_token(scanner); if (token == (guchar)'\357') { /* OK; assume this is a Windows-style \357 \273 \277 UTF-8 header */ if (g_scanner_get_next_token(scanner) != (guchar)'\357' || g_scanner_get_next_token(scanner) != (guchar)'\273' || g_scanner_get_next_token(scanner) != (guchar)'\277') { return; } Conv_SetCodeset(conv, "UTF-8"); if (encoding) { g_free(*encoding); *encoding = g_strdup("UTF-8"); } } #endif } /* * Read a configuration file given by "FileName" */ static gboolean ReadConfigFile(char *FileName, gchar **encoding) { FILE *fp; Converter *conv; GScanner *scanner; fp = fopen(FileName, "r"); if (fp) { conv = Conv_New(); if (encoding) { *encoding = NULL; } scanner = g_scanner_new(&ScannerConfig); scanner->input_name = FileName; scanner->msg_handler = ScannerErrorHandler; g_scanner_input_file(scanner, fileno(fp)); CheckConfigHeader(scanner, conv, encoding); while (!g_scanner_eof(scanner)) { if (!ParseNextConfig(scanner, conv, encoding, FALSE)) { ConfigErrors++; g_scanner_error(scanner, _("Unable to process configuration file %s, line %d"), FileName, g_scanner_cur_line(scanner)); } } g_scanner_destroy(scanner); Conv_Free(conv); fclose(fp); return TRUE; } else { return FALSE; } } gboolean ParseNextConfig(GScanner *scanner, Converter *conv, gchar **encoding, gboolean print) { GTokenType token; gchar *ID1, *ID2; gulong ind = 0; int GlobalIndex; gboolean IndexGiven = FALSE; ID1 = ID2 = NULL; token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_EOF) return TRUE; if (token != G_TOKEN_IDENTIFIER) { g_scanner_unexp_token(scanner, G_TOKEN_IDENTIFIER, NULL, NULL, NULL, NULL, FALSE); return FALSE; } if (g_strcasecmp(scanner->value.v_identifier, "include") == 0) { token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_STRING) { if (!ReadConfigFile(scanner->value.v_string, NULL)) { g_scanner_error(scanner, _("Unable to open file %s"), scanner->value.v_string); } return TRUE; } else { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } else if (g_strcasecmp(scanner->value.v_identifier, "encoding") == 0) { token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_STRING) { Conv_SetCodeset(conv, scanner->value.v_string); if (encoding) { g_free(*encoding); *encoding = g_strdup(scanner->value.v_string); } return TRUE; } else { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } ID1 = g_strdup(scanner->value.v_identifier); token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_LEFT_BRACE) { token = g_scanner_get_next_token(scanner); if (token != G_TOKEN_INT) { g_scanner_unexp_token(scanner, G_TOKEN_INT, NULL, NULL, NULL, NULL, FALSE); return FALSE; } ind = scanner->value.v_int; IndexGiven = TRUE; token = g_scanner_get_next_token(scanner); if (token != G_TOKEN_RIGHT_BRACE) { g_scanner_unexp_token(scanner, G_TOKEN_RIGHT_BRACE, NULL, NULL, NULL, NULL, FALSE); return FALSE; } token = g_scanner_get_next_token(scanner); if (token == '.') { token = g_scanner_get_next_token(scanner); if (token != G_TOKEN_IDENTIFIER) { g_scanner_unexp_token(scanner, G_TOKEN_IDENTIFIER, NULL, NULL, NULL, NULL, FALSE); return FALSE; } ID2 = g_strdup(scanner->value.v_identifier); token = g_scanner_get_next_token(scanner); } } GlobalIndex = GetGlobalIndex(ID1, ID2); g_free(ID1); g_free(ID2); if (GlobalIndex == -1) return FALSE; if (token == G_TOKEN_EOF) { PrintConfigValue(GlobalIndex, (int)ind, IndexGiven, scanner); return TRUE; } else if (token == G_TOKEN_EQUAL_SIGN) { if (CountPlayers(FirstServer) > 0) { g_warning(_("Configuration can only be changed interactively " "when no\nplayers are logged on. Wait for all " "players to log off, or remove\nthem with the " "push or kill commands, and try again.")); } else { if (SetConfigValue(GlobalIndex, (int)ind, IndexGiven, conv, scanner) && print) { PrintConfigValue(GlobalIndex, (int)ind, IndexGiven, scanner); } } return TRUE; } else { return FALSE; } return FALSE; } int GetGlobalIndex(gchar *ID1, gchar *ID2) { int i; const int NumGlob = sizeof(Globals) / sizeof(Globals[0]); if (!ID1) return -1; for (i = 0; i < NumGlob; i++) { if (g_strcasecmp(ID1, Globals[i].Name) == 0 && !Globals[i].NameStruct[0]) { /* Just a bog-standard ID1=value */ return i; } if (g_strcasecmp(ID1, Globals[i].NameStruct) == 0 && ID2 && g_strcasecmp(ID2, Globals[i].Name) == 0 && Globals[i].StructStaticPt && Globals[i].StructListPt) { /* ID1[index].ID2=value */ return i; } } return -1; } static void *GetGlobalPointer(int GlobalIndex, int StructIndex) { void *ValPt = NULL; if (Globals[GlobalIndex].IntVal) { ValPt = (void *)Globals[GlobalIndex].IntVal; } else if (Globals[GlobalIndex].PriceVal) { ValPt = (void *)Globals[GlobalIndex].PriceVal; } else if (Globals[GlobalIndex].BoolVal) { ValPt = (void *)Globals[GlobalIndex].BoolVal; } else if (Globals[GlobalIndex].StringVal) { ValPt = (void *)Globals[GlobalIndex].StringVal; } if (!ValPt) return NULL; if (Globals[GlobalIndex].StructStaticPt && Globals[GlobalIndex].StructListPt) { return (char *)ValPt - (char *)Globals[GlobalIndex].StructStaticPt + (char *)*(Globals[GlobalIndex].StructListPt) + (StructIndex - 1) * Globals[GlobalIndex].LenStruct; } else { return ValPt; } } gchar **GetGlobalString(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].StringVal); return (gchar **)GetGlobalPointer(GlobalIndex, StructIndex); } gint *GetGlobalInt(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].IntVal); return (gint *)GetGlobalPointer(GlobalIndex, StructIndex); } price_t *GetGlobalPrice(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].PriceVal); return (price_t *)GetGlobalPointer(GlobalIndex, StructIndex); } gboolean *GetGlobalBoolean(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].BoolVal); return (gboolean *)GetGlobalPointer(GlobalIndex, StructIndex); } gchar ***GetGlobalStringList(int GlobalIndex, int StructIndex) { g_assert(Globals[GlobalIndex].StringList); return (gchar ***)GetGlobalPointer(GlobalIndex, StructIndex); } gboolean CheckMaxIndex(GScanner *scanner, int GlobalIndex, int StructIndex, gboolean IndexGiven) { if (!Globals[GlobalIndex].MaxIndex || (Globals[GlobalIndex].StringList && !IndexGiven) || (IndexGiven && StructIndex >= 1 && StructIndex <= *(Globals[GlobalIndex].MaxIndex))) { return TRUE; } /* Error message displayed when you try to set, for example, * Drug[10].Name when NumDrug<10 (%s="Drug" and %d=10 in this example) */ g_scanner_error(scanner, _("Index into %s array should be between 1 and %d"), (Globals[GlobalIndex].NameStruct && Globals[GlobalIndex]. NameStruct[0]) ? Globals[GlobalIndex]. NameStruct : Globals[GlobalIndex].Name, *(Globals[GlobalIndex].MaxIndex)); return FALSE; } void PrintConfigValue(int GlobalIndex, int StructIndex, gboolean IndexGiven, GScanner *scanner) { gchar *GlobalName; int i; if (!CheckMaxIndex(scanner, GlobalIndex, StructIndex, IndexGiven)) return; if (Globals[GlobalIndex].NameStruct[0]) { GlobalName = g_strdup_printf("%s[%d].%s", Globals[GlobalIndex].NameStruct, StructIndex, Globals[GlobalIndex].Name); } else GlobalName = Globals[GlobalIndex].Name; if (Globals[GlobalIndex].IntVal) { /* Display of a numeric config. file variable - e.g. "NumDrug is 6" */ g_print(_("%s is %d\n"), GlobalName, *GetGlobalInt(GlobalIndex, StructIndex)); } else if (Globals[GlobalIndex].BoolVal) { /* Display of a boolean config. file variable - e.g. "DrugValue is * TRUE" */ g_print(_("%s is %s\n"), GlobalName, *GetGlobalBoolean(GlobalIndex, StructIndex) ? "TRUE" : "FALSE"); } else if (Globals[GlobalIndex].PriceVal) { /* Display of a price config. file variable - e.g. "Bitch.MinPrice is * $200" */ dpg_print(_("%s is %P\n"), GlobalName, *GetGlobalPrice(GlobalIndex, StructIndex)); } else if (Globals[GlobalIndex].StringVal) { /* Display of a string config. file variable - e.g. "LoanSharkName is * \"the loan shark\"" */ g_print(_("%s is \"%s\"\n"), GlobalName, *GetGlobalString(GlobalIndex, StructIndex)); } else if (Globals[GlobalIndex].StringList) { if (IndexGiven) { /* Display of an indexed string list config. file variable - e.g. * "StoppedTo[1] is have a beer" */ g_print(_("%s[%d] is %s\n"), GlobalName, StructIndex, (*(Globals[GlobalIndex].StringList))[StructIndex - 1]); } else { GString *text; text = g_string_new(""); /* Display of the first part of an entire string list config. file * variable - e.g. "StoppedTo is { " (followed by "have a beer", * "smoke a joint" etc.) */ g_string_sprintf(text, _("%s is { "), GlobalName); if (Globals[GlobalIndex].MaxIndex) { for (i = 0; i < *(Globals[GlobalIndex].MaxIndex); i++) { if (i > 0) g_string_append(text, ", "); g_string_sprintfa(text, "\"%s\"", (*(Globals[GlobalIndex].StringList))[i]); } } g_string_append(text, " }\n"); g_print("%s", text->str); g_string_free(text, TRUE); } } if (Globals[GlobalIndex].NameStruct[0]) g_free(GlobalName); } static gboolean SetConfigValue(int GlobalIndex, int StructIndex, gboolean IndexGiven, Converter *conv, GScanner *scanner) { gchar *GlobalName, *tmpstr; GTokenType token; int IntVal, NewNum; Player *tmp; GSList *list, *StartList; gboolean parsed; if (!CheckMaxIndex(scanner, GlobalIndex, StructIndex, IndexGiven)) return FALSE; if (Globals[GlobalIndex].NameStruct[0]) { GlobalName = g_strdup_printf("%s[%d].%s", Globals[GlobalIndex].NameStruct, StructIndex, Globals[GlobalIndex].Name); } else { GlobalName = Globals[GlobalIndex].Name; } if (Globals[GlobalIndex].IntVal) { gboolean minus = FALSE; /* GScanner doesn't understand negative numbers, so we need to * explicitly check for a prefixed minus sign */ token = g_scanner_get_next_token(scanner); if (token == '-') { minus = TRUE; token = g_scanner_get_next_token(scanner); } if (token == G_TOKEN_INT) { IntVal = (int)scanner->value.v_int; if (minus) { IntVal = -IntVal; } if (IntVal < Globals[GlobalIndex].MinVal) { g_scanner_warn(scanner, _("%s can be no smaller than %d - ignoring!"), GlobalName, Globals[GlobalIndex].MinVal); return FALSE; } if (Globals[GlobalIndex].MaxVal > Globals[GlobalIndex].MinVal && IntVal > Globals[GlobalIndex].MaxVal) { g_scanner_warn(scanner, _("%s can be no larger than %d - ignoring!"), GlobalName, Globals[GlobalIndex].MaxVal); return FALSE; } if (Globals[GlobalIndex].ResizeFunc) { (*(Globals[GlobalIndex].ResizeFunc)) (IntVal); /* Displayed, for example, when you set NumDrug=10 to allow * Drug[10].Name etc. to be set */ if (ConfigVerbose) g_print(_("Resized structure list to %d elements\n"), IntVal); for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; UpdatePlayer(tmp); } for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; UpdatePlayer(tmp); } } *GetGlobalInt(GlobalIndex, StructIndex) = IntVal; } else { g_scanner_unexp_token(scanner, G_TOKEN_INT, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } else if (Globals[GlobalIndex].BoolVal) { scanner->config->cset_identifier_first = G_CSET_a_2_z "01" G_CSET_A_2_Z; scanner->config->cset_identifier_nth = G_CSET_a_2_z G_CSET_A_2_Z; token = g_scanner_get_next_token(scanner); scanner->config->cset_identifier_first = G_CSET_a_2_z "_" G_CSET_A_2_Z; scanner->config->cset_identifier_nth = G_CSET_a_2_z "._0123456789" G_CSET_A_2_Z; parsed = FALSE; if (token == G_TOKEN_IDENTIFIER) { if (g_strcasecmp(scanner->value.v_identifier, "TRUE") == 0 || strcmp(scanner->value.v_identifier, "1") == 0) { parsed = TRUE; *GetGlobalBoolean(GlobalIndex, StructIndex) = TRUE; } else if (g_strcasecmp(scanner->value.v_identifier, "FALSE") == 0 || strcmp(scanner->value.v_identifier, "0") == 0) { parsed = TRUE; *GetGlobalBoolean(GlobalIndex, StructIndex) = FALSE; } } if (!parsed) { g_scanner_unexp_token(scanner, G_TOKEN_NONE, NULL, NULL, NULL, _("expected a boolean value (one of 0, FALSE, " "1, TRUE)"), FALSE); return FALSE; } } else if (Globals[GlobalIndex].PriceVal) { token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_INT) { *GetGlobalPrice(GlobalIndex, StructIndex) = (price_t)scanner->value.v_int; } else { g_scanner_unexp_token(scanner, G_TOKEN_INT, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } else if (Globals[GlobalIndex].StringVal) { scanner->config->identifier_2_string = TRUE; scanner->config->cset_identifier_first = G_CSET_a_2_z "._0123456789" G_CSET_A_2_Z G_CSET_LATINS G_CSET_LATINC; scanner->config->cset_identifier_nth = G_CSET_a_2_z " ._0123456789" G_CSET_A_2_Z G_CSET_LATINS G_CSET_LATINC; token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_STRING) { tmpstr = Conv_ToInternal(conv, scanner->value.v_string, -1); AssignName(GetGlobalString(GlobalIndex, StructIndex), tmpstr); g_free(tmpstr); } else if (token == G_TOKEN_IDENTIFIER) { tmpstr = Conv_ToInternal(conv, scanner->value.v_identifier, -1); AssignName(GetGlobalString(GlobalIndex, StructIndex), tmpstr); g_free(tmpstr); } else { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); } scanner->config->identifier_2_string = FALSE; scanner->config->cset_identifier_first = G_CSET_a_2_z "_" G_CSET_A_2_Z; scanner->config->cset_identifier_nth = G_CSET_a_2_z "._0123456789" G_CSET_A_2_Z; } else if (Globals[GlobalIndex].StringList) { token = g_scanner_get_next_token(scanner); if (IndexGiven) { if (token == G_TOKEN_STRING) { tmpstr = Conv_ToInternal(conv, scanner->value.v_string, -1); AssignName(&(*(Globals[GlobalIndex].StringList))[StructIndex - 1], tmpstr); g_free(tmpstr); } else { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } else { StartList = NULL; if (token != G_TOKEN_LEFT_CURLY) { g_scanner_unexp_token(scanner, G_TOKEN_LEFT_CURLY, NULL, NULL, NULL, NULL, FALSE); return FALSE; } NewNum = 0; do { token = g_scanner_get_next_token(scanner); if (token == G_TOKEN_STRING) { tmpstr = g_strdup(scanner->value.v_string); NewNum++; StartList = g_slist_append(StartList, tmpstr); } else if (token != G_TOKEN_RIGHT_CURLY && token != G_TOKEN_COMMA) { g_scanner_unexp_token(scanner, G_TOKEN_STRING, NULL, NULL, NULL, NULL, FALSE); return FALSE; } } while (token != G_TOKEN_RIGHT_CURLY); (*Globals[GlobalIndex].ResizeFunc) (NewNum); NewNum = 0; for (list = StartList; list; NewNum++, list = g_slist_next(list)) { AssignName(&(*(Globals[GlobalIndex].StringList))[NewNum], (char *)list->data); g_free(list->data); } g_slist_free(StartList); } } if (Globals[GlobalIndex].NameStruct[0]) g_free(GlobalName); Globals[GlobalIndex].Modified = TRUE; return TRUE; } /* * Returns the URL of the directory containing local HTML documentation. */ gchar *GetDocRoot(void) { gchar *path; #ifdef CYGWIN gchar *bindir; bindir = GetBinaryDir(); path = g_strdup_printf("file://%s\\", bindir); g_free(bindir); #else path = g_strdup_printf("file://%s/doc/%s-%s/", DPDATADIR, PACKAGE, VERSION); #endif return path; } /* * Returns the URL of the index file for the local HTML documentation. */ gchar *GetDocIndex(void) { gchar *file, *root; root = GetDocRoot(); file = g_strdup_printf("%sindex.html", root); g_free(root); return file; } /* * Returns the pathname of the global (all users) configuration file, * as a dynamically-allocated string that must be later freed. On * error, NULL is returned. */ gchar *GetGlobalConfigFile(void) { #ifdef CYGWIN gchar *bindir, *conf = NULL; /* Global configuration is in the same directory as the dopewars binary */ bindir = GetBinaryDir(); if (bindir) { conf = g_strdup_printf("%s/dopewars-config.txt", bindir); g_free(bindir); } return conf; #else return g_strdup("/etc/dopewars"); #endif } /* * Returns the pathname of the local (per-user) configuration file, * as a dynamically-allocated string that must be later freed. On * error, NULL is returned. */ gchar *GetLocalConfigFile(void) { #ifdef CYGWIN return g_strdup("dopewars-config.txt"); #else gchar *home, *conf = NULL; /* Local config is in the user's home directory */ home = getenv("HOME"); if (home) { conf = g_strdup_printf("%s/.dopewars", home); } return conf; #endif } /* * Sets up data - such as the location of the high score file - to * hard-coded internal values, and then processes the global and * user-specific configuration files. */ static void SetupParameters(GSList *extraconfigs, gboolean antique) { gchar *conf; GSList *list; int i, defloc; DrugValue = TRUE; Sanitized = ConfigVerbose = FALSE; g_free(Currency.Symbol); /* The currency symbol */ Currency.Symbol = g_strdup(_("$")); Currency.Prefix = (strcmp("Currency.Prefix=TRUE", /* Translate this to "Currency.Prefix=FALSE" if you want your currency * symbol to follow all prices. */ _("Currency.Prefix=TRUE")) == 0); /* Set hard-coded default values */ AssignName(&ServerName, "localhost"); AssignName(&ServerMOTD, ""); AssignName(&BindAddress, ""); AssignName(&WebBrowser, "/usr/bin/mozilla"); AssignName(&Sounds.FightHit, SNDPATH"colt.wav"); AssignName(&Sounds.EnemyBitchKilled, SNDPATH"shotdown.wav"); AssignName(&Sounds.BitchKilled, SNDPATH"losebitch.wav"); AssignName(&Sounds.EnemyKilled, SNDPATH"shotdown.wav"); AssignName(&Sounds.Killed, SNDPATH"die.wav"); AssignName(&Sounds.EnemyFlee, SNDPATH"run.wav"); AssignName(&Sounds.Flee, SNDPATH"run.wav"); AssignName(&Sounds.Jet, SNDPATH"train.wav"); AssignName(&Sounds.TalkPrivate, SNDPATH"murmur.wav"); AssignName(&Sounds.TalkToAll, SNDPATH"message.wav"); AssignName(&Sounds.EndGame, SNDPATH"bye.wav"); LoanSharkLoc = DEFLOANSHARK; BankLoc = DEFBANK; if (antique) { GunShopLoc = RoughPubLoc = 0; } else { GunShopLoc = DEFGUNSHOP; RoughPubLoc = DEFROUGHPUB; } CopyNames(&Names, &DefaultNames); CopyDrugs(&Drugs, &DefaultDrugs); #ifdef NETWORKING CopyMetaServer(&MetaServer, &DefaultMetaServer); AssignName(&Socks.name, "socks"); Socks.port = 1080; Socks.version = 4; g_free(Socks.user); g_free(Socks.authuser); g_free(Socks.authpassword); Socks.user = g_strdup(""); Socks.numuid = FALSE; Socks.authuser = g_strdup(""); Socks.authpassword = g_strdup(""); UseSocks = FALSE; #endif defloc = sizeof(DefaultLocation) / sizeof(DefaultLocation[0]); g_assert(defloc >= 6); if (antique) { defloc = 6; } ResizeLocations(defloc); for (i = 0; i < NumLocation; i++) CopyLocation(&Location[i], &DefaultLocation[i]); ResizeCops(sizeof(DefaultCop) / sizeof(DefaultCop[0])); for (i = 0; i < NumCop; i++) CopyCop(&Cop[i], &DefaultCop[i]); ResizeGuns(sizeof(DefaultGun) / sizeof(DefaultGun[0])); for (i = 0; i < NumGun; i++) CopyGun(&Gun[i], &DefaultGun[i]); ResizeDrugs(sizeof(DefaultDrug) / sizeof(DefaultDrug[0])); for (i = 0; i < NumDrug; i++) CopyDrug(&Drug[i], &DefaultDrug[i]); ResizeSubway(sizeof(DefaultSubwaySaying) / sizeof(DefaultSubwaySaying[0])); for (i = 0; i < NumSubway; i++) { AssignName(&SubwaySaying[i], _(DefaultSubwaySaying[i])); } ResizePlaying(sizeof(DefaultPlaying) / sizeof(DefaultPlaying[0])); for (i = 0; i < NumPlaying; i++) { AssignName(&Playing[i], _(DefaultPlaying[i])); } ResizeStoppedTo(sizeof(DefaultStoppedTo) / sizeof(DefaultStoppedTo[0])); for (i = 0; i < NumStoppedTo; i++) { AssignName(&StoppedTo[i], _(DefaultStoppedTo[i])); } /* Replace nasty null pointers with null strings */ for (i = 0; i < NUMGLOB; ++i) { if (Globals[i].StringVal && !*Globals[i].StringVal) { *Globals[i].StringVal = g_strdup(""); } } /* Now read in the global configuration file */ conf = GetGlobalConfigFile(); if (conf) { ReadConfigFile(conf, NULL); g_free(conf); } /* Next, try the local configuration file */ conf = GetLocalConfigFile(); if (conf) { ReadConfigFile(conf, &LocalCfgEncoding); g_free(conf); } /* Finally, any configuration files named on the command line */ for (list = extraconfigs; list; list = g_slist_next(list)) { ReadConfigFile(list->data, NULL); } } void GetDateString(GString *str, Player *Play) { gchar buf[200], *turn, *pt; turn = g_strdup_printf("%d", Play->Turn); g_string_assign(str, Names.Date); while ((pt = strstr(str->str, "%T")) != NULL) { int ind = pt - str->str; g_string_erase(str, ind, 2); g_string_insert(str, ind, turn); } g_date_strftime(buf, sizeof(buf), str->str, Play->date); g_string_assign(str, buf); g_free(turn); } static void PluginHelp(void) { gchar *plugins; #ifdef HAVE_GETOPT_LONG g_print(_(" -u, --plugin=FILE use sound plugin \"FILE\"\n" " ")); #else g_print(_(" -u file use sound plugin \"file\"\n" " ")); #endif plugins = GetPluginList(); g_print(_("(%s available)\n"), plugins); g_free(plugins); } void HandleHelpTexts(gboolean fullhelp) { g_print(_("dopewars version %s\n"), VERSION); if (!fullhelp) { return; } g_print( #ifdef HAVE_GETOPT_LONG /* Usage information, printed when the user runs "dopewars -h" * (version with support for GNU long options) */ _("Usage: dopewars [OPTION]...\n\ Drug dealing game based on \"Drug Wars\" by John E. Dell\n\ -b, --no-color, \"black and white\" - i.e. do not use pretty colours\n\ --no-colour (by default colours are used where available)\n\ -n, --single-player be boring and don't connect to any available dopewars\n\ servers (i.e. single player mode)\n\ -a, --antique \"antique\" dopewars - keep as closely to the original\n\ version as possible (no networking)\n\ -f, --scorefile=FILE specify a file to use as the high score table (by\n\ default %s/dopewars.sco is used)\n\ -o, --hostname=ADDR specify a hostname where the server for multiplayer\n\ dopewars can be found\n\ -s, --public-server run in server mode (note: see the -A option for\n\ configuring a server once it\'s running)\n\ -S, --private-server run a \"private\" server (do not notify the metaserver)\n\ -p, --port=PORT specify the network port to use (default: 7902)\n\ -g, --config-file=FILE specify the pathname of a dopewars configuration file;\n\ this file is read immediately when the -g option\n\ is encountered\n\ -r, --pidfile=FILE maintain pid file \"FILE\" while running the server\n\ -l, --logfile=FILE write log information to \"FILE\"\n\ -A, --admin connect to a locally-running server for administration\n\ -c, --ai-player create and run a computer player\n\ -w, --windowed-client force the use of a graphical (windowed)\n\ client (GTK+ or Win32)\n\ -t, --text-client force the use of a text-mode client (curses) (by\n\ default, a windowed client is used when possible)\n\ -P, --player=NAME set player name to \"NAME\"\n\ -C, --convert=FILE convert an \"old format\" score file to the new format\n"), DPSCOREDIR); PluginHelp(); g_print(_(" -h, --help display this help information\n\ -v, --version output version information and exit\n\n\ dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU GPL\n\ Report bugs to the author at benwebb@users.sf.net\n")); #else /* Usage information, printed when the user runs "dopewars -h" * (short options only version) */ _("Usage: dopewars [OPTION]...\n\ Drug dealing game based on \"Drug Wars\" by John E. Dell\n\ -b \"black and white\" - i.e. do not use pretty colours\n\ (by default colours are used where the terminal supports them)\n\ -n be boring and don't connect to any available dopewars servers\n\ (i.e. single player mode)\n\ -a \"antique\" dopewars - keep as closely to the original version as\n\ possible (no networking)\n\ -f file specify a file to use as the high score table\n\ (by default %s/dopewars.sco is used)\n\ -o addr specify a hostname where the server for multiplayer dopewars\n\ can be found\n\ -s run in server mode (note: see the -A option for configuring a\n\ server once it\'s running)\n\ -S run a \"private\" server (i.e. do not notify the metaserver)\n\ -p port specify the network port to use (default: 7902)\n\ -g file specify the pathname of a dopewars configuration file; this file\n\ is read immediately when the -g option is encountered\n\ -r file maintain pid file \"file\" while running the server\n\ -l file write log information to \"file\"\n\ -c create and run a computer player\n\ -w force the use of a graphical (windowed) client (GTK+ or Win32)\n\ -t force the use of a text-mode client (curses)\n\ (by default, a windowed client is used when possible)\n\ -P name set player name to \"name\"\n\ -C file convert an \"old format\" score file to the new format\n\ -A connect to a locally-running server for administration\n"), DPSCOREDIR); PluginHelp(); g_print(_(" -h display this help information\n\ -v output version information and exit\n\n\ dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU GPL\n\ Report bugs to the author at benwebb@users.sf.net\n")); #endif } struct CMDLINE *ParseCmdLine(int argc, char *argv[]) { int c; struct CMDLINE *cmdline = g_new0(struct CMDLINE, 1); static const gchar *options = "anbchvf:o:sSp:g:r:wtC:l:NAu:P:"; #ifdef HAVE_GETOPT_LONG static const struct option long_options[] = { {"no-color", no_argument, NULL, 'b'}, {"no-colour", no_argument, NULL, 'b'}, {"single-player", no_argument, NULL, 'n'}, {"antique", no_argument, NULL, 'a'}, {"scorefile", required_argument, NULL, 'f'}, {"hostname", required_argument, NULL, 'o'}, {"public-server", no_argument, NULL, 's'}, {"private-server", no_argument, NULL, 'S'}, {"port", required_argument, NULL, 'p'}, {"configfile", required_argument, NULL, 'g'}, {"pidfile", required_argument, NULL, 'r'}, {"ai-player", no_argument, NULL, 'c'}, {"windowed-client", no_argument, NULL, 'w'}, {"text-client", no_argument, NULL, 't'}, {"player", required_argument, NULL, 'P'}, {"convert", required_argument, NULL, 'C'}, {"logfile", required_argument, NULL, 'l'}, {"admin", no_argument, NULL, 'A'}, {"plugin", required_argument, NULL, 'u'}, {"help", no_argument, NULL, 'h'}, {"version", no_argument, NULL, 'v'}, {0, 0, 0, 0} }; #endif cmdline->scorefile = cmdline->servername = cmdline->pidfile = cmdline->logfile = cmdline->plugin = cmdline->convertfile = cmdline->playername = NULL; cmdline->configs = NULL; cmdline->colour = cmdline->network = TRUE; cmdline->client = CLIENT_AUTO; do { #ifdef HAVE_GETOPT_LONG c = getopt_long(argc, argv, options, long_options, NULL); #else c = getopt(argc, argv, options); #endif switch (c) { case 'n': cmdline->network = FALSE; break; case 'b': cmdline->colour = FALSE; break; case 'c': cmdline->ai = TRUE; break; case 'a': cmdline->antique = TRUE; cmdline->network = FALSE; break; case 'v': cmdline->version = TRUE; break; case 'h': case 0: case '?': cmdline->help = TRUE; break; case 'f': AssignName(&cmdline->scorefile, optarg); break; case 'o': AssignName(&cmdline->servername, optarg); break; case 's': cmdline->server = TRUE; cmdline->notifymeta = TRUE; break; case 'S': cmdline->server = TRUE; cmdline->notifymeta = FALSE; break; case 'p': cmdline->setport = TRUE; cmdline->port = atoi(optarg); break; case 'g': cmdline->configs = g_slist_append(cmdline->configs, g_strdup(optarg)); break; case 'r': AssignName(&cmdline->pidfile, optarg); break; case 'l': AssignName(&cmdline->logfile, optarg); break; case 'u': AssignName(&cmdline->plugin, optarg); break; case 'w': cmdline->client = CLIENT_WINDOW; break; case 't': cmdline->client = CLIENT_CURSES; break; case 'P': AssignName(&cmdline->playername, optarg); break; case 'C': AssignName(&cmdline->convertfile, optarg); cmdline->convert = TRUE; break; case 'A': cmdline->admin = TRUE; break; } } while (c != -1); return cmdline; } void FreeCmdLine(struct CMDLINE *cmdline) { GSList *list; g_free(cmdline->scorefile); g_free(cmdline->servername); g_free(cmdline->pidfile); g_free(cmdline->logfile); g_free(cmdline->plugin); g_free(cmdline->convertfile); g_free(cmdline->playername); for (list = cmdline->configs; list; list = g_slist_next(list)) { g_free(list->data); } g_slist_free(list); g_free(cmdline); } static gchar *priv_hiscore = NULL; /* * Does general startup stuff (command line, dropping privileges, * and high score init; config files are handled later) */ struct CMDLINE *GeneralStartup(int argc, char *argv[]) { /* First, open the hard-coded high score file with possibly * elevated privileges */ priv_hiscore = g_strdup_printf("%s/dopewars.sco", DPSCOREDIR); HiScoreFile = g_strdup(priv_hiscore); OpenHighScoreFile(); DropPrivileges(); /* Initialise variables */ Log.File = g_strdup(""); Log.Level = 2; Log.Timestamp = g_strdup("[%H:%M:%S] "); srand((unsigned)time(NULL)); Noone.Name = g_strdup("Noone"); Server = Client = Network = FALSE; return ParseCmdLine(argc, argv); } void InitConfiguration(struct CMDLINE *cmdline) { ConfigErrors = 0; SetupParameters(cmdline->configs, cmdline->antique); if (cmdline->scorefile) { AssignName(&HiScoreFile, cmdline->scorefile); } if (cmdline->servername) { AssignName(&ServerName, cmdline->servername); } if (cmdline->playername) { AssignName(&PlayerName, cmdline->playername); } if (cmdline->pidfile) { AssignName(&PidFile, cmdline->pidfile); } if (cmdline->logfile) { AssignName(&Log.File, cmdline->logfile); OpenLog(); } if (cmdline->setport) { Port = cmdline->port; } #ifdef NETWORKING if (cmdline->server) { MetaServer.Active = cmdline->notifymeta; } #endif WantAntique = cmdline->antique; if (!cmdline->version && !cmdline->help && !cmdline->ai && !cmdline->convert && !cmdline->admin) { /* Open a user-specified high score file with no privileges, if one * was given */ if (strcmp(priv_hiscore, HiScoreFile) != 0) { CloseHighScoreFile(); OpenHighScoreFile(); } } else { CloseHighScoreFile(); } } /* * Removes any ^ or \n characters from the given string, which is * modified in place. */ void StripTerminators(gchar *str) { guint i; if (str) { for (i = 0; i < strlen(str); i++) { switch(str[i]) { case '^': case '\n': str[i] = '~'; break; default: break; } } } } #ifndef CYGWIN #if NETWORKING && !GUI_SERVER static void ServerLogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GString *text; text = GetLogString(log_level, message); if (text) { fprintf(Log.fp ? Log.fp : stdout, "%s\n", text->str); g_string_free(text, TRUE); } } #endif #ifndef CURSES_CLIENT /* * Stub function to report an error if the Curses client is requested and * it isn't compiled in. */ void CursesLoop(struct CMDLINE *cmdline) { g_print(_("No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n")); } #endif #ifndef GUI_CLIENT /* * Stub function to report an error if the GTK+ client is requested and * it isn't compiled in. */ #ifdef CYGWIN gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance, struct CMDLINE *cmdline, gboolean ReturnOnFail) #else gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline, gboolean ReturnOnFail) #endif { if (!ReturnOnFail) { g_print(_("No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n")); } return FALSE; } #endif static void DefaultLogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GString *text; text = GetLogString(log_level, message); if (text) { g_print("%s\n", text->str); g_string_free(text, TRUE); } } /* * Standard program entry - Win32 uses WinMain() instead, in winmain.c */ int main(int argc, char *argv[]) { struct CMDLINE *cmdline; #ifdef ENABLE_NLS setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); #endif WantUTF8Errors(FALSE); g_log_set_handler(NULL, LogMask(), DefaultLogMessage, NULL); cmdline = GeneralStartup(argc, argv); if (cmdline->logfile) { AssignName(&Log.File, cmdline->logfile); } OpenLog(); SoundInit(); if (cmdline->version || cmdline->help) { HandleHelpTexts(cmdline->help); } else if (cmdline->admin) { #ifdef NETWORKING AdminServer(cmdline); #else g_print(_("This binary has been compiled without networking " "support, and thus cannot run\nin admin mode. " "Recompile passing --enable-networking to the " "configure script.\n")); #endif } else if (cmdline->convert) { ConvertHighScoreFile(cmdline->convertfile); } else { InitNetwork(); if (cmdline->server) { #ifdef NETWORKING #ifdef GUI_SERVER Server = TRUE; gtk_set_locale(); gtk_init(&argc, &argv); GuiServerLoop(cmdline, FALSE); #else g_log_set_handler(NULL, LogMask(), ServerLogMessage, NULL); ServerLoop(cmdline); #endif /* GUI_SERVER */ #else g_print(_("This binary has been compiled without networking " "support, and thus cannot run\nin server mode. " "Recompile passing --enable-networking to the " "configure script.\n")); #endif /* NETWORKING */ } else if (cmdline->ai) { AIPlayerLoop(cmdline); } else switch (cmdline->client) { case CLIENT_AUTO: if (!GtkLoop(&argc, &argv, cmdline, TRUE)) CursesLoop(cmdline); break; case CLIENT_WINDOW: GtkLoop(&argc, &argv, cmdline, FALSE); break; case CLIENT_CURSES: CursesLoop(cmdline); break; } #ifdef NETWORKING StopNetworking(); #endif } FreeCmdLine(cmdline); CloseLog(); CloseHighScoreFile(); g_free(PidFile); g_free(Log.File); SoundClose(); return 0; } #endif /* CYGWIN */ dopewars-1.5.12/src/AIPlayer.c0000644001565000007070000004666710355116554013003 00000000000000/************************************************************************ * AIPlayer.c Code for dopewars computer players * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #include #include #ifdef HAVE_UNISTD_H #include #endif #include #include #include #include #include "configfile.h" #include "dopewars.h" #include "message.h" #include "nls.h" #include "tstring.h" #include "util.h" #include "AIPlayer.h" #if NETWORKING static int HandleAIMessage(char *Message, Player *AIPlay); static void PrintAIMessage(char *Text); static void AIDealDrugs(Player *AIPlay); static void AIJet(Player *AIPlay); static void AIGunShop(Player *AIPlay); static void AIPayLoan(Player *AIPlay); static void AISendRandomMessage(Player *AIPlay); static void AISetName(Player *AIPlay); static void AIHandleQuestion(char *Data, AICode AI, Player *AIPlay, Player *From); #define MINSAFECASH 300 #define MINSAFEHEALTH 140 /* Reserve some space for picking up new guns */ #define SPACERESERVE 10 /* * Locations of the loan shark, bank, gun shop and pub * Note: these are not the same as the global variables * LoanSharkLoc, BankLoc, GunShopLoc and RoughPubLoc, * which are set locally. The remote server could * have different locations set, and the AI must work * out where these locations are for itself. */ int RealLoanShark, RealBank, RealGunShop, RealPub; static void AIConnectFailed(NetworkBuffer *netbuf) { GString *errstr; errstr = g_string_new(_("Connection closed by remote host")); if (netbuf->error) g_string_assign_error(errstr, netbuf->error); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Could not connect to dopewars server\n(%s)\n" "AI Player terminating abnormally."), errstr->str); g_string_free(errstr, TRUE); } static void AIStartGame(Player *AIPlay) { Client = Network = TRUE; InitAbilities(AIPlay); SetAbility(AIPlay, A_DONEFIGHT, FALSE); SendAbilities(AIPlay); AISetName(AIPlay); g_message(_("Connection established\n")); } static void DisplayConnectStatus(NetworkBuffer *netbuf, NBStatus oldstatus, NBSocksStatus oldsocks) { NBStatus status; NBSocksStatus sockstat; status = netbuf->status; sockstat = netbuf->sockstat; if (oldstatus == status && oldsocks == sockstat) return; switch (status) { case NBS_PRECONNECT: break; case NBS_SOCKSCONNECT: switch (sockstat) { case NBSS_METHODS: g_print(_("Connected to SOCKS server %s...\n"), Socks.name); break; case NBSS_USERPASSWD: g_print(_("Authenticating with SOCKS server\n")); break; case NBSS_CONNECT: g_print(_("Asking SOCKS for connect to %s...\n"), ServerName); break; } break; case NBS_CONNECTED: break; } } static void NetBufAuth(NetworkBuffer *netbuf, gpointer data) { g_print(_("Using Socks.Auth.User and Socks.Auth.Password " "for SOCKS5 authentication\n")); SendSocks5UserPasswd(netbuf, Socks.authuser, Socks.authpassword); } /* * Main loop for AI players. Connects to server, plays game, * and then disconnects. */ void AIPlayerLoop(struct CMDLINE *cmdline) { GString *errstr; gchar *msg; Player *AIPlay; fd_set readfs, writefs; gboolean DoneOK, QuitRequest, datawaiting; int MaxSock; NBStatus oldstatus; NBSocksStatus oldsocks; NetworkBuffer *netbuf; InitConfiguration(cmdline); errstr = g_string_new(""); AIPlay = g_new(Player, 1); FirstClient = AddPlayer(0, AIPlay, FirstClient); g_message(_("AI Player started; attempting to contact " "server at %s:%d..."), ServerName, Port); /* Forget where the "special" locations are */ RealLoanShark = RealBank = RealGunShop = RealPub = -1; netbuf = &AIPlay->NetBuf; oldstatus = netbuf->status; oldsocks = netbuf->sockstat; if (!StartNetworkBufferConnect(netbuf, NULL, ServerName, Port)) { AIConnectFailed(netbuf); return; } else { SetNetworkBufferUserPasswdFunc(netbuf, NetBufAuth, NULL); if (netbuf->status == NBS_CONNECTED) { AIStartGame(AIPlay); } else { DisplayConnectStatus(netbuf, oldstatus, oldsocks); } } while (1) { FD_ZERO(&readfs); FD_ZERO(&writefs); MaxSock = 0; SetSelectForNetworkBuffer(netbuf, &readfs, &writefs, NULL, &MaxSock); oldstatus = netbuf->status; oldsocks = netbuf->sockstat; if (bselect(MaxSock, &readfs, &writefs, NULL, NULL) == -1) { if (errno == EINTR) continue; printf("Error in select\n"); exit(EXIT_FAILURE); } datawaiting = RespondToSelect(netbuf, &readfs, &writefs, NULL, &DoneOK); if (oldstatus != NBS_CONNECTED && (netbuf->status == NBS_CONNECTED || !DoneOK)) { if (DoneOK) AIStartGame(AIPlay); else { AIConnectFailed(netbuf); break; } } else if (netbuf->status != NBS_CONNECTED) { DisplayConnectStatus(netbuf, oldstatus, oldsocks); } if (datawaiting && netbuf->status == NBS_CONNECTED) { QuitRequest = FALSE; while ((msg = GetWaitingPlayerMessage(AIPlay)) != NULL) { if (HandleAIMessage(msg, AIPlay)) { QuitRequest = TRUE; break; } } if (QuitRequest) { g_print(_("AI Player terminated OK.\n")); break; } } if (!DoneOK) { g_print(_("Connection to server lost!\n")); break; } } ShutdownNetwork(AIPlay); g_string_free(errstr, TRUE); FirstClient = RemovePlayer(AIPlay, FirstClient); } /* * Chooses a random name for the AI player, and informs the server */ void AISetName(Player *AIPlay) { char *AINames[] = { "Chip", "Dopey", "Al", "Dan", "Bob", "Fred", "Bert", "Jim" }; const gint NumNames = sizeof(AINames) / sizeof(AINames[0]); gchar *text; text = g_strdup_printf("AI) %s", AINames[brandom(0, NumNames)]); SetPlayerName(AIPlay, text); g_free(text); SendNullClientMessage(AIPlay, C_NONE, C_NAME, NULL, GetPlayerName(AIPlay)); g_print(_("Using name %s\n"), GetPlayerName(AIPlay)); } /* * Returns TRUE if it would be prudent to run away... */ gboolean ShouldRun(Player *AIPlay) { gint TotalHealth; if (TotalGunsCarried(AIPlay) == 0) return TRUE; TotalHealth = AIPlay->Health + AIPlay->Bitches.Carried * 100; return (TotalHealth < MINSAFEHEALTH); } /* * Decodes the fighting-related message "Msg", and then decides whether * to stand or run... */ static void HandleCombat(Player *AIPlay, gchar *Msg) { gchar *text; gchar *AttackName, *DefendName, *BitchName; FightPoint fp; int DefendHealth, DefendBitches, BitchesKilled, ArmPercent; gboolean CanRunHere, Loot, CanFire; if (HaveAbility(AIPlay, A_NEWFIGHT)) { ReceiveFightMessage(Msg, &AttackName, &DefendName, &DefendHealth, &DefendBitches, &BitchName, &BitchesKilled, &ArmPercent, &fp, &CanRunHere, &Loot, &CanFire, &text); } else { text = Msg; if (AIPlay->Flags & FIGHTING) fp = F_MSG; else fp = F_LASTLEAVE; CanFire = (AIPlay->Flags & CANSHOOT); CanRunHere = FALSE; } PrintAIMessage(text); if (ShouldRun(AIPlay)) { if (CanRunHere) { SendClientMessage(AIPlay, C_NONE, C_FIGHTACT, NULL, "R"); } else { AIDealDrugs(AIPlay); AIJet(AIPlay); } } else if (fp == F_LASTLEAVE) { AIJet(AIPlay); } else { SendClientMessage(AIPlay, C_NONE, C_FIGHTACT, NULL, "F"); } } /* * Performs appropriate processing on an incoming network message * "Message" for AI player "AIPlay". Returns 1 if the game should * be ended as a result, 0 otherwise. */ int HandleAIMessage(char *Message, Player *AIPlay) { char *Data, WasFighting; AICode AI; MsgCode Code; Player *From, *tmp; GSList *list; struct timeval tv; gboolean Handled; if (ProcessMessage(Message, AIPlay, &From, &AI, &Code, &Data, FirstClient) == -1) { g_warning("Bad network message. Oops."); return 0; } Handled = HandleGenericClientMessage(From, AI, Code, AIPlay, Data, NULL); switch (Code) { case C_ENDLIST: g_print(_("Players in this game:-\n")); for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; g_print(" %s\n", GetPlayerName(tmp)); } break; case C_NEWNAME: AISetName(AIPlay); break; case C_FIGHTPRINT: HandleCombat(AIPlay, Data); break; case C_PRINTMESSAGE: PrintAIMessage(Data); if (AI == C_MISSFIGHT || strncmp(Data, "Too late", 8) == 0) { AIJet(AIPlay); } break; case C_MSG: g_print("%s: %s\n", GetPlayerName(From), Data); break; case C_MSGTO: g_print("%s->%s: %s\n", GetPlayerName(From), GetPlayerName(AIPlay), Data); break; case C_JOIN: g_print(_("%s joins the game.\n"), Data); break; case C_LEAVE: if (From != &Noone) { g_print(_("%s has left the game.\n"), Data); } break; case C_SUBWAYFLASH: dpg_print(_("Jetting to %tde with %P cash and %P debt\n"), Location[AIPlay->IsAt].Name, AIPlay->Cash, AIPlay->Debt); /* Use bselect rather than sleep, as this is portable to Win32 */ tv.tv_sec = AITurnPause; tv.tv_usec = 0; bselect(0, NULL, NULL, NULL, &tv); if (brandom(0, 100) < 10) AISendRandomMessage(AIPlay); break; case C_UPDATE: WasFighting = FALSE; if (From == &Noone) { if (AIPlay->Flags & FIGHTING) WasFighting = TRUE; ReceivePlayerData(AIPlay, Data, AIPlay); } else { ReceivePlayerData(AIPlay, Data, From); /* spy reports */ } if (!(AIPlay->Flags & FIGHTING) && WasFighting) { AIDealDrugs(AIPlay); AIJet(AIPlay); } if (AIPlay->Health == 0) { g_print(_("AI Player killed. Terminating normally.\n")); return 1; } break; case C_DRUGHERE: AIDealDrugs(AIPlay); AIJet(AIPlay); break; case C_GUNSHOP: AIGunShop(AIPlay); break; case C_LOANSHARK: AIPayLoan(AIPlay); break; case C_QUESTION: AIHandleQuestion(Data, AI, AIPlay, From); break; case C_HISCORE: case C_STARTHISCORE: break; case C_ENDHISCORE: g_print(_("Game time is up. Leaving game.\n")); return 1; case C_PUSH: g_print(_("AI Player pushed from the server.\n")); return 1; case C_QUIT: g_print(_("The server has terminated.\n")); return 1; default: if (!Handled) g_message("%s^%c^%s%s\n", GetPlayerName(From), Code, GetPlayerName(AIPlay), Data); break; } return 0; } /* * Prints a message received via a printmessage or question * network message, stored in "Text". */ void PrintAIMessage(char *Text) { unsigned i; gboolean SomeText = FALSE; for (i = 0; i < strlen(Text); i++) { if (Text[i] == '^') { if (SomeText) putchar('\n'); } else { putchar(Text[i]); SomeText = TRUE; } } putchar('\n'); } /* * Buys and sell drugs for AI player "AIPlay". */ void AIDealDrugs(Player *AIPlay) { price_t *Profit, MaxProfit; gchar *text; int i, LastHighest, Highest, Num, MinProfit; Profit = g_new(price_t, NumDrug); for (i = 0; i < NumDrug; i++) { Profit[i] = AIPlay->Drugs[i].Price - (Drug[i].MaxPrice + Drug[i].MinPrice) / 2; } MinProfit = 0; for (i = 0; i < NumDrug; i++) if (Profit[i] < MinProfit) MinProfit = Profit[i]; MinProfit--; for (i = 0; i < NumDrug; i++) if (Profit[i] < 0) Profit[i] = MinProfit - Profit[i]; LastHighest = -1; do { MaxProfit = MinProfit; Highest = -1; for (i = 0; i < NumDrug; i++) { if (Profit[i] > MaxProfit && i != LastHighest && (LastHighest == -1 || Profit[LastHighest] > Profit[i])) { Highest = i; MaxProfit = Profit[i]; } } LastHighest = Highest; if (Highest >= 0) { Num = AIPlay->Drugs[Highest].Carried; if (MaxProfit > 0 && Num > 0) { dpg_print(_("Selling %d %tde at %P\n"), Num, Drug[Highest].Name, AIPlay->Drugs[Highest].Price); AIPlay->CoatSize += Num; AIPlay->Cash += Num * AIPlay->Drugs[Highest].Price; text = g_strdup_printf("drug^%d^%d", Highest, -Num); SendClientMessage(AIPlay, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } if (AIPlay->Drugs[Highest].Price != 0 && AIPlay->CoatSize > SPACERESERVE) { Num = AIPlay->Cash / AIPlay->Drugs[Highest].Price; if (Num > AIPlay->CoatSize - SPACERESERVE) { Num = AIPlay->CoatSize - SPACERESERVE; } if (MaxProfit < 0 && Num > 0) { dpg_print(_("Buying %d %tde at %P\n"), Num, Drug[Highest].Name, AIPlay->Drugs[Highest].Price); text = g_strdup_printf("drug^%d^%d", Highest, Num); AIPlay->CoatSize -= Num; AIPlay->Cash -= Num * AIPlay->Drugs[Highest].Price; SendClientMessage(AIPlay, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } } } } while (Highest >= 0); g_free(Profit); } /* * Handles a visit to the gun shop by AI player "AIPlay". */ void AIGunShop(Player *AIPlay) { int i; int Bought; gchar *text; do { Bought = 0; for (i = 0; i < NumGun; i++) { if (TotalGunsCarried(AIPlay) < AIPlay->Bitches.Carried + 2 && Gun[i].Space <= AIPlay->CoatSize && Gun[i].Price <= AIPlay->Cash - MINSAFECASH) { AIPlay->Cash -= Gun[i].Price; AIPlay->CoatSize -= Gun[i].Space; AIPlay->Guns[i].Carried++; Bought++; dpg_print(_("Buying a %tde for %P at the gun shop\n"), Gun[i].Name, Gun[i].Price); text = g_strdup_printf("gun^%d^1", i); SendClientMessage(AIPlay, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } } } while (Bought); SendClientMessage(AIPlay, C_NONE, C_DONE, NULL, NULL); } /* * Decides on a new game location for AI player "AIPlay" and jets there. */ void AIJet(Player *AIPlay) { int NewLocation; char text[40]; if (!AIPlay) return; NewLocation = AIPlay->IsAt; if (RealLoanShark >= 0 && AIPlay->Cash > (price_t)((float)AIPlay->Debt * 1.2)) { NewLocation = RealLoanShark; } else if (RealPub >= 0 && brandom(0, 100) < 30 && AIPlay->Cash > MINSAFECASH * 10) { NewLocation = RealPub; } else if (RealGunShop >= 0 && brandom(0, 100) < 70 && TotalGunsCarried(AIPlay) < AIPlay->Bitches.Carried + 2 && AIPlay->Cash > MINSAFECASH * 5) { NewLocation = RealGunShop; } while (NewLocation == AIPlay->IsAt) NewLocation = brandom(0, NumLocation); sprintf(text, "%d", NewLocation); SendClientMessage(AIPlay, C_NONE, C_REQUESTJET, NULL, text); } /* * Pays off the loan of AI player "AIPlay" if this doesn't leave * the player with insufficient funds for further dealing. */ void AIPayLoan(Player *AIPlay) { gchar *prstr; if (AIPlay->Cash - AIPlay->Debt >= MINSAFECASH) { prstr = pricetostr(AIPlay->Debt); SendClientMessage(AIPlay, C_NONE, C_PAYLOAN, NULL, prstr); g_free(prstr); dpg_print(_("Debt of %P paid off to loan shark\n"), AIPlay->Debt); } SendClientMessage(AIPlay, C_NONE, C_DONE, NULL, NULL); } /* * Sends the answer "answer" from AI player "From" to the server, * claiming to be for player "To". Also prints the answer on the screen. */ void AISendAnswer(Player *From, Player *To, char *answer) { SendClientMessage(From, C_NONE, C_ANSWER, To, answer); puts(answer); } /* * Works out a sensible response to the question coded in "Data" and with * computer-readable code "AI", claiming to be from "From" and for AI * player "AIPlay", and sends it. */ void AIHandleQuestion(char *Data, AICode AI, Player *AIPlay, Player *From) { char *Prompt, *allowed; if (From == &Noone) From = NULL; Prompt = Data; allowed = GetNextWord(&Prompt, ""); PrintAIMessage(Prompt); switch (AI) { case C_ASKLOAN: if (RealLoanShark == -1) { g_print(_("Loan shark located at %s\n"), Location[AIPlay->IsAt].Name); } RealLoanShark = AIPlay->IsAt; AISendAnswer(AIPlay, From, "Y"); break; case C_ASKGUNSHOP: if (RealGunShop == -1) { g_print(_("Gun shop located at %s\n"), Location[AIPlay->IsAt].Name); } RealGunShop = AIPlay->IsAt; AISendAnswer(AIPlay, From, "Y"); break; case C_ASKPUB: if (RealPub == -1) { g_print(_("Pub located at %s\n"), Location[AIPlay->IsAt].Name); } RealPub = AIPlay->IsAt; AISendAnswer(AIPlay, From, "Y"); break; case C_ASKBITCH: case C_ASKRUN: case C_ASKGUN: AISendAnswer(AIPlay, From, "Y"); break; case C_ASKRUNFIGHT: AISendAnswer(AIPlay, From, ShouldRun(AIPlay) ? "R" : "F"); break; case C_ASKBANK: if (RealBank == -1) { g_print(_("Bank located at %s\n"), Location[AIPlay->IsAt].Name); } RealBank = AIPlay->IsAt; AISendAnswer(AIPlay, From, "N"); break; case C_MEETPLAYER: if (TotalGunsCarried(AIPlay) > 0) AISendAnswer(AIPlay, From, "A"); else { AISendAnswer(AIPlay, From, "E"); AIJet(AIPlay); } break; case C_ASKSEW: AISendAnswer(AIPlay, From, AIPlay->Health < MINSAFEHEALTH ? "Y" : "N"); break; default: AISendAnswer(AIPlay, From, "N"); break; } } /* * Sends a random message to all other dopewars players. */ void AISendRandomMessage(Player *AIPlay) { char *RandomInsult[5] = { /* Random messages to send from the AI player to other players */ N_("Call yourselves drug dealers?"), N_("A trained monkey could do better..."), N_("Think you\'re hard enough to deal with the likes of me?"), N_("Zzzzz... are you dealing in candy or what?"), N_("Reckon I'll just have to shoot you for your own good.") }; SendClientMessage(AIPlay, C_NONE, C_MSG, NULL, _(RandomInsult[brandom(0, 5)])); } #else /* NETWORKING */ /* * Whoops - the user asked that we run an AI player, but the binary was * built without that compiled in. */ void AIPlayerLoop(struct CMDLINE *cmdline) { g_print(_("This binary has been compiled without networking support, " "and thus cannot act as an AI player.\nRecompile passing " "--enable-networking to the configure script.")); } #endif /* NETWORKING */ dopewars-1.5.12/src/admin.c0000644001565000007070000001005210355116554012400 00000000000000/************************************************************************ * admin.c dopewars server administration * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #if !defined(CYGWIN) && defined(NETWORKING) #include #include #include #ifdef HAVE_STDLIB_H #include #endif #include #include #include #include #include "dopewars.h" #include "network.h" #include "nls.h" #include "serverside.h" static int OpenSocket(void) { struct sockaddr_un addr; int sock; gchar *sockname; sockname = GetLocalSocket(); g_print(_("Attempting to connect to local dopewars server via " "Unix domain\n socket %s...\n"), sockname); sock = socket(PF_UNIX, SOCK_STREAM, 0); if (sock == -1) { perror("socket"); exit(EXIT_FAILURE); } addr.sun_family = AF_UNIX; strncpy(addr.sun_path, sockname, sizeof(addr.sun_path)); addr.sun_path[sizeof(addr.sun_path) - 1] = '\0'; if (connect(sock, (struct sockaddr *)&addr, sizeof(struct sockaddr_un)) == -1) { perror("connect"); exit(EXIT_FAILURE); } g_print(_("Connection established; use Ctrl-D to " "close your session.\n\n")); g_free(sockname); return sock; } void AdminServer(struct CMDLINE *cmdline) { int sock, topsock; NetworkBuffer *netbuf; fd_set readfds, writefds, errorfds; gchar *msg, inbuf[200]; gboolean doneOK; InitConfiguration(cmdline); sock = OpenSocket(); netbuf = g_new(NetworkBuffer, 1); InitNetworkBuffer(netbuf, '\n', '\r', NULL); BindNetworkBufferToSocket(netbuf, sock); while (1) { FD_ZERO(&readfds); FD_ZERO(&writefds); FD_ZERO(&errorfds); FD_SET(0, &readfds); topsock = 1; SetSelectForNetworkBuffer(netbuf, &readfds, &writefds, &errorfds, &topsock); if (select(topsock, &readfds, &writefds, &errorfds, NULL) == -1) { if (errno == EINTR) continue; else perror("select"); break; } if (FD_ISSET(0, &readfds)) { if (fgets(inbuf, sizeof(inbuf), stdin)) { inbuf[sizeof(inbuf) - 1] = '\0'; if (strlen(inbuf) > 0) { if (inbuf[strlen(inbuf) - 1] == '\n') inbuf[strlen(inbuf) - 1] = '\0'; QueueMessageForSend(netbuf, inbuf); } } else break; } if (RespondToSelect(netbuf, &readfds, &writefds, &errorfds, &doneOK)) { while ((msg = GetWaitingMessage(netbuf)) != NULL) { g_print("%s\n", msg); g_free(msg); } } if (!doneOK) break; } ShutdownNetworkBuffer(netbuf); g_free(netbuf); g_print("Connection closed\n"); } #endif dopewars-1.5.12/src/convert.h0000644001565000007070000000414210137122015012763 00000000000000/************************************************************************ * convert.h Header file for codeset conversion functions * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_CONVERT_H__ #define __DP_CONVERT_H__ #ifdef HAVE_CONFIG_H # include #endif #include typedef struct _Converter Converter; struct _Converter { gchar *ext_codeset; }; void Conv_SetInternalCodeset(const gchar *codeset); Converter *Conv_New(void); void Conv_SetCodeset(Converter *conv, const gchar *codeset); gboolean Conv_Needed(Converter *conv); gchar *Conv_ToExternal(Converter *conv, const gchar *int_str, int len); gchar *Conv_ToInternal(Converter *conv, const gchar *ext_str, int len); void Conv_Free(Converter *conv); #endif /* __DP_CONVERT_H__ */ dopewars-1.5.12/src/pill.ico0000644001565000007070000000137607440217614012611 00000000000000 è( @€€€€€€€€€€€€€ÀÀÀÿÿÿÿÿÿÿÿÿÿÿÿÌÌÌÌÌ ™™™™ÌÀÀ ™ ÌÀÀÀÀÀ ™ÌÌÀÀÀÀ ™™ÌÌ ÀÀÀÀ ™™™ ÌÌÀÀ ™™ ÌÌÌÌÌÌÌ ™™™™™™ ÌÌÌÌÌÌÌ ™™™™™™ ÌÌÌÌÌÌÌ ™™™™™™ ÌÌÌÌÌÌÌ ™™™™™™ ÌÌÌÌÌÌÌ ™™™™™™ÌÌüÌÌÌÌ ™™™™™™ÌÌÿüÌÌÌ ™™™™™™ÌÌÿÿÌÌÌ ™™™™™™ ÌÏÿüÌÌ ™™™™™ÌÌÌÌÌÌ ™™™™™ÌÌÌÌÌ ™™™™ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿü?ðàÀ€€€€€Ààðü?ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿdopewars-1.5.12/src/error.h0000644001565000007070000000523510355116554012455 00000000000000/************************************************************************ * error.h Header file for dopewars error-handling routines * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_ERROR_H__ #define __DP_ERROR_H__ #ifdef HAVE_CONFIG_H #include #endif #include struct _LastError; typedef struct _ErrorType { void (*AppendErrorString) (GString *str, struct _LastError *error); void (*FreeErrorData) (struct _LastError *error); } ErrorType; typedef struct _LastError { gint code; ErrorType *type; gpointer data; } LastError; extern ErrorType *ET_CUSTOM, *ET_ERRNO; #ifdef CYGWIN extern ErrorType *ET_WIN32, *ET_WINSOCK; #else extern ErrorType *ET_HERRNO; #endif typedef enum { E_FULLBUF } CustomErrorCode; typedef struct _ErrTable { gint code; gchar *string; } ErrTable; void WantUTF8Errors(gboolean want); gchar *ErrStrFromErrno(int errcode); void FreeError(LastError *error); LastError *NewError(ErrorType *type, gint code, gpointer data); void SetError(LastError **error, ErrorType *type, gint code, gpointer data); void LookupErrorCode(GString *str, gint code, ErrTable *table, gchar *fallbackstr); void g_string_assign_error(GString *str, LastError *error); void g_string_append_error(GString *str, LastError *error); #endif /* __DP_ERROR_H__ */ dopewars-1.5.12/src/tstring.c0000644001565000007070000002002010355322765013001 00000000000000/************************************************************************ * tstring.c "Translated string" wrappers for dopewars * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #include #include #include #ifdef HAVE_CONFIG_H #include #endif #include #include "dopewars.h" #include "message.h" #include "tstring.h" typedef struct _FmtData { union { int IntVal; price_t PriceVal; char CharVal; char *StrVal; } data; char Type; } FmtData; gchar *GetDefaultTString(gchar *tstring) { gchar *dstr, *pt; dstr = g_strdup(tstring); pt = strchr(dstr, '_'); if (pt) *pt = '\0'; return dstr; } gchar *GetTranslatedString(gchar *str, gchar *code, gboolean Caps) { gchar *dstr, *pt, *tstr, *Default, *tcode; dstr = g_strdup(str); g_strdelimit(dstr, "_", '^'); pt = dstr; Default = GetNextWord(&pt, ""); tstr = NULL; while (1) { tcode = GetNextWord(&pt, NULL); tstr = GetNextWord(&pt, ""); if (!tcode) { tstr = NULL; break; } if (strcmp(tcode, code) == 0) { break; } else tstr = NULL; } if (tstr) { if (Caps) tstr = InitialCaps(tstr); else tstr = g_strdup(tstr); } else { if (Caps) tstr = InitialCaps(Default); else tstr = g_strdup(Default); } g_free(dstr); return tstr; } void GetNextFormat(guint *Index, gchar *str, int *StartPos, int *EndPos, int *FmtPos, gchar *Type, int *ArgNum, int *Wid, int *Prec, char *Code) { int anum, wid, prec; guint i; gchar type; *StartPos = -1; *EndPos = *FmtPos = *ArgNum = *Wid = *Prec = 0; *Type = 0; Code[0] = 0; anum = wid = prec = 0; i = *Index; while (str[i]) { if (str[i] == '%') { *StartPos = *EndPos = i++; while (strchr("#0- +'", str[i])) i++; /* Skip flag characters */ while (str[i] >= '0' && str[i] <= '9') wid = wid * 10 + str[i++] - '0'; if (str[i] == '$') { *EndPos = i; i++; anum = wid; wid = 0; while (strchr("#0- +'", str[i])) i++; /* Skip flag characters */ while (str[i] >= '0' && str[i] <= '9') wid = wid * 10 + str[i++] - '0'; } if (str[i] == '.') { i++; while (str[i] >= '0' && str[i] <= '9') prec = prec * 10 + str[i++] - '0'; } *FmtPos = i; type = str[i]; if ((type == 'T' || type == 't') && i + 2 < strlen(str)) { Code[0] = str[i + 1]; Code[1] = str[i + 2]; Code[2] = 0; i += 3; } else if (type == '/') { i++; while (str[i] != '\0' && str[i] != '/') i++; if (str[i] == '/') i++; } else i++; *ArgNum = anum; *Wid = wid; *Prec = prec; *Index = i; *Type = type; return; } else i++; } *Index = i; } gchar *HandleTFmt(gchar *format, va_list va) { int StrInd, StartPos, EndPos, FmtPos, Wid, Prec, ArgNum, DefaultArgNum; guint i; char Code[3], Type; gchar *retstr, *fstr; GString *string, *tmpfmt; GArray *arr; FmtData *fdat; string = g_string_new(""); tmpfmt = g_string_new(""); arr = g_array_new(FALSE, TRUE, sizeof(FmtData)); i = DefaultArgNum = 0; while (i < strlen(format)) { GetNextFormat(&i, format, &StartPos, &EndPos, &FmtPos, &Type, &ArgNum, &Wid, &Prec, Code); if (StartPos == -1) break; if (ArgNum == 0) ArgNum = ++DefaultArgNum; if (ArgNum > arr->len) { g_array_set_size(arr, ArgNum); } g_array_index(arr, FmtData, ArgNum - 1).Type = Type; } for (i = 0; i < arr->len; i++) { fdat = &g_array_index(arr, FmtData, i); switch (fdat->Type) { case '\0': g_error("Incomplete format string!"); break; case 'd': fdat->data.IntVal = va_arg(va, int); break; case 'P': fdat->data.PriceVal = va_arg(va, price_t); break; case 'c': fdat->data.CharVal = (char)va_arg(va, int); break; case 's': case 't': case 'T': fdat->data.StrVal = va_arg(va, char *); break; case '%': case '/': break; /* No special action for %% or %/.../ */ default: g_error("Unknown format type %c!", fdat->Type); } } i = DefaultArgNum = 0; while (i < strlen(format)) { StrInd = i; GetNextFormat(&i, format, &StartPos, &EndPos, &FmtPos, &Type, &ArgNum, &Wid, &Prec, Code); if (StartPos == -1) { g_string_append(string, &format[StrInd]); break; } while (StrInd < StartPos) g_string_append_c(string, format[StrInd++]); if (ArgNum == 0) ArgNum = ++DefaultArgNum; g_string_assign(tmpfmt, "%"); EndPos++; while (EndPos < FmtPos) g_string_append_c(tmpfmt, format[EndPos++]); if (Type == 'T' || Type == 't' || Type == 'P') g_string_append_c(tmpfmt, 's'); else g_string_append_c(tmpfmt, Type); fdat = &g_array_index(arr, FmtData, ArgNum - 1); if (Type != fdat->Type) g_error("Unmatched types!"); switch (Type) { case 'd': g_string_sprintfa(string, tmpfmt->str, fdat->data.IntVal); break; case 'c': g_string_sprintfa(string, tmpfmt->str, fdat->data.CharVal); break; case 'P': fstr = FormatPrice(fdat->data.PriceVal); g_string_sprintfa(string, tmpfmt->str, fstr); g_free(fstr); break; case 't': case 'T': fstr = GetTranslatedString(fdat->data.StrVal, Code, Type == 'T'); g_string_sprintfa(string, tmpfmt->str, fstr); g_free(fstr); break; case 's': g_string_sprintfa(string, tmpfmt->str, fdat->data.StrVal); break; case '%': g_string_append_c(string, '%'); break; } } retstr = string->str; g_array_free(arr, TRUE); g_string_free(string, FALSE); g_string_free(tmpfmt, TRUE); return retstr; } void dpg_print(gchar *format, ...) { va_list ap; gchar *retstr; va_start(ap, format); retstr = HandleTFmt(format, ap); va_end(ap); g_print("%s", retstr); g_free(retstr); } gchar *dpg_strdup_printf(gchar *format, ...) { va_list ap; gchar *retstr; va_start(ap, format); retstr = HandleTFmt(format, ap); va_end(ap); return retstr; } void dpg_string_sprintf(GString *string, gchar *format, ...) { va_list ap; gchar *newstr; va_start(ap, format); newstr = HandleTFmt(format, ap); g_string_assign(string, newstr); g_free(newstr); va_end(ap); } void dpg_string_sprintfa(GString *string, gchar *format, ...) { va_list ap; gchar *newstr; va_start(ap, format); newstr = HandleTFmt(format, ap); g_string_append(string, newstr); g_free(newstr); va_end(ap); } dopewars-1.5.12/src/curses_client/0000777001565000007070000000000010355323331014065 500000000000000dopewars-1.5.12/src/curses_client/Makefile.am0000644001565000007070000000030007467757202016050 00000000000000noinst_LIBRARIES = libcursesclient.a libcursesclient_a_SOURCES = curses_client.c curses_client.h INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GLIB_CFLAGS@ DEFS = @DEFS@ dopewars-1.5.12/src/curses_client/curses_client.c0000644001565000007070000023244610355116554017031 00000000000000/************************************************************************ * curses_client.c dopewars client using the (n)curses console library * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #ifdef HAVE_UNISTD_H #include #endif #include #include #include #include #include "configfile.h" #include "curses_client.h" #include "cursesport/cursesport.h" #include "dopewars.h" #include "message.h" #include "nls.h" #include "serverside.h" #include "sound.h" #include "tstring.h" static int ResizedFlag; static SCREEN *cur_screen; #define PromptAttr (COLOR_PAIR(1)) #define TextAttr (COLOR_PAIR(2)) #define LocationAttr (COLOR_PAIR(3)|A_BOLD) #define TitleAttr (COLOR_PAIR(4)) #define StatsAttr (COLOR_PAIR(5)) #define DebtAttr (COLOR_PAIR(6)) /* Current size of the screen */ static int Width, Depth; /* Maximum number of messages to store (for scrollback etc.) */ const static int MaxMessages = 1000; #ifdef NETWORKING static enum { CM_SERVER, CM_PROMPT, CM_META, CM_SINGLE } ConnectMethod = CM_SERVER; #endif static gboolean CanFire = FALSE, RunHere = FALSE; static FightPoint fp; /* Function definitions; make them static so as not to clash with * functions of the same name in different clients */ static void display_intro(void); static void ResizeHandle(int sig); static void CheckForResize(Player *Play); static int GetKey(char *allowed, char *orig_allowed, gboolean AllowOther, gboolean PrintAllowed, gboolean ExpandOut); static void clear_bottom(void), clear_screen(void); static void clear_line(int line), clear_exceptfor(int skip); static void nice_wait(void); static void DisplayFightMessage(Player *Play, char *text); static void DisplaySpyReports(char *Data, Player *From, Player *To); static void display_message(const char *buf); static void print_location(char *text); static void print_status(Player *Play, gboolean DispDrug); static char *nice_input(char *prompt, int sy, int sx, gboolean digitsonly, char *displaystr, char passwdchar); static Player *ListPlayers(Player *Play, gboolean Select, char *Prompt); static void HandleClientMessage(char *buf, Player *Play); static void PrintMessage(const gchar *text); static void GunShop(Player *Play); static void LoanShark(Player *Play); static void Bank(Player *Play); static void PrepareHighScoreScreen(void); static void PrintHighScore(char *Data); static void scroll_msg_area_up(void); static void scroll_msg_area_down(void); #ifdef NETWORKING static void HttpAuthFunc(HttpConnection *conn, gboolean proxyauth, gchar *realm, gpointer data); static void SocksAuthFunc(NetworkBuffer *netbuf, gpointer data); #endif static DispMode DisplayMode; static gboolean QuitRequest, WantColour = TRUE, WantNetwork = TRUE; /* * Initialises the curses library for accessing the screen. */ static void start_curses(void) { cur_screen = newterm(NULL, stdout, stdin); if (WantColour) { start_color(); init_pair(1, COLOR_MAGENTA, COLOR_WHITE); init_pair(2, COLOR_BLACK, COLOR_WHITE); init_pair(3, COLOR_BLACK, COLOR_WHITE); init_pair(4, COLOR_BLUE, COLOR_WHITE); init_pair(5, COLOR_WHITE, COLOR_BLUE); init_pair(6, COLOR_RED, COLOR_WHITE); } cbreak(); noecho(); nodelay(stdscr, FALSE); keypad(stdscr, TRUE); curs_set(0); } /* * Shuts down the curses screen library. */ static void end_curses(void) { keypad(stdscr, FALSE); curs_set(1); erase(); refresh(); endwin(); } /* * Handles a SIGWINCH signal, which is sent to indicate that the * size of the curses screen has changed. */ void ResizeHandle(int sig) { ResizedFlag = 1; } /* * Returns the topmost row of the message area */ static int get_msg_area_top(void) { return 10; } static int get_separator_line(void) { if (!Network) { return 14; } else if (Depth <= 20) { return 11; } else if (Depth <= 24) { return Depth - 9; } else { return 11 + (Depth - 20) * 2 / 3; } } /* * Returns the bottommost row of the message area */ static int get_msg_area_bottom(void) { return get_separator_line() - 1; } static int get_ui_area_top(void) { return get_separator_line() + (Network ? 1 : 2); } static int get_ui_area_bottom(void) { return Depth - 1; } static int get_prompt_line(void) { return Depth - 2; } /* * Checks to see if the curses window needs to be resized - i.e. if a * SIGWINCH signal has been received. */ void CheckForResize(Player *Play) { sigset_t sigset; sigemptyset(&sigset); sigaddset(&sigset, SIGWINCH); sigprocmask(SIG_BLOCK, &sigset, NULL); if (ResizedFlag) { ResizedFlag = 0; end_curses(); start_curses(); Width = COLS; Depth = LINES; attrset(TextAttr); clear_screen(); display_message(""); DisplayFightMessage(Play, ""); print_status(Play, TRUE); } sigprocmask(SIG_UNBLOCK, &sigset, NULL); } static void LogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { attrset(TextAttr); clear_bottom(); PrintMessage(message); nice_wait(); attrset(TextAttr); clear_bottom(); } /* * Displays a string, horizontally centred on the given row */ static void mvaddcentstr(const int row, const gchar *str) { guint col, len; len = strlen(str); col = (len > (guint)Width ? 0 : ((guint)Width - len) / 2); mvaddstr(row, col, str); } /* * Displays a string at the given coordinates and with the given * attributes. If the string is longer than "wid", it is truncated, and * if shorter, it is padded with spaces. */ static void mvaddfixwidstr(const int row, const int col, const int wid, const gchar *str, const int attrs) { int strwid = str ? strlen(str) : 0; int strind; strwid = MIN(strwid, wid); for (strind = 0; strind < strwid; ++strind) { mvaddch(row, col + strind, (guchar)str[strind] | attrs); } for (strind = strwid; strind < wid; ++strind) { mvaddch(row, col + strind, (guchar)' ' | attrs); } } /* * Displays a dopewars introduction screen. */ void display_intro(void) { const gchar *translation = N_("English Translation Ben Webb"); GString *text; attrset(TextAttr); clear_screen(); attrset(TitleAttr); /* Curses client introduction screen */ text = g_string_new(_("D O P E W A R S")); mvaddcentstr(0, text->str); attrset(TextAttr); mvaddcentstr(2, _("Based on John E. Dell's old Drug Wars game, dopewars " "is a simulation of an")); mvaddcentstr(3, _("imaginary drug market. dopewars is an All-American " "game which features")); mvaddcentstr(4, _("buying, selling, and trying to get past the cops!")); mvaddcentstr(6, _("The first thing you need to do is pay off your " "debt to the Loan Shark. After")); mvaddcentstr(7, _("that, your goal is to make as much money as " "possible (and stay alive)!")); mvaddcentstr(8, _("You have one month of game time to make your fortune.")); g_string_sprintf(text, _("Version %-8s Copyright (C) 1998-2005 Ben Webb " "benwebb@users.sf.net"), VERSION); mvaddcentstr(10, text->str); g_string_assign(text, _("dopewars is released under the GNU " "General Public Licence")); mvaddcentstr(11, text->str); g_string_assign(text, _(translation)); if (strcmp(text->str, translation) != 0) { mvaddstr(12, 7, text->str); } mvaddstr(13, 7, _("Icons and Graphics Ocelot Mantis")); mvaddstr(14, 7, _("Sounds Robin Kohli, 19.5degs.com")); mvaddstr(15, 7, _("Drug Dealing and Research Dan Wolf")); mvaddstr(16, 7, _("Play Testing Phil Davis " "Owen Walsh")); mvaddstr(17, 7, _("Extensive Play Testing Katherine Holt " "Caroline Moore")); mvaddstr(18, 7, _("Constructive Criticism Andrea Elliot-Smith " "Pete Winn")); mvaddstr(19, 7, _("Unconstructive Criticism James Matthews")); mvaddcentstr(21, _("For information on the command line options, type " "dopewars -h at your")); mvaddcentstr(22, _("Unix prompt. This will display a help screen, listing " "the available options.")); g_string_free(text, TRUE); nice_wait(); attrset(TextAttr); clear_screen(); refresh(); } #ifdef NETWORKING /* * Prompts the user to enter a server name and port to connect to. */ static void SelectServerManually(void) { gchar *text, *PortText; int top = get_ui_area_top(); if (ServerName[0] == '(') AssignName(&ServerName, "localhost"); attrset(TextAttr); clear_bottom(); mvaddstr(top + 1, 1, /* Prompts for hostname and port when selecting a server * manually */ _("Please enter the hostname and port of a dopewars server:-")); text = nice_input(_("Hostname: "), top + 2, 1, FALSE, ServerName, '\0'); AssignName(&ServerName, text); g_free(text); PortText = g_strdup_printf("%d", Port); text = nice_input(_("Port: "), top + 3, 1, TRUE, PortText, '\0'); Port = atoi(text); g_free(text); g_free(PortText); } /* * Contacts the dopewars metaserver, and obtains a list of valid * server/port pairs, one of which the user should select. * Returns TRUE on success; on failure FALSE is returned, and * errstr is assigned an error message. */ static gboolean SelectServerFromMetaServer(Player *Play, GString *errstr) { int c; GSList *ListPt; ServerData *ThisServer; GString *text; gint index; fd_set readfds, writefds; int maxsock; gboolean DoneOK; HttpConnection *MetaConn; int top = get_ui_area_top(); attrset(TextAttr); clear_bottom(); mvaddstr(top + 1, 1, _("Please wait... attempting to contact metaserver...")); refresh(); if (OpenMetaHttpConnection(&MetaConn)) { SetHttpAuthFunc(MetaConn, HttpAuthFunc, NULL); SetNetworkBufferUserPasswdFunc(&MetaConn->NetBuf, SocksAuthFunc, NULL); } else { g_string_assign_error(errstr, MetaConn->NetBuf.error); CloseHttpConnection(MetaConn); return FALSE; } ClearServerList(&ServerList); do { FD_ZERO(&readfds); FD_ZERO(&writefds); FD_SET(0, &readfds); maxsock = 1; SetSelectForNetworkBuffer(&MetaConn->NetBuf, &readfds, &writefds, NULL, &maxsock); if (bselect(maxsock, &readfds, &writefds, NULL, NULL) == -1) { if (errno == EINTR) { CheckForResize(Play); continue; } perror("bselect"); exit(EXIT_FAILURE); } if (FD_ISSET(0, &readfds)) { /* So that Ctrl-L works */ c = getch(); if (c == '\f') wrefresh(curscr); } if (RespondToSelect (&MetaConn->NetBuf, &readfds, &writefds, NULL, &DoneOK)) { while (HandleWaitingMetaServerData(MetaConn, &ServerList, &DoneOK)) { } } if (!DoneOK && HandleHttpCompletion(MetaConn)) { if (IsHttpError(MetaConn)) { g_string_assign_error(errstr, MetaConn->NetBuf.error); CloseHttpConnection(MetaConn); return FALSE; } } } while (DoneOK); CloseHttpConnection(MetaConn); text = g_string_new(""); ListPt = ServerList; while (ListPt) { ThisServer = (ServerData *)(ListPt->data); attrset(TextAttr); clear_bottom(); /* Printout of metaserver information in curses client */ g_string_sprintf(text, _("Server : %s"), ThisServer->Name); mvaddstr(top + 1, 1, text->str); g_string_sprintf(text, _("Port : %d"), ThisServer->Port); mvaddstr(top + 2, 1, text->str); g_string_sprintf(text, _("Version : %s"), ThisServer->Version); mvaddstr(top + 2, 40, text->str); if (ThisServer->CurPlayers == -1) { g_string_sprintf(text, _("Players: -unknown- (maximum %d)"), ThisServer->MaxPlayers); } else { g_string_sprintf(text, _("Players: %d (maximum %d)"), ThisServer->CurPlayers, ThisServer->MaxPlayers); } mvaddstr(top + 3, 1, text->str); g_string_sprintf(text, _("Up since : %s"), ThisServer->UpSince); mvaddstr(top + 3, 40, text->str); g_string_sprintf(text, _("Comment: %s"), ThisServer->Comment); mvaddstr(top + 4, 1, text->str); attrset(PromptAttr); mvaddstr(top + 5, 1, _("N>ext server; P>revious server; S>elect this server... ")); /* The three keys that are valid responses to the previous question - * if you translate them, keep the keys in the same order (N>ext, * P>revious, S>elect) as they are here, otherwise they'll do the * wrong things. */ c = GetKey(_("NPS"), "NPS", FALSE, FALSE, FALSE); switch (c) { case 'S': AssignName(&ServerName, ThisServer->Name); Port = ThisServer->Port; ListPt = NULL; break; case 'N': ListPt = g_slist_next(ListPt); if (!ListPt) ListPt = ServerList; break; case 'P': index = g_slist_position(ServerList, ListPt) - 1; if (index >= 0) ListPt = g_slist_nth(ServerList, (guint)index); else ListPt = g_slist_last(ListPt); break; } } if (!ServerList) { g_string_assign(errstr, "No servers listed on metaserver"); return FALSE; } clear_line(top + 1); refresh(); g_string_free(text, TRUE); return TRUE; } static void DisplayConnectStatus(NetworkBuffer *netbuf, NBStatus oldstatus, NBSocksStatus oldsocks) { NBStatus status; NBSocksStatus sockstat; GString *text; status = netbuf->status; sockstat = netbuf->sockstat; if (oldstatus == status && oldsocks == sockstat) return; text = g_string_new(""); switch (status) { case NBS_PRECONNECT: break; case NBS_SOCKSCONNECT: switch (sockstat) { case NBSS_METHODS: g_string_sprintf(text, _("Connected to SOCKS server %s..."), Socks.name); break; case NBSS_USERPASSWD: g_string_assign(text, _("Authenticating with SOCKS server")); break; case NBSS_CONNECT: g_string_sprintf(text, _("Asking SOCKS for connect to %s..."), ServerName); break; } break; case NBS_CONNECTED: break; } if (text->str[0]) { mvaddstr(17, 1, text->str); refresh(); } g_string_free(text, TRUE); } void HttpAuthFunc(HttpConnection *conn, gboolean proxyauth, gchar *realm, gpointer data) { gchar *text, *user, *password = NULL; attrset(TextAttr); clear_bottom(); if (proxyauth) { text = g_strdup_printf(_("Proxy authentication required for realm %s"), realm); } else { text = g_strdup_printf(_("Authentication required for realm %s"), realm); } mvaddstr(17, 1, text); mvaddstr(18, 1, _("(Enter a blank username to cancel)")); g_free(text); user = nice_input(_("User name: "), 19, 1, FALSE, NULL, '\0'); if (user && user[0]) { password = nice_input(_("Password: "), 20, 1, FALSE, NULL, '*'); } SetHttpAuthentication(conn, proxyauth, user, password); g_free(user); g_free(password); } void SocksAuthFunc(NetworkBuffer *netbuf, gpointer data) { gchar *user, *password = NULL; attrset(TextAttr); clear_bottom(); mvaddstr(17, 1, _("SOCKS authentication required (enter a blank " "username to cancel)")); user = nice_input(_("User name: "), 18, 1, FALSE, NULL, '\0'); if (user && user[0]) { password = nice_input(_("Password: "), 19, 1, FALSE, NULL, '*'); } SendSocks5UserPasswd(netbuf, user, password); g_free(user); g_free(password); } static gboolean DoConnect(Player *Play, GString *errstr) { NetworkBuffer *netbuf; fd_set readfds, writefds; int maxsock, c; gboolean doneOK = TRUE; NBStatus oldstatus; NBSocksStatus oldsocks; netbuf = &Play->NetBuf; oldstatus = netbuf->status; oldsocks = netbuf->sockstat; if (!StartNetworkBufferConnect(netbuf, NULL, ServerName, Port)) { doneOK = FALSE; } else { SetNetworkBufferUserPasswdFunc(netbuf, SocksAuthFunc, NULL); doneOK = TRUE; while (netbuf->status != NBS_CONNECTED && doneOK) { DisplayConnectStatus(netbuf, oldstatus, oldsocks); oldstatus = netbuf->status; oldsocks = netbuf->sockstat; FD_ZERO(&readfds); FD_ZERO(&writefds); FD_SET(0, &readfds); maxsock = 1; SetSelectForNetworkBuffer(netbuf, &readfds, &writefds, NULL, &maxsock); if (bselect(maxsock, &readfds, &writefds, NULL, NULL) == -1) { if (errno == EINTR) { CheckForResize(Play); continue; } perror("bselect"); exit(EXIT_FAILURE); } if (FD_ISSET(0, &readfds)) { /* So that Ctrl-L works */ c = getch(); #ifndef CYGWIN if (c == '\f') wrefresh(curscr); #endif } RespondToSelect(netbuf, &readfds, &writefds, NULL, &doneOK); } } if (!doneOK) g_string_assign_error(errstr, netbuf->error); return doneOK; } /* * Connects to a dopewars server. Prompts the user to select a server * if necessary. Returns TRUE, unless the user elected to quit the * program rather than choose a valid server. */ static gboolean ConnectToServer(Player *Play) { gboolean MetaOK = TRUE, NetOK = TRUE, firstrun = FALSE; GString *errstr; gchar *text; int c, top = get_ui_area_top(); errstr = g_string_new(""); if (g_strcasecmp(ServerName, SN_META) == 0 || ConnectMethod == CM_META) { ConnectMethod = CM_META; MetaOK = SelectServerFromMetaServer(Play, errstr); } else if (g_strcasecmp(ServerName, SN_PROMPT) == 0 || ConnectMethod == CM_PROMPT) { ConnectMethod = CM_PROMPT; SelectServerManually(); } else if (g_strcasecmp(ServerName, SN_SINGLE) == 0 || ConnectMethod == CM_SINGLE) { ConnectMethod = CM_SINGLE; g_string_free(errstr, TRUE); return TRUE; } else firstrun = TRUE; while (1) { attrset(TextAttr); clear_bottom(); if (MetaOK && !firstrun) { mvaddstr(top + 1, 1, _("Please wait... attempting to contact " "dopewars server...")); refresh(); NetOK = DoConnect(Play, errstr); } if (!NetOK || !MetaOK || firstrun) { firstrun = FALSE; clear_line(top); clear_line(top + 1); if (!MetaOK) { /* Display of an error while contacting the metaserver */ mvaddstr(top, 1, _("Cannot get metaserver details")); text = g_strdup_printf(" (%s)", errstr->str); mvaddstr(top + 1, 1, text); g_free(text); } else if (!NetOK) { /* Display of an error message while trying to contact a dopewars * server (the error message itself is displayed on the next * screen line) */ mvaddstr(top, 1, _("Could not start multiplayer dopewars")); text = g_strdup_printf(" (%s)", errstr->str); mvaddstr(top + 1, 1, text); g_free(text); } MetaOK = NetOK = TRUE; attrset(PromptAttr); mvaddstr(top + 2, 1, _("Will you... C>onnect to a named dopewars server")); mvaddstr(top + 3, 1, _(" L>ist the servers on the metaserver, and " "select one")); mvaddstr(top + 4, 1, _(" Q>uit (where you can start a server " "by typing \"dopewars -s\")")); mvaddstr(top + 5, 1, _(" or P>lay single-player ? ")); attrset(TextAttr); /* Translate these 4 keys in line with the above options, keeping * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) */ c = GetKey(_("CLQP"), "CLQP", FALSE, FALSE, FALSE); switch (c) { case 'Q': g_string_free(errstr, TRUE); return FALSE; case 'P': g_string_free(errstr, TRUE); return TRUE; case 'L': MetaOK = SelectServerFromMetaServer(Play, errstr); break; case 'C': SelectServerManually(); break; } } else break; } g_string_free(errstr, TRUE); Client = Network = TRUE; return TRUE; } #endif /* NETWORKING */ /* * Displays the list of null-terminated names given by the "names" * parameter in the bottom part of the screen. The names are spaced * in columns so as to attempt to make best use of the available space. * After displaying the names, the list is freed. */ void display_select_list(GSList *names) { int top = get_ui_area_top() + 1, maxrows; guint maxlen = 0; int numcols, numrows, xoff, count, numlist; GSList *listpt; maxrows = get_prompt_line() - top; for (listpt = names, numlist = 0; listpt; listpt = g_slist_next(listpt), numlist++) { maxlen = MAX(maxlen, strlen(listpt->data)); } maxlen += 3; numcols = Width / maxlen; numcols = MAX(numcols, 1); /* Try and make the list reasonably "square" */ while(numcols > 1) { numrows = (numlist + numcols - 2) / (numcols - 1); if (numrows <= maxrows && numrows <= numcols && numcols > 1) { numcols--; } else { break; } } xoff = (Width - numcols * maxlen + 3) / 2; xoff = MAX(xoff, 0); count = 0; for (listpt = names; listpt; listpt = g_slist_next(listpt), count++) { mvaddstr(top + count / numcols, xoff + maxlen * (count % numcols), listpt->data); g_free(listpt->data); } g_slist_free(names); } /* * Displays the list of locations and prompts the user to select one. * If "AllowReturn" is TRUE, then if the current location is selected * simply drop back to the main game loop, otherwise send a request * to the server to move to the new location. If FALSE, the user MUST * choose a new location to move to. The active client player is * passed in "Play". * N.B. May set the global variable DisplayMode. * Returns: TRUE if the user chose to jet to a new location, * FALSE if the action was cancelled instead. */ static gboolean jet(Player *Play, gboolean AllowReturn) { int i, c; GSList *names = NULL; GString *str; str = g_string_new(""); attrset(TextAttr); clear_bottom(); for (i = 0; i < NumLocation; i++) { gchar *text; /* Display of shortcut keys and locations to jet to */ text = dpg_strdup_printf(_("%d. %tde"), i + 1, Location[i].Name); names = g_slist_append(names, text); } display_select_list(names); attrset(PromptAttr); /* Prompt when the player chooses to "jet" to a new location */ mvaddstr(get_prompt_line(), 22, _("Where to, dude ? ")); attrset(TextAttr); curs_set(1); do { c = bgetch(); if (c >= '1' && c < '1' + NumLocation) { dpg_string_sprintf(str, _("%/Location display/%tde"), Location[c - '1'].Name); addstr(str->str); if (Play->IsAt != c - '1') { g_string_sprintf(str, "%d", c - '1'); DisplayMode = DM_NONE; SendClientMessage(Play, C_NONE, C_REQUESTJET, NULL, str->str); } else { c = 0; } } else { c = 0; } } while (c == 0 && !AllowReturn); curs_set(0); g_string_free(str, TRUE); return (c != 0); } /* * Prompts the user "Play" to drop some of the currently carried drugs. */ static void DropDrugs(Player *Play) { int i, c, num, NumDrugs, top = get_ui_area_top(); GString *text; gchar *buf; attrset(TextAttr); clear_bottom(); text = g_string_new(""); dpg_string_sprintf(text, /* List of drugs that you can drop (%tde = "drugs" by * default) */ _("You can\'t get any cash for the following " "carried %tde :"), Names.Drugs); mvaddstr(top, 1, text->str); NumDrugs = 0; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price == 0) { g_string_sprintf(text, "%c. %-10s %-8d", NumDrugs + 'A', Drug[i].Name, Play->Drugs[i].Carried); mvaddstr(top + NumDrugs / 3, (NumDrugs % 3) * 25 + 4, text->str); NumDrugs++; } } attrset(PromptAttr); mvaddstr(get_prompt_line(), 20, _("What do you want to drop? ")); curs_set(1); attrset(TextAttr); c = bgetch(); c = toupper(c); for (i = 0; c >= 'A' && c < 'A' + NumDrugs && i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price == 0) { c--; if (c < 'A') { addstr(Drug[i].Name); buf = nice_input(_("How many do you drop? "), get_prompt_line() + 1, 8, TRUE, NULL, '\0'); num = atoi(buf); g_free(buf); if (num > 0) { g_string_sprintf(text, "drug^%d^%d", i, -num); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text->str); } } } } g_string_free(text, TRUE); } /* * Prompts the user (i.e. the owner of client "Play") to buy drugs if * "Buy" is TRUE, or to sell drugs otherwise. A list of available drugs * is displayed, and on receiving the selection, the user is prompted * for the number of drugs desired. Finally a message is sent to the * server to buy or sell the required quantity. */ static void DealDrugs(Player *Play, gboolean Buy) { int i, c, NumDrugsHere; gchar *text, *input; int DrugNum, CanCarry, CanAfford; NumDrugsHere = 0; for (c = 0; c < NumDrug; c++) if (Play->Drugs[c].Price > 0) NumDrugsHere++; clear_line(get_prompt_line()); attrset(PromptAttr); if (Buy) { /* Buy and sell prompts for dealing drugs or guns */ mvaddstr(get_prompt_line(), 20, _("What do you wish to buy? ")); } else { mvaddstr(get_prompt_line(), 20, _("What do you wish to sell? ")); } curs_set(1); attrset(TextAttr); c = bgetch(); c = toupper(c); if (c >= 'A' && c < 'A' + NumDrugsHere) { DrugNum = -1; c -= 'A'; for (i = 0; i <= c; i++) DrugNum = GetNextDrugIndex(DrugNum, Play); addstr(Drug[DrugNum].Name); CanCarry = Play->CoatSize; CanAfford = Play->Cash / Play->Drugs[DrugNum].Price; if (Buy) { /* Display of number of drugs you could buy and/or carry, when * buying drugs */ text = g_strdup_printf(_("You can afford %d, and can carry %d. "), CanAfford, CanCarry); mvaddstr(get_prompt_line() + 1, 2, text); input = nice_input(_("How many do you buy? "), get_prompt_line() + 1, 2 + strlen(text), TRUE, NULL, '\0'); c = atoi(input); g_free(input); g_free(text); if (c >= 0) { text = g_strdup_printf("drug^%d^%d", DrugNum, c); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } } else { /* Display of number of drugs you have, when selling drugs */ text = g_strdup_printf(_("You have %d. "), Play->Drugs[DrugNum].Carried); mvaddstr(get_prompt_line() + 1, 2, text); input = nice_input(_("How many do you sell? "), get_prompt_line() + 1, 2 + strlen(text), TRUE, NULL, '\0'); c = atoi(input); g_free(input); g_free(text); if (c >= 0) { text = g_strdup_printf("drug^%d^%d", DrugNum, -c); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } } } curs_set(0); } /* * Prompts the user (player "Play") to give an errand to one of his/her * bitches. The decision is relayed to the server for implementation. */ static void GiveErrand(Player *Play) { int c, y; GString *text; Player *To; text = g_string_new(""); attrset(TextAttr); clear_bottom(); y = get_ui_area_top() + 1; /* Prompt for sending your bitches out to spy etc. (%tde = "bitches" by * default) */ dpg_string_sprintf(text, _("Choose an errand to give one of your %tde..."), Names.Bitches); mvaddstr(y++, 1, text->str); attrset(PromptAttr); if (Play->Bitches.Carried > 0) { dpg_string_sprintf(text, _(" S>py on another dealer " "(cost: %P)"), Prices.Spy); mvaddstr(y++, 2, text->str); dpg_string_sprintf(text, _(" T>ip off the cops to another dealer " "(cost: %P)"), Prices.Tipoff); mvaddstr(y++, 2, text->str); mvaddstr(y++, 2, _(" G>et stuffed")); } if (Play->Flags & SPYINGON) { mvaddstr(y++, 2, _("or C>ontact your spies and receive reports")); } mvaddstr(y++, 2, _("or N>o errand ? ")); curs_set(1); attrset(TextAttr); /* Translate these 5 keys to match the above options, keeping the * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, * N>o errand) */ c = GetKey(_("STGCN"), "STGCN", TRUE, FALSE, FALSE); if (Play->Bitches.Carried > 0 || c == 'C') switch (c) { case 'S': To = ListPlayers(Play, TRUE, _("Whom do you want to spy on? ")); if (To) SendClientMessage(Play, C_NONE, C_SPYON, To, NULL); break; case 'T': To = ListPlayers(Play, TRUE, _("Whom do you want to tip the cops off to? ")); if (To) SendClientMessage(Play, C_NONE, C_TIPOFF, To, NULL); break; case 'G': attrset(PromptAttr); /* Prompt for confirmation of sacking a bitch */ addstr(_(" Are you sure? ")); /* The two keys that are valid for answering Yes/No - if you * translate them, keep them in the same order - i.e. "Yes" before * "No" */ c = GetKey(_("YN"), "YN", FALSE, TRUE, FALSE); if (c == 'Y') SendClientMessage(Play, C_NONE, C_SACKBITCH, NULL, NULL); break; case 'C': if (Play->Flags & SPYINGON) { SendClientMessage(Play, C_NONE, C_CONTACTSPY, NULL, NULL); } break; } } /* * Asks the user if he/she _really_ wants to quit dopewars. */ static int want_to_quit(void) { attrset(TextAttr); clear_line(get_prompt_line()); attrset(PromptAttr); mvaddstr(get_prompt_line(), 1, _("Are you sure you want to quit? ")); attrset(TextAttr); return (GetKey(_("YN"), "YN", FALSE, TRUE, FALSE) != 'N'); } /* * Prompts the user to change his or her name, and notifies the server. */ static void change_name(Player *Play, gboolean nullname) { gchar *NewName; /* Prompt for player to change his/her name */ NewName = nice_input(_("New name: "), get_prompt_line() + 1, 0, FALSE, NULL, '\0'); if (NewName[0]) { StripTerminators(NewName); if (nullname) { SendNullClientMessage(Play, C_NONE, C_NAME, NULL, NewName); } else { SendClientMessage(Play, C_NONE, C_NAME, NULL, NewName); } SetPlayerName(Play, NewName); } g_free(NewName); } /* * Given a message "Message" coming in for player "Play", performs * processing and reacts properly; if a message indicates the end of the * game, the global variable QuitRequest is set. The global variable * DisplayMode may also be changed by this routine as a result of network * traffic. */ void HandleClientMessage(char *Message, Player *Play) { char *pt, *Data, *wrd; AICode AI; MsgCode Code; Player *From, *tmp; GSList *list; gchar *text; int i; gboolean Handled; /* Ignore To: field - all messages will be for Player "Play" */ if (ProcessMessage(Message, Play, &From, &AI, &Code, &Data, FirstClient) == -1) { return; } Handled = HandleGenericClientMessage(From, AI, Code, Play, Data, &DisplayMode); switch (Code) { case C_ENDLIST: if (FirstClient && g_slist_next(FirstClient)) { ListPlayers(Play, FALSE, NULL); } break; case C_STARTHISCORE: PrepareHighScoreScreen(); break; case C_HISCORE: PrintHighScore(Data); break; case C_ENDHISCORE: if (strcmp(Data, "end") == 0) { QuitRequest = TRUE; } else { nice_wait(); clear_screen(); display_message(""); print_status(Play, TRUE); refresh(); } break; case C_PUSH: attrset(TextAttr); clear_line(get_prompt_line()); mvaddstr(get_prompt_line(), 0, _("You have been pushed from the server. " "Reverting to single player mode.")); nice_wait(); SwitchToSinglePlayer(Play); print_status(Play, TRUE); break; case C_QUIT: attrset(TextAttr); clear_line(get_prompt_line()); mvaddstr(get_prompt_line(), 0, _("The server has terminated. Reverting to " "single player mode.")); nice_wait(); SwitchToSinglePlayer(Play); print_status(Play, TRUE); break; case C_MSG: text = g_strdup_printf("%s: %s", GetPlayerName(From), Data); display_message(text); g_free(text); SoundPlay(Sounds.TalkToAll); break; case C_MSGTO: text = g_strdup_printf("%s->%s: %s", GetPlayerName(From), GetPlayerName(Play), Data); display_message(text); g_free(text); SoundPlay(Sounds.TalkPrivate); break; case C_JOIN: text = g_strdup_printf(_("%s joins the game!"), Data); display_message(text); g_free(text); SoundPlay(Sounds.JoinGame); break; case C_LEAVE: if (From != &Noone) { text = g_strdup_printf(_("%s has left the game."), Data); display_message(text); g_free(text); SoundPlay(Sounds.LeaveGame); } break; case C_RENAME: /* Displayed when a player changes his/her name */ text = g_strdup_printf(_("%s will now be known as %s."), GetPlayerName(From), Data); SetPlayerName(From, Data); mvaddstr(get_prompt_line(), 0, text); g_free(text); nice_wait(); break; case C_PRINTMESSAGE: PrintMessage(Data); nice_wait(); break; case C_FIGHTPRINT: DisplayFightMessage(Play, Data); break; case C_SUBWAYFLASH: DisplayFightMessage(Play, NULL); for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; tmp->Flags &= ~FIGHTING; } SoundPlay(Sounds.Jet); for (i = 0; i < 4; i++) { print_location(_("S U B W A Y")); refresh(); MicroSleep(100000); print_location(""); refresh(); MicroSleep(100000); } text = dpg_strdup_printf(_("%/Current location/%tde"), Location[Play->IsAt].Name); print_location(text); g_free(text); break; case C_QUESTION: pt = Data; wrd = GetNextWord(&pt, ""); PrintMessage(pt); addch(' '); i = GetKey(_(wrd), wrd, FALSE, TRUE, TRUE); wrd = g_strdup_printf("%c", i); SendClientMessage(Play, C_NONE, C_ANSWER, From == &Noone ? NULL : From, wrd); g_free(wrd); break; case C_LOANSHARK: LoanShark(Play); SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); break; case C_BANK: Bank(Play); SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); break; case C_GUNSHOP: GunShop(Play); SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); break; case C_UPDATE: if (From == &Noone) { ReceivePlayerData(Play, Data, Play); print_status(Play, TRUE); refresh(); } else { DisplaySpyReports(Data, From, Play); } break; case C_NEWNAME: clear_line(get_prompt_line()); clear_line(get_prompt_line() + 1); attrset(TextAttr); mvaddstr(get_prompt_line(), 0, _("Unfortunately, somebody else is already " "using \"your\" name. Please change it.")); change_name(Play, TRUE); break; default: if (!Handled) { text = g_strdup_printf("%s^%c^%s^%s", GetPlayerName(From), Code, GetPlayerName(Play), Data); mvaddstr(get_prompt_line(), 0, text); g_free(text); nice_wait(); } break; } } /* * Responds to a "starthiscore" message by clearing the screen and * displaying the title for the high scores screen. */ void PrepareHighScoreScreen(void) { char *text; attrset(TextAttr); clear_screen(); attrset(TitleAttr); text = _("H I G H S C O R E S"); mvaddstr(0, (Width - strlen(text)) / 2, text); attrset(TextAttr); } /* * Prints a high score coded in "Data"; first word is the index of the * score (i.e. y screen coordinate), second word is the text, the first * letter of which identifies whether it's to be printed bold or not. */ void PrintHighScore(char *Data) { char *cp; int index; cp = Data; index = GetNextInt(&cp, 0); if (!cp || strlen(cp) < 2) return; move(index + 2, 0); attrset(TextAttr); if (cp[0] == 'B') standout(); addstr(&cp[1]); if (cp[0] == 'B') standend(); } /* * Prints a message "text" received via. a "printmessage" message in the * bottom part of the screen. */ void PrintMessage(const gchar *text) { guint i, line; attrset(TextAttr); clear_line(get_ui_area_top()); line = 1; for (i = 0; i < strlen(text) && (text[i] == '^' || text[i] == '\n'); i++) line++; clear_exceptfor(line); line = get_ui_area_top() + 1; move(line, 1); for (i = 0; i < strlen(text); i++) { if (text[i] == '^' || text[i] == '\n') { line++; move(line, 1); } else if (text[i] != '\r') addch((guchar)text[i]); } } static void SellGun(Player *Play) { gchar *text; gint gunind; clear_line(get_prompt_line()); if (TotalGunsCarried(Play) == 0) { /* Error - player tried to sell guns that he/she doesn't have * (%tde="guns" by default) */ text = dpg_strdup_printf(_("You don't have any %tde to sell!"), Names.Guns); mvaddcentstr(get_prompt_line(), text); g_free(text); nice_wait(); clear_line(get_prompt_line() + 1); } else { attrset(PromptAttr); mvaddstr(get_prompt_line(), 20, _("What do you wish to sell? ")); curs_set(1); attrset(TextAttr); gunind = bgetch(); gunind = toupper(gunind); if (gunind >= 'A' && gunind < 'A' + NumGun) { gunind -= 'A'; addstr(Gun[gunind].Name); if (Play->Guns[gunind].Carried == 0) { clear_line(get_prompt_line()); /* Error - player tried to sell some guns that he/she doesn't have */ mvaddstr(get_prompt_line(), 10, _("You don't have any to sell!")); nice_wait(); clear_line(get_prompt_line() + 1); } else { Play->Cash += Gun[gunind].Price; Play->CoatSize += Gun[gunind].Space; Play->Guns[gunind].Carried--; text = g_strdup_printf("gun^%d^-1", gunind); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); print_status(Play, FALSE); } } } } static void BuyGun(Player *Play) { gchar *text; gint gunind; clear_line(get_prompt_line()); if (TotalGunsCarried(Play) >= Play->Bitches.Carried + 2) { text = dpg_strdup_printf( /* Error - player tried to buy more guns * than his/her bitches can carry (1st * %tde="bitches", 2nd %tde="guns" by * default) */ _("You'll need more %tde to carry " "any more %tde!"), Names.Bitches, Names.Guns); mvaddcentstr(get_prompt_line(), text); g_free(text); nice_wait(); clear_line(get_prompt_line() + 1); } else { attrset(PromptAttr); mvaddstr(get_prompt_line(), 20, _("What do you wish to buy? ")); curs_set(1); attrset(TextAttr); gunind = bgetch(); gunind = toupper(gunind); if (gunind >= 'A' && gunind < 'A' + NumGun) { gunind -= 'A'; addstr(Gun[gunind].Name); if (Gun[gunind].Space > Play->CoatSize) { clear_line(get_prompt_line()); /* Error - player tried to buy a gun that he/she doesn't have * space for (%tde="gun" by default) */ text = dpg_strdup_printf(_("You don't have enough space to " "carry that %tde!"), Names.Gun); mvaddcentstr(get_prompt_line(), text); g_free(text); nice_wait(); clear_line(get_prompt_line() + 1); } else if (Gun[gunind].Price > Play->Cash) { clear_line(get_prompt_line()); /* Error - player tried to buy a gun that he/she can't afford * (%tde="gun" by default) */ text = dpg_strdup_printf(_("You don't have enough cash to buy " "that %tde!"), Names.Gun); mvaddcentstr(get_prompt_line(), text); g_free(text); nice_wait(); clear_line(get_prompt_line() + 1); } else { Play->Cash -= Gun[gunind].Price; Play->CoatSize -= Gun[gunind].Space; Play->Guns[gunind].Carried++; text = g_strdup_printf("gun^%d^1", gunind); SendClientMessage(Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); print_status(Play, FALSE); } } } } /* * Allows player "Play" to buy and sell guns interactively. Passes the * decisions on to the server for sanity checking and implementation. */ void GunShop(Player *Play) { int i, action; GSList *names = NULL; gchar *text; print_status(Play, FALSE); attrset(TextAttr); clear_bottom(); for (i = 0; i < NumGun; i++) { text = dpg_strdup_printf("%c. %-22tde %12P", 'A' + i, Gun[i].Name, Gun[i].Price); names = g_slist_append(names, text); } display_select_list(names); do { /* Prompt for actions in the gun shop */ text = _("Will you B>uy, S>ell, or L>eave? "); attrset(PromptAttr); clear_line(get_prompt_line()); mvaddcentstr(get_prompt_line(), text); attrset(TextAttr); /* Translate these three keys in line with the above options, keeping * the order (B>uy, S>ell, L>eave) the same - you can change the * wording of the prompt, but if you change the order in this key * list, the keys will do the wrong things! */ action = GetKey(_("BSL"), "BSL", FALSE, FALSE, FALSE); if (action == 'S') SellGun(Play); else if (action == 'B') BuyGun(Play); } while (action != 'L'); print_status(Play, TRUE); } /* * Allows player "Play" to pay off loans interactively. */ void LoanShark(Player *Play) { gchar *text, *prstr; price_t money; do { clear_bottom(); attrset(PromptAttr); /* Prompt for paying back loans from the loan shark */ text = nice_input(_("How much money do you pay back? "), 19, 1, TRUE, NULL, '\0'); attrset(TextAttr); money = strtoprice(text); g_free(text); if (money < 0) money = 0; if (money > Play->Debt) money = Play->Debt; if (money > Play->Cash) { /* Error - player doesn't have enough money to pay back the loan */ mvaddstr(20, 1, _("You don't have that much money!")); nice_wait(); } else { SendClientMessage(Play, C_NONE, C_PAYLOAN, NULL, (prstr = pricetostr(money))); g_free(prstr); money = 0; } } while (money != 0); } /* * Allows player "Play" to pay in or withdraw money from the bank * interactively. */ void Bank(Player *Play) { gchar *text, *prstr; price_t money = 0; int action; do { clear_bottom(); attrset(PromptAttr); /* Prompt for dealing with the bank in the curses client */ mvaddstr(18, 1, _("Do you want to D>eposit money, W>ithdraw money, " "or L>eave ? ")); attrset(TextAttr); /* Make sure you keep the order the same if you translate these keys! * (D>eposit, W>ithdraw, L>eave) */ action = GetKey(_("DWL"), "DWL", FALSE, FALSE, FALSE); if (action == 'D' || action == 'W') { /* Prompt for putting money in or taking money out of the bank */ text = nice_input(_("How much money? "), 19, 1, TRUE, NULL, '\0'); money = strtoprice(text); g_free(text); if (money < 0) money = 0; if (action == 'W') money = -money; if (money > Play->Cash) { /* Error - player has tried to put more money into the bank than * he/she has */ mvaddstr(20, 1, _("You don't have that much money!")); nice_wait(); } else if (-money > Play->Bank) { /* Error - player has tried to withdraw more money from the bank * than there is in the account */ mvaddstr(20, 1, _("There isn't that much money in the bank...")); nice_wait(); } else if (money != 0) { SendClientMessage(Play, C_NONE, C_DEPOSIT, NULL, (prstr = pricetostr(money))); g_free(prstr); money = 0; } } } while (action != 'L' && money != 0); } /* * Waits for keyboard input; will only accept a key listed in the * "allowed" string. This string may have been translated; thus * the "orig_allowed" string contains the untranslated keys. * Returns the untranslated key corresponding to the key pressed * (e.g. if allowed[2] is pressed, orig_allowed[2] is returned) * Case insensitive. If "AllowOther" is TRUE, keys other than the * given selection are allowed, and cause a zero return value. * If "PrintAllowed" is TRUE, the allowed keys are printed after * the prompt. If "ExpandOut" is also TRUE, the full words for * the commands, rather than just their first letters, are displayed. */ int GetKey(char *allowed, char *orig_allowed, gboolean AllowOther, gboolean PrintAllowed, gboolean ExpandOut) { int ch; guint AllowInd, WordInd, i; /* Expansions of the single-letter keypresses for the benefit of the * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate * to the user which letter in the word corresponds to the keypress, by * capitalising it or similar. */ gchar *Words[] = { N_("Y:Yes"), N_("N:No"), N_("R:Run"), N_("F:Fight"), N_("A:Attack"), N_("E:Evade") }; guint numWords = sizeof(Words) / sizeof(Words[0]); gchar *trWord; curs_set(1); ch = '\0'; if (!allowed || strlen(allowed) == 0) return 0; if (PrintAllowed) { addch('[' | TextAttr); for (AllowInd = 0; AllowInd < strlen(allowed); AllowInd++) { if (AllowInd > 0) addch('/' | TextAttr); WordInd = 0; while (WordInd < numWords && orig_allowed[AllowInd] != Words[WordInd][0]) WordInd++; if (ExpandOut && WordInd < numWords) { trWord = _(Words[WordInd]); for (i = 2; i < strlen(trWord); i++) addch((guchar)trWord[i] | TextAttr); } else addch((guchar)allowed[AllowInd] | TextAttr); } addch(']' | TextAttr); addch(' ' | TextAttr); } do { ch = bgetch(); ch = toupper(ch); /* Handle scrolling of message window */ if (ch == '-') { scroll_msg_area_up(); continue; } else if (ch == '+') { scroll_msg_area_down(); continue; } for (AllowInd = 0; AllowInd < strlen(allowed); AllowInd++) { if (allowed[AllowInd] == ch) { addch((guint)ch | TextAttr); curs_set(0); return orig_allowed[AllowInd]; } } } while (!AllowOther); curs_set(0); return 0; } /* * Clears one whole line on the curses screen. */ void clear_line(int line) { int i; move(line, 0); for (i = 0; i < Width; i++) addch(' '); } /* * Clears the bottom of the screen (the user interface) * except for the top "skip" lines. */ void clear_exceptfor(int skip) { int i, from = get_ui_area_top() + skip, to = get_ui_area_bottom(); for (i = from; i <= to; i++) { clear_line(i); } } /* * Clears the bottom part of the screen (the user interface) */ void clear_bottom(void) { int i, from = get_ui_area_top(), to = get_ui_area_bottom(); for (i = from; i <= to; i++) { clear_line(i); } } /* * Clears the entire screen */ void clear_screen(void) { int i; for (i = 0; i < Depth; i++) { clear_line(i); } } /* * Displays a prompt on the bottom screen line and waits for the user * to press a key. */ void nice_wait() { attrset(PromptAttr); mvaddcentstr(get_prompt_line() + 1, _("Press any key...")); bgetch(); attrset(TextAttr); } /* * Handles the display of messages pertaining to player-player fights * in the lower part of screen (fighting sub-screen). Adds the new line * of text in "text" and scrolls up previous messages if necessary * If "text" is NULL, initialises the area * If "text" is a blank string, redisplays the message area * Messages are displayed from lines 16 to 20; line 22 is used for * the prompt for the user. */ void DisplayFightMessage(Player *Play, char *text) { static GList *msgs = NULL; static int num_msgs = 0; gchar *textpt; gchar *AttackName, *DefendName, *BitchName; gint y, DefendHealth, DefendBitches, BitchesKilled, ArmPercent; gboolean Loot; int top = get_ui_area_top(), bottom = get_ui_area_bottom() - 4; if (text == NULL) { GList *pt; for (pt = msgs; pt; pt = g_list_next(pt)) { g_free(pt->data); } g_list_free(msgs); msgs = NULL; num_msgs = 0; } else { GList *pt; if (text[0]) { if (HaveAbility(Play, A_NEWFIGHT)) { ReceiveFightMessage(text, &AttackName, &DefendName, &DefendHealth, &DefendBitches, &BitchName, &BitchesKilled, &ArmPercent, &fp, &RunHere, &Loot, &CanFire, &textpt); } else { textpt = text; if (Play->Flags & FIGHTING) fp = F_MSG; else fp = F_LASTLEAVE; CanFire = (Play->Flags & CANSHOOT); RunHere = FALSE; } msgs = g_list_append(msgs, g_strdup(textpt)); num_msgs++; } attrset(TextAttr); clear_bottom(); pt = g_list_last(msgs); y = bottom; while (pt && g_list_previous(pt) && y > top) { y--; pt = g_list_previous(pt); } y = top; while (pt) { mvaddstr(y++, 1, pt->data); pt = g_list_next(pt); } } } /* Number of lines that the message window is scrolled back by */ static int scrollpos = 0; /* * Scrolls the message area up a page */ static void scroll_msg_area_up(void) { scrollpos += (get_msg_area_bottom() - get_msg_area_top() + 1); display_message(""); } /* * Scrolls the message area down a page */ static void scroll_msg_area_down(void) { scrollpos -= (get_msg_area_bottom() - get_msg_area_top() + 1); display_message(""); } /* * Displays a network message "buf" in the message area * scrolling previous messages up. * If "buf" is NULL, clears the message area * If "buf" is a blank string, redisplays the message area */ void display_message(const char *buf) { guint y, top, depth; guint wid; static GList *msgs = NULL; static int num_msgs = 0; top = get_msg_area_top(); depth = get_msg_area_bottom() - top + 1; wid = Width - 4; if (wid < 0 || depth < 0 || !Network) { return; } if (!buf) { GList *pt; for (pt = msgs; pt; pt = g_list_next(pt)) { g_free(pt->data); } g_list_free(msgs); msgs = NULL; num_msgs = 0; scrollpos = 0; /* Display a blank message area */ if (Network) { for (y = 0; y < depth; y++) { mvaddfixwidstr(y + top, 2, wid, NULL, StatsAttr); } } } else if (Network) { GList *pt, *nextpt; gchar *data; if (buf[0]) { /* Remove the first message if we've got to the limit */ if (num_msgs == MaxMessages && msgs) { g_free(msgs->data); msgs = g_list_remove(msgs, msgs->data); --num_msgs; } msgs = g_list_append(msgs, g_strdup(buf)); ++num_msgs; } nextpt = g_list_last(msgs); pt = NULL; data = NULL; if (nextpt) { int lines = 0, displines, total_lines = 0; /* Correct for having scrolled down too far */ if (scrollpos < 0) { scrollpos = 0; } displines = depth + scrollpos; /* Find the message to display at the top of the message area */ do { displines -= lines; pt = nextpt; nextpt = g_list_previous(pt); data = pt->data; lines = (strlen(data) + wid - 1) / wid; total_lines += lines; } while (displines > lines && nextpt); /* Correct for having scrolled up too far */ if ((depth + scrollpos) > total_lines && total_lines > depth) { scrollpos = total_lines - depth; } /* Correct for the first line starting partway through a message */ if (displines < lines) { data += wid * (lines - displines); } } /* Display the relevant messages, line by line */ y = 0; while (y < depth && pt) { mvaddfixwidstr(y + top, 2, wid, data, StatsAttr); ++y; if (strlen(data) > wid) { data += wid; } else { pt = g_list_next(pt); if (pt) { data = pt->data; } } } /* Blank out any remaining lines in the message area */ for (; y < depth; ++y) { mvaddfixwidstr(y + top, 2, wid, NULL, StatsAttr); } refresh(); } } /* * Displays the string "text" at the top of the screen. Usually used for * displaying the current location or the "Subway" flash. */ void print_location(char *text) { int i; if (!text) return; attrset(LocationAttr); move(0, Width / 2 - 9); for (i = 0; i < 18; i++) addch(' '); mvaddcentstr(0, text); attrset(TextAttr); } /* * Displays the status of player "Play" - i.e. the current turn, the * location, bitches, available space, cash, guns, health and bank * details. If "DispDrugs" is TRUE, displays the carried drugs on the * right hand side of the screen; if FALSE, displays the carried guns. */ void print_status(Player *Play, gboolean DispDrug) { int i, c; GString *text; text = g_string_new(NULL); attrset(TitleAttr); clear_line(0); GetDateString(text, Play); mvaddstr(0, 3, text->str); attrset(StatsAttr); for (i = get_separator_line() - 1; i >= 2; i--) { mvaddch(i, 1, ACS_VLINE); mvaddch(i, Width - 2, ACS_VLINE); } mvaddch(1, 1, ACS_ULCORNER); for (i = 0; i < Width - 4; i++) addch(ACS_HLINE); addch(ACS_URCORNER); mvaddch(1, Width / 2, ACS_TTEE); for (i = 2; i <= (Network ? 8 : 13); i++) { move(i, 2); for (c = 2; c < Width / 2; c++) addch(' '); addch(ACS_VLINE); for (c = Width / 2 + 1; c < Width - 2; c++) addch(' '); } if (!Network) { mvaddch(get_separator_line(), 1, ACS_LLCORNER); for (i = 0; i < Width - 4; i++) addch(ACS_HLINE); addch(ACS_LRCORNER); mvaddch(get_separator_line(), Width / 2, ACS_BTEE); } else { mvaddch(9, 1, ACS_LTEE); for (i = 0; i < Width - 4; i++) addch(ACS_HLINE); addch(ACS_RTEE); mvaddch(9, Width / 2, ACS_BTEE); /* Title of the "Messages" window in the curses client */ mvaddstr(9, 9, _("Messages (-/+ scrolls up/down)")); mvaddch(get_separator_line(), 1, ACS_LLCORNER); for (i = 0; i < Width - 4; i++) { addch(ACS_HLINE); } addch(ACS_LRCORNER); } /* Title of the "Stats" window in the curses client */ mvaddstr(1, Width / 4 - 2, _("Stats")); attrset(StatsAttr); /* Display of the player's cash in the stats window (careful to keep the * formatting if you change the length of the "Cash" word) */ dpg_string_sprintf(text, _("Cash %17P"), Play->Cash); mvaddstr(3, 9, text->str); /* Display of the total number of guns carried (%Tde="Guns" by default) */ dpg_string_sprintf(text, _("%-19Tde%3d"), Names.Guns, TotalGunsCarried(Play)); mvaddstr(Network ? 4 : 5, 9, text->str); /* Display of the player's health */ g_string_sprintf(text, _("Health %3d"), Play->Health); mvaddstr(Network ? 5 : 7, 9, text->str); /* Display of the player's bank balance */ dpg_string_sprintf(text, _("Bank %17P"), Play->Bank); mvaddstr(Network ? 6 : 9, 9, text->str); if (Play->Debt > 0) attrset(DebtAttr); /* Display of the player's debt */ dpg_string_sprintf(text, _("Debt %17P"), Play->Debt); mvaddstr(Network ? 7 : 11, 9, text->str); attrset(TitleAttr); /* Display of the player's trenchcoat size (antique mode only) */ if (WantAntique) g_string_sprintf(text, _("Space %6d"), Play->CoatSize); else { /* Display of the player's number of bitches, and available space * (%Tde="Bitches" by default) */ dpg_string_sprintf(text, _("%Tde %3d Space %6d"), Names.Bitches, Play->Bitches.Carried, Play->CoatSize); } mvaddstr(0, Width - 2 - strlen(text->str), text->str); dpg_string_sprintf(text, _("%/Current location/%tde"), Location[Play->IsAt].Name); print_location(text->str); attrset(StatsAttr); c = 0; if (DispDrug) { /* Title of the "trenchcoat" window (antique mode only) */ if (WantAntique) mvaddstr(1, Width * 3 / 4 - 5, _("Trenchcoat")); else { /* Title of the "drugs" window (the only important bit in this * string is the "%Tde" which is "Drugs" by default; the %/.../ part * is ignored, so you don't need to translate it; see doc/i18n.html) */ dpg_string_sprintf(text, _("%/Stats: Drugs/%Tde"), Names.Drugs); mvaddstr(1, Width * 3 / 4 - strlen(text->str) / 2, text->str); } for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0) { /* Display of carried drugs with price (%tde="Opium", etc. by * default) */ if (HaveAbility(Play, A_DRUGVALUE)) { dpg_string_sprintf(text, _("%-7tde %3d @ %P"), Drug[i].Name, Play->Drugs[i].Carried, Play->Drugs[i].TotalValue / Play->Drugs[i].Carried); mvaddstr(3 + c, Width / 2 + 3, text->str); } else { /* Display of carried drugs (%tde="Opium", etc. by default) */ dpg_string_sprintf(text, _("%-7tde %3d"), Drug[i].Name, Play->Drugs[i].Carried); mvaddstr(3 + c / 2, Width / 2 + 3 + (c % 2) * 17, text->str); } c++; } } } else { /* Title of the "guns" window (the only important bit in this string * is the "%Tde" which is "Guns" by default) */ dpg_string_sprintf(text, _("%/Stats: Guns/%Tde"), Names.Guns); mvaddstr(1, Width * 3 / 4 - strlen(text->str) / 2, text->str); for (i = 0; i < NumGun; i++) { if (Play->Guns[i].Carried > 0) { /* Display of carried guns (%tde="Baretta", etc. by default) */ dpg_string_sprintf(text, _("%-22tde %3d"), Gun[i].Name, Play->Guns[i].Carried); mvaddstr(3 + c, Width / 2 + 3, text->str); c++; } } } attrset(TextAttr); if (!Network) clear_line(get_separator_line() + 1); refresh(); g_string_free(text, TRUE); } /* * Parses details about player "From" from string "Data" and then * displays the lot, drugs and guns. */ void DisplaySpyReports(char *Data, Player *From, Player *To) { gchar *text; ReceivePlayerData(To, Data, From); clear_bottom(); text = g_strdup_printf(_("Spy reports for %s"), GetPlayerName(From)); mvaddstr(17, 1, text); g_free(text); /* Message displayed with a spy's list of drugs (%Tde="Drugs" by * default) */ text = dpg_strdup_printf(_("%/Spy: Drugs/%Tde..."), Names.Drugs); mvaddstr(19, 20, text); g_free(text); print_status(From, TRUE); nice_wait(); clear_line(19); /* Message displayed with a spy's list of guns (%Tde="Guns" by default) */ text = dpg_strdup_printf(_("%/Spy: Guns/%Tde..."), Names.Guns); mvaddstr(19, 20, text); g_free(text); print_status(From, FALSE); nice_wait(); print_status(To, TRUE); refresh(); } /* * Displays the "Prompt" if non-NULL, and then lists all clients * currently playing dopewars, other than the current player "Play". * If "Select" is TRUE, gives each player a letter and asks the user * to select one, which is returned by the function. */ Player *ListPlayers(Player *Play, gboolean Select, char *Prompt) { Player *tmp = NULL; GSList *list; int i, c, top = get_ui_area_top(), bottom = get_ui_area_bottom(); gchar *text; GSList *names = NULL; attrset(TextAttr); clear_bottom(); if (!FirstClient || (!g_slist_next(FirstClient) && FirstClient->data == Play)) { text = _("No other players are currently logged on!"); mvaddcentstr((top + bottom) / 2, text); nice_wait(); return 0; } mvaddstr(top, 1, _("Players currently logged on:-")); i = 0; for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (strcmp(GetPlayerName(tmp), GetPlayerName(Play)) == 0) continue; if (Select) { text = g_strdup_printf("%c. %s", 'A' + i, GetPlayerName(tmp)); } else { text = g_strdup(GetPlayerName(tmp)); } names = g_slist_append(names, text); i++; } display_select_list(names); if (Prompt) { attrset(PromptAttr); mvaddstr(get_prompt_line(), 10, Prompt); attrset(TextAttr); } if (Select) { curs_set(1); attrset(TextAttr); c = 0; while (c < 'A' || c >= 'A' + i) { c = bgetch(); c = toupper(c); } if (Prompt) addch((guint)c); list = FirstClient; while (c >= 'A') { if (list != FirstClient) list = g_slist_next(list); tmp = (Player *)list->data; while (strcmp(GetPlayerName(tmp), GetPlayerName(Play)) == 0) { list = g_slist_next(list); tmp = (Player *)list->data; } c--; } return tmp; } else { nice_wait(); } return NULL; } /* * Displays the given "prompt" (if non-NULL) at coordinates sx,sy and * allows the user to input a string, which is returned. This is a * dynamically allocated string, and so must be freed by the calling * routine. If "digitsonly" is TRUE, the user will be permitted only to * input numbers, although the suffixes m and k are allowed (the * strtoprice routine understands this notation for a 1000000 or 1000 * multiplier) as well as a decimal point (. or ,) * If "displaystr" is non-NULL, it is taken as a default response. * If "passwdchar" is non-zero, it is displayed instead of the user's * keypresses (e.g. for entering passwords) */ char *nice_input(char *prompt, int sy, int sx, gboolean digitsonly, char *displaystr, char passwdchar) { int i, c, x; gboolean DecimalPoint, Suffix; GString *text; gchar *ReturnString; DecimalPoint = Suffix = FALSE; x = sx; move(sy, x); if (prompt) { attrset(PromptAttr); addstr(prompt); x += strlen(prompt); } attrset(TextAttr); if (displaystr) { if (passwdchar) { for (i = strlen(displaystr); i; i--) addch((guint)passwdchar); } else { addstr(displaystr); } i = strlen(displaystr); text = g_string_new(displaystr); } else { i = 0; text = g_string_new(""); } curs_set(1); do { move(sy + (x + i) / Width, (x + i) % Width); c = bgetch(); if ((c == 8 || c == KEY_BACKSPACE || c == 127) && i > 0) { move(sy + (x + i - 1) / Width, (x + i - 1) % Width); addch(' '); i--; if (DecimalPoint && text->str[i] == '.') DecimalPoint = FALSE; if (Suffix) Suffix = FALSE; g_string_truncate(text, i); } else if (!Suffix) { if ((digitsonly && c >= '0' && c <= '9') || (!digitsonly && c >= 32 && c != '^' && c < 127)) { g_string_append_c(text, c); i++; addch((guint)passwdchar ? passwdchar : c); } else if (digitsonly && (c == '.' || c == ',') && !DecimalPoint) { g_string_append_c(text, '.'); i++; addch((guint)passwdchar ? passwdchar : c); DecimalPoint = TRUE; } else if (digitsonly && (c == 'M' || c == 'm' || c == 'k' || c == 'K') && !Suffix) { g_string_append_c(text, c); i++; addch((guint)passwdchar ? passwdchar : c); Suffix = TRUE; } } } while (c != '\n' && c != KEY_ENTER); curs_set(0); move(sy, x); ReturnString = text->str; g_string_free(text, FALSE); /* Leave the buffer to return */ return ReturnString; } static void DisplayDrugsHere(Player *Play) { int NumDrugsHere, i, c; gchar *text; GSList *names = NULL; attrset(TextAttr); NumDrugsHere = 0; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Price > 0) { NumDrugsHere++; } } clear_bottom(); /* Display of drug prices (%tde="drugs" by default) */ text = dpg_strdup_printf(_("Hey dude, the prices of %tde here are:"), Names.Drugs); mvaddstr(get_ui_area_top(), 1, text); g_free(text); for (c = 0, i = GetNextDrugIndex(-1, Play); c < NumDrugsHere && i != -1; c++, i = GetNextDrugIndex(i, Play)) { /* List of individual drug names for selection (%tde="Opium" etc. * by default) */ text = dpg_strdup_printf( _("%c. %-10tde %8P"), 'A' + c, Drug[i].Name, Play->Drugs[i].Price); names = g_slist_append(names, text); } display_select_list(names); attrset(PromptAttr); } /* * Loop which handles the user playing an interactive game (i.e. "Play" * is a client connected to a server, either locally or remotely) * dopewars is essentially server-driven, so this loop simply has to * make the screen look pretty, respond to user keypresses, and react * to messages from the server. */ static void Curses_DoGame(Player *Play) { gchar *buf, *OldName, *TalkMsg; GString *text; int i, c; char IsCarrying; #if NETWORKING || HAVE_SELECT fd_set readfs; #endif #ifdef NETWORKING fd_set writefs; gboolean DoneOK; gchar *pt; gboolean justconnected = FALSE; #endif int MaxSock; char HaveWorthless; Player *tmp; struct sigaction sact; DisplayMode = DM_NONE; QuitRequest = FALSE; ResizedFlag = 0; sact.sa_handler = ResizeHandle; sact.sa_flags = 0; sigemptyset(&sact.sa_mask); if (sigaction(SIGWINCH, &sact, NULL) == -1) { g_warning(_("Cannot install SIGWINCH interrupt handler!")); } OldName = g_strdup(GetPlayerName(Play)); attrset(TextAttr); clear_screen(); display_message(NULL); DisplayFightMessage(Play, NULL); print_status(Play, TRUE); attrset(TextAttr); clear_bottom(); buf = NULL; if (PlayerName && PlayerName[0]) { buf = g_strdup(PlayerName); } else { do { g_free(buf); buf = nice_input(_("Hey dude, what's your name? "), get_ui_area_top() + 1, 1, FALSE, OldName, '\0'); } while (buf[0] == 0); } #if NETWORKING if (WantNetwork) { if (!ConnectToServer(Play)) { end_curses(); exit(1); } justconnected = TRUE; } #endif /* NETWORKING */ print_status(Play, TRUE); display_message(""); InitAbilities(Play); SendAbilities(Play); StripTerminators(buf); SetPlayerName(Play, buf); SendNullClientMessage(Play, C_NONE, C_NAME, NULL, buf); g_free(buf); g_free(OldName); SoundPlay(Sounds.StartGame); text = g_string_new(""); while (1) { if (Play->Health == 0) DisplayMode = DM_NONE; HaveWorthless = 0; IsCarrying = 0; for (i = 0; i < NumDrug; i++) { if (Play->Drugs[i].Carried > 0) { IsCarrying = 1; if (Play->Drugs[i].Price == 0) { HaveWorthless = 1; } } } switch (DisplayMode) { case DM_STREET: DisplayDrugsHere(Play); /* Prompts for "normal" actions in curses client */ g_string_assign(text, _("Will you B>uy")); if (IsCarrying) g_string_append(text, _(", S>ell")); if (HaveWorthless && !WantAntique) g_string_append(text, _(", D>rop")); if (Network) g_string_append(text, _(", T>alk, P>age")); g_string_append(text, _(", L>ist")); if (!WantAntique && (Play->Bitches.Carried > 0 || Play->Flags & SPYINGON)) { g_string_append(text, _(", G>ive")); } if (Play->Flags & FIGHTING) { g_string_append(text, _(", F>ight")); } else { g_string_append(text, _(", J>et")); } g_string_append(text, _(", or Q>uit? ")); mvaddcentstr(get_prompt_line(), text->str); attrset(TextAttr); curs_set(1); break; case DM_FIGHT: DisplayFightMessage(Play, ""); attrset(PromptAttr); /* Prompts for actions during fights in curses client */ g_string_assign(text, _("Do you ")); if (CanFire) { if (TotalGunsCarried(Play) > 0) { g_string_append(text, _("F>ight, ")); } else { g_string_append(text, _("S>tand, ")); } } if (fp != F_LASTLEAVE) g_string_append(text, _("R>un, ")); if (!RunHere || fp == F_LASTLEAVE) /* (%tde = "drugs" by default here) */ dpg_string_sprintfa(text, _("D>eal %tde, "), Names.Drugs); g_string_append(text, _("or Q>uit? ")); mvaddcentstr(get_prompt_line(), text->str); attrset(TextAttr); curs_set(1); break; case DM_DEAL: attrset(TextAttr); clear_bottom(); mvaddstr(16, 1, "Your trade:-"); mvaddstr(19, 1, "His trade:-"); g_string_assign(text, "Do you A>dd, R>emove, O>K, D>eal "); g_string_append(text, Names.Drugs); g_string_append(text, ", or Q>uit? "); attrset(PromptAttr); mvaddcentstr(get_prompt_line(), text->str); attrset(TextAttr); curs_set(1); break; case DM_NONE: break; } refresh(); if (QuitRequest) return; #if NETWORKING FD_ZERO(&readfs); FD_ZERO(&writefs); FD_SET(0, &readfs); MaxSock = 1; if (Client) { if (justconnected) { /* Deal with any messages that came in while we were connect()ing */ justconnected = FALSE; while ((pt = GetWaitingPlayerMessage(Play)) != NULL) { HandleClientMessage(pt, Play); g_free(pt); } if (QuitRequest) return; } SetSelectForNetworkBuffer(&Play->NetBuf, &readfs, &writefs, NULL, &MaxSock); } if (bselect(MaxSock, &readfs, &writefs, NULL, NULL) == -1) { if (errno == EINTR) { CheckForResize(Play); continue; } perror("bselect"); exit(1); } if (Client) { if (RespondToSelect(&Play->NetBuf, &readfs, &writefs, NULL, &DoneOK)) { while ((pt = GetWaitingPlayerMessage(Play)) != NULL) { HandleClientMessage(pt, Play); g_free(pt); } if (QuitRequest) return; } if (!DoneOK) { attrset(TextAttr); clear_line(get_prompt_line()); mvaddstr(get_prompt_line(), 0, _("Connection to server lost! " "Reverting to single player mode")); nice_wait(); SwitchToSinglePlayer(Play); print_status(Play, TRUE); } } if (FD_ISSET(0, &readfs)) { #elif HAVE_SELECT FD_ZERO(&readfs); FD_SET(0, &readfs); MaxSock = 1; if (bselect(MaxSock, &readfs, NULL, NULL, NULL) == -1) { if (errno == EINTR) { CheckForResize(Play); continue; } perror("bselect"); exit(1); } #endif /* NETWORKING */ if (DisplayMode == DM_STREET) { /* N.B. You must keep the order of these keys the same as the * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, * L>ist, G>ive errand, F>ight, J>et, Q>uit) */ c = GetKey(_("BSDTPLGFJQ"), "BSDTPLGFJQ", TRUE, FALSE, FALSE); } else if (DisplayMode == DM_FIGHT) { /* N.B. You must keep the order of these keys the same as the * original when you translate (D>eal drugs, R>un, F>ight, S>tand, * Q>uit) */ c = GetKey(_("DRFSQ"), "DRFSQ", TRUE, FALSE, FALSE); } else c = 0; #if ! (NETWORKING || HAVE_SELECT) CheckForResize(Play); #endif if (DisplayMode == DM_STREET) { if (c == 'J' && !(Play->Flags & FIGHTING)) { jet(Play, TRUE); } else if (c == 'F' && Play->Flags & FIGHTING) { DisplayMode = DM_FIGHT; } else if (c == 'T' && Play->Flags & TRADING) { DisplayMode = DM_DEAL; } else if (c == 'B') { DealDrugs(Play, TRUE); } else if (c == 'S' && IsCarrying) { DealDrugs(Play, FALSE); } else if (c == 'D' && HaveWorthless && !WantAntique) { DropDrugs(Play); } else if (c == 'G' && !WantAntique && Play->Bitches.Carried > 0) { GiveErrand(Play); } else if (c == 'Q') { if (want_to_quit() == 1) { DisplayMode = DM_NONE; clear_bottom(); SendClientMessage(Play, C_NONE, C_WANTQUIT, NULL, NULL); } } else if (c == 'L') { if (Network) { attrset(PromptAttr); mvaddstr(get_prompt_line() + 1, 20, _("List what? P>layers or S>cores? ")); /* P>layers, S>cores */ i = GetKey(_("PS"), "PS", TRUE, FALSE, FALSE); if (i == 'P') { ListPlayers(Play, FALSE, NULL); } else if (i == 'S') { DisplayMode = DM_NONE; SendClientMessage(Play, C_NONE, C_REQUESTSCORE, NULL, NULL); } } else { DisplayMode = DM_NONE; SendClientMessage(Play, C_NONE, C_REQUESTSCORE, NULL, NULL); } } else if (c == 'P' && Network) { tmp = ListPlayers(Play, TRUE, _("Whom do you want to page " "(talk privately to) ? ")); if (tmp) { attrset(TextAttr); clear_line(get_prompt_line()); /* Prompt for sending player-player messages */ TalkMsg = nice_input(_("Talk: "), get_prompt_line(), 0, FALSE, NULL, '\0'); if (TalkMsg[0]) { SendClientMessage(Play, C_NONE, C_MSGTO, tmp, TalkMsg); buf = g_strdup_printf("%s->%s: %s", GetPlayerName(Play), GetPlayerName(tmp), TalkMsg); display_message(buf); g_free(buf); } g_free(TalkMsg); } } else if (c == 'T' && Client) { attrset(TextAttr); clear_line(get_prompt_line()); TalkMsg = nice_input(_("Talk: "), get_prompt_line(), 0, FALSE, NULL, '\0'); if (TalkMsg[0]) { SendClientMessage(Play, C_NONE, C_MSG, NULL, TalkMsg); buf = g_strdup_printf("%s: %s", GetPlayerName(Play), TalkMsg); display_message(buf); g_free(buf); } g_free(TalkMsg); } } else if (DisplayMode == DM_FIGHT) { switch (c) { case 'D': if (!RunHere || fp == F_LASTLEAVE) { DisplayMode = DM_STREET; if (!(Play->Flags & FIGHTING) && HaveAbility(Play, A_DONEFIGHT)) { SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); } } break; case 'R': if (RunHere) { SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, "R"); } else { jet(Play, TRUE); } break; case 'F': if (TotalGunsCarried(Play) > 0 && CanFire) { buf = g_strdup_printf("%c", c); Play->Flags &= ~CANSHOOT; SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, buf); g_free(buf); } break; case 'S': if (TotalGunsCarried(Play) == 0 && CanFire) { buf = g_strdup_printf("%c", c); Play->Flags &= ~CANSHOOT; SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, buf); g_free(buf); } break; case 'Q': if (want_to_quit() == 1) { DisplayMode = DM_NONE; clear_bottom(); SendClientMessage(Play, C_NONE, C_WANTQUIT, NULL, NULL); } break; } } else if (DisplayMode == DM_DEAL) { switch (c) { case 'D': DisplayMode = DM_STREET; break; case 'Q': if (want_to_quit() == 1) { DisplayMode = DM_NONE; clear_bottom(); SendClientMessage(Play, C_NONE, C_WANTQUIT, NULL, NULL); } break; } } #if NETWORKING } #endif curs_set(0); } g_string_free(text, TRUE); } void CursesLoop(struct CMDLINE *cmdline) { char c; Player *Play; InitConfiguration(cmdline); if (!CheckHighScoreFileConfig()) return; WantColour = cmdline->colour; WantNetwork = cmdline->network; /* Save the configuration, so we can restore those elements that get * overwritten when we connect to a dopewars server */ BackupConfig(); start_curses(); Width = COLS; Depth = LINES; /* Set up message handlers */ ClientMessageHandlerPt = HandleClientMessage; /* Make the GLib log messages display nicely */ g_log_set_handler(NULL, G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING, LogMessage, NULL); SoundOpen(cmdline->plugin); SoundEnable(UseSounds); display_intro(); Play = g_new(Player, 1); FirstClient = AddPlayer(0, Play, FirstClient); do { Curses_DoGame(Play); SoundPlay(Sounds.EndGame); ShutdownNetwork(Play); CleanUpServer(); RestoreConfig(); attrset(TextAttr); mvaddstr(get_prompt_line() + 1, 20, _("Play again? ")); c = GetKey(_("YN"), "YN", TRUE, TRUE, FALSE); } while (c == 'Y'); FirstClient = RemovePlayer(Play, FirstClient); end_curses(); } dopewars-1.5.12/src/curses_client/curses_client.h0000644001565000007070000000330110355116554017020 00000000000000/************************************************************************ * curses_client.h dopewars client using the (n)curses console library * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __CURSES_CLIENT_H__ #define __CURSES_CLIENT_H__ #ifdef HAVE_CONFIG_H #include #endif struct CMDLINE; void CursesLoop(struct CMDLINE *cmdline); #endif dopewars-1.5.12/src/curses_client/Makefile.in0000644001565000007070000003513410355323276016064 00000000000000# Makefile.in generated by automake 1.9.5 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@ SOURCES = $(libcursesclient_a_SOURCES) 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@ target_triplet = @target@ subdir = src/curses_client DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libcursesclient_a_AR = $(AR) $(ARFLAGS) libcursesclient_a_LIBADD = am_libcursesclient_a_OBJECTS = curses_client.$(OBJEXT) libcursesclient_a_OBJECTS = $(am_libcursesclient_a_OBJECTS) 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 = $(libcursesclient_a_SOURCES) DIST_SOURCES = $(libcursesclient_a_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ noinst_LIBRARIES = libcursesclient.a libcursesclient_a_SOURCES = curses_client.c curses_client.h INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GLIB_CFLAGS@ 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/curses_client/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/curses_client/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 clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libcursesclient.a: $(libcursesclient_a_OBJECTS) $(libcursesclient_a_DEPENDENCIES) -rm -f libcursesclient.a $(libcursesclient_a_AR) libcursesclient.a $(libcursesclient_a_OBJECTS) $(libcursesclient_a_LIBADD) $(RANLIB) libcursesclient.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/curses_client.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 $(LIBRARIES) installdirs: 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-generic clean-libtool clean-noinstLIBRARIES \ 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-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-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-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-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: dopewars-1.5.12/src/AIPlayer.h0000644001565000007070000000332610355116554012771 00000000000000/************************************************************************ * AIPlayer.h Header file for dopewars computer player code * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_AIPLAYER_H__ #define __DP_AIPLAYER_H__ #ifdef HAVE_CONFIG_H #include #endif struct CMDLINE; void AIPlayerLoop(struct CMDLINE *cmdline); #endif /* __DP_AIPLAYER_H__ */ dopewars-1.5.12/src/tstring.h0000644001565000007070000000364410355116554013020 00000000000000/************************************************************************ * tstring.h "Translated string" wrappers for dopewars * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_TSTRING_H__ #define __DP_TSTRING_H__ #ifdef HAVE_CONFIG_H #include #endif #include void dpg_print(gchar *format, ...); gchar *dpg_strdup_printf(gchar *format, ...); void dpg_string_sprintf(GString *string, gchar *format, ...); void dpg_string_sprintfa(GString *string, gchar *format, ...); gchar *GetDefaultTString(gchar *tstring); #endif /* __DP_TSTRING_H__ */ dopewars-1.5.12/src/cursesport/0000777001565000007070000000000010355323331013434 500000000000000dopewars-1.5.12/src/cursesport/cursesport.c0000644001565000007070000001365510355116554015746 00000000000000/************************************************************************ * cursesport.c Portability functions to enable curses applications * * to be built on Win32 systems * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "cursesport.h" #ifdef CYGWIN /* Code for native Win32 build under Cygwin */ int COLS, LINES; static int Width, Depth; static CHAR_INFO RealScreen[25][80], VirtualScreen[25][80]; static HANDLE hOut, hIn; static WORD CurAttr = 0; static int CurX, CurY; static WORD Attr[10]; void refresh(void) { int y; COORD size, offset; SMALL_RECT screenpos; move(CurY, CurX); for (y = 0; y < Depth; y++) { if (memcmp(&RealScreen[y][0], &VirtualScreen[y][0], sizeof(CHAR_INFO) * Width) != 0) { memcpy(&RealScreen[y][0], &VirtualScreen[y][0], Width * sizeof(CHAR_INFO)); size.X = Width; size.Y = 1; offset.X = offset.Y = 0; screenpos.Left = 0; screenpos.Top = y; screenpos.Right = Width - 1; screenpos.Bottom = y; WriteConsoleOutput(hOut, &VirtualScreen[y][0], size, offset, &screenpos); } } } static HANDLE WINAPI GetConHandle(TCHAR *pszName) { SECURITY_ATTRIBUTES sa; sa.nLength = sizeof(sa); sa.lpSecurityDescriptor = NULL; sa.bInheritHandle = TRUE; return CreateFile(pszName, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, &sa, OPEN_EXISTING, (DWORD)0, (HANDLE)0); } SCREEN *newterm(void *a, void *b, void *c) { COORD coord; int i; coord.X = 80; coord.Y = 25; Width = COLS = 80; Depth = LINES = 25; CurAttr = 1 << 8; CurX = 0; CurY = 0; for (i = 0; i < 10; i++) Attr[i] = FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN; hOut = GetConHandle("CONOUT$"); hIn = GetConHandle("CONIN$"); SetConsoleMode(hIn, 0); SetConsoleMode(hOut, 0); return NULL; } void start_color(void) { } void init_pair(int index, WORD fg, WORD bg) { if (index >= 0 && index < 10) { Attr[index] = 0; switch (fg) { case COLOR_MAGENTA: Attr[index] |= (FOREGROUND_RED + FOREGROUND_BLUE); break; case COLOR_BLUE: Attr[index] |= FOREGROUND_BLUE; break; case COLOR_RED: Attr[index] |= FOREGROUND_RED; break; case COLOR_WHITE: Attr[index] |= (FOREGROUND_RED + FOREGROUND_BLUE + FOREGROUND_GREEN); break; } switch (bg) { case COLOR_MAGENTA: Attr[index] |= (BACKGROUND_RED + BACKGROUND_BLUE); break; case COLOR_BLUE: Attr[index] |= BACKGROUND_BLUE; break; case COLOR_RED: Attr[index] |= BACKGROUND_RED; break; case COLOR_WHITE: Attr[index] |= (BACKGROUND_RED + BACKGROUND_BLUE + BACKGROUND_GREEN); break; } } } void cbreak(void) { } void noecho(void) { } void nodelay(void *a, char b) { } void keypad(void *a, char b) { } void curs_set(BOOL visible) { CONSOLE_CURSOR_INFO ConCurInfo; ConCurInfo.dwSize = 10; ConCurInfo.bVisible = visible; SetConsoleCursorInfo(hOut, &ConCurInfo); } void endwin(void) { CurAttr = 0; refresh(); curs_set(1); } void move(int y, int x) { COORD coord; if (x >= Width) { x = 0; } if (y >= Depth) { y = 0; } CurX = x; CurY = y; coord.X = x; coord.Y = y; SetConsoleCursorPosition(hOut, coord); } void attrset(WORD newAttr) { CurAttr = newAttr; } void addstr(const char *str) { int i; for (i = 0; i < strlen(str); i++) addch(str[i]); } void addch(int ch) { int attr; VirtualScreen[CurY][CurX].Char.AsciiChar = ch % 256; attr = ch >> 8; if (attr > 0) VirtualScreen[CurY][CurX].Attributes = Attr[attr]; else VirtualScreen[CurY][CurX].Attributes = Attr[CurAttr >> 8]; if (++CurX >= Width) { CurX = 0; if (++CurY >= Depth) CurY = 0; } } void mvaddstr(int y, int x, const char *str) { move(y, x); addstr(str); } void mvaddch(int y, int x, int ch) { move(y, x); addch(ch); } /* * Waits for the user to press a key. */ int bgetch(void) { DWORD NumRead; char Buffer[10]; refresh(); ReadConsole(hIn, Buffer, 1, &NumRead, NULL); return (int)(Buffer[0]); } void standout(void) { } void standend(void) { } #else /* Code for Unix build */ /* * Calls the curses getch() function; if the key pressed is Ctrl-L * then automatically clears and redraws the screen, otherwise just * passes the key back to the calling routine. */ int bgetch() { int c; c = getch(); while (c == '\f') { wrefresh(curscr); c = getch(); } return c; } #endif /* CYGWIN */ dopewars-1.5.12/src/cursesport/cursesport.h0000644001565000007070000000647610355116554015756 00000000000000/************************************************************************ * cursesport.h Portability functions to enable curses applications * * to be built on Win32 systems * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __CURSESPORT_H__ #define __CURSESPORT_H__ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN /* Definitions for native Win32 build */ #include #include #include #include extern int COLS, LINES; #define COLOR_MAGENTA 1 #define COLOR_BLACK 2 #define COLOR_WHITE 3 #define COLOR_BLUE 4 #define COLOR_RED 5 #define COLOR_PAIR(i) ((i) << 8) #define ACS_VLINE 179 #define ACS_ULCORNER 218 #define ACS_HLINE 196 #define ACS_URCORNER 191 #define ACS_TTEE 194 #define ACS_LLCORNER 192 #define ACS_LRCORNER 217 #define ACS_BTEE 193 #define ACS_LTEE 195 #define ACS_RTEE 180 typedef int SCREEN; #define stdscr 0 #define curscr 0 #define KEY_ENTER 13 #define KEY_BACKSPACE 8 #define A_BOLD 0 SCREEN *newterm(void *, void *, void *); void refresh(void); #define wrefresh(win) refresh() void start_color(void); void init_pair(int index, WORD fg, WORD bg); void cbreak(void); void noecho(void); void nodelay(void *, char); void keypad(void *, char); void curs_set(BOOL visible); void endwin(void); void move(int y, int x); void attrset(WORD newAttr); void addstr(const char *str); void addch(int ch); void mvaddstr(int x, int y, const char *str); void mvaddch(int x, int y, int ch); #define erase() clear_screen() void standout(void); void standend(void); void endwin(void); #else /* Definitions for Unix build */ #include /* Include a suitable curses-type library */ #if HAVE_LIBNCURSES #include #elif HAVE_LIBCURSES #include #elif HAVE_LIBCUR_COLR #include #endif #endif /* CYGWIN */ int bgetch(void); #endif /* __CURSESPORT_H__ */ dopewars-1.5.12/src/cursesport/Makefile.am0000644001565000007070000000025007467757201015422 00000000000000noinst_LIBRARIES = libcursesport.a libcursesport_a_SOURCES = cursesport.c cursesport.h INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. DEFS = @DEFS@ dopewars-1.5.12/src/cursesport/Makefile.in0000644001565000007070000003502310355323276015430 00000000000000# Makefile.in generated by automake 1.9.5 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@ SOURCES = $(libcursesport_a_SOURCES) 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@ target_triplet = @target@ subdir = src/cursesport DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libcursesport_a_AR = $(AR) $(ARFLAGS) libcursesport_a_LIBADD = am_libcursesport_a_OBJECTS = cursesport.$(OBJEXT) libcursesport_a_OBJECTS = $(am_libcursesport_a_OBJECTS) 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 = $(libcursesport_a_SOURCES) DIST_SOURCES = $(libcursesport_a_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ noinst_LIBRARIES = libcursesport.a libcursesport_a_SOURCES = cursesport.c cursesport.h INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. 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/cursesport/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/cursesport/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 clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libcursesport.a: $(libcursesport_a_OBJECTS) $(libcursesport_a_DEPENDENCIES) -rm -f libcursesport.a $(libcursesport_a_AR) libcursesport.a $(libcursesport_a_OBJECTS) $(libcursesport_a_LIBADD) $(RANLIB) libcursesport.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cursesport.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 $(LIBRARIES) installdirs: 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-generic clean-libtool clean-noinstLIBRARIES \ 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-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-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-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-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: dopewars-1.5.12/src/magic0000644001565000007070000000063207675562414012165 00000000000000#------------------------------------------------------------------------------ # dopewars: file(1) magic for dopewars high score files # # From # dopewars is a drug dealing game found at http://dopewars.sf.net/. # The version reported is that of the high score file, not of the # program itself. 0 string DOPEWARS\ SCORES\ V. dopewars high score file >&0 string >\0 (version %s) dopewars-1.5.12/src/gui_client/0000777001565000007070000000000010355323331013345 500000000000000dopewars-1.5.12/src/gui_client/newgamedia.c0000644001565000007070000007240710355116554015547 00000000000000/************************************************************************ * newgamedia.c New game dialog * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include /* For atoi */ #include #include "dopewars.h" #include "network.h" #include "message.h" #include "nls.h" #include "gtkport/gtkport.h" #include "gtk_client.h" #include "newgamedia.h" struct StartGameStruct { GtkWidget *dialog, *name, *hostname, *port, *antique, *status, *metaserv, *notebook; Player *play; #ifdef NETWORKING HttpConnection *MetaConn; GSList *NewMetaList; NBCallBack sockstat; #endif }; static struct StartGameStruct stgam; #ifdef NETWORKING static void AuthDialog(HttpConnection *conn, gboolean proxyauth, gchar *realm, gpointer data); static void MetaSocksAuthDialog(NetworkBuffer *netbuf, gpointer data); static void SocksAuthDialog(NetworkBuffer *netbuf, gpointer data); static void MetaSocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow); /* List of servers on the metaserver */ static GSList *MetaList = NULL; #endif /* NETWORKING */ /* Which notebook page to display in the New Game dialog */ static gint NewGameType = 0; static gboolean GetStartGamePlayerName(gchar **PlayerName) { g_free(*PlayerName); *PlayerName = gtk_editable_get_chars(GTK_EDITABLE(stgam.name), 0, -1); if (*PlayerName && (*PlayerName)[0]) return TRUE; else { GtkMessageBox(stgam.dialog, _("You can't start the game without giving a name first!"), _("New Game"), GTK_MESSAGE_WARNING, MB_OK); return FALSE; } } static void SetStartGameStatus(gchar *msg) { gtk_label_set_text(GTK_LABEL(stgam.status), msg ? msg : _("Status: Waiting for user input")); } #ifdef NETWORKING static void ConnectError(gboolean meta) { GString *neterr; gchar *text; LastError *error; if (meta) error = stgam.MetaConn->NetBuf.error; else error = stgam.play->NetBuf.error; neterr = g_string_new(""); if (error) { g_string_assign_error(neterr, error); } else { g_string_assign(neterr, _("Connection closed by remote host")); } if (meta) { /* Error: GTK+ client could not connect to the metaserver */ text = g_strdup_printf(_("Status: Could not connect to metaserver (%s)"), neterr->str); } else { /* Error: GTK+ client could not connect to the given dopewars server */ text = g_strdup_printf(_("Status: Could not connect (%s)"), neterr->str); } SetStartGameStatus(text); g_free(text); g_string_free(neterr, TRUE); } void FinishServerConnect(gboolean ConnectOK) { if (ConnectOK) { Client = Network = TRUE; gtk_widget_destroy(stgam.dialog); GuiStartGame(); } else { ConnectError(FALSE); } } static void DoConnect(void) { gchar *text; NetworkBuffer *NetBuf; NBStatus oldstatus; NBSocksStatus oldsocks; NetBuf = &stgam.play->NetBuf; /* Message displayed during the attempted connect to a dopewars server */ text = g_strdup_printf(_("Status: Attempting to contact %s..."), ServerName); SetStartGameStatus(text); g_free(text); /* Terminate any existing connection attempts */ ShutdownNetworkBuffer(NetBuf); if (stgam.MetaConn) { CloseHttpConnection(stgam.MetaConn); stgam.MetaConn = NULL; } oldstatus = NetBuf->status; oldsocks = NetBuf->sockstat; if (StartNetworkBufferConnect(NetBuf, NULL, ServerName, Port)) { DisplayConnectStatus(FALSE, oldstatus, oldsocks); SetNetworkBufferUserPasswdFunc(NetBuf, SocksAuthDialog, NULL); SetNetworkBufferCallBack(NetBuf, stgam.sockstat, NULL); } else { ConnectError(FALSE); } } static void ConnectToServer(GtkWidget *widget, gpointer data) { gchar *text; g_free(ServerName); ServerName = gtk_editable_get_chars(GTK_EDITABLE(stgam.hostname), 0, -1); text = gtk_editable_get_chars(GTK_EDITABLE(stgam.port), 0, -1); Port = atoi(text); g_free(text); if (GetStartGamePlayerName(&stgam.play->Name)) { DoConnect(); } } static void FillMetaServerList(gboolean UseNewList) { GtkWidget *metaserv; ServerData *ThisServer; gchar *titles[5]; GSList *ListPt; gint row, width; if (UseNewList && !stgam.NewMetaList) return; metaserv = stgam.metaserv; gtk_clist_freeze(GTK_CLIST(metaserv)); gtk_clist_clear(GTK_CLIST(metaserv)); if (UseNewList) { ClearServerList(&MetaList); MetaList = stgam.NewMetaList; stgam.NewMetaList = NULL; } for (ListPt = MetaList; ListPt; ListPt = g_slist_next(ListPt)) { ThisServer = (ServerData *)(ListPt->data); titles[0] = ThisServer->Name; titles[1] = g_strdup_printf("%d", ThisServer->Port); titles[2] = ThisServer->Version; if (ThisServer->CurPlayers == -1) { /* Displayed if we don't know how many players are logged on to a * server */ titles[3] = _("Unknown"); } else { /* e.g. "5 of 20" means 5 players are logged on to a server, out of * a maximum of 20 */ titles[3] = g_strdup_printf(_("%d of %d"), ThisServer->CurPlayers, ThisServer->MaxPlayers); } titles[4] = ThisServer->Comment; row = gtk_clist_append(GTK_CLIST(metaserv), titles); gtk_clist_set_row_data(GTK_CLIST(metaserv), row, (gpointer)ThisServer); g_free(titles[1]); if (ThisServer->CurPlayers != -1) g_free(titles[3]); } if (MetaList) { width = gtk_clist_optimal_column_width(GTK_CLIST(metaserv), 4); gtk_clist_set_column_width(GTK_CLIST(metaserv), 4, width); width = gtk_clist_optimal_column_width(GTK_CLIST(metaserv), 3); gtk_clist_set_column_width(GTK_CLIST(metaserv), 3, width); width = gtk_clist_optimal_column_width(GTK_CLIST(metaserv), 0); gtk_clist_set_column_width(GTK_CLIST(metaserv), 0, width); } gtk_clist_thaw(GTK_CLIST(metaserv)); } void DisplayConnectStatus(gboolean meta, NBStatus oldstatus, NBSocksStatus oldsocks) { NBStatus status; NBSocksStatus sockstat; gchar *text; if (meta) { status = stgam.MetaConn->NetBuf.status; sockstat = stgam.MetaConn->NetBuf.sockstat; } else { status = stgam.play->NetBuf.status; sockstat = stgam.play->NetBuf.sockstat; } if (oldstatus == status && sockstat == oldsocks) return; switch (status) { case NBS_PRECONNECT: break; case NBS_SOCKSCONNECT: switch (sockstat) { case NBSS_METHODS: /* Tell the user that we've successfully connected to a SOCKS server, * and are now ready to tell it to initiate the "real" connection */ text = g_strdup_printf(_("Status: Connected to SOCKS server %s..."), Socks.name); SetStartGameStatus(text); g_free(text); break; case NBSS_USERPASSWD: /* Tell the user that the SOCKS server is asking us for a username * and password */ SetStartGameStatus(_("Status: Authenticating with SOCKS server")); break; case NBSS_CONNECT: text = /* Tell the user that all necessary SOCKS authentication has been * completed, and now we're going to try to have it connect to * the final destination */ g_strdup_printf(_("Status: Asking SOCKS for connect to %s..."), meta ? MetaServer.Name : ServerName); SetStartGameStatus(text); g_free(text); break; } break; case NBS_CONNECTED: if (meta) { SetStartGameStatus(_("Status: Obtaining server information " "from metaserver...")); } break; } } static void MetaDone(void) { if (IsHttpError(stgam.MetaConn)) { ConnectError(TRUE); } else { SetStartGameStatus(NULL); } CloseHttpConnection(stgam.MetaConn); stgam.MetaConn = NULL; FillMetaServerList(TRUE); } static void HandleMetaSock(gpointer data, gint socket, GdkInputCondition condition) { gboolean DoneOK; NBStatus oldstatus; NBSocksStatus oldsocks; if (!stgam.MetaConn) return; oldstatus = stgam.MetaConn->NetBuf.status; oldsocks = stgam.MetaConn->NetBuf.sockstat; if (NetBufHandleNetwork (&stgam.MetaConn->NetBuf, condition & GDK_INPUT_READ, condition & GDK_INPUT_WRITE, &DoneOK)) { while (HandleWaitingMetaServerData (stgam.MetaConn, &stgam.NewMetaList, &DoneOK)) { } } if (!DoneOK && HandleHttpCompletion(stgam.MetaConn)) { MetaDone(); } else { DisplayConnectStatus(TRUE, oldstatus, oldsocks); } } static void MetaSocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow) { if (NetBuf->InputTag) gdk_input_remove(NetBuf->InputTag); NetBuf->InputTag = 0; if (Read || Write) { NetBuf->InputTag = gdk_input_add(NetBuf->fd, (Read ? GDK_INPUT_READ : 0) | (Write ? GDK_INPUT_WRITE : 0), HandleMetaSock, NetBuf->CallBackData); } if (CallNow) HandleMetaSock(NetBuf->CallBackData, NetBuf->fd, 0); } static void UpdateMetaServerList(GtkWidget *widget) { GtkWidget *metaserv; gchar *text; /* Terminate any existing connection attempts */ ShutdownNetworkBuffer(&stgam.play->NetBuf); if (stgam.MetaConn) { CloseHttpConnection(stgam.MetaConn); stgam.MetaConn = NULL; } ClearServerList(&stgam.NewMetaList); /* Message displayed during the attempted connect to the metaserver */ text = g_strdup_printf(_("Status: Attempting to contact %s..."), MetaServer.Name); SetStartGameStatus(text); g_free(text); if (OpenMetaHttpConnection(&stgam.MetaConn)) { metaserv = stgam.metaserv; SetHttpAuthFunc(stgam.MetaConn, AuthDialog, NULL); SetNetworkBufferUserPasswdFunc(&stgam.MetaConn->NetBuf, MetaSocksAuthDialog, NULL); SetNetworkBufferCallBack(&stgam.MetaConn->NetBuf, MetaSocketStatus, NULL); } else { ConnectError(TRUE); CloseHttpConnection(stgam.MetaConn); stgam.MetaConn = NULL; } } static void MetaServerConnect(GtkWidget *widget, gpointer data) { GList *selection; gint row; GtkWidget *clist; ServerData *ThisServer; clist = stgam.metaserv; selection = GTK_CLIST(clist)->selection; if (selection) { row = GPOINTER_TO_INT(selection->data); ThisServer = (ServerData *)gtk_clist_get_row_data(GTK_CLIST(clist), row); AssignName(&ServerName, ThisServer->Name); Port = ThisServer->Port; if (GetStartGamePlayerName(&stgam.play->Name)) { DoConnect(); } } } #endif /* NETWORKING */ static void StartSinglePlayer(GtkWidget *widget, gpointer data) { WantAntique = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(stgam.antique)); if (!GetStartGamePlayerName(&stgam.play->Name)) return; GuiStartGame(); gtk_widget_destroy(stgam.dialog); } static void CloseNewGameDia(GtkWidget *widget, gpointer data) { #ifdef NETWORKING /* Terminate any existing connection attempts */ if (stgam.play->NetBuf.status != NBS_CONNECTED) { ShutdownNetworkBuffer(&stgam.play->NetBuf); } if (stgam.MetaConn) { CloseHttpConnection(stgam.MetaConn); stgam.MetaConn = NULL; } ClearServerList(&stgam.NewMetaList); #endif /* Remember which tab we chose for the next time we use this dialog */ NewGameType = gtk_notebook_get_current_page(GTK_NOTEBOOK(stgam.notebook)); } static void metalist_row_select(GtkWidget *clist, gint row, gint column, GdkEvent *event, GtkWidget *conn_button) { gtk_widget_set_sensitive(conn_button, TRUE); } static void metalist_row_unselect(GtkWidget *clist, gint row, gint column, GdkEvent *event, GtkWidget *conn_button) { gtk_widget_set_sensitive(conn_button, FALSE); } #ifdef NETWORKING void NewGameDialog(Player *play, NBCallBack sockstat) #else void NewGameDialog(Player *play) #endif { GtkWidget *vbox, *vbox2, *hbox, *label, *entry, *notebook; GtkWidget *frame, *button, *dialog, *defbutton; GtkAccelGroup *accel_group; guint AccelKey; #ifdef NETWORKING GtkWidget *clist, *scrollwin, *table, *hbbox; gchar *server_titles[5], *ServerEntry, *text; gboolean UpdateMeta = FALSE; /* Column titles of metaserver information */ server_titles[0] = _("Server"); server_titles[1] = _("Port"); server_titles[2] = _("Version"); server_titles[3] = _("Players"); server_titles[4] = _("Comment"); stgam.MetaConn = NULL; stgam.NewMetaList = NULL; stgam.sockstat = sockstat; #endif /* NETWORKING */ stgam.play = play; stgam.dialog = dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_signal_connect(GTK_OBJECT(dialog), "destroy", GTK_SIGNAL_FUNC(CloseNewGameDia), NULL); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(MainWindow)); #ifdef NETWORKING gtk_window_set_default_size(GTK_WINDOW(dialog), 500, 300); #endif accel_group = gtk_accel_group_new(); /* Title of 'New Game' dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("New Game")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); vbox = gtk_vbox_new(FALSE, 7); hbox = gtk_hbox_new(FALSE, 7); label = gtk_label_new(""); AccelKey = gtk_label_parse_uline(GTK_LABEL(label), /* Prompt for player's name in 'New * Game' dialog */ _("Hey dude, what's your _name?")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); entry = stgam.name = gtk_entry_new(); gtk_widget_add_accelerator(entry, "grab-focus", accel_group, AccelKey, GDK_MOD1_MASK, GTK_ACCEL_VISIBLE); gtk_entry_set_text(GTK_ENTRY(entry), GetPlayerName(stgam.play)); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); notebook = stgam.notebook = gtk_notebook_new(); #ifdef NETWORKING frame = gtk_frame_new(_("Server")); gtk_container_set_border_width(GTK_CONTAINER(frame), 4); vbox2 = gtk_vbox_new(FALSE, 7); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 4); table = gtk_table_new(2, 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 4); gtk_table_set_col_spacings(GTK_TABLE(table), 4); /* Prompt for hostname to connect to in GTK+ new game dialog */ label = gtk_label_new(_("Host name")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = stgam.hostname = gtk_entry_new(); ServerEntry = "localhost"; if (g_strcasecmp(ServerName, SN_META) == 0) { NewGameType = 2; UpdateMeta = TRUE; } else if (g_strcasecmp(ServerName, SN_PROMPT) == 0) NewGameType = 0; else if (g_strcasecmp(ServerName, SN_SINGLE) == 0) NewGameType = 1; else ServerEntry = ServerName; gtk_entry_set_text(GTK_ENTRY(entry), ServerEntry); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 0, 1); label = gtk_label_new(_("Port")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = stgam.port = gtk_entry_new(); text = g_strdup_printf("%d", Port); gtk_entry_set_text(GTK_ENTRY(entry), text); g_free(text); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 1, 2); gtk_box_pack_start(GTK_BOX(vbox2), table, FALSE, FALSE, 0); button = gtk_button_new_with_label(""); /* Button to connect to a named dopewars server */ SetAccelerator(button, _("_Connect"), button, "clicked", accel_group, TRUE); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(ConnectToServer), NULL); gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(frame), vbox2); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); defbutton = button; label = gtk_label_new(_("Server")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), frame, label); #endif /* NETWORKING */ /* Title of 'New Game' dialog notebook tab for single-player mode */ frame = gtk_frame_new(_("Single player")); gtk_container_set_border_width(GTK_CONTAINER(frame), 4); vbox2 = gtk_vbox_new(FALSE, 7); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 4); stgam.antique = gtk_check_button_new_with_label(""); /* Checkbox to activate 'antique mode' in single-player games */ SetAccelerator(stgam.antique, _("_Antique mode"), stgam.antique, "clicked", accel_group, TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(stgam.antique), WantAntique); gtk_box_pack_start(GTK_BOX(vbox2), stgam.antique, FALSE, FALSE, 0); button = gtk_button_new_with_label(""); /* Button to start a new single-player (standalone, non-network) game */ SetAccelerator(button, _("_Start single-player game"), button, "clicked", accel_group, TRUE); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(StartSinglePlayer), NULL); gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(frame), vbox2); label = gtk_label_new(_("Single player")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), frame, label); #ifdef NETWORKING /* Title of Metaserver frame in New Game dialog */ frame = gtk_frame_new(_("Metaserver")); gtk_container_set_border_width(GTK_CONTAINER(frame), 4); vbox2 = gtk_vbox_new(FALSE, 7); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 4); clist = stgam.metaserv = gtk_scrolled_clist_new_with_titles(5, server_titles, &scrollwin); gtk_clist_column_titles_passive(GTK_CLIST(clist)); gtk_clist_set_selection_mode(GTK_CLIST(clist), GTK_SELECTION_SINGLE); gtk_clist_set_column_width(GTK_CLIST(clist), 0, 130); gtk_clist_set_column_width(GTK_CLIST(clist), 1, 35); gtk_box_pack_start(GTK_BOX(vbox2), scrollwin, TRUE, TRUE, 0); hbbox = my_hbbox_new(); /* Button to update metaserver information */ button = NewStockButton(GTK_STOCK_REFRESH, accel_group); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(UpdateMetaServerList), NULL); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = gtk_button_new_with_label(""); SetAccelerator(button, _("_Connect"), button, "clicked", accel_group, TRUE); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(MetaServerConnect), NULL); gtk_widget_set_sensitive(button, FALSE); gtk_signal_connect(GTK_OBJECT(clist), "select_row", GTK_SIGNAL_FUNC(metalist_row_select), button); gtk_signal_connect(GTK_OBJECT(clist), "unselect_row", GTK_SIGNAL_FUNC(metalist_row_unselect), button); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox2), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(frame), vbox2); label = gtk_label_new(_("Metaserver")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), frame, label); #endif /* NETWORKING */ gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); /* Caption of status label in New Game dialog before anything has * happened */ label = stgam.status = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(stgam.dialog), vbox); gtk_widget_grab_focus(stgam.name); #ifdef NETWORKING if (UpdateMeta) { UpdateMetaServerList(NULL); } else { FillMetaServerList(FALSE); } #endif SetStartGameStatus(NULL); gtk_widget_show_all(dialog); gtk_notebook_set_page(GTK_NOTEBOOK(notebook), NewGameType); #ifdef NETWORKING gtk_widget_grab_default(defbutton); #endif } #ifdef NETWORKING static void OKAuthDialog(GtkWidget *widget, GtkWidget *window) { gtk_object_set_data(GTK_OBJECT(window), "authok", GINT_TO_POINTER(TRUE)); gtk_widget_destroy(window); } static void DestroyAuthDialog(GtkWidget *window, gpointer data) { GtkWidget *userentry, *passwdentry; gchar *username = NULL, *password = NULL; gpointer proxy, authok; HttpConnection *conn; authok = gtk_object_get_data(GTK_OBJECT(window), "authok"); proxy = gtk_object_get_data(GTK_OBJECT(window), "proxy"); userentry = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(window), "username"); passwdentry = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(window), "password"); conn = (HttpConnection *)gtk_object_get_data(GTK_OBJECT(window), "httpconn"); g_assert(userentry && passwdentry && conn); if (authok) { username = gtk_editable_get_chars(GTK_EDITABLE(userentry), 0, -1); password = gtk_editable_get_chars(GTK_EDITABLE(passwdentry), 0, -1); } SetHttpAuthentication(conn, GPOINTER_TO_INT(proxy), username, password); g_free(username); g_free(password); } void AuthDialog(HttpConnection *conn, gboolean proxy, gchar *realm, gpointer data) { GtkWidget *window, *button, *hsep, *vbox, *label, *entry, *table, *hbbox; GtkAccelGroup *accel_group; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(DestroyAuthDialog), NULL); gtk_object_set_data(GTK_OBJECT(window), "proxy", GINT_TO_POINTER(proxy)); gtk_object_set_data(GTK_OBJECT(window), "httpconn", (gpointer)conn); if (proxy) { gtk_window_set_title(GTK_WINDOW(window), /* Title of dialog for authenticating with a * proxy server */ _("Proxy Authentication Required")); } else { /* Title of dialog for authenticating with a web server */ gtk_window_set_title(GTK_WINDOW(window), _("Authentication Required")); } my_set_dialog_position(GTK_WINDOW(window)); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(MainWindow)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); vbox = gtk_vbox_new(FALSE, 7); table = gtk_table_new(3, 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 10); gtk_table_set_col_spacings(GTK_TABLE(table), 5); label = gtk_label_new("Realm:"); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1); label = gtk_label_new(realm); gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 0, 1); label = gtk_label_new("User name:"); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2); entry = gtk_entry_new(); gtk_object_set_data(GTK_OBJECT(window), "username", (gpointer)entry); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 1, 2); label = gtk_label_new("Password:"); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3); entry = gtk_entry_new(); gtk_object_set_data(GTK_OBJECT(window), "password", (gpointer)entry); #ifdef HAVE_FIXED_GTK /* GTK+ versions earlier than 1.2.10 do bad things with this */ gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); #endif gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 2, 3); gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_OK, accel_group); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(OKAuthDialog), (gpointer)window); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = NewStockButton(GTK_STOCK_CANCEL, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(window)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); } static void OKSocksAuth(GtkWidget *widget, GtkWidget *window) { gtk_object_set_data(GTK_OBJECT(window), "authok", GINT_TO_POINTER(TRUE)); gtk_widget_destroy(window); } static void DestroySocksAuth(GtkWidget *window, gpointer data) { GtkWidget *userentry, *passwdentry; gchar *username = NULL, *password = NULL; gpointer authok, meta; NetworkBuffer *netbuf; authok = gtk_object_get_data(GTK_OBJECT(window), "authok"); meta = gtk_object_get_data(GTK_OBJECT(window), "meta"); userentry = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(window), "username"); passwdentry = (GtkWidget *)gtk_object_get_data(GTK_OBJECT(window), "password"); netbuf = (NetworkBuffer *)gtk_object_get_data(GTK_OBJECT(window), "netbuf"); g_assert(userentry && passwdentry && netbuf); if (authok) { username = gtk_editable_get_chars(GTK_EDITABLE(userentry), 0, -1); password = gtk_editable_get_chars(GTK_EDITABLE(passwdentry), 0, -1); } SendSocks5UserPasswd(netbuf, username, password); g_free(username); g_free(password); } static void RealSocksAuthDialog(NetworkBuffer *netbuf, gboolean meta, gpointer data) { GtkWidget *window, *button, *hsep, *vbox, *label, *entry, *table, *hbbox; GtkAccelGroup *accel_group; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(DestroySocksAuth), NULL); gtk_object_set_data(GTK_OBJECT(window), "netbuf", (gpointer)netbuf); gtk_object_set_data(GTK_OBJECT(window), "meta", GINT_TO_POINTER(meta)); /* Title of dialog for authenticating with a SOCKS server */ gtk_window_set_title(GTK_WINDOW(window), _("SOCKS Authentication Required")); my_set_dialog_position(GTK_WINDOW(window)); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(MainWindow)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); vbox = gtk_vbox_new(FALSE, 7); table = gtk_table_new(2, 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 10); gtk_table_set_col_spacings(GTK_TABLE(table), 5); label = gtk_label_new("User name:"); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1); entry = gtk_entry_new(); gtk_object_set_data(GTK_OBJECT(window), "username", (gpointer)entry); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 0, 1); label = gtk_label_new("Password:"); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2); entry = gtk_entry_new(); gtk_object_set_data(GTK_OBJECT(window), "password", (gpointer)entry); #ifdef HAVE_FIXED_GTK /* GTK+ versions earlier than 1.2.10 do bad things with this */ gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); #endif gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 1, 2); gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_OK, accel_group); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(OKSocksAuth), (gpointer)window); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = NewStockButton(GTK_STOCK_CANCEL, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(window)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); } void MetaSocksAuthDialog(NetworkBuffer *netbuf, gpointer data) { RealSocksAuthDialog(netbuf, TRUE, data); } void SocksAuthDialog(NetworkBuffer *netbuf, gpointer data) { RealSocksAuthDialog(netbuf, FALSE, data); } #endif /* NETWORKING */ dopewars-1.5.12/src/gui_client/dopewars-pill.xpm0000644001565000007070000000273107436511253016604 00000000000000/* XPM */ static char * dopewars_pill_xpm[] = { "32 32 19 1", " c None", ". c #000000", "+ c #A00000", "@ c #0080FF", "# c #FF0000", "$ c #40A0FF", "% c #FF2D2D", "& c #FFFFFF", "* c #FE1111", "= c #FF0D0D", "- c #3FA0FF", "; c #FC0000", "> c #3E9FFF", ", c #FA0000", "' c #0C1E30", ") c #3D9EFF", "! c #081521", "~ c #FD0000", "{ c #210000", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ...................... ", " ..+++++++++.@@@@@@@@@@.. ", " .+++#######+.@$$$$$$$$@@@. ", " .++%&&######+.@$$$$$$$$$$@@. ", " .+*&&=######+.@$$$$$$$$$$-@. ", " .++#&########+.@$$$$$$$$$$$@@. ", " .+##&########+.@$$$$$$$$$$$$@. ", " .+###########+.@$$$$$$$$$$$$@. ", " .+###########+.@$$$$$$$$$$$$@. ", " .+;##########+.@$$$$$$$$$$$>@. ", " .++##########+.@$.$$..$..$$@@. ", " .+,#########+.@$$.$.&$'$$)@. ", " .++#########+.@$$$...$!$$@@. ", " .+++~~~~~~~+.@$$$$$$$$@@@. ", " .{+++++++++.@@@@@@@@@@.. ", " ...................... ", " ", " ", " ", " ", " ", " ", " "}; dopewars-1.5.12/src/gui_client/Makefile.am0000644001565000007070000000047307530166127015332 00000000000000noinst_LIBRARIES = libguiclient.a libguiclient_a_SOURCES = gtk_client.c gtk_client.h \ optdialog.c optdialog.h \ newgamedia.c newgamedia.h dopewars-pill.xpm INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@ @GLIB_CFLAGS@ DEFS = @DEFS@ dopewars-1.5.12/src/gui_client/gtk_client.h0000644001565000007070000000410010355116554015557 00000000000000/************************************************************************ * gtk_client.h dopewars client using the GTK+ toolkit * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __GTK_CLIENT_H__ #define __GTK_CLIENT_H__ #ifdef HAVE_CONFIG_H #include #endif #include "gtkport/gtkport.h" extern GtkWidget *MainWindow; struct CMDLINE; #ifdef CYGWIN gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance, struct CMDLINE *cmdline, gboolean ReturnOnFail); #else gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline, gboolean ReturnOnFail); #endif void GuiStartGame(void); GtkWidget *my_hbbox_new(void); void my_set_dialog_position(GtkWindow *dialog); #endif dopewars-1.5.12/src/gui_client/gtk_client.c0000644001565000007070000033601210355116554015564 00000000000000/************************************************************************ * gtk_client.c dopewars client using the GTK+ toolkit * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "configfile.h" #include "convert.h" #include "dopewars.h" #include "gtk_client.h" #include "message.h" #include "nls.h" #include "serverside.h" #include "sound.h" #include "tstring.h" #include "util.h" #include "gtkport/gtkport.h" #include "dopewars-pill.xpm" #include "optdialog.h" #include "newgamedia.h" #define BT_BUY (GINT_TO_POINTER(1)) #define BT_SELL (GINT_TO_POINTER(2)) #define BT_DROP (GINT_TO_POINTER(3)) #define ET_SPY 0 #define ET_TIPOFF 1 struct InventoryWidgets { GtkWidget *HereList, *CarriedList; GtkWidget *HereFrame, *CarriedFrame; GtkWidget *BuyButton, *SellButton, *DropButton; GtkWidget *vbbox; }; struct StatusWidgets { GtkWidget *Location, *Date, *SpaceName, *SpaceValue, *CashName; GtkWidget *CashValue, *DebtName, *DebtValue, *BankName, *BankValue; GtkWidget *GunsName, *GunsValue, *BitchesName, *BitchesValue; GtkWidget *HealthName, *HealthValue; }; struct ClientDataStruct { GtkWidget *window, *messages; Player *Play; GtkItemFactory *Menu; struct StatusWidgets Status; struct InventoryWidgets Drug, Gun, InvenDrug, InvenGun; GtkWidget *JetButton, *vbox, *PlayerList, *TalkList; guint JetAccel; struct CMDLINE *cmdline; }; struct DealDiaStruct { GtkWidget *dialog, *cost, *carrying, *space, *afford, *amount; gint DrugInd; gpointer Type; }; static struct DealDiaStruct DealDialog; GtkWidget *MainWindow = NULL; static struct ClientDataStruct ClientData; static gboolean InGame = FALSE; static GtkWidget *FightDialog = NULL, *SpyReportsDialog; static gboolean IsShowingPlayerList = FALSE, IsShowingTalkList = FALSE; static gboolean IsShowingInventory = FALSE, IsShowingGunShop = FALSE; static gboolean IsShowingDealDrugs = FALSE; static void display_intro(GtkWidget *widget, gpointer data); static void QuitGame(GtkWidget *widget, gpointer data); static void DestroyGtk(GtkWidget *widget, gpointer data); static void NewGame(GtkWidget *widget, gpointer data); static void AbandonGame(GtkWidget *widget, gpointer data); static void ToggleSound(GtkWidget *widget, gpointer data); static void ListScores(GtkWidget *widget, gpointer data); static void ListInventory(GtkWidget *widget, gpointer data); static void EndGame(void); static void Jet(GtkWidget *parent); static void UpdateMenus(void); #ifdef NETWORKING static void GetClientMessage(gpointer data, gint socket, GdkInputCondition condition); void SocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow); #endif /* NETWORKING */ static void HandleClientMessage(char *buf, Player *Play); static void PrepareHighScoreDialog(void); static void AddScoreToDialog(char *Data); static void CompleteHighScoreDialog(gboolean AtEnd); static void PrintMessage(char *Data, char *tagname); static void DisplayFightMessage(char *Data); static GtkWidget *CreateStatusWidgets(struct StatusWidgets *Status); static void DisplayStats(Player *Play, struct StatusWidgets *Status); static void UpdateStatus(Player *Play); static void SetJetButtonTitle(GtkAccelGroup *accel_group); static void UpdateInventory(struct InventoryWidgets *Inven, Inventory *Objects, int NumObjects, gboolean AreDrugs); static void JetButtonPressed(GtkWidget *widget, gpointer data); static void DealDrugs(GtkWidget *widget, gpointer data); static void DealGuns(GtkWidget *widget, gpointer data); static void QuestionDialog(char *Data, Player *From); static void TransferDialog(gboolean Debt); static void ListPlayers(GtkWidget *widget, gpointer data); static void TalkToAll(GtkWidget *widget, gpointer data); static void TalkToPlayers(GtkWidget *widget, gpointer data); static void TalkDialog(gboolean TalkToAll); static GtkWidget *CreatePlayerList(void); static void UpdatePlayerList(GtkWidget *clist, gboolean IncludeSelf); static void TipOff(GtkWidget *widget, gpointer data); static void SpyOnPlayer(GtkWidget *widget, gpointer data); static void ErrandDialog(gint ErrandType); static void SackBitch(GtkWidget *widget, gpointer data); static void DestroyShowing(GtkWidget *widget, gpointer data); static void SetShowing(GtkWidget *window, gboolean *showing); static gint DisallowDelete(GtkWidget *widget, GdkEvent * event, gpointer data); static void GunShopDialog(void); static void NewNameDialog(void); static void UpdatePlayerLists(void); static void CreateInventory(GtkWidget *hbox, gchar *Objects, GtkAccelGroup *accel_group, gboolean CreateButtons, gboolean CreateHere, struct InventoryWidgets *widgets, GtkSignalFunc CallBack); static void GetSpyReports(GtkWidget *widget, gpointer data); static void DisplaySpyReports(Player *Play); static GtkItemFactoryEntry menu_items[] = { /* The names of the the menus and their items in the GTK+ client */ {N_("/_Game"), NULL, NULL, 0, ""}, {N_("/Game/_New..."), "N", NewGame, 0, NULL}, {N_("/Game/_Abandon..."), "A", AbandonGame, 0, NULL}, {N_("/Game/_Options..."), "O", OptDialog, 0, NULL}, {N_("/Game/Enable _sound"), NULL, ToggleSound, 0, ""}, {N_("/Game/_Quit..."), "Q", QuitGame, 0, NULL}, {N_("/_Talk"), NULL, NULL, 0, ""}, {N_("/Talk/To _All..."), NULL, TalkToAll, 0, NULL}, {N_("/Talk/To _Player..."), NULL, TalkToPlayers, 0, NULL}, {N_("/_List"), NULL, NULL, 0, ""}, {N_("/List/_Players..."), NULL, ListPlayers, 0, NULL}, {N_("/List/_Scores..."), NULL, ListScores, 0, NULL}, {N_("/List/_Inventory..."), NULL, ListInventory, 0, NULL}, {N_("/_Errands"), NULL, NULL, 0, ""}, {N_("/Errands/_Spy..."), NULL, SpyOnPlayer, 0, NULL}, {N_("/Errands/_Tipoff..."), NULL, TipOff, 0, NULL}, /* N.B. "Sack Bitch" has to be recreated (and thus translated) at the * start of each game, below, so is not marked for gettext here */ {"/Errands/S_ack Bitch...", NULL, SackBitch, 0, NULL}, {N_("/Errands/_Get spy reports..."), NULL, GetSpyReports, 0, NULL}, {N_("/_Help"), NULL, NULL, 0, ""}, {N_("/Help/_About..."), "F1", display_intro, 0, NULL} }; static gchar *MenuTranslate(const gchar *path, gpointer func_data) { /* Translate menu items, using gettext */ return _(path); } static void LogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GtkMessageBox(MainWindow, message, /* Titles of the message boxes for warnings and errors */ log_level & G_LOG_LEVEL_WARNING ? _("Warning") : log_level & G_LOG_LEVEL_CRITICAL ? _("Error") : _("Message"), GTK_MESSAGE_INFO, MB_OK | (gtk_main_level() > 0 ? MB_IMMRETURN : 0)); } /* * Creates an hbutton_box widget, and sets a sensible spacing. * N.B. Should use gtk_hbutton_box_set_spacing_default() instead, but * this doesn't seem to actually work with GTK+2... */ GtkWidget *my_hbbox_new(void) { GtkWidget *hbbox = gtk_hbutton_box_new(); #if HAVE_GLIB2 && !CYGWIN gtk_box_set_spacing(GTK_BOX(hbbox), 8); #endif return hbbox; } /* * Sets the initial size and window manager hints of a dialog. */ void my_set_dialog_position(GtkWindow *dialog) { #ifdef HAVE_GLIB2 gtk_window_set_type_hint(dialog, GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_position(dialog, GTK_WIN_POS_CENTER_ON_PARENT); #endif } void QuitGame(GtkWidget *widget, gpointer data) { if (!InGame || GtkMessageBox(ClientData.window, /* Prompt in 'quit game' dialog */ _("Abandon current game?"), /* Title of 'quit game' dialog */ _("Quit Game"), GTK_MESSAGE_QUESTION, MB_YESNO) == IDYES) { gtk_main_quit(); } } void DestroyGtk(GtkWidget *widget, gpointer data) { gtk_main_quit(); } gint MainDelete(GtkWidget *widget, GdkEvent * event, gpointer data) { return (InGame && GtkMessageBox(ClientData.window, _("Abandon current game?"), _("Quit Game"), GTK_MESSAGE_QUESTION, MB_YESNO) == IDNO); } void NewGame(GtkWidget *widget, gpointer data) { if (InGame) { if (GtkMessageBox(ClientData.window, _("Abandon current game?"), /* Title of 'stop game to start a new game' dialog */ _("Start new game"), GTK_MESSAGE_QUESTION, MB_YESNO) == IDYES) EndGame(); else return; } /* Save the configuration, so we can restore those elements that get * overwritten when we connect to a dopewars server */ BackupConfig(); #ifdef NETWORKING NewGameDialog(ClientData.Play, SocketStatus); #else NewGameDialog(ClientData.Play); #endif } void AbandonGame(GtkWidget *widget, gpointer data) { if (InGame && GtkMessageBox(ClientData.window, _("Abandon current game?"), /* Title of 'abandon game' dialog */ _("Abandon game"), GTK_MESSAGE_QUESTION, MB_YESNO) == IDYES) { EndGame(); } } void ToggleSound(GtkWidget *widget, gpointer data) { gboolean enable; widget = gtk_item_factory_get_widget(ClientData.Menu, "
/Game/Enable sound"); if (widget) { enable = GTK_CHECK_MENU_ITEM(widget)->active; SoundEnable(enable); } } void ListScores(GtkWidget *widget, gpointer data) { if (InGame) { SendClientMessage(ClientData.Play, C_NONE, C_REQUESTSCORE, NULL, NULL); } else { SendNullClientMessage(ClientData.Play, C_NONE, C_REQUESTSCORE, NULL, NULL); } } void ListInventory(GtkWidget *widget, gpointer data) { GtkWidget *window, *button, *hsep, *vbox, *hbox, *hbbox; GtkAccelGroup *accel_group; if (IsShowingInventory) return; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 550, 120); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); /* Title of inventory window */ gtk_window_set_title(GTK_WINDOW(window), _("Inventory")); my_set_dialog_position(GTK_WINDOW(window)); SetShowing(window, &IsShowingInventory); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); vbox = gtk_vbox_new(FALSE, 7); hbox = gtk_hbox_new(FALSE, 7); CreateInventory(hbox, Names.Drugs, accel_group, FALSE, FALSE, &ClientData.InvenDrug, NULL); CreateInventory(hbox, Names.Guns, accel_group, FALSE, FALSE, &ClientData.InvenGun, NULL); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_CLOSE, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(window)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); UpdateInventory(&ClientData.InvenDrug, ClientData.Play->Drugs, NumDrug, TRUE); UpdateInventory(&ClientData.InvenGun, ClientData.Play->Guns, NumGun, FALSE); gtk_widget_show_all(window); } #ifdef NETWORKING void GetClientMessage(gpointer data, gint socket, GdkInputCondition condition) { gchar *pt; NetworkBuffer *NetBuf; gboolean DoneOK, datawaiting; NBStatus status, oldstatus; NBSocksStatus oldsocks; NetBuf = &ClientData.Play->NetBuf; oldstatus = NetBuf->status; oldsocks = NetBuf->sockstat; datawaiting = PlayerHandleNetwork(ClientData.Play, condition & GDK_INPUT_READ, condition & GDK_INPUT_WRITE, &DoneOK); status = NetBuf->status; /* Handle pre-game stuff */ if (status != NBS_CONNECTED) { /* The start game dialog isn't visible once we're connected... */ DisplayConnectStatus(FALSE, oldstatus, oldsocks); } if (oldstatus != NBS_CONNECTED && (status == NBS_CONNECTED || !DoneOK)) { FinishServerConnect(DoneOK); } if (status == NBS_CONNECTED && datawaiting) { while ((pt = GetWaitingPlayerMessage(ClientData.Play)) != NULL) { HandleClientMessage(pt, ClientData.Play); g_free(pt); } } if (!DoneOK) { if (status == NBS_CONNECTED) { /* The network connection to the server was dropped unexpectedly */ g_warning(_("Connection to server lost - switching to " "single player mode")); SwitchToSinglePlayer(ClientData.Play); UpdatePlayerLists(); UpdateMenus(); } else { ShutdownNetworkBuffer(&ClientData.Play->NetBuf); } } } void SocketStatus(NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow) { if (NetBuf->InputTag) gdk_input_remove(NetBuf->InputTag); NetBuf->InputTag = 0; if (Read || Write) { NetBuf->InputTag = gdk_input_add(NetBuf->fd, (Read ? GDK_INPUT_READ : 0) | (Write ? GDK_INPUT_WRITE : 0), GetClientMessage, NetBuf->CallBackData); } if (CallNow) GetClientMessage(NetBuf->CallBackData, NetBuf->fd, 0); } #endif /* NETWORKING */ void HandleClientMessage(char *pt, Player *Play) { char *Data; DispMode DisplayMode; AICode AI; MsgCode Code; Player *From, *tmp; gchar *text; gboolean Handled; GtkWidget *MenuItem; GSList *list; if (ProcessMessage(pt, Play, &From, &AI, &Code, &Data, FirstClient) == -1) { return; } Handled = HandleGenericClientMessage(From, AI, Code, Play, Data, &DisplayMode); switch (Code) { case C_STARTHISCORE: PrepareHighScoreDialog(); break; case C_HISCORE: AddScoreToDialog(Data); break; case C_ENDHISCORE: CompleteHighScoreDialog((strcmp(Data, "end") == 0)); break; case C_PRINTMESSAGE: PrintMessage(Data, NULL); break; case C_FIGHTPRINT: DisplayFightMessage(Data); break; case C_PUSH: /* The server admin has asked us to leave - so warn the user, and do * so */ g_warning(_("You have been pushed from the server.\n" "Switching to single player mode.")); SwitchToSinglePlayer(Play); UpdatePlayerLists(); UpdateMenus(); break; case C_QUIT: /* The server has sent us notice that it is shutting down */ g_warning(_("The server has terminated.\n" "Switching to single player mode.")); SwitchToSinglePlayer(Play); UpdatePlayerLists(); UpdateMenus(); break; case C_NEWNAME: NewNameDialog(); break; case C_BANK: TransferDialog(FALSE); break; case C_LOANSHARK: TransferDialog(TRUE); break; case C_GUNSHOP: GunShopDialog(); break; case C_MSG: text = g_strdup_printf("%s: %s", GetPlayerName(From), Data); PrintMessage(text, "talk"); g_free(text); SoundPlay(Sounds.TalkToAll); break; case C_MSGTO: text = g_strdup_printf("%s->%s: %s", GetPlayerName(From), GetPlayerName(Play), Data); PrintMessage(text, "page"); g_free(text); SoundPlay(Sounds.TalkPrivate); break; case C_JOIN: text = g_strdup_printf(_("%s joins the game!"), Data); PrintMessage(text, "join"); g_free(text); SoundPlay(Sounds.JoinGame); UpdatePlayerLists(); UpdateMenus(); break; case C_LEAVE: if (From != &Noone) { text = g_strdup_printf(_("%s has left the game."), Data); PrintMessage(text, "leave"); g_free(text); SoundPlay(Sounds.LeaveGame); UpdatePlayerLists(); UpdateMenus(); } break; case C_QUESTION: QuestionDialog(Data, From == &Noone ? NULL : From); break; case C_SUBWAYFLASH: DisplayFightMessage(NULL); for (list = FirstClient; list; list = g_slist_next(list)) { tmp = (Player *)list->data; tmp->Flags &= ~FIGHTING; } /* Message displayed when the player "jets" to a new location */ text = dpg_strdup_printf(_("Jetting to %tde"), Location[(int)Play->IsAt].Name); PrintMessage(text, "jet"); g_free(text); SoundPlay(Sounds.Jet); break; case C_ENDLIST: MenuItem = gtk_item_factory_get_widget(ClientData.Menu, "
/Errands/Sack Bitch..."); /* Text for the Errands/Sack Bitch menu item */ text = dpg_strdup_printf(_("%/Sack Bitch menu item/S_ack %Tde..."), Names.Bitch); SetAccelerator(MenuItem, text, NULL, NULL, NULL, FALSE); g_free(text); MenuItem = gtk_item_factory_get_widget(ClientData.Menu, "
/Errands/Spy..."); /* Text to update the Errands/Spy menu item with the price for spying */ text = dpg_strdup_printf(_("_Spy (%P)"), Prices.Spy); SetAccelerator(MenuItem, text, NULL, NULL, NULL, FALSE); g_free(text); /* Text to update the Errands/Tipoff menu item with the price for a * tipoff */ text = dpg_strdup_printf(_("_Tipoff (%P)"), Prices.Tipoff); MenuItem = gtk_item_factory_get_widget(ClientData.Menu, "
/Errands/Tipoff..."); SetAccelerator(MenuItem, text, NULL, NULL, NULL, FALSE); g_free(text); if (FirstClient->next) ListPlayers(NULL, NULL); UpdateMenus(); break; case C_UPDATE: if (From == &Noone) { ReceivePlayerData(Play, Data, Play); UpdateStatus(Play); } else { ReceivePlayerData(Play, Data, From); DisplaySpyReports(From); } break; case C_DRUGHERE: UpdateInventory(&ClientData.Drug, Play->Drugs, NumDrug, TRUE); gtk_clist_sort(GTK_CLIST(ClientData.Drug.HereList)); if (IsShowingInventory) { UpdateInventory(&ClientData.InvenDrug, Play->Drugs, NumDrug, TRUE); } if (IsShowingDealDrugs) { gtk_widget_destroy(DealDialog.dialog); } break; default: if (!Handled) { g_print("Unknown network message received: %s^%c^%s^%s", GetPlayerName(From), Code, GetPlayerName(Play), Data); } break; } } struct HiScoreDiaStruct { GtkWidget *dialog, *table, *vbox; GtkAccelGroup *accel_group; }; static struct HiScoreDiaStruct HiScoreDialog = { NULL, NULL, NULL, NULL }; /* * Creates an empty dialog to display high scores. */ void PrepareHighScoreDialog(void) { GtkWidget *dialog, *vbox, *hsep, *table; /* Make sure the server doesn't fool us into creating multiple dialogs */ if (HiScoreDialog.dialog) return; HiScoreDialog.dialog = dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); HiScoreDialog.accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), HiScoreDialog.accel_group); /* Title of the GTK+ high score dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("High Scores")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); HiScoreDialog.vbox = vbox = gtk_vbox_new(FALSE, 7); HiScoreDialog.table = table = gtk_table_new(NUMHISCORE, 4, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_table_set_col_spacings(GTK_TABLE(table), 30); gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } /* * Adds a single high score (coded in "Data", which is the information * received in the relevant network message) to the dialog created by * PrepareHighScoreDialog(), above. */ void AddScoreToDialog(char *Data) { GtkWidget *label; char *cp; gchar **spl1, **spl2; int index, slen; gboolean bold; GtkStyle *style = NULL; if (!HiScoreDialog.dialog) return; cp = Data; index = GetNextInt(&cp, 0); if (!cp || strlen(cp) < 3) return; bold = (*cp == 'B'); /* Is this score "our" score? (Currently * ignored) */ /* Step past the 'bold' character, and the initial '>' (if present) */ cp += 2; g_strchug(cp); /* Get the first word - the score */ #ifdef HAVE_GLIB2 spl1 = g_strsplit(cp, " ", 2); #else spl1 = g_strsplit(cp, " ", 1); #endif if (!spl1 || !spl1[0] || !spl1[1]) { /* Error - the high score from the server is invalid */ g_warning(_("Corrupt high score!")); g_strfreev(spl1); return; } label = gtk_label_new(spl1[0]); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_table_attach_defaults(GTK_TABLE(HiScoreDialog.table), label, 0, 1, index, index + 1); if (bold) { GdkColor color; color.red = 0; color.green = 0; color.blue = 0xDDDD; color.pixel = 0; style = gtk_style_new(); style->fg[GTK_STATE_NORMAL] = color; gtk_widget_set_style(label, style); } gtk_widget_show(label); /* Remove any leading whitespace from the remainder, since g_strsplit * will split at every space character, not at a run of them */ g_strchug(spl1[1]); /* Get the second word - the date */ #ifdef HAVE_GLIB2 spl2 = g_strsplit(spl1[1], " ", 2); #else spl2 = g_strsplit(spl1[1], " ", 1); #endif if (!spl2 || !spl2[0] || !spl2[1]) { g_warning(_("Corrupt high score!")); g_strfreev(spl2); return; } label = gtk_label_new(spl2[0]); gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5); gtk_table_attach_defaults(GTK_TABLE(HiScoreDialog.table), label, 1, 2, index, index + 1); if (bold) { gtk_widget_set_style(label, style); } gtk_widget_show(label); /* The remainder is the name, terminated with (R.I.P.) if the player * died, and '<' for the 'current' score */ g_strchug(spl2[1]); /* Remove '<' suffix if present */ slen = strlen(spl2[1]); if (slen >= 1 && spl2[1][slen - 1] == '<') { spl2[1][slen - 1] = '\0'; } slen--; /* Check for (R.I.P.) suffix, and add it to the 4th column if found */ if (slen > 8 && spl2[1][slen - 1] == ')' && spl2[1][slen - 8] == '(') { label = gtk_label_new(&spl2[1][slen - 8]); gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5); gtk_table_attach_defaults(GTK_TABLE(HiScoreDialog.table), label, 3, 4, index, index + 1); if (bold) { gtk_widget_set_style(label, style); } gtk_widget_show(label); spl2[1][slen - 8] = '\0'; /* Remove suffix from the player name */ } /* Finally, add in what's left of the player name */ g_strchomp(spl2[1]); label = gtk_label_new(spl2[1]); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach_defaults(GTK_TABLE(HiScoreDialog.table), label, 2, 3, index, index + 1); if (bold) { gtk_widget_set_style(label, style); } gtk_widget_show(label); g_strfreev(spl1); g_strfreev(spl2); } /* * If the high scores are being displayed at the end of the game, * this function is used to end the game when the high score dialog's * "OK" button is pressed. */ static void EndHighScore(GtkWidget *widget) { EndGame(); } /* * Called when all high scores have been received. Finishes off the * high score dialog by adding an "OK" button. If the game has ended, * then "AtEnd" is TRUE, and clicking this button will end the game. */ void CompleteHighScoreDialog(gboolean AtEnd) { GtkWidget *button, *dialog, *hbbox; dialog = HiScoreDialog.dialog; if (!HiScoreDialog.dialog) { return; } hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_CLOSE, HiScoreDialog.accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog)); if (AtEnd) { InGame = FALSE; gtk_signal_connect_object(GTK_OBJECT(dialog), "destroy", GTK_SIGNAL_FUNC(EndHighScore), NULL); } gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(HiScoreDialog.vbox), hbbox, FALSE, FALSE, 0); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); gtk_widget_grab_default(button); gtk_widget_show_all(hbbox); /* OK, we're done - allow the creation of new high score dialogs */ HiScoreDialog.dialog = NULL; } /* * Prints an information message in the display area of the GTK+ client. * This area is used for displaying drug busts, messages from other * players, etc. The message is passed in as the string "text". */ void PrintMessage(char *text, char *tagname) { GtkTextView *messages = GTK_TEXT_VIEW(ClientData.messages); g_strdelimit(text, "^", '\n'); TextViewAppend(messages, text, tagname, FALSE); TextViewAppend(messages, "\n", NULL, TRUE); } static void FreeCombatants(void); /* * Called when one of the action buttons in the Fight dialog is clicked. * "data" specifies which button (Deal Drugs/Run/Fight/Stand) was pressed. */ static void FightCallback(GtkWidget *widget, gpointer data) { gint Answer; Player *Play; gchar text[4]; GtkWidget *window; gpointer CanRunHere = NULL; window = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (window) { CanRunHere = gtk_object_get_data(GTK_OBJECT(window), "CanRunHere"); } Answer = GPOINTER_TO_INT(data); Play = ClientData.Play; switch (Answer) { case 'D': gtk_widget_hide(FightDialog); if (!(Play->Flags & FIGHTING)) { FreeCombatants(); gtk_widget_destroy(FightDialog); FightDialog = NULL; if (HaveAbility(Play, A_DONEFIGHT)) { SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL); } } break; case 'R': if (CanRunHere) { SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, "R"); } else { Jet(FightDialog); } break; case 'F': case 'S': text[0] = Answer; text[1] = '\0'; SendClientMessage(Play, C_NONE, C_FIGHTACT, NULL, text); break; } } /* * Adds an action button to the hbox at the base of the Fight dialog. * The button's caption is given by "Text", and the keyboard shortcut * (if any) is added to "accel_group". "Answer" gives the identifier * passed to FightCallback, above. */ static GtkWidget *AddFightButton(gchar *Text, GtkAccelGroup *accel_group, GtkBox *box, gint Answer) { GtkWidget *button; button = gtk_button_new_with_label(""); SetAccelerator(button, Text, button, "clicked", accel_group, FALSE); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(FightCallback), GINT_TO_POINTER(Answer)); gtk_box_pack_start(box, button, TRUE, TRUE, 0); return button; } /* Data used to keep track of the widgets giving the information about a * player/cop involved in a fight */ struct combatant { GtkWidget *name, *bitches, *healthprog, *healthlabel; }; /* * Creates an empty Fight dialog. Usually this only needs to be done once, * as when the user "closes" it, it is only hidden, ready to be reshown * later. Buttons for all actions are added here, and are hidden/shown * as necessary. */ static void CreateFightDialog(void) { GtkWidget *dialog, *vbox, *button, *hbox, *hbbox, *hsep, *text, *table; GtkAccelGroup *accel_group; GArray *combatants; gchar *buf; FightDialog = dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(dialog), 350, 250); gtk_signal_connect(GTK_OBJECT(dialog), "delete_event", GTK_SIGNAL_FUNC(DisallowDelete), NULL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_window_set_title(GTK_WINDOW(dialog), _("Fight")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); vbox = gtk_vbox_new(FALSE, 7); table = gtk_table_new(2, 4, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 7); gtk_table_set_col_spacings(GTK_TABLE(table), 10); hsep = gtk_hseparator_new(); gtk_table_attach_defaults(GTK_TABLE(table), hsep, 0, 4, 1, 2); gtk_widget_show_all(table); gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0); gtk_object_set_data(GTK_OBJECT(dialog), "table", table); combatants = g_array_new(FALSE, TRUE, sizeof(struct combatant)); g_array_set_size(combatants, 1); gtk_object_set_data(GTK_OBJECT(dialog), "combatants", combatants); text = gtk_scrolled_text_view_new(&hbox); gtk_widget_set_usize(text, 150, 120); gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD); gtk_object_set_data(GTK_OBJECT(dialog), "text", text); gtk_widget_show_all(hbox); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); gtk_widget_show(hsep); hbbox = my_hbbox_new(); /* Button for closing the "Fight" dialog and going back to dealing drugs * (%Tde = "Drugs" by default) */ buf = dpg_strdup_printf(_("_Deal %Tde"), Names.Drugs); button = AddFightButton(buf, accel_group, GTK_BOX(hbbox), 'D'); gtk_object_set_data(GTK_OBJECT(dialog), "deal", button); g_free(buf); /* Button for shooting at other players in the "Fight" dialog, or for * popping up the "Fight" dialog from the main window */ button = AddFightButton(_("_Fight"), accel_group, GTK_BOX(hbbox), 'F'); gtk_object_set_data(GTK_OBJECT(dialog), "fight", button); /* Button to stand and take it in the "Fight" dialog */ button = AddFightButton(_("_Stand"), accel_group, GTK_BOX(hbbox), 'S'); gtk_object_set_data(GTK_OBJECT(dialog), "stand", button); /* Button to run from combat in the "Fight" dialog */ button = AddFightButton(_("_Run"), accel_group, GTK_BOX(hbbox), 'R'); gtk_object_set_data(GTK_OBJECT(dialog), "run", button); gtk_widget_show(hsep); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_widget_show(hbbox); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show(dialog); } /* * Updates the display of information for a player/cop in the Fight dialog. * If the player's name (DefendName) already exists, updates the display of * total health and number of bitches - otherwise, adds a new entry. If * DefendBitches is -1, then the player has left. */ static void UpdateCombatant(gchar *DefendName, int DefendBitches, gchar *BitchName, int DefendHealth) { guint i, RowIndex; gchar *name; struct combatant *compt; GArray *combatants; GtkWidget *table; gchar *BitchText, *HealthText; gfloat ProgPercent; combatants = (GArray *)gtk_object_get_data(GTK_OBJECT(FightDialog), "combatants"); table = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(FightDialog), "table")); if (!combatants) { return; } if (DefendName[0]) { compt = NULL; for (i = 1, RowIndex = 2; i < combatants->len; i++, RowIndex++) { compt = &g_array_index(combatants, struct combatant, i); if (!compt || !compt->name) { compt = NULL; continue; } gtk_label_get(GTK_LABEL(compt->name), &name); if (name && strcmp(name, DefendName) == 0) { break; } compt = NULL; } if (!compt) { i = combatants->len; g_array_set_size(combatants, i + 1); compt = &g_array_index(combatants, struct combatant, i); gtk_table_resize(GTK_TABLE(table), i + 2, 4); RowIndex = i + 1; } } else { compt = &g_array_index(combatants, struct combatant, 0); RowIndex = 0; } /* Display of number of bitches or deputies during combat * (%tde="bitches" or "deputies" (etc.) by default) */ BitchText = dpg_strdup_printf(_("%/Combat: Bitches/%d %tde"), DefendBitches, BitchName); /* Display of health during combat */ if (DefendBitches == -1) { HealthText = g_strdup(_("(Left)")); } else if (DefendHealth == 0 && DefendBitches == 0) { HealthText = g_strdup(_("(Dead)")); } else { HealthText = g_strdup_printf(_("Health: %d"), DefendHealth); } ProgPercent = (gfloat)DefendHealth / 100.0; if (compt->name) { if (DefendName[0]) { gtk_label_set_text(GTK_LABEL(compt->name), DefendName); } if (DefendBitches >= 0) { gtk_label_set_text(GTK_LABEL(compt->bitches), BitchText); } gtk_label_set_text(GTK_LABEL(compt->healthlabel), HealthText); gtk_progress_bar_update(GTK_PROGRESS_BAR(compt->healthprog), ProgPercent); } else { /* Display of the current player's name during combat */ compt->name = gtk_label_new(DefendName[0] ? DefendName : _("You")); gtk_table_attach(GTK_TABLE(table), compt->name, 0, 1, RowIndex, RowIndex + 1, GTK_SHRINK, GTK_SHRINK, 0, 0); compt->bitches = gtk_label_new(DefendBitches >= 0 ? BitchText : ""); gtk_table_attach(GTK_TABLE(table), compt->bitches, 1, 2, RowIndex, RowIndex + 1, GTK_SHRINK, GTK_SHRINK, 0, 0); compt->healthprog = gtk_progress_bar_new(); gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(compt->healthprog), GTK_PROGRESS_LEFT_TO_RIGHT); gtk_progress_bar_update(GTK_PROGRESS_BAR(compt->healthprog), ProgPercent); gtk_table_attach_defaults(GTK_TABLE(table), compt->healthprog, 2, 3, RowIndex, RowIndex + 1); compt->healthlabel = gtk_label_new(HealthText); gtk_table_attach(GTK_TABLE(table), compt->healthlabel, 3, 4, RowIndex, RowIndex + 1, GTK_SHRINK, GTK_SHRINK, 0, 0); gtk_widget_show(compt->name); gtk_widget_show(compt->bitches); gtk_widget_show(compt->healthprog); gtk_widget_show(compt->healthlabel); } g_free(BitchText); g_free(HealthText); } /* * Cleans up the list of all players/cops involved in a fight. */ static void FreeCombatants(void) { GArray *combatants; combatants = (GArray *)gtk_object_get_data(GTK_OBJECT(FightDialog), "combatants"); if (combatants) { g_array_free(combatants, TRUE); } } static void EnableFightButton(GtkWidget *button, gboolean enable) { if (enable) { gtk_widget_set_sensitive(button, TRUE); gtk_widget_show(button); } else { gtk_widget_hide(button); gtk_widget_set_sensitive(button, FALSE); } } /* * Given the network message "Data" concerning some happening during * combat, extracts the relevant data and updates the Fight dialog, * creating and/or showing it if necessary. * If "Data" is NULL, then closes the dialog. If "Data" is a blank * string, then just shows the dialog, displaying no new messages. */ void DisplayFightMessage(char *Data) { Player *Play; GtkAccelGroup *accel_group; GtkWidget *Deal, *Fight, *Stand, *Run; GtkTextView *textview; gchar *AttackName, *DefendName, *BitchName, *Message; FightPoint fp; int DefendHealth, DefendBitches, BitchesKilled, ArmPercent; gboolean CanRunHere, Loot, CanFire; if (!Data) { if (FightDialog) { FreeCombatants(); gtk_widget_destroy(FightDialog); FightDialog = NULL; } return; } if (FightDialog) { if (IsShowingDealDrugs) { gtk_widget_destroy(DealDialog.dialog); } if (!GTK_WIDGET_VISIBLE(FightDialog)) { gtk_widget_show(FightDialog); } } else { CreateFightDialog(); } if (!FightDialog || !Data[0]) { return; } Deal = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(FightDialog), "deal")); Fight = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(FightDialog), "fight")); Stand = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(FightDialog), "stand")); Run = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(FightDialog), "run")); textview = GTK_TEXT_VIEW(gtk_object_get_data(GTK_OBJECT(FightDialog), "text")); Play = ClientData.Play; if (HaveAbility(Play, A_NEWFIGHT)) { ReceiveFightMessage(Data, &AttackName, &DefendName, &DefendHealth, &DefendBitches, &BitchName, &BitchesKilled, &ArmPercent, &fp, &CanRunHere, &Loot, &CanFire, &Message); Play->Flags |= FIGHTING; switch (fp) { case F_HIT: case F_ARRIVED: case F_MISS: UpdateCombatant(DefendName, DefendBitches, BitchName, DefendHealth); break; case F_LEAVE: if (AttackName[0]) { UpdateCombatant(AttackName, -1, BitchName, 0); } break; case F_LASTLEAVE: Play->Flags &= ~FIGHTING; break; default: break; } accel_group = (GtkAccelGroup *) gtk_object_get_data(GTK_OBJECT(ClientData.window), "accel_group"); SetJetButtonTitle(accel_group); } else { Message = Data; if (Play->Flags & FIGHTING) { fp = F_MSG; } else { fp = F_LASTLEAVE; } CanFire = (Play->Flags & CANSHOOT); CanRunHere = FALSE; } gtk_object_set_data(GTK_OBJECT(FightDialog), "CanRunHere", GINT_TO_POINTER(CanRunHere)); g_strdelimit(Message, "^", '\n'); if (strlen(Message) > 0) { TextViewAppend(textview, Message, NULL, FALSE); TextViewAppend(textview, "\n", NULL, TRUE); } EnableFightButton(Deal, !CanRunHere || fp == F_LASTLEAVE); EnableFightButton(Fight, CanFire && TotalGunsCarried(Play) > 0); EnableFightButton(Stand, CanFire && TotalGunsCarried(Play) == 0); EnableFightButton(Run, fp != F_LASTLEAVE); } /* * Updates the display of pertinent data about player "Play" (location, * health, etc. in the status widgets given by "Status". This can point * to the widgets at the top of the main window, or those in a Spy * Reports dialog. */ void DisplayStats(Player *Play, struct StatusWidgets *Status) { gchar *prstr; GString *text; text = g_string_new(NULL); dpg_string_sprintf(text, _("%/Current location/%tde"), Location[Play->IsAt].Name); gtk_label_set_text(GTK_LABEL(Status->Location), text->str); GetDateString(text, Play); gtk_label_set_text(GTK_LABEL(Status->Date), text->str); g_string_sprintf(text, "%d", Play->CoatSize); gtk_label_set_text(GTK_LABEL(Status->SpaceValue), text->str); prstr = FormatPrice(Play->Cash); gtk_label_set_text(GTK_LABEL(Status->CashValue), prstr); g_free(prstr); prstr = FormatPrice(Play->Bank); gtk_label_set_text(GTK_LABEL(Status->BankValue), prstr); g_free(prstr); prstr = FormatPrice(Play->Debt); gtk_label_set_text(GTK_LABEL(Status->DebtValue), prstr); g_free(prstr); /* Display of carried guns in GTK+ client status window (%Tde="Guns" by * default) */ dpg_string_sprintf(text, _("%/GTK Stats: Guns/%Tde"), Names.Guns); gtk_label_set_text(GTK_LABEL(Status->GunsName), text->str); g_string_sprintf(text, "%d", TotalGunsCarried(Play)); gtk_label_set_text(GTK_LABEL(Status->GunsValue), text->str); if (!WantAntique) { /* Display of number of bitches in GTK+ client status window * (%Tde="Bitches" by default) */ dpg_string_sprintf(text, _("%/GTK Stats: Bitches/%Tde"), Names.Bitches); gtk_label_set_text(GTK_LABEL(Status->BitchesName), text->str); g_string_sprintf(text, "%d", Play->Bitches.Carried); gtk_label_set_text(GTK_LABEL(Status->BitchesValue), text->str); } else { gtk_label_set_text(GTK_LABEL(Status->BitchesName), NULL); gtk_label_set_text(GTK_LABEL(Status->BitchesValue), NULL); } g_string_sprintf(text, "%d", Play->Health); gtk_label_set_text(GTK_LABEL(Status->HealthValue), text->str); g_string_free(text, TRUE); } /* * Updates all of the player status in response to a message from the * server. This includes the main window display, the gun shop (if * displayed) and the inventory (if displayed). */ void UpdateStatus(Player *Play) { GtkAccelGroup *accel_group; DisplayStats(Play, &ClientData.Status); UpdateInventory(&ClientData.Drug, ClientData.Play->Drugs, NumDrug, TRUE); gtk_clist_sort(GTK_CLIST(ClientData.Drug.HereList)); accel_group = (GtkAccelGroup *) gtk_object_get_data(GTK_OBJECT(ClientData.window), "accel_group"); SetJetButtonTitle(accel_group); if (IsShowingGunShop) { UpdateInventory(&ClientData.Gun, ClientData.Play->Guns, NumGun, FALSE); } if (IsShowingInventory) { UpdateInventory(&ClientData.InvenDrug, ClientData.Play->Drugs, NumDrug, TRUE); UpdateInventory(&ClientData.InvenGun, ClientData.Play->Guns, NumGun, FALSE); } } void UpdateInventory(struct InventoryWidgets *Inven, Inventory *Objects, int NumObjects, gboolean AreDrugs) { GtkWidget *herelist, *carrylist; Player *Play; gint i, row, selectrow[2]; gpointer rowdata; price_t price; gchar *titles[2]; gboolean CanBuy = FALSE, CanSell = FALSE, CanDrop = FALSE; GList *glist[2], *selection; GtkCList *clist[2]; int numlist; Play = ClientData.Play; herelist = Inven->HereList; carrylist = Inven->CarriedList; numlist = (herelist ? 2 : 1); /* Make lists of the current selections */ clist[0] = GTK_CLIST(carrylist); if (herelist) { clist[1] = GTK_CLIST(herelist); } else { clist[1] = NULL; } for (i = 0; i < numlist; i++) { glist[i] = NULL; selectrow[i] = -1; for (selection = clist[i]->selection; selection; selection = g_list_next(selection)) { row = GPOINTER_TO_INT(selection->data); rowdata = gtk_clist_get_row_data(clist[i], row); glist[i] = g_list_append(glist[i], rowdata); } } gtk_clist_freeze(GTK_CLIST(carrylist)); gtk_clist_clear(GTK_CLIST(carrylist)); if (herelist) { gtk_clist_freeze(GTK_CLIST(herelist)); gtk_clist_clear(GTK_CLIST(herelist)); } for (i = 0; i < NumObjects; i++) { if (AreDrugs) { titles[0] = dpg_strdup_printf(_("%/Inventory drug name/%tde"), Drug[i].Name); price = Objects[i].Price; } else { titles[0] = dpg_strdup_printf(_("%/Inventory gun name/%tde"), Gun[i].Name); price = Gun[i].Price; } if (herelist && price > 0) { CanBuy = TRUE; titles[1] = FormatPrice(price); row = gtk_clist_append(GTK_CLIST(herelist), titles); g_free(titles[1]); gtk_clist_set_row_data(GTK_CLIST(herelist), row, GINT_TO_POINTER(i)); if (g_list_find(glist[1], GINT_TO_POINTER(i))) { selectrow[1] = row; gtk_clist_select_row(GTK_CLIST(herelist), row, 0); } } if (Objects[i].Carried > 0) { if (price > 0) { CanSell = TRUE; } else { CanDrop = TRUE; } if (HaveAbility(ClientData.Play, A_DRUGVALUE) && AreDrugs) { titles[1] = dpg_strdup_printf("%d @ %P", Objects[i].Carried, Objects[i].TotalValue / Objects[i].Carried); } else { titles[1] = g_strdup_printf("%d", Objects[i].Carried); } row = gtk_clist_append(GTK_CLIST(carrylist), titles); g_free(titles[1]); gtk_clist_set_row_data(GTK_CLIST(carrylist), row, GINT_TO_POINTER(i)); if (g_list_find(glist[0], GINT_TO_POINTER(i))) { selectrow[0] = row; gtk_clist_select_row(GTK_CLIST(carrylist), row, 0); } } g_free(titles[0]); } for (i = 0; i < numlist; i++) { if (selectrow[i] != -1 && gtk_clist_row_is_visible(clist[i], selectrow[i]) != GTK_VISIBILITY_FULL) { gtk_clist_moveto(clist[i], selectrow[i], 0, 0.0, 0.0); } g_list_free(glist[i]); } gtk_clist_thaw(GTK_CLIST(carrylist)); if (herelist) { gtk_clist_thaw(GTK_CLIST(herelist)); } if (Inven->vbbox) { gtk_widget_set_sensitive(Inven->BuyButton, CanBuy); gtk_widget_set_sensitive(Inven->SellButton, CanSell); gtk_widget_set_sensitive(Inven->DropButton, CanDrop); } } static void JetCallback(GtkWidget *widget, gpointer data) { int NewLocation; gchar *text; GtkWidget *JetDialog; JetDialog = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(widget), "dialog")); NewLocation = GPOINTER_TO_INT(data); gtk_widget_destroy(JetDialog); text = g_strdup_printf("%d", NewLocation); SendClientMessage(ClientData.Play, C_NONE, C_REQUESTJET, NULL, text); g_free(text); } void JetButtonPressed(GtkWidget *widget, gpointer data) { if (InGame) { if (ClientData.Play->Flags & FIGHTING) { DisplayFightMessage(""); } else { Jet(NULL); } } } void Jet(GtkWidget *parent) { GtkWidget *dialog, *table, *button, *label, *vbox; GtkAccelGroup *accel_group; gint boxsize, i, row, col; gchar *name, AccelChar; accel_group = gtk_accel_group_new(); dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); /* Title of 'Jet' dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("Jet to location")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), parent ? GTK_WINDOW(parent) : GTK_WINDOW(ClientData.window)); vbox = gtk_vbox_new(FALSE, 7); /* Prompt in 'Jet' dialog */ label = gtk_label_new(_("Where to, dude ? ")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); /* Generate a square box of buttons for all locations */ boxsize = 1; while (boxsize * boxsize < NumLocation) { boxsize++; } col = boxsize; row = 1; /* Avoid creating a box with an entire row empty at the bottom */ while (row * col < NumLocation) { row++; } table = gtk_table_new(row, col, TRUE); for (i = 0; i < NumLocation; i++) { if (i < 9) { AccelChar = '1' + i; } else if (i < 35) { AccelChar = 'A' + i - 9; } else { AccelChar = '\0'; } row = i / boxsize; col = i % boxsize; if (AccelChar == '\0') { name = dpg_strdup_printf(_("%/Location to jet to/%tde"), Location[i].Name); button = gtk_button_new_with_label(name); g_free(name); } else { button = gtk_button_new_with_label(""); /* Display of locations in 'Jet' window (%tde="The Bronx" etc. by * default) */ name = dpg_strdup_printf(_("_%c. %tde"), AccelChar, Location[i].Name); SetAccelerator(button, name, button, "clicked", accel_group, FALSE); /* Add keypad shortcuts as well */ if (i < 9) { gtk_widget_add_accelerator(button, "clicked", accel_group, GDK_KP_1 + i, 0, GTK_ACCEL_VISIBLE); } g_free(name); } gtk_widget_set_sensitive(button, i != ClientData.Play->IsAt); gtk_object_set_data(GTK_OBJECT(button), "dialog", dialog); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(JetCallback), GINT_TO_POINTER(i)); gtk_table_attach_defaults(GTK_TABLE(table), button, col, col + 1, row, row + 1); } gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } static void UpdateDealDialog(void) { GString *text; GtkAdjustment *spin_adj; gint DrugInd, CanDrop, CanCarry, CanAfford, MaxDrug; Player *Play; text = g_string_new(NULL); DrugInd = DealDialog.DrugInd; Play = ClientData.Play; /* Display of the current price of the selected drug in 'Deal Drugs' * dialog */ dpg_string_sprintf(text, _("at %P"), Play->Drugs[DrugInd].Price); gtk_label_set_text(GTK_LABEL(DealDialog.cost), text->str); CanDrop = Play->Drugs[DrugInd].Carried; /* Display of current inventory of the selected drug in 'Deal Drugs' * dialog (%tde="Opium" etc. by default) */ dpg_string_sprintf(text, _("You are currently carrying %d %tde"), CanDrop, Drug[DrugInd].Name); gtk_label_set_text(GTK_LABEL(DealDialog.carrying), text->str); CanCarry = Play->CoatSize; /* Available space for drugs in 'Deal Drugs' dialog */ g_string_sprintf(text, _("Available space: %d"), CanCarry); gtk_label_set_text(GTK_LABEL(DealDialog.space), text->str); if (DealDialog.Type == BT_BUY) { /* Just in case a price update from the server slips through */ if (Play->Drugs[DrugInd].Price == 0) { CanAfford = 0; } else { CanAfford = Play->Cash / Play->Drugs[DrugInd].Price; } /* Number of the selected drug that you can afford in 'Deal Drugs' * dialog */ g_string_sprintf(text, _("You can afford %d"), CanAfford); gtk_label_set_text(GTK_LABEL(DealDialog.afford), text->str); MaxDrug = MIN(CanCarry, CanAfford); } else { MaxDrug = CanDrop; } spin_adj = (GtkAdjustment *)gtk_adjustment_new(MaxDrug, 1.0, MaxDrug, 1.0, 10.0, 10.0); gtk_spin_button_set_adjustment(GTK_SPIN_BUTTON(DealDialog.amount), spin_adj); gtk_spin_button_set_value(GTK_SPIN_BUTTON(DealDialog.amount), MaxDrug); g_string_free(text, TRUE); } static void DealSelectCallback(GtkWidget *widget, gpointer data) { DealDialog.DrugInd = GPOINTER_TO_INT(data); UpdateDealDialog(); } static void DealOKCallback(GtkWidget *widget, gpointer data) { GtkWidget *spinner; gint amount; gchar *text; spinner = DealDialog.amount; gtk_spin_button_update(GTK_SPIN_BUTTON(spinner)); amount = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(spinner)); text = g_strdup_printf("drug^%d^%d", DealDialog.DrugInd, data == BT_BUY ? amount : -amount); gtk_widget_destroy(DealDialog.dialog); SendClientMessage(ClientData.Play, C_NONE, C_BUYOBJECT, NULL, text); g_free(text); } void DealDrugs(GtkWidget *widget, gpointer data) { GtkWidget *dialog, *label, *hbox, *hbbox, *button, *spinner, *menu, *optionmenu, *menuitem, *vbox, *hsep, *defbutton; GtkAdjustment *spin_adj; GtkAccelGroup *accel_group; GtkWidget *clist; gchar *Action; GString *text; GList *selection; gint row; Player *Play; gint DrugInd, i, SelIndex, FirstInd; gboolean DrugIndOK; g_assert(!IsShowingDealDrugs); /* Action in 'Deal Drugs' dialog - "Buy/Sell/Drop Drugs" */ if (data == BT_BUY) { Action = _("Buy"); } else if (data == BT_SELL) { Action = _("Sell"); } else if (data == BT_DROP) { Action = _("Drop"); } else { g_warning("Bad DealDrug type"); return; } DealDialog.Type = data; Play = ClientData.Play; if (data == BT_BUY) { clist = ClientData.Drug.HereList; } else { clist = ClientData.Drug.CarriedList; } selection = GTK_CLIST(clist)->selection; if (selection) { row = GPOINTER_TO_INT(selection->data); DrugInd = GPOINTER_TO_INT(gtk_clist_get_row_data(GTK_CLIST(clist), row)); } else { DrugInd = -1; } DrugIndOK = FALSE; FirstInd = -1; for (i = 0; i < NumDrug; i++) { if ((data == BT_DROP && Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price == 0) || (data == BT_SELL && Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price != 0) || (data == BT_BUY && Play->Drugs[i].Price != 0)) { if (FirstInd == -1) { FirstInd = i; } if (DrugInd == i) { DrugIndOK = TRUE; } } } if (!DrugIndOK) { if (FirstInd == -1) { return; } else { DrugInd = FirstInd; } } text = g_string_new(NULL); accel_group = gtk_accel_group_new(); dialog = DealDialog.dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(dialog), Action); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); SetShowing(dialog, &IsShowingDealDrugs); vbox = gtk_vbox_new(FALSE, 7); hbox = gtk_hbox_new(FALSE, 7); label = gtk_label_new(Action); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); optionmenu = gtk_option_menu_new(); menu = gtk_menu_new(); SelIndex = -1; for (i = 0; i < NumDrug; i++) { if ((data == BT_DROP && Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price == 0) || (data == BT_SELL && Play->Drugs[i].Carried > 0 && Play->Drugs[i].Price != 0) || (data == BT_BUY && Play->Drugs[i].Price != 0)) { dpg_string_sprintf(text, _("%/DealDrugs drug name/%tde"), Drug[i].Name); menuitem = gtk_menu_item_new_with_label(text->str); gtk_signal_connect(GTK_OBJECT(menuitem), "activate", GTK_SIGNAL_FUNC(DealSelectCallback), GINT_TO_POINTER(i)); gtk_menu_append(GTK_MENU(menu), menuitem); if (DrugInd >= i) { SelIndex++; } } } gtk_menu_set_active(GTK_MENU(menu), SelIndex); gtk_option_menu_set_menu(GTK_OPTION_MENU(optionmenu), menu); gtk_box_pack_start(GTK_BOX(hbox), optionmenu, TRUE, TRUE, 0); DealDialog.DrugInd = DrugInd; label = DealDialog.cost = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); label = DealDialog.carrying = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); label = DealDialog.space = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); if (data == BT_BUY) { label = DealDialog.afford = gtk_label_new(NULL); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); } hbox = gtk_hbox_new(FALSE, 7); if (data == BT_BUY) { /* Prompts for action in the "deal drugs" dialog */ g_string_sprintf(text, _("Buy how many?")); } else if (data == BT_SELL) { g_string_sprintf(text, _("Sell how many?")); } else { g_string_sprintf(text, _("Drop how many?")); } label = gtk_label_new(text->str); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); spin_adj = (GtkAdjustment *)gtk_adjustment_new(1.0, 1.0, 2.0, 1.0, 10.0, 10.0); spinner = DealDialog.amount = gtk_spin_button_new(spin_adj, 1.0, 0); gtk_signal_connect(GTK_OBJECT(spinner), "activate", GTK_SIGNAL_FUNC(DealOKCallback), data); gtk_box_pack_start(GTK_BOX(hbox), spinner, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_OK, accel_group); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(DealOKCallback), data); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); defbutton = button; gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = NewStockButton(GTK_STOCK_CANCEL, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); g_string_free(text, TRUE); UpdateDealDialog(); gtk_widget_show_all(dialog); gtk_widget_grab_default(defbutton); } void DealGuns(GtkWidget *widget, gpointer data) { GtkWidget *clist, *dialog; GList *selection; gint row, GunInd; gchar *Action, *Title; GString *text; dialog = gtk_widget_get_ancestor(widget, GTK_TYPE_WINDOW); if (data == BT_BUY) { Action = _("Buy"); } else if (data == BT_SELL) { Action = _("Sell"); } else { Action = _("Drop"); } if (data == BT_BUY) { clist = ClientData.Gun.HereList; } else { clist = ClientData.Gun.CarriedList; } selection = GTK_CLIST(clist)->selection; if (selection) { row = GPOINTER_TO_INT(selection->data); GunInd = GPOINTER_TO_INT(gtk_clist_get_row_data(GTK_CLIST(clist), row)); } else { return; } /* Title of 'gun shop' dialog (%tde="guns" by default) "Buy/Sell/Drop * Guns" */ if (data == BT_BUY) { Title = dpg_strdup_printf(_("Buy %tde"), Names.Guns); } else if (data == BT_SELL) { Title = dpg_strdup_printf(_("Sell %tde"), Names.Guns); } else { Title = dpg_strdup_printf(_("Drop %tde"), Names.Guns); } text = g_string_new(""); if (data != BT_BUY && TotalGunsCarried(ClientData.Play) == 0) { dpg_string_sprintf(text, _("You don't have any %tde to sell!"), Names.Guns); GtkMessageBox(dialog, text->str, Title, GTK_MESSAGE_WARNING, MB_OK); } else if (data == BT_BUY && TotalGunsCarried(ClientData.Play) >= ClientData.Play->Bitches.Carried + 2) { dpg_string_sprintf(text, _("You'll need more %tde to carry any more %tde!"), Names.Bitches, Names.Guns); GtkMessageBox(dialog, text->str, Title, GTK_MESSAGE_WARNING, MB_OK); } else if (data == BT_BUY && Gun[GunInd].Space > ClientData.Play->CoatSize) { dpg_string_sprintf(text, _("You don't have enough space to carry that %tde!"), Names.Gun); GtkMessageBox(dialog, text->str, Title, GTK_MESSAGE_WARNING, MB_OK); } else if (data == BT_BUY && Gun[GunInd].Price > ClientData.Play->Cash) { dpg_string_sprintf(text, _("You don't have enough cash to buy that %tde!"), Names.Gun); GtkMessageBox(dialog, text->str, Title, GTK_MESSAGE_WARNING, MB_OK); } else if (data == BT_SELL && ClientData.Play->Guns[GunInd].Carried == 0) { GtkMessageBox(dialog, _("You don't have any to sell!"), Title, GTK_MESSAGE_WARNING, MB_OK); } else { g_string_sprintf(text, "gun^%d^%d", GunInd, data == BT_BUY ? 1 : -1); SendClientMessage(ClientData.Play, C_NONE, C_BUYOBJECT, NULL, text->str); } g_free(Title); g_string_free(text, TRUE); } static void QuestionCallback(GtkWidget *widget, gpointer data) { gint Answer; gchar text[5]; GtkWidget *dialog; Player *To; dialog = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(widget), "dialog")); To = (Player *)gtk_object_get_data(GTK_OBJECT(dialog), "From"); Answer = GPOINTER_TO_INT(data); text[0] = (gchar)Answer; text[1] = '\0'; SendClientMessage(ClientData.Play, C_NONE, C_ANSWER, To, text); gtk_widget_destroy(dialog); } void QuestionDialog(char *Data, Player *From) { GtkWidget *dialog, *label, *vbox, *hsep, *hbbox, *button; GtkAccelGroup *accel_group; gchar *Responses, **split, *LabelText, *trword, *underline; /* Button titles that correspond to the single-keypress options provided * by the curses client (e.g. _Yes corresponds to 'Y' etc.) */ gchar *Words[] = { N_("_Yes"), N_("_No"), N_("_Run"), N_("_Fight"), N_("_Attack"), N_("_Evade") }; guint numWords = sizeof(Words) / sizeof(Words[0]); guint i, j; #ifdef HAVE_GLIB2 split = g_strsplit(Data, "^", 2); #else split = g_strsplit(Data, "^", 1); #endif if (!split[0] || !split[1]) { g_warning("Bad QUESTION message %s", Data); return; } g_strdelimit(split[1], "^", '\n'); Responses = split[0]; LabelText = split[1]; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_signal_connect(GTK_OBJECT(dialog), "delete_event", GTK_SIGNAL_FUNC(DisallowDelete), NULL); gtk_object_set_data(GTK_OBJECT(dialog), "From", (gpointer)From); /* Title of the 'ask player a question' dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("Question")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); vbox = gtk_vbox_new(FALSE, 7); while (*LabelText == '\n') LabelText++; label = gtk_label_new(LabelText); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); for (i = 0; i < strlen(Responses); i++) { switch (Responses[i]) { case 'Y': button = NewStockButton(GTK_STOCK_YES, accel_group); break; case 'N': button = NewStockButton(GTK_STOCK_NO, accel_group); break; default: for (j = 0, trword = NULL; j < numWords && !trword; j++) { underline = strchr(Words[j], '_'); if (underline && toupper(underline[1]) == Responses[i]) { trword = _(Words[j]); } } button = gtk_button_new_with_label(""); if (trword) { SetAccelerator(button, trword, button, "clicked", accel_group, FALSE); } else { trword = g_strdup_printf("_%c", Responses[i]); SetAccelerator(button, trword, button, "clicked", accel_group, FALSE); g_free(trword); } break; } gtk_object_set_data(GTK_OBJECT(button), "dialog", (gpointer)dialog); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(QuestionCallback), GINT_TO_POINTER((gint)Responses[i])); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); } gtk_box_pack_start(GTK_BOX(vbox), hbbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); g_strfreev(split); } void GuiStartGame(void) { Player *Play = ClientData.Play; if (!Network) { ClientData.cmdline->antique = WantAntique; InitConfiguration(ClientData.cmdline); } StripTerminators(GetPlayerName(Play)); InitAbilities(Play); SendAbilities(Play); SendNullClientMessage(Play, C_NONE, C_NAME, NULL, GetPlayerName(Play)); InGame = TRUE; UpdateMenus(); gtk_widget_show_all(ClientData.vbox); UpdatePlayerLists(); SoundPlay(Sounds.StartGame); } void EndGame(void) { DisplayFightMessage(NULL); gtk_widget_hide_all(ClientData.vbox); TextViewClear(GTK_TEXT_VIEW(ClientData.messages)); ShutdownNetwork(ClientData.Play); UpdatePlayerLists(); CleanUpServer(); RestoreConfig(); InGame = FALSE; UpdateMenus(); SoundPlay(Sounds.EndGame); } static void ChangeDrugSort(GtkCList *clist, gint column, gpointer user_data) { if (column == 0) { DrugSortMethod = (DrugSortMethod == DS_ATOZ ? DS_ZTOA : DS_ATOZ); } else { DrugSortMethod = (DrugSortMethod == DS_CHEAPFIRST ? DS_CHEAPLAST : DS_CHEAPFIRST); } gtk_clist_sort(clist); } static gint DrugSortFunc(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2) { int index1, index2; price_t pricediff; index1 = GPOINTER_TO_INT(((const GtkCListRow *)ptr1)->data); index2 = GPOINTER_TO_INT(((const GtkCListRow *)ptr2)->data); if (index1 < 0 || index1 >= NumDrug || index2 < 0 || index2 >= NumDrug) { return 0; } switch (DrugSortMethod) { case DS_ATOZ: return g_strcasecmp(Drug[index1].Name, Drug[index2].Name); case DS_ZTOA: return g_strcasecmp(Drug[index2].Name, Drug[index1].Name); case DS_CHEAPFIRST: pricediff = ClientData.Play->Drugs[index1].Price - ClientData.Play->Drugs[index2].Price; return pricediff == 0 ? 0 : pricediff < 0 ? -1 : 1; case DS_CHEAPLAST: pricediff = ClientData.Play->Drugs[index2].Price - ClientData.Play->Drugs[index1].Price; return pricediff == 0 ? 0 : pricediff < 0 ? -1 : 1; } return 0; } void UpdateMenus(void) { gboolean MultiPlayer; gint Bitches; MultiPlayer = (FirstClient && FirstClient->next != NULL); Bitches = InGame && ClientData.Play ? ClientData.Play->Bitches.Carried : 0; gtk_widget_set_sensitive(gtk_item_factory_get_widget(ClientData.Menu, "
/Talk"), InGame && Network); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/Game/Options..."), !InGame); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/Game/Abandon..."), InGame); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/List/Inventory..."), InGame); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/List/Players..."), InGame && Network); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/Errands"), InGame); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/Errands/Spy..."), InGame && MultiPlayer); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/Errands/Tipoff..."), InGame && MultiPlayer); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/Errands/Sack Bitch..."), Bitches > 0); gtk_widget_set_sensitive(gtk_item_factory_get_widget (ClientData.Menu, "
/Errands/Get spy reports..."), InGame && MultiPlayer); } GtkWidget *CreateStatusWidgets(struct StatusWidgets *Status) { GtkWidget *table, *label; table = gtk_table_new(3, 6, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 3); gtk_table_set_col_spacings(GTK_TABLE(table), 3); gtk_container_set_border_width(GTK_CONTAINER(table), 3); label = Status->Location = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 2, 0, 1); label = Status->Date = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 2, 4, 0, 1); /* Available space label in GTK+ client status display */ label = Status->SpaceName = gtk_label_new(_("Space")); gtk_table_attach_defaults(GTK_TABLE(table), label, 4, 5, 0, 1); label = Status->SpaceValue = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 5, 6, 0, 1); /* Player's cash label in GTK+ client status display */ label = Status->CashName = gtk_label_new(_("Cash")); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2); label = Status->CashValue = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 1, 2); /* Player's debt label in GTK+ client status display */ label = Status->DebtName = gtk_label_new(_("Debt")); gtk_table_attach_defaults(GTK_TABLE(table), label, 2, 3, 1, 2); label = Status->DebtValue = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 3, 4, 1, 2); /* Player's bank balance label in GTK+ client status display */ label = Status->BankName = gtk_label_new(_("Bank")); gtk_table_attach_defaults(GTK_TABLE(table), label, 4, 5, 1, 2); label = Status->BankValue = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 5, 6, 1, 2); label = Status->GunsName = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3); label = Status->GunsValue = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 2, 3); label = Status->BitchesName = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 2, 3, 2, 3); label = Status->BitchesValue = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 3, 4, 2, 3); /* Player's health label in GTK+ client status display */ label = Status->HealthName = gtk_label_new(_("Health")); gtk_table_attach_defaults(GTK_TABLE(table), label, 4, 5, 2, 3); label = Status->HealthValue = gtk_label_new(NULL); gtk_table_attach_defaults(GTK_TABLE(table), label, 5, 6, 2, 3); return table; } void SetJetButtonTitle(GtkAccelGroup *accel_group) { GtkWidget *button; guint accel_key; gchar *caption; button = ClientData.JetButton; accel_key = ClientData.JetAccel; if (accel_key) { gtk_widget_remove_accelerator(button, accel_group, accel_key, 0); } if (ClientData.Play && ClientData.Play->Flags & FIGHTING) { caption = _("_Fight"); } else { /* Caption of 'Jet' button in main window */ caption = _("_Jet!"); } ClientData.JetAccel = SetAccelerator(button, caption, button, "clicked", accel_group, FALSE); } static void SetIcon(GtkWidget *window, gchar **xpmdata) { #ifndef CYGWIN GdkBitmap *mask; GdkPixmap *icon; GtkStyle *style; style = gtk_widget_get_style(window); icon = gdk_pixmap_create_from_xpm_d(window->window, &mask, &style->bg[GTK_STATE_NORMAL], xpmdata); gdk_window_set_icon(window->window, NULL, icon, mask); #endif } static void make_tags(GtkTextView *textview) { #if HAVE_GLIB2 GtkTextBuffer *buffer = gtk_text_view_get_buffer(textview); gtk_text_buffer_create_tag(buffer, "jet", "foreground", "#00000000FFFF", NULL); gtk_text_buffer_create_tag(buffer, "talk", "foreground", "#FFFF00000000", NULL); gtk_text_buffer_create_tag(buffer, "page", "foreground", "#FFFF0000FFFF", NULL); gtk_text_buffer_create_tag(buffer, "join", "foreground", "#000000008B8B", NULL); gtk_text_buffer_create_tag(buffer, "leave", "foreground", "#8B8B00000000", NULL); #endif } #ifdef CYGWIN gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance, struct CMDLINE *cmdline, gboolean ReturnOnFail) #else gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline, gboolean ReturnOnFail) #endif { GtkWidget *window, *vbox, *vbox2, *hbox, *frame, *table, *menubar, *text, *vpaned, *button, *clist, *widget; GtkAccelGroup *accel_group; GtkItemFactory *item_factory; gint nmenu_items = sizeof(menu_items) / sizeof(menu_items[0]); #ifdef CYGWIN win32_init(hInstance, hPrevInstance, "mainicon"); #else gtk_set_locale(); if (ReturnOnFail && !gtk_init_check(argc, argv)) return FALSE; else if (!ReturnOnFail) gtk_init(argc, argv); #endif if (HaveUnicodeSupport()) { /* GTK+2 (and the GTK emulation code on WinNT systems) expects all * strings to be UTF-8, so we force gettext to return all translations * in this encoding here. */ bind_textdomain_codeset(PACKAGE, "UTF-8"); Conv_SetInternalCodeset("UTF-8"); WantUTF8Errors(TRUE); } InitConfiguration(cmdline); ClientData.cmdline = cmdline; /* Set up message handlers */ ClientMessageHandlerPt = HandleClientMessage; /* Have the GLib log messages pop up in a nice dialog box */ g_log_set_handler(NULL, G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL, LogMessage, NULL); if (!CheckHighScoreFileConfig()) { return TRUE; } SoundOpen(cmdline->plugin); /* Create the main player */ ClientData.Play = g_new(Player, 1); FirstClient = AddPlayer(0, ClientData.Play, FirstClient); if (PlayerName && PlayerName[0]) { SetPlayerName(ClientData.Play, PlayerName); } gtk_hbutton_box_set_layout_default(GTK_BUTTONBOX_END); gtk_vbutton_box_set_layout_default(GTK_BUTTONBOX_SPREAD); #if CYGWIN || !HAVE_GLIB2 gtk_hbutton_box_set_spacing_default(8); #endif window = MainWindow = ClientData.window = gtk_window_new(GTK_WINDOW_TOPLEVEL); /* Title of main window in GTK+ client */ gtk_window_set_title(GTK_WINDOW(window), _("dopewars")); gtk_window_set_default_size(GTK_WINDOW(window), 450, 390); gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(MainDelete), NULL); gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(DestroyGtk), NULL); accel_group = gtk_accel_group_new(); gtk_object_set_data(GTK_OBJECT(window), "accel_group", accel_group); item_factory = ClientData.Menu = gtk_item_factory_new(GTK_TYPE_MENU_BAR, "
", accel_group); gtk_item_factory_set_translate_func(item_factory, MenuTranslate, NULL, NULL); gtk_item_factory_create_items(item_factory, nmenu_items, menu_items, NULL); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); menubar = gtk_item_factory_get_widget(item_factory, "
"); vbox2 = gtk_vbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), menubar, FALSE, FALSE, 0); gtk_widget_show_all(menubar); UpdateMenus(); SoundEnable(UseSounds); widget = gtk_item_factory_get_widget(ClientData.Menu, "
/Game/Enable sound"); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(widget), UseSounds); vbox = ClientData.vbox = gtk_vbox_new(FALSE, 5); frame = gtk_frame_new(_("Stats")); gtk_container_set_border_width(GTK_CONTAINER(frame), 3); table = CreateStatusWidgets(&ClientData.Status); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); vpaned = gtk_vpaned_new(); text = ClientData.messages = gtk_scrolled_text_view_new(&hbox); make_tags(GTK_TEXT_VIEW(text)); gtk_widget_set_usize(text, 100, 80); gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD); gtk_paned_pack1(GTK_PANED(vpaned), hbox, TRUE, TRUE); hbox = gtk_hbox_new(FALSE, 7); CreateInventory(hbox, Names.Drugs, accel_group, TRUE, TRUE, &ClientData.Drug, GTK_SIGNAL_FUNC(DealDrugs)); clist = ClientData.Drug.HereList; gtk_clist_column_titles_active(GTK_CLIST(clist)); gtk_clist_set_compare_func(GTK_CLIST(clist), DrugSortFunc); gtk_signal_connect(GTK_OBJECT(clist), "click-column", GTK_SIGNAL_FUNC(ChangeDrugSort), NULL); button = ClientData.JetButton = gtk_button_new_with_label(""); ClientData.JetAccel = 0; gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(JetButtonPressed), NULL); gtk_box_pack_start(GTK_BOX(ClientData.Drug.vbbox), button, TRUE, TRUE, 0); SetJetButtonTitle(accel_group); #ifdef CYGWIN /* GtkFrames don't look quite right in Win32 yet */ gtk_paned_pack2(GTK_PANED(vpaned), hbox, TRUE, TRUE); #else frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); gtk_container_add(GTK_CONTAINER(frame), hbox); gtk_paned_pack2(GTK_PANED(vpaned), frame, TRUE, TRUE); #endif gtk_box_pack_start(GTK_BOX(vbox), vpaned, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox2), vbox, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(window), vbox2); /* Just show the window, not the vbox - we'll do that when the game * starts */ gtk_widget_show(vbox2); gtk_widget_show(window); gtk_widget_realize(window); SetIcon(window, dopewars_pill_xpm); gtk_main(); /* Free the main player */ FirstClient = RemovePlayer(ClientData.Play, FirstClient); return TRUE; } static void PackCentredURL(GtkWidget *vbox, gchar *title, gchar *target, gchar *browser) { GtkWidget *hbox, *label, *url; /* There must surely be a nicer way of making the URL centred - but I * can't think of one... */ hbox = gtk_hbox_new(FALSE, 0); label = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); url = gtk_url_new(title, target, browser); gtk_box_pack_start(GTK_BOX(hbox), url, FALSE, FALSE, 0); label = gtk_label_new(""); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); } void display_intro(GtkWidget *widget, gpointer data) { GtkWidget *dialog, *label, *table, *OKButton, *vbox, *hsep, *hbbox; gchar *VersionStr, *docindex; const int rows = 8, cols = 3; int i, j; GtkAccelGroup *accel_group; gchar *table_data[8][3] = { /* Credits labels in GTK+ 'about' dialog */ {N_("English Translation"), N_("Ben Webb"), NULL}, {N_("Icons and graphics"), "Ocelot Mantis", NULL}, {N_("Sounds"), "Robin Kohli, 19.5degs.com", NULL}, {N_("Drug Dealing and Research"), "Dan Wolf", NULL}, {N_("Play Testing"), "Phil Davis", "Owen Walsh"}, {N_("Extensive Play Testing"), "Katherine Holt", "Caroline Moore"}, {N_("Constructive Criticism"), "Andrea Elliot-Smith", "Pete Winn"}, {N_("Unconstructive Criticism"), "James Matthews", NULL} }; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); /* Title of GTK+ 'about' dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("About dopewars")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); gtk_container_border_width(GTK_CONTAINER(dialog), 10); vbox = gtk_vbox_new(FALSE, 5); /* Main content of GTK+ 'about' dialog */ label = gtk_label_new(_("Based on John E. Dell's old Drug Wars game, " "dopewars is a simulation of an\nimaginary drug " "market. dopewars is an All-American game which " "features\nbuying, selling, and trying to get " "past the cops!\n\nThe first thing you need to " "do is pay off your debt to the Loan Shark. " "After\nthat, your goal is to make as much " "money as possible (and stay alive)! You\n" "have one month of game time to make " "your fortune.\n")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); /* Version and copyright notice in GTK+ 'about' dialog */ VersionStr = g_strdup_printf(_("Version %s " "Copyright (C) 1998-2005 " "Ben Webb benwebb@users.sf.net\n" "dopewars is released under the " "GNU General Public Licence\n"), VERSION); label = gtk_label_new(VersionStr); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); g_free(VersionStr); table = gtk_table_new(rows, cols, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 3); gtk_table_set_col_spacings(GTK_TABLE(table), 3); for (i = 0; i < rows; i++) { if (i > 0 || strcmp(_(table_data[i][1]), "Ben Webb") != 0) { for (j = 0; j < cols; j++) { if (table_data[i][j]) { if (j == 0 || i == 0) { label = gtk_label_new(_(table_data[i][j])); } else { label = gtk_label_new(table_data[i][j]); } gtk_table_attach_defaults(GTK_TABLE(table), label, j, j + 1, i, i + 1); } } } } gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0); /* Label at the bottom of GTK+ 'about' dialog */ label = gtk_label_new(_("\nFor information on the command line " "options, type dopewars -h at your\n" "Unix prompt. This will display a help " "screen, listing the available options.\n")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); docindex = GetDocIndex(); PackCentredURL(vbox, _("Local HTML documentation"), docindex, WebBrowser); g_free(docindex); PackCentredURL(vbox, "http://dopewars.sourceforge.net/", "http://dopewars.sourceforge.net/", WebBrowser); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); OKButton = NewStockButton(GTK_STOCK_OK, accel_group); gtk_signal_connect_object(GTK_OBJECT(OKButton), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), OKButton); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); GTK_WIDGET_SET_FLAGS(OKButton, GTK_CAN_DEFAULT); gtk_widget_grab_default(OKButton); gtk_widget_show_all(dialog); } static void SendDoneMessage(GtkWidget *widget, gpointer data) { SendClientMessage(ClientData.Play, C_NONE, C_DONE, NULL, NULL); } static void TransferPayAll(GtkWidget *widget, GtkWidget *dialog) { gchar *text; text = pricetostr(ClientData.Play->Debt); SendClientMessage(ClientData.Play, C_NONE, C_PAYLOAN, NULL, text); g_free(text); gtk_widget_destroy(dialog); } static void TransferOK(GtkWidget *widget, GtkWidget *dialog) { gpointer Debt; GtkWidget *deposit, *entry; gchar *text, *title; price_t money; gboolean withdraw = FALSE; Debt = gtk_object_get_data(GTK_OBJECT(dialog), "debt"); entry = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(dialog), "entry")); text = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); money = strtoprice(text); g_free(text); if (Debt) { /* Title of loan shark dialog - (%Tde="The Loan Shark" by default) */ title = dpg_strdup_printf(_("%/LoanShark window title/%Tde"), Names.LoanSharkName); if (money > ClientData.Play->Debt) { money = ClientData.Play->Debt; } } else { /* Title of bank dialog - (%Tde="The Bank" by default) */ title = dpg_strdup_printf(_("%/BankName window title/%Tde"), Names.BankName); deposit = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(dialog), "deposit")); if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(deposit))) { withdraw = TRUE; } } if (money < 0) { GtkMessageBox(dialog, _("You must enter a positive amount of money!"), title, GTK_MESSAGE_WARNING, MB_OK); } else if (!Debt && withdraw && money > ClientData.Play->Bank) { GtkMessageBox(dialog, _("There isn't that much money available..."), title, GTK_MESSAGE_WARNING, MB_OK); } else if (!withdraw && money > ClientData.Play->Cash) { GtkMessageBox(dialog, _("You don't have that much money!"), title, GTK_MESSAGE_WARNING, MB_OK); } else { text = pricetostr(withdraw ? -money : money); SendClientMessage(ClientData.Play, C_NONE, Debt ? C_PAYLOAN : C_DEPOSIT, NULL, text); g_free(text); gtk_widget_destroy(dialog); } g_free(title); } void TransferDialog(gboolean Debt) { GtkWidget *dialog, *button, *label, *radio, *table, *vbox; GtkWidget *hbbox, *hsep, *entry; GtkAccelGroup *accel_group; GSList *group; GString *text; text = g_string_new(""); dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_signal_connect(GTK_OBJECT(dialog), "destroy", GTK_SIGNAL_FUNC(SendDoneMessage), NULL); if (Debt) { /* Title of loan shark dialog - (%Tde="The Loan Shark" by default) */ dpg_string_sprintf(text, _("%/LoanShark window title/%Tde"), Names.LoanSharkName); } else { /* Title of bank dialog - (%Tde="The Bank" by default) */ dpg_string_sprintf(text, _("%/BankName window title/%Tde"), Names.BankName); } gtk_window_set_title(GTK_WINDOW(dialog), text->str); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); vbox = gtk_vbox_new(FALSE, 7); table = gtk_table_new(4, 3, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 4); gtk_table_set_col_spacings(GTK_TABLE(table), 4); /* Display of player's cash in bank or loan shark dialog */ dpg_string_sprintf(text, _("Cash: %P"), ClientData.Play->Cash); label = gtk_label_new(text->str); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 3, 0, 1); if (Debt) { /* Display of player's debt in loan shark dialog */ dpg_string_sprintf(text, _("Debt: %P"), ClientData.Play->Debt); } else { /* Display of player's bank balance in bank dialog */ dpg_string_sprintf(text, _("Bank: %P"), ClientData.Play->Bank); } label = gtk_label_new(text->str); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 3, 1, 2); gtk_object_set_data(GTK_OBJECT(dialog), "debt", GINT_TO_POINTER(Debt)); if (Debt) { /* Prompt for paying back a loan */ label = gtk_label_new(_("Pay back:")); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 4); } else { /* Radio button selected if you want to pay money into the bank */ radio = gtk_radio_button_new_with_label(NULL, _("Deposit")); gtk_object_set_data(GTK_OBJECT(dialog), "deposit", radio); group = gtk_radio_button_group(GTK_RADIO_BUTTON(radio)); gtk_table_attach_defaults(GTK_TABLE(table), radio, 0, 1, 2, 3); /* Radio button selected if you want to withdraw money from the bank */ radio = gtk_radio_button_new_with_label(group, _("Withdraw")); gtk_table_attach_defaults(GTK_TABLE(table), radio, 0, 1, 3, 4); } label = gtk_label_new(Currency.Symbol); entry = gtk_entry_new(); gtk_entry_set_text(GTK_ENTRY(entry), "0"); gtk_object_set_data(GTK_OBJECT(dialog), "entry", entry); gtk_signal_connect(GTK_OBJECT(entry), "activate", GTK_SIGNAL_FUNC(TransferOK), dialog); if (Currency.Prefix) { gtk_table_attach_defaults(GTK_TABLE(table), label, 1, 2, 2, 4); gtk_table_attach_defaults(GTK_TABLE(table), entry, 2, 3, 2, 4); } else { gtk_table_attach_defaults(GTK_TABLE(table), label, 2, 3, 2, 4); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 2, 4); } gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_OK, accel_group); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(TransferOK), dialog); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); if (Debt && ClientData.Play->Cash >= ClientData.Play->Debt) { /* Button to pay back the entire loan/debt */ button = gtk_button_new_with_label(_("Pay all")); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(TransferPayAll), dialog); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); } button = NewStockButton(GTK_STOCK_CANCEL, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); g_string_free(text, TRUE); } void ListPlayers(GtkWidget *widget, gpointer data) { GtkWidget *dialog, *clist, *button, *vbox, *hsep, *hbbox; GtkAccelGroup *accel_group; if (IsShowingPlayerList) return; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); /* Title of player list dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("Player List")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_set_default_size(GTK_WINDOW(dialog), 200, 180); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), FALSE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); SetShowing(dialog, &IsShowingPlayerList); vbox = gtk_vbox_new(FALSE, 7); clist = ClientData.PlayerList = CreatePlayerList(); UpdatePlayerList(clist, FALSE); gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_CLOSE, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } struct TalkStruct { GtkWidget *dialog, *clist, *entry, *checkbutton; }; static void TalkSend(GtkWidget *widget, struct TalkStruct *TalkData) { gboolean AllPlayers; gchar *text; GString *msg; GList *selection; gint row; Player *Play; AllPlayers = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (TalkData->checkbutton)); text = gtk_editable_get_chars(GTK_EDITABLE(TalkData->entry), 0, -1); gtk_editable_delete_text(GTK_EDITABLE(TalkData->entry), 0, -1); if (!text) return; msg = g_string_new(""); if (AllPlayers) { SendClientMessage(ClientData.Play, C_NONE, C_MSG, NULL, text); g_string_sprintf(msg, "%s: %s", GetPlayerName(ClientData.Play), text); PrintMessage(msg->str, "talk"); } else { for (selection = GTK_CLIST(TalkData->clist)->selection; selection; selection = g_list_next(selection)) { row = GPOINTER_TO_INT(selection->data); Play = (Player *)gtk_clist_get_row_data(GTK_CLIST(TalkData->clist), row); if (Play) { SendClientMessage(ClientData.Play, C_NONE, C_MSGTO, Play, text); g_string_sprintf(msg, "%s->%s: %s", GetPlayerName(ClientData.Play), GetPlayerName(Play), text); PrintMessage(msg->str, "page"); } } } g_free(text); g_string_free(msg, TRUE); } void TalkToAll(GtkWidget *widget, gpointer data) { TalkDialog(TRUE); } void TalkToPlayers(GtkWidget *widget, gpointer data) { TalkDialog(FALSE); } void TalkDialog(gboolean TalkToAll) { GtkWidget *dialog, *clist, *button, *entry, *label, *vbox, *hsep, *checkbutton, *hbbox; GtkAccelGroup *accel_group; static struct TalkStruct TalkData; if (IsShowingTalkList) return; dialog = TalkData.dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); /* Title of talk dialog */ gtk_window_set_title(GTK_WINDOW(dialog), _("Talk to player(s)")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_window_set_default_size(GTK_WINDOW(dialog), 200, 190); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), FALSE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); SetShowing(dialog, &IsShowingTalkList); vbox = gtk_vbox_new(FALSE, 7); clist = TalkData.clist = ClientData.TalkList = CreatePlayerList(); UpdatePlayerList(clist, FALSE); gtk_clist_set_selection_mode(GTK_CLIST(clist), GTK_SELECTION_MULTIPLE); gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0); checkbutton = TalkData.checkbutton = /* Checkbutton set if you want to talk to all players */ gtk_check_button_new_with_label(_("Talk to all players")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton), TalkToAll); gtk_box_pack_start(GTK_BOX(vbox), checkbutton, FALSE, FALSE, 0); /* Prompt for you to enter the message to be sent to other players */ label = gtk_label_new(_("Message:-")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); entry = TalkData.entry = gtk_entry_new(); gtk_signal_connect(GTK_OBJECT(entry), "activate", GTK_SIGNAL_FUNC(TalkSend), (gpointer)&TalkData); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); /* Button to send a message to other players */ button = gtk_button_new_with_label(_("Send")); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(TalkSend), (gpointer)&TalkData); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = NewStockButton(GTK_STOCK_CLOSE, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } GtkWidget *CreatePlayerList(void) { GtkWidget *clist; gchar *text[1]; text[0] = "Name"; clist = gtk_clist_new_with_titles(1, text); gtk_clist_column_titles_passive(GTK_CLIST(clist)); gtk_clist_set_column_auto_resize(GTK_CLIST(clist), 0, TRUE); return clist; } void UpdatePlayerList(GtkWidget *clist, gboolean IncludeSelf) { GSList *list; gchar *text[1]; gint row; Player *Play; gtk_clist_freeze(GTK_CLIST(clist)); gtk_clist_clear(GTK_CLIST(clist)); for (list = FirstClient; list; list = g_slist_next(list)) { Play = (Player *)list->data; if (IncludeSelf || Play != ClientData.Play) { text[0] = GetPlayerName(Play); row = gtk_clist_append(GTK_CLIST(clist), text); gtk_clist_set_row_data(GTK_CLIST(clist), row, Play); } } gtk_clist_thaw(GTK_CLIST(clist)); } static void ErrandOK(GtkWidget *widget, GtkWidget *clist) { GList *selection; Player *Play; gint row; GtkWidget *dialog; gint ErrandType; dialog = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(widget), "dialog")); ErrandType = GPOINTER_TO_INT(gtk_object_get_data(GTK_OBJECT(widget), "errandtype")); selection = GTK_CLIST(clist)->selection; if (selection) { row = GPOINTER_TO_INT(selection->data); Play = (Player *)gtk_clist_get_row_data(GTK_CLIST(clist), row); if (ErrandType == ET_SPY) { SendClientMessage(ClientData.Play, C_NONE, C_SPYON, Play, NULL); } else { SendClientMessage(ClientData.Play, C_NONE, C_TIPOFF, Play, NULL); } gtk_widget_destroy(dialog); } } void SpyOnPlayer(GtkWidget *widget, gpointer data) { ErrandDialog(ET_SPY); } void TipOff(GtkWidget *widget, gpointer data) { ErrandDialog(ET_TIPOFF); } void ErrandDialog(gint ErrandType) { GtkWidget *dialog, *clist, *button, *vbox, *hbbox, *hsep, *label; GtkAccelGroup *accel_group; gchar *text; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(ClientData.window)); vbox = gtk_vbox_new(FALSE, 7); if (ErrandType == ET_SPY) { /* Title of dialog to select a player to spy on */ gtk_window_set_title(GTK_WINDOW(dialog), _("Spy On Player")); /* Informative text for "spy on player" dialog. (%tde = "bitch", * "bitch", "guns", "drugs", respectively, by default) */ text = dpg_strdup_printf(_("Please choose the player to spy on. " "Your %tde will\nthen offer his " "services to the player, and if " "successful,\nyou will be able to " "view the player's stats with the\n" "\"Get spy reports\" menu. Remember " "that the %tde will leave\nyou, so " "any %tde or %tde that he's " "carrying may be lost!"), Names.Bitch, Names.Bitch, Names.Guns, Names.Drugs); label = gtk_label_new(text); g_free(text); } else { /* Title of dialog to select a player to tip the cops off to */ gtk_window_set_title(GTK_WINDOW(dialog), _("Tip Off The Cops")); /* Informative text for "tip off cops" dialog. (%tde = "bitch", * "bitch", "guns", "drugs", respectively, by default) */ text = dpg_strdup_printf(_("Please choose the player to tip off " "the cops to. Your %tde will\nhelp " "the cops to attack that player, " "and then report back to you\non " "the encounter. Remember that the " "%tde will leave you temporarily,\n" "so any %tde or %tde that he's " "carrying may be lost!"), Names.Bitch, Names.Bitch, Names.Guns, Names.Drugs); label = gtk_label_new(text); g_free(text); } my_set_dialog_position(GTK_WINDOW(dialog)); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); clist = ClientData.PlayerList = CreatePlayerList(); UpdatePlayerList(clist, FALSE); gtk_box_pack_start(GTK_BOX(vbox), clist, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_OK, accel_group); gtk_object_set_data(GTK_OBJECT(button), "dialog", dialog); gtk_object_set_data(GTK_OBJECT(button), "errandtype", GINT_TO_POINTER(ErrandType)); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(ErrandOK), (gpointer)clist); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = NewStockButton(GTK_STOCK_CANCEL, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); } void SackBitch(GtkWidget *widget, gpointer data) { char *title, *text; /* Cannot sack bitches if you don't have any! */ if (ClientData.Play->Bitches.Carried <= 0) return; /* Title of dialog to sack a bitch (%Tde = "Bitch" by default) */ title = dpg_strdup_printf(_("%/Sack Bitch dialog title/Sack %Tde"), Names.Bitch); /* Confirmation message for sacking a bitch. (%tde = "guns", "drugs", * "bitch", respectively, by default) */ text = dpg_strdup_printf(_("Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)"), Names.Guns, Names.Drugs, Names.Bitch); if (GtkMessageBox(ClientData.window, text, title, GTK_MESSAGE_QUESTION, MB_YESNO) == IDYES) { ClientData.Play->Bitches.Carried--; UpdateMenus(); SendClientMessage(ClientData.Play, C_NONE, C_SACKBITCH, NULL, NULL); } g_free(text); g_free(title); } void CreateInventory(GtkWidget *hbox, gchar *Objects, GtkAccelGroup *accel_group, gboolean CreateButtons, gboolean CreateHere, struct InventoryWidgets *widgets, GtkSignalFunc CallBack) { GtkWidget *scrollwin, *clist, *vbbox, *frame[2], *button[3]; gint i, mini; GString *text; gchar *titles[2][2]; gchar *button_text[3]; gpointer button_type[3] = { BT_BUY, BT_SELL, BT_DROP }; /* Column titles for display of drugs/guns carried or available for * purchase */ titles[0][0] = titles[1][0] = _("Name"); titles[0][1] = _("Price"); titles[1][1] = _("Number"); /* Button titles for buying/selling/dropping guns or drugs */ button_text[0] = _("_Buy ->"); button_text[1] = _("<- _Sell"); button_text[2] = _("_Drop <-"); text = g_string_new(""); if (CreateHere) { /* Title of the display of available drugs/guns (%Tde = "Guns" or * "Drugs" by default) */ dpg_string_sprintf(text, _("%Tde here"), Objects); widgets->HereFrame = frame[0] = gtk_frame_new(text->str); } /* Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" * by default) */ dpg_string_sprintf(text, _("%Tde carried"), Objects); widgets->CarriedFrame = frame[1] = gtk_frame_new(text->str); widgets->HereList = widgets->CarriedList = NULL; mini = (CreateHere ? 0 : 1); for (i = mini; i < 2; i++) { GtkWidget *hbox2 = gtk_hbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(frame[i]), 3); clist = gtk_scrolled_clist_new_with_titles(2, titles[i], &scrollwin); gtk_clist_set_column_auto_resize(GTK_CLIST(clist), 0, TRUE); gtk_clist_set_column_auto_resize(GTK_CLIST(clist), 1, TRUE); gtk_clist_column_titles_passive(GTK_CLIST(clist)); gtk_clist_set_selection_mode(GTK_CLIST(clist), GTK_SELECTION_SINGLE); gtk_clist_set_auto_sort(GTK_CLIST(clist), FALSE); gtk_box_pack_start(GTK_BOX(hbox2), scrollwin, TRUE, TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbox2), 3); gtk_container_add(GTK_CONTAINER(frame[i]), hbox2); if (i == 0) { gtk_clist_set_column_justification(GTK_CLIST(clist), 1, GTK_JUSTIFY_RIGHT); widgets->HereList = clist; } else { widgets->CarriedList = clist; } } if (CreateHere) { gtk_box_pack_start(GTK_BOX(hbox), frame[0], TRUE, TRUE, 0); } if (CreateButtons) { widgets->vbbox = vbbox = gtk_vbutton_box_new(); for (i = 0; i < 3; i++) { button[i] = gtk_button_new_with_label(""); SetAccelerator(button[i], _(button_text[i]), button[i], "clicked", accel_group, FALSE); if (CallBack) { gtk_signal_connect(GTK_OBJECT(button[i]), "clicked", GTK_SIGNAL_FUNC(CallBack), button_type[i]); } gtk_box_pack_start(GTK_BOX(vbbox), button[i], TRUE, TRUE, 0); } widgets->BuyButton = button[0]; widgets->SellButton = button[1]; widgets->DropButton = button[2]; gtk_box_pack_start(GTK_BOX(hbox), vbbox, FALSE, FALSE, 0); } else { widgets->vbbox = NULL; } gtk_box_pack_start(GTK_BOX(hbox), frame[1], TRUE, TRUE, 0); g_string_free(text, TRUE); } void SetShowing(GtkWidget *window, gboolean *showing) { g_assert(showing); *showing = TRUE; gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(DestroyShowing), (gpointer)showing); } void DestroyShowing(GtkWidget *widget, gpointer data) { gboolean *IsShowing = (gboolean *)data; if (IsShowing) { *IsShowing = FALSE; } } static void NewNameOK(GtkWidget *widget, GtkWidget *window) { GtkWidget *entry; gchar *text; entry = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(window), "entry")); text = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); if (text[0]) { StripTerminators(text); SetPlayerName(ClientData.Play, text); SendNullClientMessage(ClientData.Play, C_NONE, C_NAME, NULL, text); gtk_widget_destroy(window); } g_free(text); } void NewNameDialog(void) { GtkWidget *window, *button, *hsep, *vbox, *label, *entry; GtkAccelGroup *accel_group; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); /* Title of dialog for changing a player's name */ gtk_window_set_title(GTK_WINDOW(window), _("Change Name")); my_set_dialog_position(GTK_WINDOW(window)); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(DisallowDelete), NULL); vbox = gtk_vbox_new(FALSE, 7); /* Informational text to prompt the player to change his/her name */ label = gtk_label_new(_("Unfortunately, somebody else is already " "using \"your\" name. Please change it:-")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); entry = gtk_entry_new(); gtk_object_set_data(GTK_OBJECT(window), "entry", entry); gtk_signal_connect(GTK_OBJECT(entry), "activate", GTK_SIGNAL_FUNC(NewNameOK), window); gtk_entry_set_text(GTK_ENTRY(entry), GetPlayerName(ClientData.Play)); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); button = NewStockButton(GTK_STOCK_OK, accel_group); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(NewNameOK), window); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); gtk_widget_grab_default(button); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); } gint DisallowDelete(GtkWidget *widget, GdkEvent *event, gpointer data) { return TRUE; } void GunShopDialog(void) { GtkWidget *window, *button, *hsep, *vbox, *hbox, *hbbox; GtkAccelGroup *accel_group; gchar *text; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 600, 190); gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(SendDoneMessage), NULL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); /* Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" * by default) */ text = dpg_strdup_printf(_("%/GTK GunShop window title/%Tde"), Names.GunShopName); gtk_window_set_title(GTK_WINDOW(window), text); my_set_dialog_position(GTK_WINDOW(window)); g_free(text); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); SetShowing(window, &IsShowingGunShop); vbox = gtk_vbox_new(FALSE, 7); hbox = gtk_hbox_new(FALSE, 7); CreateInventory(hbox, Names.Guns, accel_group, TRUE, TRUE, &ClientData.Gun, GTK_SIGNAL_FUNC(DealGuns)); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_CLOSE, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(window)); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); UpdateInventory(&ClientData.Gun, ClientData.Play->Guns, NumGun, FALSE); gtk_widget_show_all(window); } void UpdatePlayerLists(void) { if (IsShowingPlayerList) { UpdatePlayerList(ClientData.PlayerList, FALSE); } if (IsShowingTalkList) { UpdatePlayerList(ClientData.TalkList, FALSE); } } void GetSpyReports(GtkWidget *Widget, gpointer data) { SendClientMessage(ClientData.Play, C_NONE, C_CONTACTSPY, NULL, NULL); } static void DestroySpyReports(GtkWidget *widget, gpointer data) { SpyReportsDialog = NULL; } static void CreateSpyReports(void) { GtkWidget *window, *button, *vbox, *notebook; GtkAccelGroup *accel_group; SpyReportsDialog = window = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_object_set_data(GTK_OBJECT(window), "accel_group", accel_group); gtk_window_add_accel_group(GTK_WINDOW(window), accel_group); /* Title of window to display reports from spies with other players */ gtk_window_set_title(GTK_WINDOW(window), _("Spy reports")); my_set_dialog_position(GTK_WINDOW(window)); gtk_window_set_modal(GTK_WINDOW(window), TRUE); gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(ClientData.window)); gtk_container_set_border_width(GTK_CONTAINER(window), 7); gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(DestroySpyReports), NULL); vbox = gtk_vbox_new(FALSE, 5); notebook = gtk_notebook_new(); gtk_object_set_data(GTK_OBJECT(window), "notebook", notebook); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); button = NewStockButton(GTK_STOCK_CLOSE, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(window)); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); gtk_widget_show_all(window); } void DisplaySpyReports(Player *Play) { GtkWidget *dialog, *notebook, *vbox, *hbox, *frame, *label, *table; GtkAccelGroup *accel_group; struct StatusWidgets Status; struct InventoryWidgets SpyDrugs, SpyGuns; if (!SpyReportsDialog) CreateSpyReports(); dialog = SpyReportsDialog; notebook = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(dialog), "notebook")); accel_group = (GtkAccelGroup *)(gtk_object_get_data(GTK_OBJECT(dialog), "accel_group")); vbox = gtk_vbox_new(FALSE, 5); frame = gtk_frame_new("Stats"); gtk_container_set_border_width(GTK_CONTAINER(frame), 3); table = CreateStatusWidgets(&Status); gtk_container_add(GTK_CONTAINER(frame), table); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); hbox = gtk_hbox_new(FALSE, 5); CreateInventory(hbox, Names.Drugs, accel_group, FALSE, FALSE, &SpyDrugs, NULL); CreateInventory(hbox, Names.Guns, accel_group, FALSE, FALSE, &SpyGuns, NULL); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); label = gtk_label_new(GetPlayerName(Play)); DisplayStats(Play, &Status); UpdateInventory(&SpyDrugs, Play->Drugs, NumDrug, TRUE); UpdateInventory(&SpyGuns, Play->Guns, NumGun, FALSE); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label); gtk_widget_show_all(notebook); } dopewars-1.5.12/src/gui_client/optdialog.h0000644001565000007070000000332010355116554015421 00000000000000/************************************************************************ * optdialog.c Configuration file editing dialog * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __OPT_DIALOG_H__ #define __OPT_DIALOG_H__ #ifdef HAVE_CONFIG_H #include #endif #include "gtkport/gtkport.h" void OptDialog(GtkWidget *widget, gpointer data); #endif dopewars-1.5.12/src/gui_client/optdialog.c0000644001565000007070000010272710137122016015413 00000000000000/************************************************************************ * optdialog.c Configuration file editing dialog * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include /* For strcmp */ #include /* For atoi */ #include "configfile.h" /* For UpdateConfigFile etc. */ #include "dopewars.h" /* For struct GLOBALS etc. */ #include "gtk_client.h" /* For mainwindow etc. */ #include "nls.h" /* For _ function */ #include "sound.h" /* For SoundPlay */ #include "gtkport/gtkport.h" /* For gtk_ functions */ struct ConfigWidget { GtkWidget *widget; gint globind; int maxindex; gchar **data; }; static GSList *configlist = NULL, *clists = NULL; struct ConfigMembers { gchar *label, *name; }; static void FreeConfigWidgets(void) { while (configlist) { int i; struct ConfigWidget *cwid = (struct ConfigWidget *)configlist->data; for (i = 0; i < cwid->maxindex; i++) { g_free(cwid->data[i]); } g_free(cwid->data); configlist = g_slist_remove(configlist, cwid); } } static void UpdateAllLists(void) { GSList *listpt; for (listpt = clists; listpt; listpt = g_slist_next(listpt)) { GtkCList *clist = GTK_CLIST(listpt->data); if (clist->selection) { int row = GPOINTER_TO_INT(clist->selection->data); if (row >= 0) { gtk_clist_unselect_row(clist, row, 0); } } } } static void SaveConfigWidget(struct GLOBALS *gvar, struct ConfigWidget *cwid, int structind) { gboolean changed = FALSE; if (gvar->BoolVal) { gboolean *boolpt, newset; boolpt = GetGlobalBoolean(cwid->globind, structind); if (cwid->maxindex) { newset = (cwid->data[structind - 1] != NULL); } else { newset = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cwid->widget)); } changed = (*boolpt != newset); *boolpt = newset; } else { gchar *text; if (cwid->maxindex) { text = cwid->data[structind - 1]; } else { text = gtk_editable_get_chars(GTK_EDITABLE(cwid->widget), 0, -1); } if (gvar->IntVal) { int *intpt, newset; intpt = GetGlobalInt(cwid->globind, structind); newset = atoi(text); if (newset < gvar->MinVal) { newset = gvar->MinVal; } if (gvar->MaxVal > gvar->MinVal && newset > gvar->MaxVal) { newset = gvar->MaxVal; } changed = (*intpt != newset); *intpt = newset; } else if (gvar->PriceVal) { price_t *pricept, newset; pricept = GetGlobalPrice(cwid->globind, structind); newset = strtoprice(text); changed = (*pricept != newset); *pricept = newset; } else if (gvar->StringVal) { gchar **strpt; strpt = GetGlobalString(cwid->globind, structind); changed = (strcmp(*strpt, text) != 0); AssignName(strpt, text); } if (!cwid->maxindex) { g_free(text); } } gvar->Modified |= changed; } static void ResizeList(struct GLOBALS *gvar, int newmax) { int i; for (i = 0; i < NUMGLOB; i++) { if (Globals[i].StructListPt == gvar->StructListPt && Globals[i].ResizeFunc) { Globals[i].Modified = TRUE; (Globals[i].ResizeFunc) (newmax); return; } } g_assert(0); } static void SaveConfigWidgets(void) { GSList *listpt; UpdateAllLists(); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *cwid = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[cwid->globind]; if (gvar->NameStruct && gvar->NameStruct[0]) { int i; if (cwid->maxindex != *gvar->MaxIndex) { ResizeList(gvar, cwid->maxindex); } for (i = 1; i <= *gvar->MaxIndex; i++) { SaveConfigWidget(gvar, cwid, i); } } else { SaveConfigWidget(gvar, cwid, 0); } } } static void AddConfigWidget(GtkWidget *widget, int ind) { struct ConfigWidget *cwid = g_new(struct ConfigWidget, 1); struct GLOBALS *gvar; cwid->widget = widget; cwid->globind = ind; cwid->data = NULL; cwid->maxindex = 0; gvar = &Globals[ind]; if (gvar->MaxIndex) { int i; cwid->maxindex = *gvar->MaxIndex; cwid->data = g_new(gchar *, *gvar->MaxIndex); for (i = 1; i <= *gvar->MaxIndex; i++) { if (gvar->StringVal) { cwid->data[i - 1] = g_strdup(*GetGlobalString(ind, i)); } else if (gvar->IntVal) { cwid->data[i - 1] = g_strdup_printf("%d", *GetGlobalInt(ind, i)); } else if (gvar->PriceVal) { cwid->data[i - 1] = pricetostr(*GetGlobalPrice(ind, i)); } else if (gvar->BoolVal) { if (*GetGlobalBoolean(ind, i)) { cwid->data[i - 1] = g_strdup("1"); } else { cwid->data[i - 1] = NULL; } } } } configlist = g_slist_append(configlist, cwid); } static GtkWidget *NewConfigCheck(gchar *name, gchar *label) { GtkWidget *check; int ind; struct GLOBALS *gvar; ind = GetGlobalIndex(name, NULL); g_assert(ind >= 0); gvar = &Globals[ind]; g_assert(gvar->BoolVal); check = gtk_check_button_new_with_label(label); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), *gvar->BoolVal); AddConfigWidget(check, ind); return check; } static GtkWidget *NewConfigEntry(gchar *name) { GtkWidget *entry; gchar *tmpstr; int ind; struct GLOBALS *gvar; ind = GetGlobalIndex(name, NULL); g_assert(ind >= 0); entry = gtk_entry_new(); gvar = &Globals[ind]; if (gvar->StringVal) { gtk_entry_set_text(GTK_ENTRY(entry), *gvar->StringVal); } else if (gvar->IntVal) { if (gvar->MaxVal > gvar->MinVal) { GtkAdjustment *spin_adj; gtk_widget_destroy(entry); spin_adj = (GtkAdjustment *)gtk_adjustment_new(*gvar->IntVal, gvar->MinVal, gvar->MaxVal, 1.0, 10.0, 10.0); entry = gtk_spin_button_new(spin_adj, 1.0, 0); } else { tmpstr = g_strdup_printf("%d", *gvar->IntVal); gtk_entry_set_text(GTK_ENTRY(entry), tmpstr); g_free(tmpstr); } } else if (gvar->PriceVal) { tmpstr = pricetostr(*gvar->PriceVal); gtk_entry_set_text(GTK_ENTRY(entry), tmpstr); g_free(tmpstr); } AddConfigWidget(entry, ind); return entry; } static void AddStructConfig(GtkWidget *table, int row, gchar *structname, struct ConfigMembers *member) { int ind; struct GLOBALS *gvar; ind = GetGlobalIndex(structname, member->name); g_assert(ind >= 0); gvar = &Globals[ind]; if (gvar->BoolVal) { GtkWidget *check; check = gtk_check_button_new_with_label(_(member->label)); gtk_table_attach_defaults(GTK_TABLE(table), check, 0, 2, row, row + 1); AddConfigWidget(check, ind); } else { GtkWidget *label, *entry; label = gtk_label_new(_(member->label)); gtk_table_attach(GTK_TABLE(table), label, 0, 1, row, row + 1, GTK_SHRINK, GTK_SHRINK, 0, 0); if (gvar->IntVal && gvar->MaxVal > gvar->MinVal) { GtkAdjustment *spin_adj = (GtkAdjustment *) gtk_adjustment_new(gvar->MinVal, gvar->MinVal, gvar->MaxVal, 1.0, 10.0, 10.0); entry = gtk_spin_button_new(spin_adj, 1.0, 0); } else { entry = gtk_entry_new(); } gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, row, row + 1); AddConfigWidget(entry, ind); } } static void swap_rows(GtkCList *clist, gint selrow, gint swaprow, gchar *structname) { GSList *listpt; gtk_clist_unselect_row(clist, selrow, 0); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *cwid = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[cwid->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { gchar *tmp = cwid->data[selrow]; cwid->data[selrow] = cwid->data[swaprow]; cwid->data[swaprow] = tmp; if (strcmp(gvar->Name, "Name") == 0) { gtk_clist_set_text(clist, selrow, 0, cwid->data[selrow]); gtk_clist_set_text(clist, swaprow, 0, cwid->data[swaprow]); } } } gtk_clist_select_row(clist, swaprow, 0); } static void list_delete(GtkWidget *widget, gchar *structname) { GtkCList *clist; int minlistlength; clist = GTK_CLIST(gtk_object_get_data(GTK_OBJECT(widget), "clist")); g_assert(clist); minlistlength = GPOINTER_TO_INT(gtk_object_get_data(GTK_OBJECT(clist), "minlistlength")); if (clist->rows > minlistlength && clist->selection) { GSList *listpt; int row = GPOINTER_TO_INT(clist->selection->data); gtk_clist_remove(clist, row); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *cwid = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[cwid->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { int i; cwid->maxindex--; g_free(cwid->data[row]); for (i = row; i < cwid->maxindex; i++) { cwid->data[i] = cwid->data[i + 1]; } cwid->data = g_realloc(cwid->data, sizeof(gchar *) * cwid->maxindex); } } } } static void list_new(GtkWidget *widget, gchar *structname) { GtkCList *clist; int row; GSList *listpt; gchar *text[3]; clist = GTK_CLIST(gtk_object_get_data(GTK_OBJECT(widget), "clist")); g_assert(clist); text[0] = g_strdup_printf(_("New %s"), structname); row = gtk_clist_append(clist, text); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *cwid = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[cwid->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { cwid->maxindex++; g_assert(cwid->maxindex == row + 1); cwid->data = g_realloc(cwid->data, sizeof(gchar *) * cwid->maxindex); if (strcmp(gvar->Name, "Name") == 0) { cwid->data[row] = g_strdup(text[0]); } else { cwid->data[row] = g_strdup(""); } } } g_free(text[0]); gtk_clist_select_row(clist, row, 0); } static void list_up(GtkWidget *widget, gchar *structname) { GtkCList *clist; clist = GTK_CLIST(gtk_object_get_data(GTK_OBJECT(widget), "clist")); g_assert(clist); if (clist->selection) { int row = GPOINTER_TO_INT(clist->selection->data); if (row > 0) { swap_rows(clist, row, row - 1, structname); } } } static void list_down(GtkWidget *widget, gchar *structname) { GtkCList *clist; clist = GTK_CLIST(gtk_object_get_data(GTK_OBJECT(widget), "clist")); g_assert(clist); if (clist->selection) { int row = GPOINTER_TO_INT(clist->selection->data); int numrows = clist->rows; if (row < numrows - 1 && row >= 0) { swap_rows(clist, row, row + 1, structname); } } } static void list_row_select(GtkCList *clist, gint row, gint column, GdkEvent *event, gchar *structname) { GSList *listpt; GtkWidget *delbut, *upbut, *downbut; int minlistlength; minlistlength = GPOINTER_TO_INT(gtk_object_get_data(GTK_OBJECT(clist), "minlistlength")); delbut = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(clist), "delete")); upbut = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(clist), "up")); downbut = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(clist), "down")); g_assert(delbut && upbut && downbut); gtk_widget_set_sensitive(delbut, clist->rows > minlistlength); gtk_widget_set_sensitive(upbut, row > 0); gtk_widget_set_sensitive(downbut, row < clist->rows - 1); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *conf = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[conf->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { if (gvar->BoolVal) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(conf->widget), conf->data[row] != NULL); } else { gtk_entry_set_text(GTK_ENTRY(conf->widget), conf->data[row]); } } } } static void list_row_unselect(GtkCList *clist, gint row, gint column, GdkEvent *event, gchar *structname) { GSList *listpt; GtkWidget *delbut, *upbut, *downbut; delbut = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(clist), "delete")); upbut = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(clist), "up")); downbut = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(clist), "down")); g_assert(delbut && upbut && downbut); gtk_widget_set_sensitive(delbut, FALSE); gtk_widget_set_sensitive(upbut, FALSE); gtk_widget_set_sensitive(downbut, FALSE); for (listpt = configlist; listpt; listpt = g_slist_next(listpt)) { struct ConfigWidget *conf = (struct ConfigWidget *)listpt->data; struct GLOBALS *gvar; gvar = &Globals[conf->globind]; if (gvar->NameStruct && strcmp(structname, gvar->NameStruct) == 0) { g_free(conf->data[row]); conf->data[row] = NULL; if (gvar->BoolVal) { if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(conf->widget))) { conf->data[row] = g_strdup("1"); } } else { conf->data[row] = gtk_editable_get_chars(GTK_EDITABLE(conf->widget), 0, -1); gtk_entry_set_text(GTK_ENTRY(conf->widget), ""); } if (strcmp(gvar->Name, "Name") == 0) { gtk_clist_set_text(clist, row, 0, conf->data[row]); } } } } static void sound_row_select(GtkCList *clist, gint row, gint column, GdkEvent *event, gpointer data) { GtkWidget *entry; int globind; gchar **text; entry = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(clist), "entry")); globind = GPOINTER_TO_INT(gtk_clist_get_row_data(clist, row)); g_assert(globind >=0 && globind < NUMGLOB); text = GetGlobalString(globind, 0); gtk_entry_set_text(GTK_ENTRY(entry), *text); } static void sound_row_unselect(GtkCList *clist, gint row, gint column, GdkEvent *event, gpointer data) { GtkWidget *entry; int globind; gchar *text, **oldtext; entry = GTK_WIDGET(gtk_object_get_data(GTK_OBJECT(clist), "entry")); globind = GPOINTER_TO_INT(gtk_clist_get_row_data(clist, row)); g_assert(globind >=0 && globind < NUMGLOB); text = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); oldtext = GetGlobalString(globind, 0); g_assert(text && oldtext); if (strcmp(text, *oldtext) != 0) { AssignName(GetGlobalString(globind, 0), text); Globals[globind].Modified = TRUE; } gtk_entry_set_text(GTK_ENTRY(entry), ""); g_free(text); } static void BrowseSound(GtkWidget *entry) { gchar *oldtext, *newtext; GtkWidget *dialog = gtk_widget_get_ancestor(entry, GTK_TYPE_WINDOW); oldtext = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); newtext = GtkGetFile(dialog, oldtext, _("Select sound file")); g_free(oldtext); if (newtext) { gtk_entry_set_text(GTK_ENTRY(entry), newtext); g_free(newtext); } } static void TestPlaySound(GtkWidget *entry) { gchar *text; gboolean sound_enabled; text = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1); sound_enabled = IsSoundEnabled(); SoundEnable(TRUE); SoundPlay(text); SoundEnable(sound_enabled); g_free(text); } static void OKCallback(GtkWidget *widget, GtkWidget *dialog) { GtkToggleButton *unicode_check; SaveConfigWidgets(); unicode_check = GTK_TOGGLE_BUTTON(gtk_object_get_data(GTK_OBJECT(dialog), "unicode_check")); UpdateConfigFile(NULL, gtk_toggle_button_get_active(unicode_check)); gtk_widget_destroy(dialog); } static gchar *GetHelpPage(const gchar *pagename) { gchar *root, *file; root = GetDocRoot(); file = g_strdup_printf("%shelp%c%s.html", root, G_DIR_SEPARATOR, pagename); g_free(root); return file; } static void HelpCallback(GtkWidget *widget, GtkWidget *notebook) { const static gchar *pagehelp[] = { "general", "locations", "drugs", "guns", "cops", "server", "sounds" }; gint page = gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)); gchar *help; help = GetHelpPage(pagehelp[page]); DisplayHTML(widget, WebBrowser, help); g_free(help); } static void FinishOptDialog(GtkWidget *widget, gpointer data) { FreeConfigWidgets(); g_slist_free(clists); clists = NULL; } static GtkWidget *CreateList(gchar *structname, struct ConfigMembers *members) { GtkWidget *hbox, *vbox, *hbbox, *clist, *scrollwin, *button, *table; gchar *titles[3]; int ind, minlistlength = 0; gint i, row, nummembers; struct GLOBALS *gvar; struct ConfigMembers namemember = { N_("Name"), "Name" }; ind = GetGlobalIndex(structname, "Name"); g_assert(ind >= 0); gvar = &Globals[ind]; g_assert(gvar->StringVal && gvar->MaxIndex); for (i = 0; i < NUMGLOB; i++) { if (Globals[i].StructListPt == gvar->StructListPt && Globals[i].ResizeFunc) { minlistlength = Globals[i].MinVal; } } nummembers = 0; while (members && members[nummembers].label) { nummembers++; } hbox = gtk_hbox_new(FALSE, 10); vbox = gtk_vbox_new(FALSE, 5); titles[0] = structname; clist = gtk_scrolled_clist_new_with_titles(1, titles, &scrollwin); gtk_signal_connect(GTK_OBJECT(clist), "select_row", GTK_SIGNAL_FUNC(list_row_select), structname); gtk_signal_connect(GTK_OBJECT(clist), "unselect_row", GTK_SIGNAL_FUNC(list_row_unselect), structname); gtk_clist_column_titles_passive(GTK_CLIST(clist)); gtk_clist_set_selection_mode(GTK_CLIST(clist), GTK_SELECTION_SINGLE); gtk_clist_set_auto_sort(GTK_CLIST(clist), FALSE); clists = g_slist_append(clists, clist); for (i = 1; i <= *gvar->MaxIndex; i++) { titles[0] = *GetGlobalString(ind, i); row = gtk_clist_append(GTK_CLIST(clist), titles); } gtk_box_pack_start(GTK_BOX(vbox), scrollwin, TRUE, TRUE, 0); hbbox = gtk_hbox_new(TRUE, 5); button = gtk_button_new_with_label(_("New")); gtk_object_set_data(GTK_OBJECT(button), "clist", clist); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(list_new), structname); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); button = gtk_button_new_with_label(_("Delete")); gtk_widget_set_sensitive(button, FALSE); gtk_object_set_data(GTK_OBJECT(button), "clist", clist); gtk_object_set_data(GTK_OBJECT(clist), "delete", button); gtk_object_set_data(GTK_OBJECT(clist), "minlistlength", GINT_TO_POINTER(minlistlength)); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(list_delete), structname); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); button = gtk_button_new_with_label(_("Up")); gtk_widget_set_sensitive(button, FALSE); gtk_object_set_data(GTK_OBJECT(button), "clist", clist); gtk_object_set_data(GTK_OBJECT(clist), "up", button); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(list_up), structname); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); button = gtk_button_new_with_label(_("Down")); gtk_widget_set_sensitive(button, FALSE); gtk_object_set_data(GTK_OBJECT(button), "clist", clist); gtk_object_set_data(GTK_OBJECT(clist), "down", button); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(list_down), structname); gtk_box_pack_start(GTK_BOX(hbbox), button, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); table = gtk_table_new(nummembers + 1, 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_table_set_col_spacings(GTK_TABLE(table), 5); AddStructConfig(table, 0, structname, &namemember); for (i = 0; i < nummembers; i++) { AddStructConfig(table, i + 1, structname, &members[i]); } gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 0); return hbox; } static void FillSoundsList(GtkCList *clist) { gchar *rowtext[2]; gint i, row; gtk_clist_freeze(clist); gtk_clist_clear(clist); for (i = 0; i < NUMGLOB; i++) { if (strlen(Globals[i].Name) > 7 && strncmp(Globals[i].Name, "Sounds.", 7) == 0) { rowtext[0] = &Globals[i].Name[7]; rowtext[1] = _(Globals[i].Help); row = gtk_clist_append(clist, rowtext); gtk_clist_set_row_data(clist, row, GINT_TO_POINTER(i)); } } gtk_clist_thaw(clist); } void OptDialog(GtkWidget *widget, gpointer data) { GtkWidget *dialog, *notebook, *table, *label, *check, *entry; GtkWidget *hbox, *vbox, *vbox2, *hsep, *button, *hbbox, *clist; GtkWidget *scrollwin; GtkAccelGroup *accel_group; gchar *sound_titles[2]; int width; struct ConfigMembers locmembers[] = { { N_("Police presence"), "PolicePresence" }, { N_("Minimum no. of drugs"), "MinDrug" }, { N_("Maximum no. of drugs"), "MaxDrug" }, { NULL, NULL } }; struct ConfigMembers drugmembers[] = { { N_("Minimum normal price"), "MinPrice" }, { N_("Maximum normal price"), "MaxPrice" }, { N_("Can be specially cheap"), "Cheap" }, { N_("Cheap string"), "CheapStr" }, { N_("Can be specially expensive"), "Expensive" }, { NULL, NULL } }; struct ConfigMembers gunmembers[] = { { N_("Price"), "Price" }, { N_("Inventory space"), "Space" }, { N_("Damage"), "Damage" }, { NULL, NULL } }; struct ConfigMembers copmembers[] = { { N_("Name of one deputy"), "DeputyName" }, { N_("Name of several deputies"), "DeputiesName" }, { N_("Minimum no. of deputies"), "MinDeputies" }, { N_("Maximum no. of deputies"), "MaxDeputies" }, { N_("Cop armour"), "Armour" }, { N_("Deputy armour"), "DeputyArmour" }, { NULL, NULL } }; dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); accel_group = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(dialog), accel_group); gtk_window_set_title(GTK_WINDOW(dialog), _("Options")); my_set_dialog_position(GTK_WINDOW(dialog)); gtk_container_set_border_width(GTK_CONTAINER(dialog), 7); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(MainWindow)); vbox = gtk_vbox_new(FALSE, 7); notebook = gtk_notebook_new(); table = gtk_table_new(8, 3, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_table_set_col_spacings(GTK_TABLE(table), 5); check = NewConfigCheck("Sanitized", _("Remove drug references")); gtk_table_attach_defaults(GTK_TABLE(table), check, 0, 1, 0, 1); #ifdef HAVE_GLIB2 check = gtk_check_button_new_with_label(_("Unicode config file")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), IsConfigFileUTF8()); gtk_table_attach_defaults(GTK_TABLE(table), check, 1, 3, 0, 1); gtk_object_set_data(GTK_OBJECT(dialog), "unicode_check", check); #endif label = gtk_label_new(_("Game length (turns)")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("NumTurns"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 1, 2); label = gtk_label_new(_("Starting cash")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("StartCash"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 2, 3); label = gtk_label_new(_("Starting debt")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 3, 4, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("StartDebt"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 3, 4); label = gtk_label_new(_("Currency symbol")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 4, 5, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("Currency.Symbol"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 4, 5); check = NewConfigCheck("Currency.Prefix", _("Symbol prefixes prices")); gtk_table_attach_defaults(GTK_TABLE(table), check, 2, 3, 4, 5); label = gtk_label_new(_("Name of one bitch")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("Names.Bitch"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 5, 6); label = gtk_label_new(_("Name of several bitches")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 6, 7, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("Names.Bitches"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 6, 7); #ifndef CYGWIN label = gtk_label_new(_("Web browser")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 7, 8, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("WebBrowser"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 3, 7, 8); #endif gtk_container_set_border_width(GTK_CONTAINER(table), 7); label = gtk_label_new(_("General")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), table, label); hbox = CreateList("Location", locmembers); gtk_container_set_border_width(GTK_CONTAINER(hbox), 7); label = gtk_label_new(_("Locations")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label); vbox2 = gtk_vbox_new(FALSE, 8); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 7); hbox = CreateList("Drug", drugmembers); gtk_box_pack_start(GTK_BOX(vbox2), hbox, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox2), hsep, FALSE, FALSE, 0); table = gtk_table_new(2, 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_table_set_col_spacings(GTK_TABLE(table), 5); label = gtk_label_new(_("Expensive string 1")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("Drugs.ExpensiveStr1"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 0, 1); label = gtk_label_new(_("Expensive string 2")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("Drugs.ExpensiveStr2"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 1, 2); gtk_box_pack_start(GTK_BOX(vbox2), table, FALSE, FALSE, 0); label = gtk_label_new(_("Drugs")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox2, label); hbox = CreateList("Gun", gunmembers); gtk_container_set_border_width(GTK_CONTAINER(hbox), 7); label = gtk_label_new(_("Guns")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label); hbox = CreateList("Cop", copmembers); gtk_container_set_border_width(GTK_CONTAINER(hbox), 7); label = gtk_label_new(_("Cops")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label); table = gtk_table_new(6, 4, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_table_set_col_spacings(GTK_TABLE(table), 5); check = NewConfigCheck("MetaServer.Active", _("Server reports to metaserver")); gtk_table_attach_defaults(GTK_TABLE(table), check, 0, 2, 0, 1); #ifdef CYGWIN check = NewConfigCheck("MinToSysTray", _("Minimize to System Tray")); gtk_table_attach_defaults(GTK_TABLE(table), check, 2, 4, 0, 1); #endif label = gtk_label_new(_("Metaserver hostname")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("MetaServer.Name"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 1, 2); label = gtk_label_new(_("Port")); gtk_table_attach(GTK_TABLE(table), label, 2, 3, 1, 2, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("MetaServer.Port"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 3, 4, 1, 2); label = gtk_label_new(_("Web proxy hostname")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("MetaServer.ProxyName"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 2, 3); label = gtk_label_new(_("Port")); gtk_table_attach(GTK_TABLE(table), label, 2, 3, 2, 3, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("MetaServer.ProxyPort"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 3, 4, 2, 3); label = gtk_label_new(_("Script path")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 3, 4, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("MetaServer.Path"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 4, 3, 4); label = gtk_label_new(_("Comment")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 4, 5, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("MetaServer.Comment"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 4, 4, 5); label = gtk_label_new(_("MOTD (welcome message)")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6, GTK_SHRINK, GTK_SHRINK, 0, 0); entry = NewConfigEntry("ServerMOTD"); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 4, 5, 6); gtk_container_set_border_width(GTK_CONTAINER(table), 7); label = gtk_label_new(_("Server")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), table, label); vbox2 = gtk_vbox_new(FALSE, 5); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 7); sound_titles[0] = _("Sound name"); sound_titles[1] = _("Description"); clist = gtk_scrolled_clist_new_with_titles(2, sound_titles, &scrollwin); gtk_clist_column_titles_passive(GTK_CLIST(clist)); gtk_clist_set_selection_mode(GTK_CLIST(clist), GTK_SELECTION_SINGLE); FillSoundsList(GTK_CLIST(clist)); gtk_signal_connect(GTK_OBJECT(clist), "select_row", GTK_SIGNAL_FUNC(sound_row_select), NULL); gtk_signal_connect(GTK_OBJECT(clist), "unselect_row", GTK_SIGNAL_FUNC(sound_row_unselect), NULL); clists = g_slist_append(clists, clist); gtk_box_pack_start(GTK_BOX(vbox2), scrollwin, TRUE, TRUE, 0); hbox = gtk_hbox_new(FALSE, 5); label = gtk_label_new(_("Sound file")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); entry = gtk_entry_new(); gtk_object_set_data(GTK_OBJECT(clist), "entry", entry); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); button = gtk_button_new_with_label(_("Browse...")); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(BrowseSound), GTK_OBJECT(entry)); gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); button = gtk_button_new_with_label(_("Play")); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(TestPlaySound), GTK_OBJECT(entry)); gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), hbox, FALSE, FALSE, 0); label = gtk_label_new(_("Sounds")); gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox2, label); gtk_notebook_set_page(GTK_NOTEBOOK(notebook), 0); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); hsep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), hsep, FALSE, FALSE, 0); hbbox = my_hbbox_new(); button = NewStockButton(GTK_STOCK_OK, accel_group); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(OKCallback), (gpointer)dialog); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = NewStockButton(GTK_STOCK_HELP, accel_group); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(HelpCallback), (gpointer)notebook); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); button = NewStockButton(GTK_STOCK_CANCEL, accel_group); gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), GTK_OBJECT(dialog)); gtk_signal_connect(GTK_OBJECT(dialog), "destroy", GTK_SIGNAL_FUNC(FinishOptDialog), NULL); gtk_box_pack_start_defaults(GTK_BOX(hbbox), button); gtk_box_pack_start(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_widget_show_all(dialog); width = gtk_clist_optimal_column_width(GTK_CLIST(clist), 0); gtk_clist_set_column_width(GTK_CLIST(clist), 0, width); } dopewars-1.5.12/src/gui_client/newgamedia.h0000644001565000007070000000372610355116554015552 00000000000000/************************************************************************ * newgamedia.h New game dialog * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __NEWGAME_DIA_H__ #define __NEWGAME_DIA_H__ #ifdef HAVE_CONFIG_H #include #endif #include #include "dopewars.h" #include "network.h" #ifdef NETWORKING void NewGameDialog(Player *play, NBCallBack sockstat); void DisplayConnectStatus(gboolean meta, NBStatus oldstatus, NBSocksStatus oldsocks); void FinishServerConnect(gboolean ConnectOK); #else void NewGameDialog(Player *play); #endif #endif dopewars-1.5.12/src/gui_client/Makefile.in0000644001565000007070000003552510355323276015350 00000000000000# Makefile.in generated by automake 1.9.5 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@ SOURCES = $(libguiclient_a_SOURCES) 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@ target_triplet = @target@ subdir = src/gui_client DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libguiclient_a_AR = $(AR) $(ARFLAGS) libguiclient_a_LIBADD = am_libguiclient_a_OBJECTS = gtk_client.$(OBJEXT) optdialog.$(OBJEXT) \ newgamedia.$(OBJEXT) libguiclient_a_OBJECTS = $(am_libguiclient_a_OBJECTS) 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 = $(libguiclient_a_SOURCES) DIST_SOURCES = $(libguiclient_a_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ noinst_LIBRARIES = libguiclient.a libguiclient_a_SOURCES = gtk_client.c gtk_client.h \ optdialog.c optdialog.h \ newgamedia.c newgamedia.h dopewars-pill.xpm INCLUDES = -I../../intl -I${srcdir} -I${srcdir}/.. -I../.. @GTK_CFLAGS@ @GLIB_CFLAGS@ 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/gui_client/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/gui_client/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 clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libguiclient.a: $(libguiclient_a_OBJECTS) $(libguiclient_a_DEPENDENCIES) -rm -f libguiclient.a $(libguiclient_a_AR) libguiclient.a $(libguiclient_a_OBJECTS) $(libguiclient_a_LIBADD) $(RANLIB) libguiclient.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtk_client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/newgamedia.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optdialog.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 $(LIBRARIES) installdirs: 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-generic clean-libtool clean-noinstLIBRARIES \ 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-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-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-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-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: dopewars-1.5.12/src/sound.h0000644001565000007070000000405310355116554012451 00000000000000/************************************************************************ * sound.h Header file for dopewars sound system * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_SOUND_H__ #define __DP_SOUND_H__ #ifdef HAVE_CONFIG_H #include #endif #include struct _SoundDriver { void *module; gchar *name; gboolean (*open) (void); void (*close) (void); void (*play) (const gchar *snd); }; typedef struct _SoundDriver SoundDriver; gchar *GetPluginList(void); void SoundInit(void); void SoundOpen(gchar *drivername); void SoundClose(void); void SoundPlay(const gchar *snd); void SoundEnable(gboolean enable); gboolean IsSoundEnabled(void); #endif /* __DP_SOUND_H__ */ dopewars-1.5.12/src/network.h0000644001565000007070000002656110355116554013022 00000000000000/************************************************************************ * network.h Header file for low-level networking routines * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_NETWORK_H__ #define __DP_NETWORK_H__ #ifdef HAVE_CONFIG_H #include #endif /* Various includes necessary for select() calls */ #ifdef CYGWIN #include #else #include /* Be careful not to include both sys/time.h and time.h on those systems * which don't like it */ #if TIME_WITH_SYS_TIME #include #include #else #if HAVE_SYS_TIME_H #include #else #include #endif #endif #ifdef HAVE_UNISTD_H #include #endif #endif #include #include "error.h" #ifdef NETWORKING #ifndef SOCKET_ERROR #define SOCKET_ERROR -1 #endif typedef struct _ConnBuf { gchar *Data; /* bytes waiting to be read/written */ gint Length; /* allocated length of the "Data" buffer */ gint DataPresent; /* number of bytes currently in "Data" */ } ConnBuf; typedef struct _NetworkBuffer NetworkBuffer; typedef void (*NBCallBack) (NetworkBuffer *NetBuf, gboolean Read, gboolean Write, gboolean CallNow); typedef void (*NBUserPasswd) (NetworkBuffer *NetBuf, gpointer data); /* Information about a SOCKS server */ typedef struct _SocksServer { gchar *name; /* hostname */ unsigned port; /* port number */ int version; /* desired protocol version (usually * 4 or 5) */ gboolean numuid; /* if TRUE, send numeric user IDs rather * than names */ char *user; /* if not blank, override the username * with this */ gchar *authuser; /* if set, the username for SOCKS5 auth */ gchar *authpassword; /* if set, the password for SOCKS5 auth */ } SocksServer; /* The status of a network buffer */ typedef enum { NBS_PRECONNECT, /* Socket is not yet connected */ NBS_SOCKSCONNECT, /* A CONNECT request is being sent to a * SOCKS server */ NBS_CONNECTED /* Socket is connected */ } NBStatus; /* Status of a SOCKS v5 negotiation */ typedef enum { NBSS_METHODS, /* Negotiation of available methods */ NBSS_USERPASSWD, /* Username-password request is being sent */ NBSS_CONNECT /* CONNECT request is being sent */ } NBSocksStatus; /* Handles reading and writing messages from/to a network connection */ struct _NetworkBuffer { int fd; /* File descriptor of the socket */ gint InputTag; /* Identifier for gdk_input routines */ NBCallBack CallBack; /* Function called when the socket * status changes */ gpointer CallBackData; /* Data accessible to the callback * function */ char Terminator; /* Character that separates messages */ char StripChar; /* Char that should be removed * from messages */ ConnBuf ReadBuf; /* New data, waiting for the application */ ConnBuf WriteBuf; /* Data waiting to be written to the wire */ ConnBuf negbuf; /* Output for protocol negotiation * (e.g. SOCKS) */ gboolean WaitConnect; /* TRUE if a non-blocking connect is in * progress */ NBStatus status; /* Status of the connection (if any) */ NBSocksStatus sockstat; /* Status of SOCKS negotiation (if any) */ SocksServer *socks; /* If non-NULL, a SOCKS server to use */ NBUserPasswd userpasswd; /* Function to supply username and * password for SOCKS5 authentication */ gpointer userpasswddata; /* data to pass to the above function */ gchar *host; /* If non-NULL, the host to connect to */ unsigned port; /* If non-NULL, the port to connect to */ LastError *error; /* Any error from the last operation */ }; /* Keeps track of the progress of an HTTP connection */ typedef enum { HS_CONNECTING, /* Waiting for connect() to complete */ HS_READHEADERS, /* Reading HTTP headers */ HS_READSEPARATOR, /* Reading the header/body separator line */ HS_READBODY, /* Reading HTTP body */ HS_WAITCOMPLETE /* Done reading, now waiting for * authentication etc. before closing * and/or retrying the connection */ } HttpStatus; typedef struct _HttpConnection HttpConnection; typedef void (*HCAuthFunc) (HttpConnection *conn, gboolean proxyauth, gchar *realm, gpointer data); /* A structure used to keep track of an HTTP connection */ struct _HttpConnection { gchar *HostName; /* The machine on which the desired page * resides */ unsigned Port; /* The port */ gchar *Proxy; /* If non-NULL, a web proxy to use */ unsigned ProxyPort; /* The port to use for talking to * the proxy */ char *bindaddr; /* local IP address to bind to */ gchar *Method; /* e.g. GET, POST */ gchar *Query; /* e.g. the path of the desired webpage */ gchar *Headers; /* if non-NULL, e.g. Content-Type */ gchar *Body; /* if non-NULL, data to send */ gchar *RedirHost; /* if non-NULL, a hostname to redirect to */ gchar *RedirQuery; /* if non-NULL, the path to redirect to */ unsigned RedirPort; /* The port on the host to redirect to */ HCAuthFunc authfunc; /* Callback function for authentication */ gpointer authdata; /* Data to be passed to authfunc */ gboolean waitinput; /* TRUE if we're waiting for auth etc. to * be supplied */ gchar *user; /* The supplied username for HTTP auth */ gchar *password; /* The supplied password for HTTP auth */ gchar *proxyuser; /* The supplied username for HTTP * proxy auth */ gchar *proxypassword; /* The supplied password for HTTP * proxy auth */ NetworkBuffer NetBuf; /* The actual network connection itself */ gint Tries; /* Number of requests actually sent so far */ gint StatusCode; /* 0=no status yet, otherwise an HTTP * status code */ HttpStatus Status; }; void InitNetworkBuffer(NetworkBuffer *NetBuf, char Terminator, char StripChar, SocksServer *socks); void SetNetworkBufferCallBack(NetworkBuffer *NetBuf, NBCallBack CallBack, gpointer CallBackData); void SetNetworkBufferUserPasswdFunc(NetworkBuffer *NetBuf, NBUserPasswd userpasswd, gpointer data); gboolean IsNetworkBufferActive(NetworkBuffer *NetBuf); void BindNetworkBufferToSocket(NetworkBuffer *NetBuf, int fd); gboolean StartNetworkBufferConnect(NetworkBuffer *NetBuf, const gchar *bindaddr, gchar *RemoteHost, unsigned RemotePort); void ShutdownNetworkBuffer(NetworkBuffer *NetBuf); void SetSelectForNetworkBuffer(NetworkBuffer *NetBuf, fd_set *readfds, fd_set *writefds, fd_set *errorfds, int *MaxSock); gboolean RespondToSelect(NetworkBuffer *NetBuf, fd_set *readfds, fd_set *writefds, fd_set *errorfds, gboolean *DoneOK); gboolean NetBufHandleNetwork(NetworkBuffer *NetBuf, gboolean ReadReady, gboolean WriteReady, gboolean *DoneOK); gboolean ReadDataFromWire(NetworkBuffer *NetBuf); gboolean WriteDataToWire(NetworkBuffer *NetBuf); void QueueMessageForSend(NetworkBuffer *NetBuf, gchar *data); gint CountWaitingMessages(NetworkBuffer *NetBuf); gchar *GetWaitingMessage(NetworkBuffer *NetBuf); void SendSocks5UserPasswd(NetworkBuffer *NetBuf, gchar *user, gchar *password); gchar *GetWaitingData(NetworkBuffer *NetBuf, int numbytes); gchar *PeekWaitingData(NetworkBuffer *NetBuf, int numbytes); gchar *ExpandWriteBuffer(ConnBuf *conn, int numbytes, LastError **error); void CommitWriteBuffer(NetworkBuffer *NetBuf, ConnBuf *conn, gchar *addpt, guint addlen); gboolean OpenHttpConnection(HttpConnection **conn, gchar *HostName, unsigned Port, gchar *Proxy, unsigned ProxyPort, const gchar *bindaddr, SocksServer *socks, gchar *Method, gchar *Query, gchar *Headers, gchar *Body); void CloseHttpConnection(HttpConnection *conn); gchar *ReadHttpResponse(HttpConnection *conn, gboolean *doneOK); void SetHttpAuthentication(HttpConnection *conn, gboolean proxy, gchar *user, gchar *password); void SetHttpAuthFunc(HttpConnection *conn, HCAuthFunc authfunc, gpointer data); gboolean HandleHttpCompletion(HttpConnection *conn); gboolean IsHttpError(HttpConnection *conn); int CreateTCPSocket(LastError **error); gboolean BindTCPSocket(int sock, const gchar *addr, unsigned port, LastError **error); void StartNetworking(void); void StopNetworking(void); #ifdef CYGWIN #define CloseSocket(sock) closesocket(sock) void SetReuse(SOCKET sock); void SetBlocking(SOCKET sock, gboolean blocking); #else #define CloseSocket(sock) close(sock) void SetReuse(int sock); void SetBlocking(int sock, gboolean blocking); #endif void AddB64Enc(GString *str, gchar *unenc); #endif /* NETWORKING */ #endif /* __DP_NETWORK_H__ */ dopewars-1.5.12/src/message.c0000644001565000007070000012615210355116554012745 00000000000000/************************************************************************ * message.c Message-handling routines for dopewars * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifndef CYGWIN #include #include #endif #include #include #include #include "convert.h" #include "dopewars.h" #include "message.h" #include "network.h" #include "nls.h" #include "serverside.h" #include "sound.h" #include "tstring.h" #include "util.h" /* Maximum sizes (in bytes) of read and write buffers - connections should * be dropped if either buffer is filled */ #define MAXREADBUF (32768) #define MAXWRITEBUF (65536) /* *INDENT-OFF* */ /* dopewars is built around a client-server model. Each client handles the user interface, but all the important calculation and processing is handled by the server. All communication is conducted via. TCP by means of plain text newline-delimited messages. New message structure:- Other^ACData Other: The ID of the player at the "other end" of the connection; for messages received by the client, this is the player from which the message originates, while for messages received by the server, it's the player to which to deliver the message. A: One-letter code; used by AI players to identify the message subtype (check AIPlayer.h) C: One-letter code to identify the message type (check message.h) Data: Message-dependent information For compatibility with old clients and servers, the old message structure is still supported:- From^To^ACData From,To: Player names identifying the sender and intended recipient of the message. Either field may be blank, although the server will usually reject incoming messages if they are not properly identified with a correct "From" field. A,C,Data: As above, for the new message structure For example, a common message is the "printmessage" message (message code C is C_PRINTMESSAGE), which simply instructs the client to display "Data". Any ^ characters within Data are replaced by newlines on output. So in order for the server to instruct player "Fred" (ID 1) to display "Hello world" it would send the message:- ^AAHello world (new format) ^Fred^AAHello world (old format) Note that the server has left the Other (or From) field blank, and has specified the AI code 'A' - defined in AIPlayer.h as C_NONE (i.e. an "unimportant" message) as well as the main code 'A', defined as C_PRINTMESSAGE in message.h. Note also that the destination player (Fred) is not specified in the new format; the player is identified by the socket through which the message is transmitted. When the network is down, a server is simulated locally. Messages from the client are passed directly to the server message handling routine, and vice versa. */ /* *INDENT-ON* */ GSList *FirstClient = NULL; static Converter *netconv = NULL; void (*ClientMessageHandlerPt)(char *, Player *) = NULL; /* * Sends a message from player "From" to player "To" via. the server. * AI, Code and Data define the message. */ void SendClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data) { DoSendClientMessage(From, AI, Code, To, Data, From); } /* * Sends a message from player "From" to player "To" via. the server, * sending a blank name for "From" (this is required with the old message * format, up to and including the first successful C_NAME message, but has * no effect with the new format. AI, Code and Data define the message. */ void SendNullClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data) { DoSendClientMessage(NULL, AI, Code, To, Data, From); } /* * Send a message from client player "From" with computer code "AI", * human-readable code "Code" and data "Data". The message is sent to the * server, identifying itself as for "To". "BufOwn" identifies the player * which owns the buffers used for the actual wire connection. With the * new message format, "From" is ignored. From, To, or Data may be NULL. */ void DoSendClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data, Player *BufOwn) { GString *text; Player *ServerFrom; g_assert(BufOwn != NULL); text = g_string_new(NULL); if (HaveAbility(BufOwn, A_PLAYERID)) { if (To) g_string_sprintfa(text, "%d", To->ID); g_string_sprintfa(text, "^%c%c%s", AI, Code, Data ? Data : ""); } else { g_string_sprintf(text, "%s^%s^%c%c%s", From ? GetPlayerName(From) : "", To ? GetPlayerName(To) : "", AI, Code, Data ? Data : ""); } #if NETWORKING if (!Network) { #endif if (From) ServerFrom = GetPlayerByName(GetPlayerName(From), FirstServer); else if (FirstServer) ServerFrom = (Player *)(FirstServer->data); else { ServerFrom = g_new(Player, 1); FirstServer = AddPlayer(0, ServerFrom, FirstServer); } HandleServerMessage(text->str, ServerFrom); #if NETWORKING } else { QueuePlayerMessageForSend(BufOwn, text->str); } #endif /* NETWORKING */ g_string_free(text, TRUE); } /* * Shorthand for the server sending a "printmessage"; instructs the * client "To" to display "Data". */ void SendPrintMessage(Player *From, AICode AI, Player *To, char *Data) { SendServerMessage(From, AI, C_PRINTMESSAGE, To, Data); } /* * Shorthand for the server sending a "question"; instructs the client * "To" to display the second word of Data and accept any letter within * the first word of Data as suitable reply. */ void SendQuestion(Player *From, AICode AI, Player *To, char *Data) { SendServerMessage(From, AI, C_QUESTION, To, Data); } /* * Sends a message from the server to client player "To" with computer * code "AI", human-readable code "Code" and data "Data", claiming * to be from player "From". */ void SendServerMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data) { GString *text; if (IsCop(To)) return; text = g_string_new(NULL); if (HaveAbility(To, A_PLAYERID)) { if (From) g_string_sprintfa(text, "%d", From->ID); g_string_sprintfa(text, "^%c%c%s", AI, Code, Data ? Data : ""); } else { g_string_sprintf(text, "%s^%s^%c%c%s", From ? GetPlayerName(From) : "", To ? GetPlayerName(To) : "", AI, Code, Data ? Data : ""); } #if NETWORKING if (!Network) { #endif if (ClientMessageHandlerPt) (*ClientMessageHandlerPt)(text->str, (Player *)(FirstClient->data)); #if NETWORKING } else { QueuePlayerMessageForSend(To, text->str); } #endif g_string_free(text, TRUE); } /* * Sets up the "abilities" of player "Play". Abilities are used to extend * the protocol; if both the client and server share an ability, then the * protocol extension can be used. */ void InitAbilities(Player *Play) { int i; /* Clear all abilities */ for (i = 0; i < A_NUM; i++) { Play->Abil.Local[i] = FALSE; Play->Abil.Remote[i] = FALSE; Play->Abil.Shared[i] = FALSE; } Play->Abil.RemoteNum = 0; /* Set local abilities; abilities that are client-dependent (e.g. * A_NEWFIGHT) can be overridden by individual clients if required, by * calling SetAbility, prior to calling SendAbilities */ Play->Abil.Local[A_PLAYERID] = TRUE; Play->Abil.Local[A_NEWFIGHT] = TRUE; Play->Abil.Local[A_DRUGVALUE] = (DrugValue ? TRUE : FALSE); Play->Abil.Local[A_TSTRING] = TRUE; Play->Abil.Local[A_DONEFIGHT] = TRUE; #ifdef HAVE_GLIB2 Play->Abil.Local[A_UTF8] = TRUE; #else Play->Abil.Local[A_UTF8] = FALSE; #endif Play->Abil.Local[A_DATE] = TRUE; if (!Network) { for (i = 0; i < A_NUM; i++) { Play->Abil.Remote[i] = Play->Abil.Shared[i] = Play->Abil.Local[i]; } Play->Abil.RemoteNum = A_NUM; } } /* * Sends abilities of player "Play" to the other end of the client-server * connection. */ void SendAbilities(Player *Play) { int i; gchar Data[A_NUM + 1]; if (!Network) return; for (i = 0; i < A_NUM; i++) { Data[i] = (Play->Abil.Local[i] ? '1' : '0'); } Data[A_NUM] = '\0'; if (Server) { SendServerMessage(NULL, C_NONE, C_ABILITIES, Play, Data); } else { SendClientMessage(Play, C_NONE, C_ABILITIES, NULL, Data); } } /* * Fills in the "remote" abilities of player "Play" using the message data * in "Data". These are the abilities of the server/client at the other * end of the connection. */ void ReceiveAbilities(Player *Play, gchar *Data) { int i, Length; InitAbilities(Play); if (!Network) return; Play->Abil.RemoteNum = strlen(Data); Length = MIN(Play->Abil.RemoteNum, A_NUM); for (i = 0; i < Length; i++) { Play->Abil.Remote[i] = (Data[i] == '1' ? TRUE : FALSE); } } /* * Combines the local and remote abilities of player "Play". The resulting * shared abilities are used to determine when protocol extensions can be * used. */ void CombineAbilities(Player *Play) { int i; for (i = 0; i < A_NUM; i++) { Play->Abil.Shared[i] = (Play->Abil.Remote[i] && Play->Abil.Local[i]); } if (HaveAbility(Play, A_UTF8)) { Conv_SetCodeset(netconv, "UTF-8"); } } /* * Sets ability "Type" of player "Play", and also sets shared abilities if * networking is not active (the local server should support all abilities * that the client uses). Call this function prior to calling SendAbilities * so that the ability is recognised properly when networking _is_ active */ void SetAbility(Player *Play, gint Type, gboolean Set) { if (Type < 0 || Type >= A_NUM) return; Play->Abil.Local[Type] = Set; if (!Network) { Play->Abil.Remote[Type] = Play->Abil.Shared[Type] = Play->Abil.Local[Type]; } } /* * Returns TRUE if ability "Type" is one of player "Play"'s shared abilities */ gboolean HaveAbility(Player *Play, gint Type) { if (Type < 0 || Type >= A_NUM) return FALSE; else return (Play->Abil.Shared[Type]); } #if NETWORKING /* * Reads and writes player data from/to the network if it is ready. * If any data were read, TRUE is returned. "DoneOK" is set TRUE * unless a fatal error (i.e. the connection was broken) occurred. */ gboolean PlayerHandleNetwork(Player *Play, gboolean ReadReady, gboolean WriteReady, gboolean *DoneOK) { gboolean DataWaiting = FALSE; *DoneOK = TRUE; if (!Play) return DataWaiting; DataWaiting = NetBufHandleNetwork(&Play->NetBuf, ReadReady, WriteReady, DoneOK); return DataWaiting; } gchar *GetWaitingPlayerMessage(Player *Play) { gchar *unconv, *conv; unconv = GetWaitingMessage(&Play->NetBuf); if (unconv && Conv_Needed(netconv)) { conv = Conv_ToInternal(netconv, unconv, -1); g_free(unconv); return conv; } else { return unconv; } } gboolean ReadPlayerDataFromWire(Player *Play) { return ReadDataFromWire(&Play->NetBuf); } void QueuePlayerMessageForSend(Player *Play, gchar *data) { if (Conv_Needed(netconv)) { gchar *conv = Conv_ToExternal(netconv, data, -1); QueueMessageForSend(&Play->NetBuf, conv); g_free(conv); } else { QueueMessageForSend(&Play->NetBuf, data); } } gboolean WritePlayerDataToWire(Player *Play) { return WriteDataToWire(&Play->NetBuf); } typedef enum { MEC_INTERNAL, MEC_BADREPLY } MetaErrorCode; static void MetaAppendError(GString *str, LastError *error) { switch (error->code) { case MEC_INTERNAL: g_string_sprintfa(str, _("Internal metaserver error \"%s\""), (gchar *)error->data); break; case MEC_BADREPLY: g_string_sprintfa(str, _("Bad metaserver reply \"%s\""), (gchar *)error->data); break; default: g_string_sprintfa(str, _("Unknown metaserver error code %d"), error->code); break; } } static ErrorType ETMeta = { MetaAppendError, NULL }; gboolean OpenMetaHttpConnection(HttpConnection **conn) { gchar *query; gboolean retval; query = g_strdup_printf("%s?output=text&getlist=%d", MetaServer.Path, METAVERSION); retval = OpenHttpConnection(conn, MetaServer.Name, MetaServer.Port, MetaServer.ProxyName, MetaServer.ProxyPort, "", UseSocks && MetaServer.UseSocks ? &Socks : NULL, "GET", query, NULL, NULL); g_free(query); return retval; } gboolean HandleWaitingMetaServerData(HttpConnection *conn, GSList **listpt, gboolean *doneOK) { gchar *msg; ServerData *NewServer; g_assert(conn && listpt && doneOK); /* If we're done reading the headers, only read if the data for a whole * server is available (8 lines) N.B. "Status" is from the _last_ read */ if (conn->Status == HS_READBODY && conn->StatusCode == 200) { if (CountWaitingMessages(&conn->NetBuf) < 8) return FALSE; NewServer = g_new0(ServerData, 1); NewServer->Name = ReadHttpResponse(conn, doneOK); msg = ReadHttpResponse(conn, doneOK); NewServer->Port = atoi(msg); g_free(msg); NewServer->Version = ReadHttpResponse(conn, doneOK); msg = ReadHttpResponse(conn, doneOK); if (msg[0]) NewServer->CurPlayers = atoi(msg); else NewServer->CurPlayers = -1; g_free(msg); msg = ReadHttpResponse(conn, doneOK); NewServer->MaxPlayers = atoi(msg); g_free(msg); NewServer->Update = ReadHttpResponse(conn, doneOK); NewServer->Comment = ReadHttpResponse(conn, doneOK); NewServer->UpSince = ReadHttpResponse(conn, doneOK); *listpt = g_slist_append(*listpt, NewServer); } else if (conn->Status == HS_READSEPARATOR && conn->StatusCode == 200) { /* This should be the first line of the body, the "MetaServer:" line */ msg = ReadHttpResponse(conn, doneOK); if (!msg) return FALSE; if (strlen(msg) >= 14 && strncmp(msg, "FATAL ERROR:", 12) == 0) { SetError(&conn->NetBuf.error, &ETMeta, MEC_INTERNAL, g_strdup(&msg[13])); *doneOK = FALSE; return FALSE; } else if (strncmp(msg, "MetaServer:", 11) != 0) { SetError(&conn->NetBuf.error, &ETMeta, MEC_BADREPLY, g_strdup(msg)); g_free(msg); *doneOK = FALSE; return FALSE; } g_free(msg); } else { msg = ReadHttpResponse(conn, doneOK); if (!msg) return FALSE; g_free(msg); } return TRUE; } void ClearServerList(GSList **listpt) { ServerData *ThisServer; while (*listpt) { ThisServer = (ServerData *)((*listpt)->data); g_free(ThisServer->Name); g_free(ThisServer->Comment); g_free(ThisServer->Version); g_free(ThisServer->Update); g_free(ThisServer->UpSince); g_free(ThisServer); *listpt = g_slist_remove(*listpt, ThisServer); } } #endif /* NETWORKING */ /* * Removes a terminating newline from "str", if one is present. */ void chomp(char *str) { int len = strlen(str); if (str[len - 1] == '\n') str[len - 1] = 0; } /* * Adds the plain text string "unenc" to the end of the GString "str", * replacing "special" characters in the same way as the * application/x-www-form-urlencoded media type, suitable for sending * to CGI scripts etc. */ void AddURLEnc(GString *str, gchar *unenc) { guint i; if (!unenc || !str) return; for (i = 0; i < strlen(unenc); i++) { if ((unenc[i] >= 'a' && unenc[i] <= 'z') || (unenc[i] >= 'A' && unenc[i] <= 'Z') || (unenc[i] >= '0' && unenc[i] <= '9') || unenc[i] == '-' || unenc[i] == '_' || unenc[i] == '.') { g_string_append_c(str, unenc[i]); } else if (unenc[i] == ' ') { g_string_append_c(str, '+'); } else { g_string_sprintfa(str, "%%%02X", unenc[i]); } } } /* * Sends the message made up of AI,Code and Data to all players except * "Except" (if non-NULL). It will be sent by the server, and on behalf of * player "From". */ void BroadcastToClients(AICode AI, MsgCode Code, char *Data, Player *From, Player *Except) { Player *tmp; GSList *list; for (list = FirstServer; list; list = g_slist_next(list)) { tmp = (Player *)list->data; if (IsConnectedPlayer(tmp) && tmp != Except) { SendServerMessage(From, AI, Code, tmp, Data); } } } /* * Encodes an Inventory structure into a string, and sends it as the data * with a server message constructed from the other arguments. */ void SendInventory(Player *From, AICode AI, MsgCode Code, Player *To, Inventory *Guns, Inventory *Drugs) { int i; GString *text; text = g_string_new(NULL); for (i = 0; i < NumGun; i++) { g_string_sprintfa(text, "%d:", Guns ? Guns[i].Carried : 0); } for (i = 0; i < NumDrug; i++) { g_string_sprintfa(text, "%d:", Drugs ? Drugs[i].Carried : 0); } SendServerMessage(From, AI, Code, To, text->str); g_string_free(text, TRUE); } /* * Decodes a string representation (in "Data") to its original Inventory * contents, and stores it in "Guns" and "Drugs" if non-NULL. */ void ReceiveInventory(char *Data, Inventory *Guns, Inventory *Drugs) { int i, val; char *pt; pt = Data; for (i = 0; i < NumGun; i++) { val = GetNextInt(&pt, 0); if (Guns) Guns[i].Carried = val; } for (i = 0; i < NumDrug; i++) { val = GetNextInt(&pt, 0); if (Drugs) Drugs[i].Carried = val; } } /* * Sends all pertinent data about player "To" from the server * to player "To". */ void SendPlayerData(Player *To) { SendSpyReport(To, To); } /* * Sends pertinent data about player "SpiedOn" from the server * to player "To". */ void SendSpyReport(Player *To, Player *SpiedOn) { gchar *cashstr, *debtstr, *bankstr; GString *text; int i; text = g_string_new(NULL); g_string_sprintf(text, "%s^%s^%s^%d^%d^%d^%d^%d^", (cashstr = pricetostr(SpiedOn->Cash)), (debtstr = pricetostr(SpiedOn->Debt)), (bankstr = pricetostr(SpiedOn->Bank)), SpiedOn->Health, SpiedOn->CoatSize, SpiedOn->IsAt, SpiedOn->Turn, SpiedOn->Flags); g_free(cashstr); g_free(debtstr); g_free(bankstr); if (HaveAbility(SpiedOn, A_DATE)) { g_string_sprintfa(text, "%d^%d^%d^", g_date_day(SpiedOn->date), g_date_month(SpiedOn->date), g_date_year(SpiedOn->date)); } for (i = 0; i < NumGun; i++) { g_string_sprintfa(text, "%d^", SpiedOn->Guns[i].Carried); } for (i = 0; i < NumDrug; i++) { g_string_sprintfa(text, "%d^", SpiedOn->Drugs[i].Carried); } if (HaveAbility(To, A_DRUGVALUE)) for (i = 0; i < NumDrug; i++) { g_string_sprintfa(text, "%s^", (cashstr = pricetostr(SpiedOn->Drugs[i].TotalValue))); g_free(cashstr); } g_string_sprintfa(text, "%d", SpiedOn->Bitches.Carried); if (To != SpiedOn) SendServerMessage(SpiedOn, C_NONE, C_UPDATE, To, text->str); else SendServerMessage(NULL, C_NONE, C_UPDATE, To, text->str); g_string_free(text, TRUE); } #define NUMNAMES 11 void SendInitialData(Player *To) { gchar *LocalNames[NUMNAMES] = { Names.Bitch, Names.Bitches, Names.Gun, Names.Guns, Names.Drug, Names.Drugs, Names.Date, Names.LoanSharkName, Names.BankName, Names.GunShopName, Names.RoughPubName }; gint i; GString *text; if (!Network) return; if (!HaveAbility(To, A_TSTRING)) for (i = 0; i < NUMNAMES; i++) { LocalNames[i] = GetDefaultTString(LocalNames[i]); } text = g_string_new(""); g_string_sprintf(text, "%s^%d^%d^%d^", VERSION, NumLocation, NumGun, NumDrug); for (i = 0; i < 6; i++) { g_string_append(text, LocalNames[i]); g_string_append_c(text, '^'); } if (HaveAbility(To, A_DATE)) { g_string_append(text, LocalNames[6]); g_string_append_c(text, '^'); } else { g_string_sprintfa(text, "%d-^-%d^", StartDate.month, StartDate.year); } if (HaveAbility(To, A_PLAYERID)) g_string_sprintfa(text, "%d^", To->ID); /* Player ID is expected after the first 7 names, so send the rest now */ for (i = 7; i < NUMNAMES; i++) { g_string_append(text, LocalNames[i]); g_string_append_c(text, '^'); } if (!HaveAbility(To, A_TSTRING)) for (i = 0; i < NUMNAMES; i++) { g_free(LocalNames[i]); } g_string_sprintfa(text, "%c%s^", Currency.Prefix ? '1' : '0', Currency.Symbol); SendServerMessage(NULL, C_NONE, C_INIT, To, text->str); g_string_free(text, TRUE); } void ReceiveInitialData(Player *Play, char *Data) { char *pt, *ServerVersion, *curr; GSList *list; pt = Data; ServerVersion = GetNextWord(&pt, "(unknown)"); ResizeLocations(GetNextInt(&pt, NumLocation)); ResizeGuns(GetNextInt(&pt, NumGun)); ResizeDrugs(GetNextInt(&pt, NumDrug)); for (list = FirstClient; list; list = g_slist_next(list)) { UpdatePlayer((Player *)list->data); } AssignName(&Names.Bitch, GetNextWord(&pt, "")); AssignName(&Names.Bitches, GetNextWord(&pt, "")); AssignName(&Names.Gun, GetNextWord(&pt, "")); AssignName(&Names.Guns, GetNextWord(&pt, "")); AssignName(&Names.Drug, GetNextWord(&pt, "")); AssignName(&Names.Drugs, GetNextWord(&pt, "")); if (HaveAbility(Play, A_DATE)) { AssignName(&Names.Date, GetNextWord(&pt, "")); } else { gchar *month, *year, *date; month = GetNextWord(&pt, ""); year = GetNextWord(&pt, ""); date = g_strdup_printf("%s%%T%s", month, year); AssignName(&Names.Date, date); g_free(date); } if (HaveAbility(Play, A_PLAYERID)) Play->ID = GetNextInt(&pt, 0); /* Servers up to version 1.4.8 don't send the following names, so * default to the existing values if they haven't been sent */ AssignName(&Names.LoanSharkName, GetNextWord(&pt, Names.LoanSharkName)); AssignName(&Names.BankName, GetNextWord(&pt, Names.BankName)); AssignName(&Names.GunShopName, GetNextWord(&pt, Names.GunShopName)); AssignName(&Names.RoughPubName, GetNextWord(&pt, Names.RoughPubName)); /* Currency data are only sent by versions >= 1.5.3 */ curr = GetNextWord(&pt, NULL); if (curr && strlen(curr) >= 1) { Currency.Prefix = (curr[0] == '1'); AssignName(&Currency.Symbol, &curr[1]); } } void SendMiscData(Player *To) { gchar *text, *prstr[2], *LocalName; int i; gboolean HaveTString; if (!Network) return; HaveTString = HaveAbility(To, A_TSTRING); text = g_strdup_printf("0^%c%s^%s^", DT_PRICES, (prstr[0] = pricetostr(Prices.Spy)), (prstr[1] = pricetostr(Prices.Tipoff))); SendServerMessage(NULL, C_NONE, C_DATA, To, text); g_free(prstr[0]); g_free(prstr[1]); g_free(text); for (i = 0; i < NumGun; i++) { if (HaveTString) LocalName = Gun[i].Name; else LocalName = GetDefaultTString(Gun[i].Name); text = g_strdup_printf("%d^%c%s^%s^%d^%d^", i, DT_GUN, LocalName, (prstr[0] = pricetostr(Gun[i].Price)), Gun[i].Space, Gun[i].Damage); if (!HaveTString) g_free(LocalName); SendServerMessage(NULL, C_NONE, C_DATA, To, text); g_free(prstr[0]); g_free(text); } for (i = 0; i < NumDrug; i++) { if (HaveTString) LocalName = Drug[i].Name; else LocalName = GetDefaultTString(Drug[i].Name); text = g_strdup_printf("%d^%c%s^%s^%s^", i, DT_DRUG, LocalName, (prstr[0] = pricetostr(Drug[i].MinPrice)), (prstr[1] = pricetostr(Drug[i].MaxPrice))); if (!HaveTString) g_free(LocalName); SendServerMessage(NULL, C_NONE, C_DATA, To, text); g_free(prstr[0]); g_free(prstr[1]); g_free(text); } for (i = 0; i < NumLocation; i++) { if (HaveTString) LocalName = Location[i].Name; else LocalName = GetDefaultTString(Location[i].Name); text = g_strdup_printf("%d^%c%s^", i, DT_LOCATION, LocalName); if (!HaveTString) g_free(LocalName); SendServerMessage(NULL, C_NONE, C_DATA, To, text); g_free(text); } } /* * Decodes information about locations, drugs, prices, etc. in "Data" */ void ReceiveMiscData(char *Data) { char *pt, *Name, Type; int i; pt = Data; i = GetNextInt(&pt, 0); Name = GetNextWord(&pt, ""); Type = Name[0]; if (strlen(Name) > 1) { switch (Type) { case DT_LOCATION: if (i >= 0 && i < NumLocation) { AssignName(&Location[i].Name, &Name[1]); Location[i].PolicePresence = 10; Location[i].MinDrug = NumDrug / 2 + 1; Location[i].MaxDrug = NumDrug; } break; case DT_GUN: if (i >= 0 && i < NumGun) { AssignName(&Gun[i].Name, &Name[1]); Gun[i].Price = GetNextPrice(&pt, (price_t)0); Gun[i].Space = GetNextInt(&pt, 0); Gun[i].Damage = GetNextInt(&pt, 0); } break; case DT_DRUG: if (i >= 0 && i < NumDrug) { AssignName(&Drug[i].Name, &Name[1]); Drug[i].MinPrice = GetNextPrice(&pt, (price_t)0); Drug[i].MaxPrice = GetNextPrice(&pt, (price_t)0); } break; case DT_PRICES: Prices.Spy = strtoprice(&Name[1]); Prices.Tipoff = GetNextPrice(&pt, (price_t)0); break; } } } /* * Decode player data from the string "text" into player "From"; "Play" * specifies the player that owns the network connection. */ void ReceivePlayerData(Player *Play, char *text, Player *From) { char *cp; int i; cp = text; From->Cash = GetNextPrice(&cp, (price_t)0); From->Debt = GetNextPrice(&cp, (price_t)0); From->Bank = GetNextPrice(&cp, (price_t)0); From->Health = GetNextInt(&cp, 100); From->CoatSize = GetNextInt(&cp, 0); From->IsAt = GetNextInt(&cp, 0); From->Turn = GetNextInt(&cp, 0); From->Flags = GetNextInt(&cp, 0); if (HaveAbility(Play, A_DATE)) { g_date_set_day(From->date, GetNextInt(&cp, 1)); g_date_set_month(From->date, GetNextInt(&cp, 1)); g_date_set_year(From->date, GetNextInt(&cp, 1980)); } for (i = 0; i < NumGun; i++) { From->Guns[i].Carried = GetNextInt(&cp, 0); } for (i = 0; i < NumDrug; i++) { From->Drugs[i].Carried = GetNextInt(&cp, 0); } if (HaveAbility(Play, A_DRUGVALUE)) { for (i = 0; i < NumDrug; i++) { From->Drugs[i].TotalValue = GetNextPrice(&cp, (price_t)0); } } From->Bitches.Carried = GetNextInt(&cp, 0); } gchar *GetNextWord(gchar **Data, gchar *Default) { gchar *Word; if (*Data == NULL || **Data == '\0') return Default; Word = *Data; while (**Data != '\0' && **Data != '^') (*Data)++; if (**Data != '\0') { **Data = '\0'; (*Data)++; } return Word; } void AssignNextWord(gchar **Data, gchar **Dest) { if (!Dest) return; g_free(*Dest); *Dest = g_strdup(GetNextWord(Data, "")); } int GetNextInt(gchar **Data, int Default) { gchar *Word = GetNextWord(Data, NULL); if (Word) return atoi(Word); else return Default; } price_t GetNextPrice(gchar **Data, price_t Default) { gchar *Word = GetNextWord(Data, NULL); if (Word) return strtoprice(Word); else return Default; } /* * Called when the client is pushed off the server, or the server * terminates. Using the client information, starts a local server * to reproduce the current game situation as best as possible so * that the game can be continued in single player mode. */ void SwitchToSinglePlayer(Player *Play) { if (Network && Client && FirstClient) { Player *NewPlayer; ShutdownNetwork(Play); CleanUpServer(); Network = Server = Client = FALSE; InitAbilities(Play); NewPlayer = g_new(Player, 1); FirstServer = AddPlayer(0, NewPlayer, FirstServer); CopyPlayer(NewPlayer, Play); NewPlayer->Flags = 0; NewPlayer->EventNum = E_ARRIVE; SendEvent(NewPlayer); } } void InitNetwork(void) { netconv = Conv_New(); #ifdef NETWORKING StartNetworking(); #endif } /* * Closes down the client side of the network connection. Clears the list * of client players (with the exception of "you", the player "Play"), * and closes the network socket. */ void ShutdownNetwork(Player *Play) { if (Play != FirstClient->data) { g_error("Oops! FirstClient should be player!"); } while (g_slist_next(FirstClient)) { FirstClient = RemovePlayer((Player *)g_slist_next(FirstClient)->data, FirstClient); } #ifdef NETWORKING ShutdownNetworkBuffer(&Play->NetBuf); #endif Client = Network = Server = FALSE; } /* * Given a "raw" message in "Msg" and a pointer to the start of the linked * list of known players in "First", sets the other arguments to the message * fields. Data is returned as a pointer into the message "Msg", and should * therefore NOT be g_free'd. "Play" is a pointer to the player which is * receiving the message. "Other" is the player that is identified by the * message; for messages to clients, this will be the player "From" which * the message claims to be, while for messages to servers, this will be * the player "To" which to send messages. Returns 0 on success, -1 on failure. */ int ProcessMessage(char *Msg, Player *Play, Player **Other, AICode *AI, MsgCode *Code, char **Data, GSList *First) { gchar *pt, *buf; guint ID; if (!First || !Play) return -1; *AI = C_NONE; *Code = C_PRINTMESSAGE; *Other = &Noone; pt = Msg; if (HaveAbility(Play, A_PLAYERID)) { buf = GetNextWord(&pt, NULL); if (buf && buf[0]) { ID = atoi(buf); *Other = GetPlayerByID(ID, First); } } else { buf = GetNextWord(&pt, NULL); if (Client) *Other = GetPlayerByName(buf, First); buf = GetNextWord(&pt, NULL); if (Server) *Other = GetPlayerByName(buf, First); } if (!(*Other)) return -1; if (strlen(pt) >= 2) { *AI = pt[0]; *Code = pt[1]; *Data = &pt[2]; return 0; } return -1; } /* * Decodes the message data "text" into a list of drug prices for * player "To" */ void ReceiveDrugsHere(char *text, Player *To) { char *cp; int i; To->EventNum = E_ARRIVE; cp = text; for (i = 0; i < NumDrug; i++) { To->Drugs[i].Price = GetNextPrice(&cp, (price_t)0); } } /* * Handles messages that both human clients and AI players deal with * in the same way. */ gboolean HandleGenericClientMessage(Player *From, AICode AI, MsgCode Code, Player *To, char *Data, DispMode *DisplayMode) { Player *tmp; gchar *pt; switch (Code) { case C_LIST: case C_JOIN: tmp = g_new(Player, 1); FirstClient = AddPlayer(0, tmp, FirstClient); pt = Data; SetPlayerName(tmp, GetNextWord(&pt, NULL)); if (HaveAbility(To, A_PLAYERID)) tmp->ID = GetNextInt(&pt, 0); break; case C_DATA: ReceiveMiscData(Data); break; case C_INIT: ReceiveInitialData(To, Data); break; case C_ABILITIES: ReceiveAbilities(To, Data); CombineAbilities(To); break; case C_LEAVE: if (From != &Noone) FirstClient = RemovePlayer(From, FirstClient); break; case C_TRADE: if (DisplayMode) *DisplayMode = DM_DEAL; break; case C_DRUGHERE: ReceiveDrugsHere(Data, To); if (DisplayMode) *DisplayMode = DM_STREET; break; case C_FIGHTPRINT: if (From != &Noone) { From->Flags |= FIGHTING; To->Flags |= CANSHOOT; } if (DisplayMode) *DisplayMode = DM_FIGHT; break; case C_CHANGEDISP: if (DisplayMode) { if (Data[0] == 'N' && *DisplayMode == DM_STREET) *DisplayMode = DM_NONE; if (Data[0] == 'Y' && *DisplayMode == DM_NONE) *DisplayMode = DM_STREET; } break; default: return FALSE; break; } return TRUE; } void SendFightReload(Player *To) { SendFightMessage(To, NULL, 0, F_RELOAD, (price_t)0, FALSE, NULL); } void SendOldCanFireMessage(Player *To, GString *text) { if (To->EventNum == E_FIGHT) { To->EventNum = E_FIGHTASK; if (CanRunHere(To) && To->Health > 0 && !HaveAbility(To, A_NEWFIGHT)) { if (text->len > 0) g_string_append_c(text, '^'); if (TotalGunsCarried(To) == 0) { g_string_prepend(text, "YN^"); g_string_append(text, _("Do you run?")); } else { g_string_prepend(text, "RF^"); g_string_append(text, _("Do you run, or fight?")); } SendQuestion(NULL, C_NONE, To, text->str); } else { SendOldFightPrint(To, text, FALSE); } } } void SendOldFightPrint(Player *To, GString *text, gboolean FightOver) { gboolean Fighting, CanShoot; Fighting = !FightOver; CanShoot = CanPlayerFire(To); To->Flags &= ~(CANSHOOT + FIGHTING); if (Fighting) To->Flags |= FIGHTING; if (Fighting && CanShoot) To->Flags |= CANSHOOT; SendPlayerData(To); To->Flags &= ~(CANSHOOT + FIGHTING); SendServerMessage(NULL, C_NONE, C_FIGHTPRINT, To, text->str); } void SendFightLeave(Player *Play, gboolean FightOver) { SendFightMessage(Play, NULL, 0, FightOver ? F_LASTLEAVE : F_LEAVE, (price_t)0, TRUE, NULL); } void ReceiveFightMessage(gchar *Data, gchar **AttackName, gchar **DefendName, int *DefendHealth, int *DefendBitches, gchar **BitchName, int *BitchesKilled, int *ArmPercent, FightPoint *fp, gboolean *CanRunHere, gboolean *Loot, gboolean *CanFire, gchar **Message) { gchar *pt, *Flags; pt = Data; *AttackName = GetNextWord(&pt, ""); *DefendName = GetNextWord(&pt, ""); *DefendHealth = GetNextInt(&pt, 0); *DefendBitches = GetNextInt(&pt, 0); *BitchName = GetNextWord(&pt, ""); *BitchesKilled = GetNextInt(&pt, 0); *ArmPercent = GetNextInt(&pt, 0); Flags = GetNextWord(&pt, NULL); if (Flags && strlen(Flags) >= 4) { *fp = Flags[0]; *CanRunHere = (Flags[1] == '1'); *Loot = (Flags[2] == '1'); *CanFire = (Flags[3] == '1'); } else { *fp = F_MSG; *CanRunHere = *Loot = *CanFire = FALSE; } *Message = pt; switch (*fp) { case F_HIT: SoundPlay(Sounds.FightHit); if (*BitchesKilled > 0) { SoundPlay(*DefendName[0] ? Sounds.EnemyBitchKilled : Sounds.BitchKilled); } if (*DefendHealth <= 0) { SoundPlay(*DefendName[0] ? Sounds.EnemyKilled : Sounds.Killed); } break; case F_MISS: SoundPlay(Sounds.FightMiss); break; case F_RELOAD: SoundPlay(Sounds.FightReload); break; case F_FAILFLEE: SoundPlay(*AttackName[0] ? Sounds.EnemyFailFlee : Sounds.FailFlee); break; case F_LEAVE: case F_LASTLEAVE: SoundPlay(*AttackName[0] ? Sounds.EnemyFlee : Sounds.Flee); break; default: break; } } void SendFightMessage(Player *Attacker, Player *Defender, int BitchesKilled, FightPoint fp, price_t Loot, gboolean Broadcast, gchar *Msg) { guint ArrayInd; int ArmPercent, Damage, MaxDamage, i; Player *To; GString *text; gchar *BitchName; if (!Attacker->FightArray) return; MaxDamage = Damage = 0; for (i = 0; i < NumGun; i++) { if (Gun[i].Damage > MaxDamage) MaxDamage = Gun[i].Damage; Damage += Gun[i].Damage * Attacker->Guns[i].Carried; } MaxDamage *= (Attacker->Bitches.Carried + 2); ArmPercent = Damage * 100 / MaxDamage; text = g_string_new(""); for (ArrayInd = 0; ArrayInd < Attacker->FightArray->len; ArrayInd++) { To = (Player *)g_ptr_array_index(Attacker->FightArray, ArrayInd); if (!Broadcast && To != Attacker) continue; g_string_truncate(text, 0); if (HaveAbility(To, A_NEWFIGHT)) { if (Defender) { if (IsCop(Defender)) { if (Defender->Bitches.Carried == 1) { BitchName = Cop[Defender->CopIndex - 1].DeputyName; } else { BitchName = Cop[Defender->CopIndex - 1].DeputiesName; } } else { if (Defender->Bitches.Carried == 1) { BitchName = Names.Bitch; } else { BitchName = Names.Bitches; } } } else BitchName = ""; g_string_sprintf(text, "%s^%s^%d^%d^%s^%d^%d^%c%c%c%c^", Attacker == To ? "" : GetPlayerName(Attacker), (Defender == To || Defender == NULL) ? "" : GetPlayerName(Defender), Defender ? Defender->Health : 0, Defender ? Defender->Bitches.Carried : 0, BitchName, BitchesKilled, ArmPercent, fp, CanRunHere(To) ? '1' : '0', Loot ? '1' : '0', fp != F_ARRIVED && fp != F_LASTLEAVE && CanPlayerFire(To) ? '1' : '0'); } if (Msg) { g_string_append(text, Msg); } else { FormatFightMessage(To, text, Attacker, Defender, BitchesKilled, ArmPercent, fp, Loot); } if (HaveAbility(To, A_NEWFIGHT)) { SendServerMessage(NULL, C_NONE, C_FIGHTPRINT, To, text->str); } else if (CanRunHere(To)) { if (fp != F_ARRIVED && fp != F_MSG && fp != F_LASTLEAVE && (fp != F_LEAVE || Attacker != To) && CanPlayerFire(To) && To->EventNum == E_FIGHT) { SendOldCanFireMessage(To, text); } else if (text->len > 0) SendPrintMessage(NULL, C_NONE, To, text->str); } else { SendOldFightPrint(To, text, fp == F_LASTLEAVE); } } g_string_free(text, TRUE); } void FormatFightMessage(Player *To, GString *text, Player *Attacker, Player *Defender, int BitchesKilled, int ArmPercent, FightPoint fp, price_t Loot) { gchar *Armament, *DefendName, *AttackName; int Health, Bitches; gchar *BitchName, *BitchesName; if (Defender && IsCop(Defender)) { BitchName = Cop[Defender->CopIndex - 1].DeputyName; BitchesName = Cop[Defender->CopIndex - 1].DeputiesName; } else { BitchName = Names.Bitch; BitchesName = Names.Bitches; } AttackName = (!Attacker || Attacker == To ? "" : GetPlayerName(Attacker)); DefendName = (!Defender || Defender == To ? "" : GetPlayerName(Defender)); Health = Defender ? Defender->Health : 0; Bitches = Defender ? Defender->Bitches.Carried : 0; switch (fp) { case F_ARRIVED: Armament = ArmPercent < 10 ? _("pitifully armed") : ArmPercent < 25 ? _("lightly armed") : ArmPercent < 60 ? _("moderately well armed") : ArmPercent < 80 ? _("heavily armed") : _("armed to the teeth"); if (DefendName[0]) { if (IsCop(Defender) && !AttackName[0]) { if (Bitches == 0) { dpg_string_sprintfa(text, _("%s - %s - is chasing you, man!"), DefendName, Armament); } else { dpg_string_sprintfa(text, _("%s and %d %tde - %s - are chasing you, man!"), DefendName, Bitches, BitchesName, Armament); } } else { dpg_string_sprintfa(text, _("%s arrives with %d %tde, %s!"), DefendName, Bitches, BitchesName, Armament); } } break; case F_STAND: if (AttackName[0]) { g_string_sprintfa(text, _("%s stands and takes it"), AttackName); } else { g_string_append(text, _("You stand there like a dummy.")); } break; case F_FAILFLEE: if (AttackName[0]) { g_string_sprintfa(text, _("%s tries to get away, but fails."), AttackName); } else { g_string_append(text, _("Panic! You can't get away!")); } break; case F_LEAVE: case F_LASTLEAVE: if (Attacker->Health > 0) { if (AttackName[0]) { if (!IsCop(Attacker) && brandom(0, 100) < 70 && Attacker->IsAt >= 0) { dpg_string_sprintfa(text, _("%s has got away to %tde!"), AttackName, Location[Attacker->IsAt].Name); } else { g_string_sprintfa(text, _("%s has got away!"), AttackName); } } else { g_string_sprintfa(text, _("You got away!")); } } break; case F_RELOAD: if (!AttackName[0]) { g_string_append(text, _("Guns reloaded...")); } break; case F_MISS: if (AttackName[0] && DefendName[0]) { g_string_sprintfa(text, _("%s shoots at %s... and misses!"), AttackName, DefendName); } else if (AttackName[0]) { g_string_sprintfa(text, _("%s shoots at you... and misses!"), AttackName); } else if (DefendName[0]) { g_string_sprintfa(text, _("You missed %s!"), DefendName); } break; case F_HIT: if (AttackName[0] && DefendName[0]) { if (Health == 0 && Bitches == 0) { g_string_sprintfa(text, _("%s shoots %s dead."), AttackName, DefendName); } else if (BitchesKilled) { dpg_string_sprintfa(text, _("%s shoots at %s and kills a %tde!"), AttackName, DefendName, BitchName); } else { g_string_sprintfa(text, _("%s shoots at %s."), AttackName, DefendName); } } else if (AttackName[0]) { if (Health == 0 && Bitches == 0) { g_string_sprintfa(text, _("%s wasted you, man! What a drag!"), AttackName); } else if (BitchesKilled) { dpg_string_sprintfa(text, _("%s shoots at you... and kills a %tde!"), AttackName, BitchName); } else { g_string_sprintfa(text, _("%s hits you, man!"), AttackName); } } else if (DefendName[0]) { if (Health == 0 && Bitches == 0) { g_string_sprintfa(text, _("You killed %s!"), DefendName); } else if (BitchesKilled) { dpg_string_sprintfa(text, _("You hit %s, and killed a %tde!"), DefendName, BitchName); } else { g_string_sprintfa(text, _("You hit %s!"), DefendName); } if (Loot > 0) { dpg_string_sprintfa(text, _(" You find %P on the body!"), Loot); } else if (Loot < 0) { g_string_append(text, _(" You loot the body!")); } } break; case F_MSG: break; } } dopewars-1.5.12/src/log.c0000644001565000007070000000743110355322765012103 00000000000000/************************************************************************ * log.c dopewars - logging functions * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #ifdef HAVE_SYSLOG_H #include #endif #include "dopewars.h" #include "log.h" /* * General logging function. All messages should be given a loglevel, * from 0 to 5 (0=vital, 2=normal, 5=maximum debugging output). This * is essentially just a wrapper around the GLib g_log function. */ void dopelog(const int loglevel, const LogFlags flags, const gchar *format, ...) { va_list args; /* Don't print server log messages when running standalone */ if (flags & LF_SERVER && !Network) return; va_start(args, format); g_logv(G_LOG_DOMAIN, 1 << (loglevel + G_LOG_LEVEL_USER_SHIFT), format, args); va_end(args); #ifdef HAVE_SYSLOG_H if (loglevel <= Log.Level) { va_start(args, format); vsyslog(LOG_INFO, format, args); va_end(args); } #endif } /* * Returns the bitmask necessary to catch all custom log messages. */ GLogLevelFlags LogMask() { return ((1 << (MAXLOG)) - 1) << G_LOG_LEVEL_USER_SHIFT; } /* * Returns the text to be displayed in a log message, if any. */ GString *GetLogString(GLogLevelFlags log_level, const gchar *message) { GString *text; gchar TimeBuf[80]; gint i; time_t tim; struct tm *timep; text = g_string_new(""); if (Log.Timestamp) { tim = time(NULL); timep = localtime(&tim); strftime(TimeBuf, 80, Log.Timestamp, timep); TimeBuf[79] = '\0'; g_string_append(text, TimeBuf); } for (i = 0; i < MAXLOG; i++) if (log_level & (1 << (G_LOG_LEVEL_USER_SHIFT + i))) { if (i > Log.Level) { g_string_free(text, TRUE); return NULL; } g_string_sprintfa(text, "%d: ", i); } g_string_append(text, message); return text; } void OpenLog(void) { CloseLog(); #ifdef HAVE_SYSLOG_H openlog(PACKAGE, LOG_PID, LOG_USER); #endif if (Log.File[0] == '\0') return; Log.fp = fopen(Log.File, "a"); if (Log.fp) { #ifdef SETVBUF_REVERSED /* 2nd and 3rd arguments are reversed on * some systems */ setvbuf(Log.fp, _IOLBF, (char *)NULL, 0); #else setvbuf(Log.fp, (char *)NULL, _IOLBF, 0); #endif } } void CloseLog(void) { if (Log.fp) fclose(Log.fp); Log.fp = NULL; } dopewars-1.5.12/src/winmain.h0000644001565000007070000000324510355116554012765 00000000000000/************************************************************************ * winmain.h Startup code and support for the Win32 platform * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_WINMAIN_H__ #define __DP_WINMAIN_H__ #ifdef CYGWIN gchar *GetBinaryDir(void); #endif /* CYGWIN */ #endif /* __DP_WINMAIN_H__ */ dopewars-1.5.12/src/winmain.c0000644001565000007070000002403510355322765012763 00000000000000/************************************************************************ * winmain.c Startup code and support for the Win32 platform * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef CYGWIN #include #include #include #include #include "dopewars.h" #include "log.h" #include "nls.h" #include "tstring.h" #include "util.h" #include "AIPlayer.h" #include "message.h" #include "serverside.h" #include "sound.h" #include "winmain.h" #ifdef CURSES_CLIENT #include "curses_client/curses_client.h" #endif #ifdef GUI_CLIENT #include "gui_client/gtk_client.h" #endif #ifdef GUI_SERVER #include "gtkport/gtkport.h" #endif static void ServerLogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { GString *text; text = GetLogString(log_level, message); if (text) { g_print("%s\n", text->str); g_string_free(text, TRUE); } } static void ServerPrintFunc(const gchar *string) { DWORD NumChar; WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), string, strlen(string), &NumChar, NULL); } static void LogMessage(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { MessageBox(NULL, message, "Error", MB_OK | MB_ICONSTOP); } static GString *TextOutput = NULL; static void WindowPrintStart() { TextOutput = g_string_new(""); } static void WindowPrintFunc(const gchar *string) { g_string_append(TextOutput, string); } static void WindowPrintEnd() { MessageBox(NULL, TextOutput->str, "dopewars", MB_OK | MB_ICONINFORMATION); g_string_free(TextOutput, TRUE); TextOutput = NULL; } static FILE *LogFile = NULL; static void LogFileStart() { LogFile = fopen("dopewars-log.txt", "w"); } static void LogFilePrintFunc(const gchar *string) { if (LogFile) { fputs(string, LogFile); fflush(LogFile); } } static void LogFileEnd(void) { if (LogFile) fclose(LogFile); } gchar *GetBinaryDir(void) { gchar *filename = NULL, *lastslash; gint filelen = 80; DWORD retval; while (1) { filename = g_realloc(filename, filelen); filename[filelen - 1] = '\0'; retval = GetModuleFileName(NULL, filename, filelen); if (retval == 0) { g_free(filename); filename = NULL; break; } else if (filename[filelen - 1]) { filelen *= 2; } else break; } if (filename) { lastslash = strrchr(filename, '\\'); if (lastslash) *lastslash = '\0'; } return filename; } #ifdef ENABLE_NLS static gchar *GetWindowsLocale(void) { LCID userID; WORD lang, sublang; static gchar langenv[30]; /* Should only be 5 chars, so * this'll be plenty */ gchar *oldlang; langenv[0] = '\0'; strcpy(langenv, "LANG="); oldlang = getenv("LANG"); if (oldlang) { g_print("Started with LANG = %s\n", oldlang); return NULL; } userID = GetUserDefaultLCID(); lang = PRIMARYLANGID(LANGIDFROMLCID(userID)); sublang = SUBLANGID(LANGIDFROMLCID(userID)); switch (lang) { case LANG_ENGLISH: strcat(langenv, "en"); if (sublang == SUBLANG_ENGLISH_UK) { strcat(langenv, "_GB"); } break; case LANG_FRENCH: strcat(langenv, "fr"); if (sublang == SUBLANG_FRENCH_CANADIAN) { strcat(langenv, "_CA"); } break; case LANG_GERMAN: strcat(langenv, "de"); break; case LANG_POLISH: strcat(langenv, "pl"); break; case LANG_SPANISH: strcat(langenv, "es"); if (sublang == SUBLANG_SPANISH) { strcat(langenv, "_ES"); } break; case LANG_NORWEGIAN: if (sublang == SUBLANG_NORWEGIAN_NYNORSK) { strcat(langenv, "nn"); } else { strcat(langenv, "no"); } break; case LANG_PORTUGUESE: strcat(langenv, "pt"); if (sublang == SUBLANG_PORTUGUESE_BRAZILIAN) { strcat(langenv, "_BR"); } break; } if (strlen(langenv) > 5) { g_print("Using Windows language %s\n", langenv); return langenv; } else return NULL; } #endif /* ENABLE_NLS */ /* * Converts the passed lpszCmdParam WinMain-style command line into * Unix-style (argc, argv) parameters (returned). */ void get_cmdline(const LPSTR lpszCmdParam, int *argc, gchar ***argv) { gchar **split; gchar *tmp_cmdline; tmp_cmdline = g_strdup_printf("%s %s", PACKAGE, lpszCmdParam); split = g_strsplit(tmp_cmdline, " ", 0); *argc = 0; while (split[*argc] && split[*argc][0]) { (*argc)++; } *argv = split; g_free(tmp_cmdline); } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { gchar **argv; int argc; gboolean is_service; gchar *modpath; struct CMDLINE *cmdline; #ifdef ENABLE_NLS gchar *winlocale; #endif /* Are we running as an NT service? */ is_service = (lpszCmdParam && strncmp(lpszCmdParam, "-N", 2) == 0); if (is_service) { modpath = GetBinaryDir(); SetCurrentDirectory(modpath); g_free(modpath); } LogFileStart(); g_set_print_handler(LogFilePrintFunc); g_log_set_handler(NULL, LogMask() | G_LOG_LEVEL_MESSAGE, ServerLogMessage, NULL); if (!is_service) { g_log_set_handler(NULL, G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL, LogMessage, NULL); } #ifdef ENABLE_NLS winlocale = GetWindowsLocale(); if (winlocale) putenv(winlocale); setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); #endif /* Informational comment placed at the start of the Windows log file * (this is used for messages printed during processing of the config * files - under Unix these are just printed to stdout) */ g_print(_("# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n\n")); get_cmdline(lpszCmdParam, &argc, &argv); cmdline = GeneralStartup(argc, argv); if (cmdline->logfile) { AssignName(&Log.File, cmdline->logfile); } OpenLog(); SoundInit(); if (cmdline->version || cmdline->help) { WindowPrintStart(); g_set_print_handler(WindowPrintFunc); HandleHelpTexts(cmdline->help); WindowPrintEnd(); #ifdef NETWORKING } else if (is_service) { InitNetwork(); Network = Server = TRUE; win32_init(hInstance, hPrevInstance, "mainicon"); ServiceMain(cmdline); StopNetworking(); #endif } else if (cmdline->convert) { WindowPrintStart(); g_set_print_handler(WindowPrintFunc); ConvertHighScoreFile(cmdline->convertfile); WindowPrintEnd(); } else { InitNetwork(); if (cmdline->server) { #ifdef NETWORKING #ifdef GUI_SERVER Server = TRUE; g_log_set_handler(NULL, G_LOG_LEVEL_CRITICAL, LogMessage, NULL); win32_init(hInstance, hPrevInstance, "mainicon"); GuiServerLoop(cmdline, FALSE); #else AllocConsole(); SetConsoleTitle(_("dopewars server")); g_log_set_handler(NULL, LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING, ServerLogMessage, NULL); g_set_print_handler(ServerPrintFunc); newterm(NULL, NULL, NULL); ServerLoop(cmdline); #endif /* GUI_SERVER */ #else WindowPrintStart(); g_set_print_handler(WindowPrintFunc); g_print(_("This binary has been compiled without networking " "support, and thus cannot run\nin server mode. " "Recompile passing --enable-networking to the " "configure script.\n")); WindowPrintEnd(); #endif /* NETWORKING */ } else if (cmdline->ai) { AllocConsole(); /* Title of the Windows window used for AI player output */ SetConsoleTitle(_("dopewars AI")); g_log_set_handler(NULL, LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING, ServerLogMessage, NULL); g_set_print_handler(ServerPrintFunc); AIPlayerLoop(cmdline); } else { switch (cmdline->client) { case CLIENT_AUTO: if (!GtkLoop(hInstance, hPrevInstance, cmdline, TRUE)) { AllocConsole(); SetConsoleTitle(_("dopewars")); CursesLoop(cmdline); } break; case CLIENT_WINDOW: GtkLoop(hInstance, hPrevInstance, cmdline, FALSE); break; case CLIENT_CURSES: AllocConsole(); SetConsoleTitle(_("dopewars")); CursesLoop(cmdline); break; } } #ifdef NETWORKING StopNetworking(); #endif } FreeCmdLine(cmdline); CloseLog(); LogFileEnd(); g_strfreev(argv); CloseHighScoreFile(); g_free(PidFile); g_free(Log.File); SoundClose(); return 0; } #endif /* CYGWIN */ dopewars-1.5.12/src/serverside.h0000644001565000007070000000673510355116554013505 00000000000000/************************************************************************ * serverside.h Server-side parts of dopewars * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_SERVERSIDE_H__ #define __DP_SERVERSIDE_H__ #ifdef HAVE_CONFIG_H #include #endif #include "dopewars.h" extern GSList *FirstServer; extern char *PidFile; void CleanUpServer(void); void BreakHandle(int sig); void ClientLeftServer(Player *Play); void StopServer(void); Player *HandleNewConnection(void); void ServerLoop(struct CMDLINE *cmdline); void HandleServerPlayer(Player *Play); void HandleServerMessage(gchar *buf, Player *ReallyFrom); void FinishGame(Player *Play, char *Message); void SendHighScores(Player *Play, gboolean EndGame, char *Message); void SendEvent(Player *To); void SendDrugsHere(Player *To, gboolean DisplayBusts); void BuyObject(Player *From, char *data); int RandomOffer(Player *To); void HandleAnswer(Player *From, Player *To, char *answer); void ClearPrices(Player *Play); int LoseBitch(Player *Play, Inventory *Guns, Inventory *Drugs); void GainBitch(Player *Play); void SetFightTimeout(Player *Play); void ClearFightTimeout(Player *Play); int GetMinimumTimeout(GSList *First); GSList *HandleTimeouts(GSList *First); void ConvertHighScoreFile(const gchar *convertfile); void OpenHighScoreFile(void); gboolean CheckHighScoreFileConfig(void); void CloseHighScoreFile(void); gboolean HighScoreRead(FILE *fp, struct HISCORE *MultiScore, struct HISCORE *AntiqueScore, gboolean ReadHeader); void CopsAttackPlayer(Player *Play); void AttackPlayer(Player *Play, Player *Attacked); gboolean IsOpponent(Player *Play, Player *Other); void Fire(Player *Play); void WithdrawFromCombat(Player *Play); void RunFromCombat(Player *Play, int ToLocation); gboolean CanPlayerFire(Player *Play); gboolean CanRunHere(Player *Play); Player *GetNextShooter(Player *Play); void DropPrivileges(void); #ifdef GUI_SERVER void GuiServerLoop(struct CMDLINE *cmdline, gboolean is_service); #ifdef CYGWIN void ServiceMain(struct CMDLINE *cmdline); #endif #endif #ifndef CYGWIN gchar *GetLocalSocket(void); #endif #endif /* __DP_SERVERSIDE_H__ */ dopewars-1.5.12/src/admin.h0000644001565000007070000000341610355116554012413 00000000000000/************************************************************************ * admin.h Header file for dopewars server administration * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_ADMIN_H__ #define __DP_ADMIN_H__ #ifdef HAVE_CONFIG_H #include #endif #if !defined(CYGWIN) && defined(NETWORKING) struct CMDLINE; void AdminServer(struct CMDLINE *cmdline); #endif /* CYGWIN */ #endif /* __DP_ADMIN_H__ */ dopewars-1.5.12/src/network.c0000644001565000007070000013416510355116554013015 00000000000000/************************************************************************ * network.c Low-level networking routines * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef NETWORKING #ifdef CYGWIN #include /* For datatypes such as BOOL */ #include /* For network functions */ #else #include /* For size_t etc. */ #include /* For struct sockaddr etc. */ #include /* For struct sockaddr_in etc. */ #include /* For socklen_t */ #include /* For getpwuid */ #include /* For memcpy, strlen etc. */ #ifdef HAVE_UNISTD_H #include /* For close(), various types and * constants */ #endif #ifdef HAVE_FCNTL_H #include /* For fcntl() */ #endif #include /* For gethostbyname() */ #endif /* CYGWIN */ #include #include /* For errno and Unix error codes */ #include /* For exit() and atoi() */ #include /* For perror() */ #include "error.h" #include "network.h" #include "nls.h" /* Maximum sizes (in bytes) of read and write buffers - connections should * be dropped if either buffer is filled */ #define MAXREADBUF (32768) #define MAXWRITEBUF (65536) /* SOCKS5 authentication method codes */ typedef enum { SM_NOAUTH = 0, /* No authentication required */ SM_GSSAPI = 1, /* GSSAPI */ SM_USERPASSWD = 2 /* Username/password authentication */ } SocksMethods; static gboolean StartSocksNegotiation(NetworkBuffer *NetBuf, gchar *RemoteHost, unsigned RemotePort); static gboolean StartConnect(int *fd, const gchar *bindaddr, gchar *RemoteHost, unsigned RemotePort, gboolean *doneOK, LastError **error); /* * g_strsplit from GLIB1 behaves differently to GLIB2, so we use this * wrapper function to give the GLIB2 behaviour in all circumstances. */ static gchar **my_strsplit(const gchar *string, const gchar *delim, gint max_tokens) { #ifdef HAVE_GLIB2 return g_strsplit(string, delim, max_tokens); #else return g_strsplit(string, delim, max_tokens - 1); #endif } #ifdef CYGWIN void StartNetworking() { WSADATA wsaData; LastError *error; GString *errstr; if (WSAStartup(MAKEWORD(1, 0), &wsaData) != 0) { error = NewError(ET_WINSOCK, WSAGetLastError(), NULL); errstr = g_string_new(""); g_string_assign_error(errstr, error); g_log(NULL, G_LOG_LEVEL_CRITICAL, _("Cannot initialise WinSock (%s)!"), errstr->str); g_string_free(errstr, TRUE); FreeError(error); exit(EXIT_FAILURE); } } void StopNetworking() { WSACleanup(); } void SetReuse(SOCKET sock) { BOOL i = TRUE; if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *)&i, sizeof(i)) == -1) { perror("setsockopt"); exit(EXIT_FAILURE); } } void SetBlocking(SOCKET sock, gboolean blocking) { unsigned long param; param = blocking ? 0 : 1; ioctlsocket(sock, FIONBIO, ¶m); } #else void StartNetworking() { } void StopNetworking() { } void SetReuse(int sock) { int i = 1; if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)) == -1) { perror("setsockopt"); exit(EXIT_FAILURE); } } void SetBlocking(int sock, gboolean blocking) { fcntl(sock, F_SETFL, blocking ? 0 : O_NONBLOCK); } #endif /* CYGWIN */ static gboolean FinishConnect(int fd, LastError **error); static void NetBufCallBack(NetworkBuffer *NetBuf, gboolean CallNow) { if (NetBuf && NetBuf->CallBack) { (*NetBuf->CallBack) (NetBuf, NetBuf->status != NBS_PRECONNECT, (NetBuf->status == NBS_CONNECTED && NetBuf->WriteBuf.DataPresent) || (NetBuf->status == NBS_SOCKSCONNECT && NetBuf->negbuf.DataPresent) || NetBuf->WaitConnect, CallNow); } } static void NetBufCallBackStop(NetworkBuffer *NetBuf) { if (NetBuf && NetBuf->CallBack) { (*NetBuf->CallBack) (NetBuf, FALSE, FALSE, FALSE); } } static void InitConnBuf(ConnBuf *buf) { buf->Data = NULL; buf->Length = 0; buf->DataPresent = 0; } static void FreeConnBuf(ConnBuf *buf) { g_free(buf->Data); InitConnBuf(buf); } /* * Initialises the passed network buffer, ready for use. Messages sent * or received on the buffered connection will be terminated by the * given character, and if they end in "StripChar" it will be removed * before the messages are sent or received. */ void InitNetworkBuffer(NetworkBuffer *NetBuf, char Terminator, char StripChar, SocksServer *socks) { NetBuf->fd = -1; NetBuf->InputTag = 0; NetBuf->CallBack = NULL; NetBuf->CallBackData = NULL; NetBuf->Terminator = Terminator; NetBuf->StripChar = StripChar; InitConnBuf(&NetBuf->ReadBuf); InitConnBuf(&NetBuf->WriteBuf); InitConnBuf(&NetBuf->negbuf); NetBuf->WaitConnect = FALSE; NetBuf->status = NBS_PRECONNECT; NetBuf->socks = socks; NetBuf->host = NULL; NetBuf->userpasswd = NULL; NetBuf->error = NULL; } void SetNetworkBufferCallBack(NetworkBuffer *NetBuf, NBCallBack CallBack, gpointer CallBackData) { NetBufCallBackStop(NetBuf); NetBuf->CallBack = CallBack; NetBuf->CallBackData = CallBackData; NetBufCallBack(NetBuf, FALSE); } /* * Sets the function used to obtain a username and password for SOCKS5 * username/password authentication. */ void SetNetworkBufferUserPasswdFunc(NetworkBuffer *NetBuf, NBUserPasswd userpasswd, gpointer data) { NetBuf->userpasswd = userpasswd; NetBuf->userpasswddata = data; } /* * Sets up the given network buffer to handle data being sent/received * through the given socket. */ void BindNetworkBufferToSocket(NetworkBuffer *NetBuf, int fd) { NetBuf->fd = fd; SetBlocking(fd, FALSE); /* We only deal with non-blocking sockets */ NetBuf->status = NBS_CONNECTED; /* Assume the socket is connected */ } /* * Returns TRUE if the pointer is to a valid network buffer, and it's * connected to an active socket. */ gboolean IsNetworkBufferActive(NetworkBuffer *NetBuf) { return (NetBuf && NetBuf->fd >= 0); } gboolean StartNetworkBufferConnect(NetworkBuffer *NetBuf, const gchar *bindaddr, gchar *RemoteHost, unsigned RemotePort) { gchar *realhost; unsigned realport; gboolean doneOK; ShutdownNetworkBuffer(NetBuf); if (NetBuf->socks) { realhost = NetBuf->socks->name; realport = NetBuf->socks->port; } else { realhost = RemoteHost; realport = RemotePort; } if (StartConnect(&NetBuf->fd, bindaddr, realhost, realport, &doneOK, &NetBuf->error)) { /* If we connected immediately, then set status, otherwise signal that * we're waiting for the connect to complete */ if (doneOK) { NetBuf->status = NetBuf->socks ? NBS_SOCKSCONNECT : NBS_CONNECTED; NetBuf->sockstat = NBSS_METHODS; } else { NetBuf->WaitConnect = TRUE; } if (NetBuf->socks && !StartSocksNegotiation(NetBuf, RemoteHost, RemotePort)) { return FALSE; } /* Notify the owner if necessary to check for the connection * completing and/or for data to be writeable */ NetBufCallBack(NetBuf, FALSE); return TRUE; } else { return FALSE; } } /* * Frees the network buffer's data structures (leaving it in the * 'initialised' state) and closes the accompanying socket. */ void ShutdownNetworkBuffer(NetworkBuffer *NetBuf) { NetBufCallBackStop(NetBuf); if (NetBuf->fd >= 0) CloseSocket(NetBuf->fd); FreeConnBuf(&NetBuf->ReadBuf); FreeConnBuf(&NetBuf->WriteBuf); FreeConnBuf(&NetBuf->negbuf); FreeError(NetBuf->error); NetBuf->error = NULL; g_free(NetBuf->host); InitNetworkBuffer(NetBuf, NetBuf->Terminator, NetBuf->StripChar, NetBuf->socks); } /* * Updates the sets of read and write file descriptors to monitor * input to/output from the given network buffer. MaxSock is updated * with the highest-numbered file descriptor (plus 1) for use in a * later select() call. */ void SetSelectForNetworkBuffer(NetworkBuffer *NetBuf, fd_set *readfds, fd_set *writefds, fd_set *errorfds, int *MaxSock) { if (!NetBuf || NetBuf->fd <= 0) return; FD_SET(NetBuf->fd, readfds); if (errorfds) FD_SET(NetBuf->fd, errorfds); if (NetBuf->fd >= *MaxSock) *MaxSock = NetBuf->fd + 1; if ((NetBuf->status == NBS_CONNECTED && NetBuf->WriteBuf.DataPresent) || (NetBuf->status == NBS_SOCKSCONNECT && NetBuf->negbuf.DataPresent) || NetBuf->WaitConnect) { FD_SET(NetBuf->fd, writefds); } } typedef enum { SEC_5FAILURE = 1, SEC_5RULESET = 2, SEC_5NETDOWN = 3, SEC_5UNREACH = 4, SEC_5CONNREF = 5, SEC_5TTLEXPIRED = 6, SEC_5COMMNOSUPP = 7, SEC_5ADDRNOSUPP = 8, SEC_REJECT = 91, SEC_NOIDENTD = 92, SEC_IDMISMATCH = 93, SEC_UNKNOWN = 200, SEC_AUTHFAILED, SEC_USERCANCEL, SEC_ADDRTYPE, SEC_REPLYVERSION, SEC_VERSION, SEC_NOMETHODS } SocksErrorCode; static ErrTable SocksErrStr[] = { /* SOCKS version 5 error messages */ {SEC_5FAILURE, N_("SOCKS server general failure")}, {SEC_5RULESET, N_("Connection denied by SOCKS ruleset")}, {SEC_5NETDOWN, N_("SOCKS: Network unreachable")}, {SEC_5UNREACH, N_("SOCKS: Host unreachable")}, {SEC_5CONNREF, N_("SOCKS: Connection refused")}, {SEC_5TTLEXPIRED, N_("SOCKS: TTL expired")}, {SEC_5COMMNOSUPP, N_("SOCKS: Command not supported")}, {SEC_5ADDRNOSUPP, N_("SOCKS: Address type not supported")}, {SEC_NOMETHODS, N_("SOCKS server rejected all offered methods")}, {SEC_ADDRTYPE, N_("Unknown SOCKS address type returned")}, {SEC_AUTHFAILED, N_("SOCKS authentication failed")}, {SEC_USERCANCEL, N_("SOCKS authentication cancelled by user")}, /* SOCKS version 4 error messages */ {SEC_REJECT, N_("SOCKS: Request rejected or failed")}, {SEC_NOIDENTD, N_("SOCKS: Rejected - unable to contact identd")}, {SEC_IDMISMATCH, N_("SOCKS: Rejected - identd reports different user-id")}, /* SOCKS errors due to protocol violations */ {SEC_UNKNOWN, N_("Unknown SOCKS reply code")}, {SEC_REPLYVERSION, N_("Unknown SOCKS reply version code")}, {SEC_VERSION, N_("Unknown SOCKS server version")}, {0, NULL} }; static void SocksAppendError(GString *str, LastError *error) { LookupErrorCode(str, error->code, SocksErrStr, _("SOCKS error code %d")); } static ErrorType ETSocks = { SocksAppendError, NULL }; typedef enum { HEC_TRIESEX = 1, HEC_BADAUTH, HEC_BADREDIR, HEC_BADSTATUS, HEC_OK = 200, HEC_REDIRECT = 300, HEC_MOVEPERM = 301, HEC_MOVETEMP = 302, HEC_CLIENTERR = 400, HEC_AUTHREQ = 401, HEC_PROXYAUTH = 407, HEC_FORBIDDEN = 403, HEC_NOTFOUND = 404, HEC_SERVERERR = 500 } HTTPErrorCode; static void HTTPAppendError(GString *str, LastError *error) { switch (error->code) { case HEC_TRIESEX: /* Various HTTP error messages */ g_string_append(str, _("Number of tries exceeded")); break; case HEC_BADAUTH: g_string_sprintfa(str, _("Bad auth header: %s"), (gchar *)error->data); break; case HEC_BADREDIR: g_string_sprintfa(str, _("Bad redirect: %s"), (gchar *)error->data); break; case HEC_BADSTATUS: g_string_sprintfa(str, _("Invalid HTTP status line: %s"), (gchar *)error->data); break; case HEC_FORBIDDEN: g_string_append(str, _("403: forbidden")); break; case HEC_NOTFOUND: g_string_append(str, _("404: page not found")); break; case HEC_AUTHREQ: g_string_append(str, _("401: HTTP authentication failed")); break; case HEC_PROXYAUTH: g_string_append(str, _("407: HTTP proxy authentication failed")); break; case HEC_MOVETEMP: case HEC_MOVEPERM: g_string_append(str, _("Bad redirect message from server")); break; default: if (error->code < HEC_REDIRECT || error->code >= 600) { g_string_sprintfa(str, _("Unknown HTTP error %d"), error->code); } else if (error->code < HEC_CLIENTERR) { g_string_sprintfa(str, _("%d: redirect error"), error->code); } else if (error->code < HEC_SERVERERR) { g_string_sprintfa(str, _("%d: HTTP client error"), error->code); } else { g_string_sprintfa(str, _("%d: HTTP server error"), error->code); } break; } } static ErrorType ETHTTP = { HTTPAppendError, NULL }; static gboolean Socks5UserPasswd(NetworkBuffer *NetBuf) { if (!NetBuf->userpasswd) { SetError(&NetBuf->error, &ETSocks, SEC_NOMETHODS, NULL); return FALSE; } else { /* Request a username and password (the callback function should in * turn call SendSocks5UserPasswd when it's done) */ NetBuf->sockstat = NBSS_USERPASSWD; (*NetBuf->userpasswd) (NetBuf, NetBuf->userpasswddata); return TRUE; } } void SendSocks5UserPasswd(NetworkBuffer *NetBuf, gchar *user, gchar *password) { gchar *addpt; guint addlen; ConnBuf *conn; if (!user || !password || !user[0] || !password[0]) { SetError(&NetBuf->error, &ETSocks, SEC_USERCANCEL, NULL); NetBufCallBack(NetBuf, TRUE); return; } conn = &NetBuf->negbuf; addlen = 3 + strlen(user) + strlen(password); addpt = ExpandWriteBuffer(conn, addlen, &NetBuf->error); if (!addpt || strlen(user) > 255 || strlen(password) > 255) { SetError(&NetBuf->error, ET_CUSTOM, E_FULLBUF, NULL); NetBufCallBack(NetBuf, TRUE); return; } addpt[0] = 1; /* Subnegotiation version code */ addpt[1] = strlen(user); strcpy(&addpt[2], user); addpt[2 + strlen(user)] = strlen(password); strcpy(&addpt[3 + strlen(user)], password); CommitWriteBuffer(NetBuf, conn, addpt, addlen); } static gboolean Socks5Connect(NetworkBuffer *NetBuf) { gchar *addpt; guint addlen, hostlen; ConnBuf *conn; unsigned short int netport; conn = &NetBuf->negbuf; g_assert(NetBuf->host); hostlen = strlen(NetBuf->host); if (hostlen > 255) return FALSE; netport = htons(NetBuf->port); g_assert(sizeof(netport) == 2); addlen = hostlen + 7; addpt = ExpandWriteBuffer(conn, addlen, &NetBuf->error); if (!addpt) return FALSE; addpt[0] = 5; /* SOCKS version 5 */ addpt[1] = 1; /* CONNECT */ addpt[2] = 0; /* reserved - must be zero */ addpt[3] = 3; /* Address type - FQDN */ addpt[4] = hostlen; /* Length of address */ strcpy(&addpt[5], NetBuf->host); memcpy(&addpt[5 + hostlen], &netport, sizeof(netport)); NetBuf->sockstat = NBSS_CONNECT; CommitWriteBuffer(NetBuf, conn, addpt, addlen); return TRUE; } static gboolean HandleSocksReply(NetworkBuffer *NetBuf) { gchar *data; guchar addrtype; guint replylen; gboolean retval = TRUE; if (NetBuf->socks->version == 5) { if (NetBuf->sockstat == NBSS_METHODS) { data = GetWaitingData(NetBuf, 2); if (data) { retval = FALSE; if (data[0] != 5) { SetError(&NetBuf->error, &ETSocks, SEC_VERSION, NULL); } else if (data[1] == SM_NOAUTH) { retval = Socks5Connect(NetBuf); } else if (data[1] == SM_USERPASSWD) { retval = Socks5UserPasswd(NetBuf); } else { SetError(&NetBuf->error, &ETSocks, SEC_NOMETHODS, NULL); } g_free(data); } } else if (NetBuf->sockstat == NBSS_USERPASSWD) { data = GetWaitingData(NetBuf, 2); if (data) { retval = FALSE; if (data[1] != 0) { SetError(&NetBuf->error, &ETSocks, SEC_AUTHFAILED, NULL); } else { retval = Socks5Connect(NetBuf); } g_free(data); } } else if (NetBuf->sockstat == NBSS_CONNECT) { data = PeekWaitingData(NetBuf, 5); if (data) { retval = FALSE; addrtype = data[3]; if (data[0] != 5) { SetError(&NetBuf->error, &ETSocks, SEC_VERSION, NULL); } else if (data[1] > 8) { SetError(&NetBuf->error, &ETSocks, SEC_UNKNOWN, NULL); } else if (data[1] != 0) { SetError(&NetBuf->error, &ETSocks, data[1], NULL); } else if (addrtype != 1 && addrtype != 3 && addrtype != 4) { SetError(&NetBuf->error, &ETSocks, SEC_ADDRTYPE, NULL); } else { retval = TRUE; replylen = 6; if (addrtype == 1) replylen += 4; /* IPv4 address */ else if (addrtype == 4) replylen += 16; /* IPv6 address */ else replylen += data[4]; /* FQDN */ data = GetWaitingData(NetBuf, replylen); if (data) { NetBuf->status = NBS_CONNECTED; g_free(data); NetBufCallBack(NetBuf, FALSE); /* status has changed */ } } } } return retval; } else { data = GetWaitingData(NetBuf, 8); if (data) { retval = FALSE; if (data[0] != 0) { SetError(&NetBuf->error, &ETSocks, SEC_REPLYVERSION, NULL); } else { if (data[1] == 90) { NetBuf->status = NBS_CONNECTED; NetBufCallBack(NetBuf, FALSE); /* status has changed */ retval = TRUE; } else if (data[1] >= SEC_REJECT && data[1] <= SEC_IDMISMATCH) { SetError(&NetBuf->error, &ETSocks, data[1], NULL); } else { SetError(&NetBuf->error, &ETSocks, SEC_UNKNOWN, NULL); } } g_free(data); } return retval; } } /* * Reads and writes data if the network connection is ready. Sets the * various OK variables to TRUE if no errors occurred in the relevant * operations, and returns TRUE if data was read and is waiting for * processing. */ static gboolean DoNetworkBufferStuff(NetworkBuffer *NetBuf, gboolean ReadReady, gboolean WriteReady, gboolean ErrorReady, gboolean *ReadOK, gboolean *WriteOK, gboolean *ErrorOK) { gboolean DataWaiting = FALSE, ConnectDone = FALSE; gboolean retval; *ReadOK = *WriteOK = *ErrorOK = TRUE; if (ErrorReady || NetBuf->error) *ErrorOK = FALSE; else if (NetBuf->WaitConnect) { if (WriteReady) { retval = FinishConnect(NetBuf->fd, &NetBuf->error); ConnectDone = TRUE; NetBuf->WaitConnect = FALSE; if (retval) { if (NetBuf->socks) { NetBuf->status = NBS_SOCKSCONNECT; NetBuf->sockstat = NBSS_METHODS; } else { NetBuf->status = NBS_CONNECTED; } } else { NetBuf->status = NBS_PRECONNECT; *WriteOK = FALSE; } } } else { if (WriteReady) *WriteOK = WriteDataToWire(NetBuf); if (ReadReady) { *ReadOK = ReadDataFromWire(NetBuf); if (NetBuf->ReadBuf.DataPresent > 0 && NetBuf->status == NBS_SOCKSCONNECT) { if (!HandleSocksReply(NetBuf) || NetBuf->error) { /* From SendSocks5UserPasswd, possibly */ *ErrorOK = FALSE; } } if (NetBuf->ReadBuf.DataPresent > 0 && NetBuf->status != NBS_SOCKSCONNECT) { DataWaiting = TRUE; } } } if (!(*ErrorOK && *WriteOK && *ReadOK)) { /* We don't want to check the socket any more */ NetBufCallBackStop(NetBuf); /* If there were errors, then the socket is now useless - so close it */ CloseSocket(NetBuf->fd); NetBuf->fd = -1; } else if (ConnectDone) { /* If we just connected, then no need to listen for write-ready status * any more */ NetBufCallBack(NetBuf, FALSE); } else if (WriteReady && ((NetBuf->status == NBS_CONNECTED && NetBuf->WriteBuf.DataPresent == 0) || (NetBuf->status == NBS_SOCKSCONNECT && NetBuf->negbuf.DataPresent == 0))) { /* If we wrote out everything, then tell the owner so that the socket * no longer needs to be checked for write-ready status */ NetBufCallBack(NetBuf, FALSE); } return DataWaiting; } /* * Responds to a select() call by reading/writing data as necessary. * If any data were read, TRUE is returned. "DoneOK" is set TRUE * unless a fatal error (i.e. the connection was broken) occurred. */ gboolean RespondToSelect(NetworkBuffer *NetBuf, fd_set *readfds, fd_set *writefds, fd_set *errorfds, gboolean *DoneOK) { gboolean ReadOK, WriteOK, ErrorOK; gboolean DataWaiting = FALSE; *DoneOK = TRUE; if (!NetBuf || NetBuf->fd <= 0) return DataWaiting; DataWaiting = DoNetworkBufferStuff(NetBuf, FD_ISSET(NetBuf->fd, readfds), FD_ISSET(NetBuf->fd, writefds), errorfds ? FD_ISSET(NetBuf->fd, errorfds) : FALSE, &ReadOK, &WriteOK, &ErrorOK); *DoneOK = (WriteOK && ErrorOK && ReadOK); return DataWaiting; } gboolean NetBufHandleNetwork(NetworkBuffer *NetBuf, gboolean ReadReady, gboolean WriteReady, gboolean *DoneOK) { gboolean ReadOK, WriteOK, ErrorOK; gboolean DataWaiting = FALSE; *DoneOK = TRUE; if (!NetBuf || NetBuf->fd <= 0) return DataWaiting; DataWaiting = DoNetworkBufferStuff(NetBuf, ReadReady, WriteReady, FALSE, &ReadOK, &WriteOK, &ErrorOK); *DoneOK = (WriteOK && ErrorOK && ReadOK); return DataWaiting; } /* * Returns the number of complete (terminated) messages waiting in the * given network buffer. This is the number of times that * GetWaitingMessage() can be safely called without it returning NULL. */ gint CountWaitingMessages(NetworkBuffer *NetBuf) { ConnBuf *conn; gint i, msgs = 0; if (NetBuf->status != NBS_CONNECTED) return 0; conn = &NetBuf->ReadBuf; if (conn->Data) for (i = 0; i < conn->DataPresent; i++) { if (conn->Data[i] == NetBuf->Terminator) msgs++; } return msgs; } gchar *PeekWaitingData(NetworkBuffer *NetBuf, int numbytes) { ConnBuf *conn; conn = &NetBuf->ReadBuf; if (!conn->Data || conn->DataPresent < numbytes) return NULL; else return conn->Data; } gchar *GetWaitingData(NetworkBuffer *NetBuf, int numbytes) { ConnBuf *conn; gchar *data; conn = &NetBuf->ReadBuf; if (!conn->Data || conn->DataPresent < numbytes) return NULL; data = g_new(gchar, numbytes); memcpy(data, conn->Data, numbytes); memmove(&conn->Data[0], &conn->Data[numbytes], conn->DataPresent - numbytes); conn->DataPresent -= numbytes; return data; } /* * Reads a complete (terminated) message from the network buffer. The * message is removed from the buffer, and returned as a null-terminated * string (the network terminator is removed). If no complete message is * waiting, NULL is returned. The string is dynamically allocated, and * so must be g_free'd by the caller. */ gchar *GetWaitingMessage(NetworkBuffer *NetBuf) { ConnBuf *conn; int MessageLen; char *SepPt; gchar *NewMessage; conn = &NetBuf->ReadBuf; if (!conn->Data || !conn->DataPresent || NetBuf->status != NBS_CONNECTED) { return NULL; } SepPt = memchr(conn->Data, NetBuf->Terminator, conn->DataPresent); if (!SepPt) return NULL; *SepPt = '\0'; MessageLen = SepPt - conn->Data + 1; SepPt--; if (NetBuf->StripChar && *SepPt == NetBuf->StripChar) *SepPt = '\0'; NewMessage = g_new(gchar, MessageLen); memcpy(NewMessage, conn->Data, MessageLen); if (MessageLen < conn->DataPresent) { memmove(&conn->Data[0], &conn->Data[MessageLen], conn->DataPresent - MessageLen); } conn->DataPresent -= MessageLen; return NewMessage; } /* * Reads any waiting data on the given network buffer's TCP/IP connection * into the read buffer. Returns FALSE if the connection was closed, or * if the read buffer's maximum size was reached. */ gboolean ReadDataFromWire(NetworkBuffer *NetBuf) { ConnBuf *conn; int CurrentPosition, BytesRead; conn = &NetBuf->ReadBuf; CurrentPosition = conn->DataPresent; while (1) { if (CurrentPosition >= conn->Length) { if (conn->Length == MAXREADBUF) { SetError(&NetBuf->error, ET_CUSTOM, E_FULLBUF, NULL); return FALSE; /* drop connection */ } if (conn->Length == 0) conn->Length = 256; else conn->Length *= 2; if (conn->Length > MAXREADBUF) conn->Length = MAXREADBUF; conn->Data = g_realloc(conn->Data, conn->Length); } BytesRead = recv(NetBuf->fd, &conn->Data[CurrentPosition], conn->Length - CurrentPosition, 0); if (BytesRead == SOCKET_ERROR) { #ifdef CYGWIN int Error = WSAGetLastError(); if (Error == WSAEWOULDBLOCK) break; else { SetError(&NetBuf->error, ET_WINSOCK, Error, NULL); return FALSE; } #else if (errno == EAGAIN) break; else if (errno != EINTR) { SetError(&NetBuf->error, ET_ERRNO, errno, NULL); return FALSE; } #endif } else if (BytesRead == 0) { return FALSE; } else { CurrentPosition += BytesRead; conn->DataPresent = CurrentPosition; } } return TRUE; } gchar *ExpandWriteBuffer(ConnBuf *conn, int numbytes, LastError **error) { int newlen; newlen = conn->DataPresent + numbytes; if (newlen > conn->Length) { conn->Length *= 2; conn->Length = MAX(conn->Length, newlen); if (conn->Length > MAXWRITEBUF) conn->Length = MAXWRITEBUF; if (newlen > conn->Length) { if (error) SetError(error, ET_CUSTOM, E_FULLBUF, NULL); return NULL; } conn->Data = g_realloc(conn->Data, conn->Length); } return (&conn->Data[conn->DataPresent]); } void CommitWriteBuffer(NetworkBuffer *NetBuf, ConnBuf *conn, gchar *addpt, guint addlen) { conn->DataPresent += addlen; /* If the buffer was empty before, we may need to tell the owner to * check the socket for write-ready status */ if (NetBuf && addpt == conn->Data) NetBufCallBack(NetBuf, FALSE); } /* * Writes the null-terminated string "data" to the network buffer, ready * to be sent to the wire when the network connection becomes free. The * message is automatically terminated. Fails to write the message without * error if the buffer reaches its maximum size (although this error will * be detected when an attempt is made to write the buffer to the wire). */ void QueueMessageForSend(NetworkBuffer *NetBuf, gchar *data) { gchar *addpt; guint addlen; ConnBuf *conn; conn = &NetBuf->WriteBuf; if (!data) return; addlen = strlen(data) + 1; addpt = ExpandWriteBuffer(conn, addlen, NULL); if (!addpt) return; memcpy(addpt, data, addlen); addpt[addlen - 1] = NetBuf->Terminator; CommitWriteBuffer(NetBuf, conn, addpt, addlen); } static void SetNetworkError(LastError **error) { #ifdef CYGWIN SetError(error, ET_WINSOCK, WSAGetLastError(), NULL); #else SetError(error, ET_HERRNO, h_errno, NULL); #endif } static struct hostent *LookupHostname(const gchar *host, LastError **error) { struct hostent *he; if ((he = gethostbyname(host)) == NULL && error) { SetNetworkError(error); } return he; } gboolean StartSocksNegotiation(NetworkBuffer *NetBuf, gchar *RemoteHost, unsigned RemotePort) { guint num_methods; ConnBuf *conn; struct hostent *he; gchar *addpt; guint addlen, i; struct in_addr *haddr; unsigned short int netport; gchar *username = NULL; #ifdef CYGWIN DWORD bufsize; #else struct passwd *pwd; #endif conn = &NetBuf->negbuf; if (NetBuf->socks->version == 5) { num_methods = 1; if (NetBuf->userpasswd) num_methods++; addlen = 2 + num_methods; addpt = ExpandWriteBuffer(conn, addlen, &NetBuf->error); if (!addpt) return FALSE; addpt[0] = 5; /* SOCKS version 5 */ addpt[1] = num_methods; i = 2; addpt[i++] = SM_NOAUTH; if (NetBuf->userpasswd) addpt[i++] = SM_USERPASSWD; g_free(NetBuf->host); NetBuf->host = g_strdup(RemoteHost); NetBuf->port = RemotePort; CommitWriteBuffer(NetBuf, conn, addpt, addlen); return TRUE; } he = LookupHostname(RemoteHost, &NetBuf->error); if (!he) return FALSE; if (NetBuf->socks->user && NetBuf->socks->user[0]) { username = g_strdup(NetBuf->socks->user); } else { #ifdef CYGWIN bufsize = 0; WNetGetUser(NULL, username, &bufsize); if (GetLastError() != ERROR_MORE_DATA) { SetError(&NetBuf->error, ET_WIN32, GetLastError(), NULL); return FALSE; } else { username = g_malloc(bufsize); if (WNetGetUser(NULL, username, &bufsize) != NO_ERROR) { SetError(&NetBuf->error, ET_WIN32, GetLastError(), NULL); return FALSE; } } #else if (NetBuf->socks->numuid) { username = g_strdup_printf("%d", getuid()); } else { pwd = getpwuid(getuid()); if (!pwd || !pwd->pw_name) return FALSE; username = g_strdup(pwd->pw_name); } #endif } addlen = 9 + strlen(username); haddr = (struct in_addr *)he->h_addr; g_assert(sizeof(struct in_addr) == 4); netport = htons(RemotePort); g_assert(sizeof(netport) == 2); addpt = ExpandWriteBuffer(conn, addlen, &NetBuf->error); if (!addpt) return FALSE; addpt[0] = 4; /* SOCKS version */ addpt[1] = 1; /* CONNECT */ memcpy(&addpt[2], &netport, sizeof(netport)); memcpy(&addpt[4], haddr, sizeof(struct in_addr)); strcpy(&addpt[8], username); g_free(username); addpt[addlen - 1] = '\0'; CommitWriteBuffer(NetBuf, conn, addpt, addlen); return TRUE; } static gboolean WriteBufToWire(NetworkBuffer *NetBuf, ConnBuf *conn) { int CurrentPosition, BytesSent; if (!conn->Data || !conn->DataPresent) return TRUE; if (conn->Length == MAXWRITEBUF) { SetError(&NetBuf->error, ET_CUSTOM, E_FULLBUF, NULL); return FALSE; } CurrentPosition = 0; while (CurrentPosition < conn->DataPresent) { BytesSent = send(NetBuf->fd, &conn->Data[CurrentPosition], conn->DataPresent - CurrentPosition, 0); if (BytesSent == SOCKET_ERROR) { #ifdef CYGWIN int Error = WSAGetLastError(); if (Error == WSAEWOULDBLOCK) break; else { SetError(&NetBuf->error, ET_WINSOCK, Error, NULL); return FALSE; } #else if (errno == EAGAIN) break; else if (errno != EINTR) { SetError(&NetBuf->error, ET_ERRNO, errno, NULL); return FALSE; } #endif } else { CurrentPosition += BytesSent; } } if (CurrentPosition > 0 && CurrentPosition < conn->DataPresent) { memmove(&conn->Data[0], &conn->Data[CurrentPosition], conn->DataPresent - CurrentPosition); } conn->DataPresent -= CurrentPosition; return TRUE; } /* * Writes any waiting data in the network buffer to the wire. Returns * TRUE on success, or FALSE if the buffer's maximum length is * reached, or the remote end has closed the connection. */ gboolean WriteDataToWire(NetworkBuffer *NetBuf) { if (NetBuf->status == NBS_SOCKSCONNECT) { return WriteBufToWire(NetBuf, &NetBuf->negbuf); } else { return WriteBufToWire(NetBuf, &NetBuf->WriteBuf); } } static void SendHttpRequest(HttpConnection *conn) { GString *text; char *userpasswd; conn->Tries++; conn->StatusCode = 0; conn->Status = HS_CONNECTING; text = g_string_new(""); g_string_sprintf(text, "%s http://%s:%u%s HTTP/1.0", conn->Method, conn->HostName, conn->Port, conn->Query); QueueMessageForSend(&conn->NetBuf, text->str); if (conn->Headers) QueueMessageForSend(&conn->NetBuf, conn->Headers); if (conn->user && conn->password) { userpasswd = g_strdup_printf("%s:%s", conn->user, conn->password); g_string_assign(text, "Authorization: Basic "); AddB64Enc(text, userpasswd); g_free(userpasswd); QueueMessageForSend(&conn->NetBuf, text->str); } if (conn->proxyuser && conn->proxypassword) { userpasswd = g_strdup_printf("%s:%s", conn->proxyuser, conn->proxypassword); g_string_assign(text, "Proxy-Authenticate: Basic "); AddB64Enc(text, userpasswd); g_free(userpasswd); QueueMessageForSend(&conn->NetBuf, text->str); } g_string_sprintf(text, "User-Agent: dopewars/%s", VERSION); QueueMessageForSend(&conn->NetBuf, text->str); /* Insert a blank line between headers and body */ QueueMessageForSend(&conn->NetBuf, ""); if (conn->Body) QueueMessageForSend(&conn->NetBuf, conn->Body); g_string_free(text, TRUE); } static gboolean StartHttpConnect(HttpConnection *conn) { gchar *ConnectHost; unsigned ConnectPort; if (conn->Proxy) { ConnectHost = conn->Proxy; ConnectPort = conn->ProxyPort; } else { ConnectHost = conn->HostName; ConnectPort = conn->Port; } if (!StartNetworkBufferConnect(&conn->NetBuf, conn->bindaddr, ConnectHost, ConnectPort)) { return FALSE; } return TRUE; } gboolean OpenHttpConnection(HttpConnection **connpt, gchar *HostName, unsigned Port, gchar *Proxy, unsigned ProxyPort, const gchar *bindaddr, SocksServer *socks, gchar *Method, gchar *Query, gchar *Headers, gchar *Body) { HttpConnection *conn; g_assert(HostName && Method && Query && connpt); conn = g_new0(HttpConnection, 1); InitNetworkBuffer(&conn->NetBuf, '\n', '\r', socks); conn->HostName = g_strdup(HostName); if (Proxy && Proxy[0]) conn->Proxy = g_strdup(Proxy); conn->bindaddr = g_strdup(bindaddr); conn->Method = g_strdup(Method); conn->Query = g_strdup(Query); if (Headers && Headers[0]) conn->Headers = g_strdup(Headers); if (Body && Body[0]) conn->Body = g_strdup(Body); conn->Port = Port; conn->ProxyPort = ProxyPort; *connpt = conn; if (StartHttpConnect(conn)) { SendHttpRequest(conn); return TRUE; } else { return FALSE; } } void CloseHttpConnection(HttpConnection *conn) { ShutdownNetworkBuffer(&conn->NetBuf); g_free(conn->HostName); g_free(conn->Proxy); g_free(conn->bindaddr); g_free(conn->Method); g_free(conn->Query); g_free(conn->Headers); g_free(conn->Body); g_free(conn->RedirHost); g_free(conn->RedirQuery); g_free(conn->user); g_free(conn->password); g_free(conn->proxyuser); g_free(conn->proxypassword); g_free(conn); } void SetHttpAuthentication(HttpConnection *conn, gboolean proxy, gchar *user, gchar *password) { gchar **ptuser, **ptpassword; g_assert(conn); if (proxy) { ptuser = &conn->proxyuser; ptpassword = &conn->proxypassword; } else { ptuser = &conn->user; ptpassword = &conn->password; } g_free(*ptuser); g_free(*ptpassword); if (user && password && user[0] && password[0]) { *ptuser = g_strdup(user); *ptpassword = g_strdup(password); } else { *ptuser = *ptpassword = NULL; } conn->waitinput = FALSE; if (conn->Status == HS_WAITCOMPLETE) { NetBufCallBack(&conn->NetBuf, TRUE); } } void SetHttpAuthFunc(HttpConnection *conn, HCAuthFunc authfunc, gpointer data) { g_assert(conn && authfunc); conn->authfunc = authfunc; conn->authdata = data; } static gboolean ParseHtmlLocation(gchar *uri, gchar **host, unsigned *port, gchar **query) { gchar *uris, *colon, *slash; uris = g_strstrip(uri); if (!uris || strlen(uris) < 7 || g_strncasecmp(uris, "http://", 7) != 0) return FALSE; uris += 7; /* skip to hostname */ /* ':' denotes the port to connect to */ colon = strchr(uris, ':'); if (colon && colon == uris) return FALSE; /* No hostname */ /* '/' denotes the start of the path of the HTML file */ slash = strchr(uris, '/'); if (slash && slash == uris) return FALSE; /* No hostname */ if (colon && (!slash || slash > colon)) { if (slash) *slash = '\0'; *port = atoi(colon + 1); if (slash) *slash = '\\'; if (*port == 0) return FALSE; /* Invalid port */ *host = g_strndup(uris, colon - uris); } else { *port = 80; if (slash) *host = g_strndup(uris, slash - uris); else *host = g_strdup(uris); } if (slash) { *query = g_strdup(slash); } else { *query = g_strdup("/"); } return TRUE; } static void StartHttpAuth(HttpConnection *conn, gboolean proxy, gchar *header, gboolean *doneOK) { gchar *realm, **split; if (!conn->authfunc) return; split = my_strsplit(header, " ", 2); if (split[0] && split[1] && g_strcasecmp(split[0], "Basic") == 0 && g_strncasecmp(split[1], "realm=", 6) == 0 && strlen(split[1]) > 6) { realm = &split[1][6]; conn->waitinput = TRUE; (*conn->authfunc) (conn, proxy, realm, conn->authdata); } else { *doneOK = FALSE; SetError(&conn->NetBuf.error, ÐTTP, HEC_BADAUTH, g_strdup(header)); } g_strfreev(split); } static void ParseHtmlHeader(gchar *line, HttpConnection *conn, gboolean *doneOK) { gchar **split, *host, *query; unsigned port; split = my_strsplit(line, " ", 2); if (split[0] && split[1]) { if (g_strcasecmp(split[0], "Location:") == 0 && (conn->StatusCode == HEC_MOVETEMP || conn->StatusCode == HEC_MOVEPERM)) { if (ParseHtmlLocation(split[1], &host, &port, &query)) { g_free(conn->RedirHost); g_free(conn->RedirQuery); conn->RedirHost = host; conn->RedirQuery = query; conn->RedirPort = port; } else { *doneOK = FALSE; SetError(&conn->NetBuf.error, ÐTTP, HEC_BADREDIR, g_strdup(line)); } } else if (g_strcasecmp(split[0], "WWW-Authenticate:") == 0 && conn->StatusCode == HEC_AUTHREQ) { StartHttpAuth(conn, FALSE, split[1], doneOK); } else if (g_strcasecmp(split[0], "Proxy-Authenticate:") == 0 && conn->StatusCode == HEC_PROXYAUTH) { /* Proxy-Authenticate is, strictly speaking, an HTTP/1.1 thing, but * some HTTP/1.0 proxies seem to support it anyway */ StartHttpAuth(conn, TRUE, split[1], doneOK); } } g_strfreev(split); } gchar *ReadHttpResponse(HttpConnection *conn, gboolean *doneOK) { gchar *msg, **split; msg = GetWaitingMessage(&conn->NetBuf); if (msg) switch (conn->Status) { case HS_CONNECTING: /* OK, we should have the HTTP status line */ conn->Status = HS_READHEADERS; split = my_strsplit(msg, " ", 3); if (split[0] && split[1]) { conn->StatusCode = atoi(split[1]); } else { *doneOK = FALSE; SetError(&conn->NetBuf.error, ÐTTP, HEC_BADSTATUS, g_strdup(msg)); } g_strfreev(split); break; case HS_READHEADERS: if (msg[0] == 0) conn->Status = HS_READSEPARATOR; else ParseHtmlHeader(msg, conn, doneOK); break; case HS_READSEPARATOR: conn->Status = HS_READBODY; break; case HS_READBODY: /* At present, we do nothing special * with the body */ break; case HS_WAITCOMPLETE: /* Well, we shouldn't be here at all... */ g_free(msg); msg = NULL; break; } return msg; } gboolean HandleHttpCompletion(HttpConnection *conn) { NBCallBack CallBack; gpointer CallBackData, userpasswddata; NBUserPasswd userpasswd; gboolean retry = FALSE; LastError **error; error = &conn->NetBuf.error; /* If we're still waiting for authentication etc., then signal that the * connection shouldn't be closed yet, and go into the "WAITCOMPLETE" * state */ if (conn->waitinput) { conn->Status = HS_WAITCOMPLETE; return FALSE; } if (conn->Tries >= 5) { SetError(error, ÐTTP, HEC_TRIESEX, NULL); return TRUE; } if (conn->RedirHost) { g_free(conn->HostName); g_free(conn->Query); conn->HostName = conn->RedirHost; conn->Query = conn->RedirQuery; conn->Port = conn->RedirPort; conn->RedirHost = conn->RedirQuery = NULL; retry = TRUE; } if (conn->StatusCode == HEC_AUTHREQ && conn->user && conn->password) { retry = TRUE; } if (conn->StatusCode == HEC_PROXYAUTH && conn->proxyuser && conn->proxypassword) { retry = TRUE; } if (retry) { CallBack = conn->NetBuf.CallBack; userpasswd = conn->NetBuf.userpasswd; userpasswddata = conn->NetBuf.userpasswddata; CallBackData = conn->NetBuf.CallBackData; ShutdownNetworkBuffer(&conn->NetBuf); if (StartHttpConnect(conn)) { SendHttpRequest(conn); SetNetworkBufferCallBack(&conn->NetBuf, CallBack, CallBackData); SetNetworkBufferUserPasswdFunc(&conn->NetBuf, userpasswd, userpasswddata); return FALSE; } } else if (conn->StatusCode >= 300) { SetError(error, ÐTTP, conn->StatusCode, NULL); } return TRUE; } gboolean IsHttpError(HttpConnection *conn) { return (conn->NetBuf.error != NULL); } int CreateTCPSocket(LastError **error) { int fd; fd = socket(AF_INET, SOCK_STREAM, 0); if (fd == SOCKET_ERROR && error) { SetNetworkError(error); } return fd; } gboolean BindTCPSocket(int sock, const gchar *addr, unsigned port, LastError **error) { struct sockaddr_in bindaddr; int retval; struct hostent *he; bindaddr.sin_family = AF_INET; bindaddr.sin_port = htons(port); if (addr && addr[0]) { he = LookupHostname(addr, error); if (!he) { return FALSE; } bindaddr.sin_addr = *((struct in_addr *)he->h_addr); } else { bindaddr.sin_addr.s_addr = INADDR_ANY; } memset(bindaddr.sin_zero, 0, sizeof(bindaddr.sin_zero)); retval = bind(sock, (struct sockaddr *)&bindaddr, sizeof(struct sockaddr)); if (retval == SOCKET_ERROR && error) { SetNetworkError(error); } return (retval != SOCKET_ERROR); } gboolean StartConnect(int *fd, const gchar *bindaddr, gchar *RemoteHost, unsigned RemotePort, gboolean *doneOK, LastError **error) { struct sockaddr_in ClientAddr; struct hostent *he; if (doneOK) *doneOK = FALSE; he = LookupHostname(RemoteHost, error); if (!he) return FALSE; *fd = CreateTCPSocket(error); if (*fd == SOCKET_ERROR) return FALSE; if (bindaddr && bindaddr[0] && !BindTCPSocket(*fd, bindaddr, 0, error)) { return FALSE; } ClientAddr.sin_family = AF_INET; ClientAddr.sin_port = htons(RemotePort); ClientAddr.sin_addr = *((struct in_addr *)he->h_addr); memset(ClientAddr.sin_zero, 0, sizeof(ClientAddr.sin_zero)); SetBlocking(*fd, FALSE); if (connect(*fd, (struct sockaddr *)&ClientAddr, sizeof(struct sockaddr)) == SOCKET_ERROR) { #ifdef CYGWIN int errcode = WSAGetLastError(); if (errcode == WSAEWOULDBLOCK) return TRUE; else if (error) SetError(error, ET_WINSOCK, errcode, NULL); #else if (errno == EINPROGRESS) return TRUE; else if (error) SetError(error, ET_ERRNO, errno, NULL); #endif CloseSocket(*fd); *fd = -1; return FALSE; } else { if (doneOK) *doneOK = TRUE; } return TRUE; } gboolean FinishConnect(int fd, LastError **error) { int errcode; #ifdef CYGWIN errcode = WSAGetLastError(); if (errcode == 0) return TRUE; else { if (error) { SetError(error, ET_WINSOCK, errcode, NULL); } return FALSE; } #else #ifdef HAVE_SOCKLEN_T socklen_t optlen; #else int optlen; #endif optlen = sizeof(errcode); if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &errcode, &optlen) == -1) { errcode = errno; } if (errcode == 0) return TRUE; else { if (error) { SetError(error, ET_ERRNO, errcode, NULL); } return FALSE; } #endif /* CYGWIN */ } static void AddB64char(GString *str, int c) { if (c < 0) return; else if (c < 26) g_string_append_c(str, c + 'A'); else if (c < 52) g_string_append_c(str, c - 26 + 'a'); else if (c < 62) g_string_append_c(str, c - 52 + '0'); else if (c == 62) g_string_append_c(str, '+'); else g_string_append_c(str, '/'); } /* * Adds the plain text string "unenc" to the end of the GString "str", * using the Base64 encoding scheme. */ void AddB64Enc(GString *str, gchar *unenc) { guint i; long value = 0; if (!unenc || !str) return; for (i = 0; i < strlen(unenc); i++) { value <<= 8; value |= (unsigned char)unenc[i]; if (i % 3 == 2) { AddB64char(str, (value >> 18) & 0x3F); AddB64char(str, (value >> 12) & 0x3F); AddB64char(str, (value >> 6) & 0x3F); AddB64char(str, value & 0x3F); value = 0; } } if (i % 3 == 1) { AddB64char(str, (value >> 2) & 0x3F); AddB64char(str, (value << 4) & 0x3F); g_string_append(str, "=="); } else if (i % 3 == 2) { AddB64char(str, (value >> 10) & 0x3F); AddB64char(str, (value >> 4) & 0x3F); AddB64char(str, (value << 2) & 0x3F); g_string_append_c(str, '='); } } #endif /* NETWORKING */ dopewars-1.5.12/src/dopewars-weed.png0000755001565000007070000000071007305052400014411 00000000000000‰PNG  IHDR/0üÉËqgAMA± üa PLTEÿÿÿÿÿÿ`€§­ÖtRNS@æØfbKGDˆH pHYsÁÁ¸‘kítIMEÑ01âÊ–%IDATxœuÑÁŠÄ `é±ó"ËôÐW”yƒB½wÀ¼Ê‹Âz] $ã,SvY¡Ôêoù3>Îðöpg<Ï8Þóéñuþ‡éËkHòù9Y3¿ªX‘­Y:î/DÁ´“PfÐAòö`'î`g ³x=‹‚vŪȤQ›Ø;Z²’v#=§T‘nÜÏ‘ÝÏ•è2ü!X)¨­[ŽA)żAm Cl @Ûpá©áhÝÜb¡Fñ9ú„… –ÀF¥òhÈ¢ZÉNvd§I/é @ŸÅù±0Bò ¸Ï)Õž/¸îsÍŒ[o'ömÀ{®{=Kö(fvZ¨t*Wn=læÈÌ…Q[09­-0IB~ݵ÷ò8ók|ÝÕú«3KIEND®B`‚dopewars-1.5.12/src/util.c0000644001565000007070000001260210355116554012270 00000000000000/************************************************************************ * util.c Miscellaneous utility and portability functions * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_FCNTL_H #include #endif #ifdef CYGWIN #include #endif #include "util.h" #include "dopewars.h" #ifndef HAVE_GETOPT char *optarg; static int apos = 1; /* Skip argv[0], the executable name */ int getopt(int argc, char *const argv[], const char *str) { int i, c; char *pt; while (apos < argc && argv[apos]) { if (argv[apos][0] != '-') { apos++; return 0; } for (i = 1; i < strlen(argv[apos]); i++) { c = argv[apos][i]; pt = strchr(str, c); if (pt) { argv[apos][i] = '-'; if (*(pt + 1) == ':') { if (apos + 1 < argc && i == strlen(argv[apos]) - 1) { apos++; optarg = argv[apos]; apos++; } else return 0; } return c; } } apos++; } return EOF; } #endif /* HAVE_GETOPT */ #ifdef CYGWIN /* Code for native Win32 build under Cygwin */ void sigemptyset(int *mask) { } void sigaddset(int *mask, int sig) { } int sigaction(int sig, struct sigaction *sact, char *pt) { return 0; } void sigprocmask(int flag, int *mask, char *pt) { } /*static gboolean IsKeyPressed() { INPUT_RECORD ConsoleIn; DWORD NumConsoleIn; while (PeekConsoleInput(hIn, &ConsoleIn, 1, &NumConsoleIn) && NumConsoleIn == 1) { if (ConsoleIn.EventType == KEY_EVENT && ConsoleIn.Event.KeyEvent.bKeyDown) { return TRUE; } else { ReadConsoleInput(hIn, &ConsoleIn, 1, &NumConsoleIn); } } return FALSE; }*/ int bselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *tm) { int retval; struct timeval tv, *tp; fd_set localread, localexcept; char CheckKbHit = 0, KeyRead; if (nfds == 0 && tm) { Sleep(tm->tv_sec * 1000 + tm->tv_usec / 1000); return 0; } if (FD_ISSET(0, readfds)) { if (nfds == 1) return 1; tp = &tv; CheckKbHit = 1; FD_CLR(0, readfds); } else tp = tm; KeyRead = 0; while (1) { tv.tv_sec = 0; tv.tv_usec = 250000; if (readfds) memcpy(&localread, readfds, sizeof(fd_set)); if (exceptfds) memcpy(&localexcept, exceptfds, sizeof(fd_set)); if (CheckKbHit && kbhit()) tv.tv_usec = 0; retval = select(nfds, readfds, writefds, exceptfds, tp); if (retval == SOCKET_ERROR) return retval; if (CheckKbHit && kbhit()) { retval++; FD_SET(0, readfds); } if (retval > 0 || !CheckKbHit) break; if (CheckKbHit && tm) { if (tm->tv_usec >= 250000) tm->tv_usec -= 250000; else if (tm->tv_sec) { tm->tv_usec += 750000; tm->tv_sec--; } else break; } if (readfds) memcpy(readfds, &localread, sizeof(fd_set)); if (exceptfds) memcpy(exceptfds, &localexcept, sizeof(fd_set)); } return retval; } /* We don't do locking under Win32 right now */ int ReadLock(FILE * fp) { return 0; } int WriteLock(FILE * fp) { return 0; } void ReleaseLock(FILE * fp) { } #else /* Code for Unix build */ #include static int DoLock(FILE * fp, int l_type) { struct flock lk; lk.l_type = l_type; lk.l_whence = lk.l_start = lk.l_len = 0; lk.l_pid = 0; do { if (fcntl(fileno(fp), F_SETLKW, &lk) == 0) { return 0; } } while (errno == EINTR); return 1; } int ReadLock(FILE * fp) { return DoLock(fp, F_RDLCK); } int WriteLock(FILE * fp) { return DoLock(fp, F_WRLCK); } void ReleaseLock(FILE * fp) { (void)DoLock(fp, F_UNLCK); } #endif /* CYGWIN */ /* * On systems with select, sleep for "microsec" microseconds. */ void MicroSleep(int microsec) { #if HAVE_SELECT || CYGWIN struct timeval tv; tv.tv_sec = 0; tv.tv_usec = microsec; bselect(0, NULL, NULL, NULL, &tv); #endif } dopewars-1.5.12/src/sound.c0000644001565000007070000001435110355116554012446 00000000000000/************************************************************************ * sound.c dopewars sound system * * Copyright (C) 1998-2005 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #ifdef PLUGINS #include #include #include #else #include "plugins/sound_sdl.h" #include "plugins/sound_esd.h" #include "plugins/sound_winmm.h" #endif #include "dopewars.h" #include "log.h" #include "nls.h" #include "sound.h" #define NOPLUGIN "none" static SoundDriver *driver = NULL; static GSList *driverlist = NULL; typedef SoundDriver *(*InitFunc)(void); static gboolean sound_enabled = TRUE; gchar *GetPluginList(void) { GSList *listpt; GString *plugins; gchar *retstr; plugins = g_string_new("\""NOPLUGIN"\""); for (listpt = driverlist; listpt; listpt = g_slist_next(listpt)) { SoundDriver *drivpt = (SoundDriver *)listpt->data; if (drivpt && drivpt->name) { g_string_sprintfa(plugins, ", \"%s\"", drivpt->name); } } retstr = plugins->str; g_string_free(plugins, FALSE); return retstr; } static void AddPlugin(InitFunc ifunc, void *module) { SoundDriver *newdriver = (*ifunc)(); if (newdriver) { dopelog(5, 0, "%s sound plugin init OK", newdriver->name); newdriver->module = module; driverlist = g_slist_append(driverlist, newdriver); } } #ifdef PLUGINS static void OpenModule(const gchar *modname, const gchar *fullname) { InitFunc ifunc; gint len = strlen(modname); void *soundmodule; if (len > 6 && strncmp(modname, "lib", 3) == 0 && strcmp(modname + len - 3, ".so") == 0) { GString *funcname; soundmodule = dlopen(fullname, RTLD_NOW); if (!soundmodule) { /* FIXME: using dlerror() here causes a segfault later in the program */ dopelog(3, 0, "dlopen of %s failed: %s", fullname, dlerror()); return; } funcname = g_string_new(modname); g_string_truncate(funcname, len - 3); g_string_erase(funcname, 0, 3); g_string_append(funcname, "_init"); ifunc = dlsym(soundmodule, funcname->str); if (ifunc) { AddPlugin(ifunc, soundmodule); } else { dopelog(3, 0, "dlsym (%s) failed: %s", funcname->str, dlerror()); dlclose(soundmodule); } g_string_free(funcname, TRUE); } } static void ScanPluginDir(const gchar *dirname) { DIR *dir; dir = opendir(dirname); if (dir) { struct dirent *fileinfo; GString *modname; modname = g_string_new(""); do { fileinfo = readdir(dir); if (fileinfo) { g_string_assign(modname, dirname); g_string_append_c(modname, G_DIR_SEPARATOR); g_string_append(modname, fileinfo->d_name); OpenModule(fileinfo->d_name, modname->str); } } while (fileinfo); g_string_free(modname, TRUE); closedir(dir); } else { dopelog(5, 0, "Cannot open dir %s", dirname); } } #endif void SoundInit(void) { #ifdef PLUGINS ScanPluginDir(PLUGINDIR); ScanPluginDir("src/plugins/.libs"); ScanPluginDir("plugins/.libs"); #else #ifdef HAVE_ESD AddPlugin(sound_esd_init, NULL); #endif #ifdef HAVE_SDL_MIXER AddPlugin(sound_sdl_init, NULL); #endif #ifdef HAVE_WINMM AddPlugin(sound_winmm_init, NULL); #endif #endif driver = NULL; } static SoundDriver *GetPlugin(gchar *drivername) { GSList *listpt; for (listpt = driverlist; listpt; listpt = g_slist_next(listpt)) { SoundDriver *drivpt = (SoundDriver *)listpt->data; if (drivpt && drivpt->name && (!drivername || strcmp(drivpt->name, drivername) == 0)) { return drivpt; } } return NULL; } void SoundOpen(gchar *drivername) { if (!drivername || strcmp(drivername, NOPLUGIN) != 0) { driver = GetPlugin(drivername); if (driver) { if (driver->open) { dopelog(3, 0, "Using plugin %s", driver->name); driver->open(); } } else if (drivername) { gchar *plugins, *err; plugins = GetPluginList(); err = g_strdup_printf(_("Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)"), drivername, plugins, NOPLUGIN); g_log(NULL, G_LOG_LEVEL_CRITICAL, err); g_free(plugins); g_free(err); } } sound_enabled = TRUE; } void SoundClose(void) { #ifdef PLUGINS GSList *listpt; SoundDriver *listdriv; #endif if (driver && driver->close) { driver->close(); driver = NULL; } #ifdef PLUGINS for (listpt = driverlist; listpt; listpt = g_slist_next(listpt)) { listdriv = (SoundDriver *)listpt->data; if (listdriv && listdriv->module) { dlclose(listdriv->module); } } #endif g_slist_free(driverlist); driverlist = NULL; } void SoundPlay(const gchar *snd) { if (sound_enabled && driver && driver->play && snd && snd[0]) { driver->play(snd); } } void SoundEnable(gboolean enable) { sound_enabled = enable; } gboolean IsSoundEnabled(void) { return sound_enabled; } dopewars-1.5.12/src/dopewars-pill.png0000755001565000007070000000046407305052400014433 00000000000000‰PNG  IHDR/0s‰>ÑgAMA± üaPLTE €ÿÿ@ ÿÿÿÿÿÿ…ô†OtRNS@æØfbKGDˆH pHYsÁÁ¸‘kítIMEÑ&"zìb…IDATxœc`T‚è&®ÂÆP‘aTRq'áP6IAÅ¡Á†` .iè¡ -Œ*n)Á “Ü0Œ›%3 Y",áB{ , W1"K† ŠBüô9’QqÑ@¨ÏQÃ*0P0PV¸Cg|àŽÁQ0ˆ _!4ÅbIEND®B`‚dopewars-1.5.12/src/configfile.h0000644001565000007070000000341010137122015013405 00000000000000/************************************************************************ * configfile.h Functions for dealing with dopewars config files * * Copyright (C) 2002-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #ifndef __DP_CONFIGFILE_H__ #define __DP_CONFIGFILE_H__ #include extern gchar *LocalCfgEncoding; gboolean UpdateConfigFile(const gchar *cfgfile, gboolean ForceUTF8); gboolean IsConfigFileUTF8(void); #endif /* __DP_CONFIGFILE_H__ */ dopewars-1.5.12/src/Makefile.in0000644001565000007070000005446710355323276013234 00000000000000# Makefile.in generated by automake 1.9.5 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@ SOURCES = $(dopewars_SOURCES) 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@ target_triplet = @target@ bin_PROGRAMS = dopewars$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_dopewars_OBJECTS = admin.$(OBJEXT) AIPlayer.$(OBJEXT) \ util.$(OBJEXT) configfile.$(OBJEXT) convert.$(OBJEXT) \ dopewars.$(OBJEXT) error.$(OBJEXT) log.$(OBJEXT) \ message.$(OBJEXT) network.$(OBJEXT) serverside.$(OBJEXT) \ sound.$(OBJEXT) tstring.$(OBJEXT) winmain.$(OBJEXT) dopewars_OBJECTS = $(am_dopewars_OBJECTS) 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) SOURCES = $(dopewars_SOURCES) DIST_SOURCES = $(dopewars_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = gui_client curses_client gtkport cursesport plugins DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ @PLUGINS_FALSE@MYLINK = $(CCLD) # Nasty hack; there seems to be no other way of disabling libtool for the # link of the main executable... @PLUGINS_TRUE@MYLINK = $(LIBTOOL) --mode=link $(CCLD) LINK = $(MYLINK) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ @GUI_CLIENT_TRUE@GUISUBDIR = gui_client @CURSES_CLIENT_TRUE@CURSESSUBDIR = curses_client @GTKPORT_TRUE@GTKPORTSUBDIR = gtkport @CURSESPORT_TRUE@CURSESPORTSUBDIR = cursesport SUBDIRS = $(GUISUBDIR) $(CURSESSUBDIR) $(GTKPORTSUBDIR) $(CURSESPORTSUBDIR) plugins dopewars_LDADD = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @GTK_LIBS@ @INTLLIBS@ @WNDRES@ @PLUGOBJS@ @PLUGLIBS@ @GLIB_LIBS@ dopewars_DEPENDENCIES = @GUILIB@ @CURSESLIB@ @GTKPORTLIB@ @CURSESPORTLIB@ @INTLLIBS@ @WNDRES@ @PLUGOBJS@ dopewars_SOURCES = admin.c admin.h AIPlayer.c AIPlayer.h util.c util.h \ configfile.c configfile.h convert.c convert.h \ dopewars.c dopewars.h error.c error.h log.c log.h \ message.c message.h network.c network.h nls.h \ serverside.c serverside.h sound.c sound.h \ tstring.c tstring.h winmain.c winmain.h INCLUDES = -I../intl -I${srcdir} -I.. @GLIB_CFLAGS@ @GTK_CFLAGS@ PIXDIR = ${DESTDIR}${datadir}/pixmaps DOPEDIR = ${DESTDIR}${bindir} DOPEBIN = ${DOPEDIR}/dopewars PIXMAPS = dopewars-pill.png dopewars-shot.png dopewars-weed.png EXTRA_DIST = ${PIXMAPS} pill.ico magic dopewars.rc dopewars.manifest CLEANFILES = dopewars.res dopewars.exe all: all-recursive .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 dopewars$(EXEEXT): $(dopewars_OBJECTS) $(dopewars_DEPENDENCIES) @rm -f dopewars$(EXEEXT) $(LINK) $(dopewars_LDFLAGS) $(dopewars_OBJECTS) $(dopewars_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AIPlayer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/admin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/configfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dopewars.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/message.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/network.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/serverside.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tstring.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/winmain.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: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(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 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(PROGRAMS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-data-local install-exec-am: install-binPROGRAMS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-local uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-binPROGRAMS clean-generic clean-libtool \ clean-recursive ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-data-local install-exec \ install-exec-am install-exec-hook install-info install-info-am \ install-man install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-info-am uninstall-local install-exec-hook: @chgrp games ${DOPEBIN} || chgrp wheel ${DOPEBIN} || \ ( echo "WARNING: Cannot change group of dopewars binary - the high"; \ echo "score file may be unreadable or unwriteable by some users" ) chmod 2755 ${DOPEBIN} install-data-local: ${mkinstalldirs} ${PIXDIR} for pix in ${PIXMAPS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${pix} ${PIXDIR}; \ done uninstall-local: for pix in ${PIXMAPS}; do \ /bin/rm -f ${PIXDIR}/$${pix}; \ done %.res: %.rc windres -O coff -o $@ $< # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dopewars-1.5.12/Makefile.am0000644001565000007070000000242407711243016012411 00000000000000SUBDIRS = intl src doc po sounds DESKTOPDIR = ${DESTDIR}${datadir}/gnome/apps/Games DESKTOP = dopewars.desktop SCOREDIR = ${DESTDIR}${localstatedir} SCORE = ${SCOREDIR}/dopewars.sco EXTRA_DIST = ABOUT-NLS LICENCE dopewars.desktop dopewars.spec.in depcomp \ runindent.sh win32/Makefile win32/README win32/contid.h \ win32/dialogs.rc win32/filelist win32/guifunc.c \ win32/guifunc.h win32/makeinstall.c win32/setup.c \ win32/setup.ico win32/setup.rc win32/uninstall.c \ win32/uninstall.rc win32/util.c win32/util.h \ win32/zlib/Makefile.nocygwin win32/zlib/README.zlib \ win32/setup.manifest win32/uninstall.manifest \ win32/bzlib/Makefile.nocygwin win32/bzlib/README.bzlib CLEANFILES = dopewars.sco dopewars-log.txt dopewars-config.txt DISTCLEANFILES = dopewars.spec install-data-local: ${mkinstalldirs} ${SCOREDIR} touch ${SCORE} @chgrp games ${SCORE} || chgrp wheel ${SCORE} || \ echo "Unable to change group ownership of the high score file" chmod 0660 ${SCORE} ${mkinstalldirs} ${DESKTOPDIR} ${INSTALL} -m 0644 ${srcdir}/${DESKTOP} ${DESKTOPDIR} uninstall-local: /bin/rm -f ${SCORE} ${DESKTOPDIR}/${DESKTOP} dopewars-1.5.12/INSTALL0000644001565000007070000003446510355162631011421 00000000000000PREREQUISITES ============= dopewars _requires_ the GLib library for compilation, even when not using the GTK+ client. Other libraries may be required for additional features:- Unix/Linux: - Get GLib from http://www.gtk.org/ - For the GTK+ client, GTK+ libraries are needed, also from http://www.gtk.org/. To actually compile dopewars, you'll probably need your distribution's "gtk-devel" package. - For the curses client, curses, ncurses or libcurses_color libraries and headers are required. Windows: - Get Cygwin from http://www.cygwin.com/. It should be possible to build dopewars with C compilers other than Cygwin, but this is not supported. Make sure that when you install Cygwin you select the following packages for installation: pkgconfig gettext libiconv w32api mingw-runtime gcc make bash unzip - If you want to build from CVS, you will also need the following:- autoconf automake gettext-devel - dopewars requires GLib for Win32, which in turn requires libintl and libiconv. Links to the binary distributions of these can be found at http://www.gimp.org/win32/downloads.html. (You can also build them from the source code, but this is not described here.) The binary packages that you will need are: glib-2.4.7.zip glib-dev-2.4.7.zip libiconv-1.9.1.bin.woe32.zip gettext-0.14.5.zip gettext-dev-0.14.5.zip Later versions of any of these packages should also work. Note that the libintl and libiconv Cygwin packages will NOT suffice here. - These packages need to be installed on your Cygwin system under /target, so start a Cygwin shell, and execute something similar to the following: mkdir -p /target cd /target unzip /glib-2.4.7.zip unzip /glib-dev-2.4.7.zip unzip /gettext-0.14.5.zip unzip /gettext-dev-0.14.5.zip unzip /libiconv-1.9.1.bin.woe32.zip - In order for pkg-config to detect the installed packages, you need to put their .pc files (in /target/lib/pkgconfig) in the pkgconfig search path. One way of doing this is with the following command: ln -s /target/lib/pkgconfig /lib/pkgconfig - In order for the configure script to properly detect libintl, it needs to be placed in the include path: ln -s /target/include/libintl.h /usr/include/mingw - Finally, in order for GLib applications such as dopewars to work, the libintl, libiconv and libglib DLLs need to be in the Windows library search path. You can either copy them into the dopewars directory, or place them somewhere such as C:\WINNT\System32, either with Windows Explorer or with a Cygwin command such as: cd /target cp bin/intl.dll bin/iconv.dll \ bin/libglib-2.0-0.dll /cygdrive/c/winnt/system32 INSTALLATION ============ dopewars installation should require no more than the following:- ./configure make make install (To build a CVS version, you must have the automake and autoconf packages installed. Run ./autogen.sh instead of ./configure - this generates the Makefiles and configure script. You will also need the gettext package if you want to enable NLS support, in order to generate the necessary .po files.) The configure script checks to see if your system is a "normal" Unix or the Unix-under-Win32 "Cygwin" environment. On a Cygwin system, the default is to build a native Win32 binary with the Cygwin tools; this will then run without requiring the presence and performance penalty of the CYGWIN.DLL library. This test can be overridden (if, for example, you wanted to build the Unix version under Cygwin) with the --enable-nativewin32 option to configure e.g. to build the Win32 binary under Cygwin ./configure (Cygwin should be automatically detected) or ./configure --enable-nativewin32 to build the Unix version under Cygwin ./configure --disable-nativewin32 For a smaller binary, you may wish to build a "stripped" binary by specifying the -s option in LDFLAGS. In a Bourne-compatible shell, this can be achieved with a command similar to the following:- LDFLAGS="-s" ./configure The dopewars high score file is written as /usr/local/var/dopewars.sco on Unix systems or ./dopewars.sco on Win32 systems by default. On Unix systems, translations, documentation, sounds and graphics are installed in the locale, doc, dopewars and pixmaps directories respectively under /usr/local/share. (On Windows systems, these directories are under the current directory.) On Unix systems, you can move the score file with the --localstatedir flag to configure, and the other files with the --datadir flag. (On Win32 systems, the --localstatedir and --datadir flags are ignored.) The dopewars binary can also be moved from /usr/local/bin/dopewars with the --bindir flag. For example:- ./configure --bindir=/usr/bin --localstatedir=/var/lib/games will configure the system to write the dopewars binary as /usr/bin/dopewars and the high score as /var/lib/games/dopewars.sco Other options to ./configure include:- --enable-networking: Compile dopewars with support for running as a server, and/or to connect to existing servers over a TCP/IP network. (Without networking, dopewars will only be useable in single-player mode.) If this option is not specified, the configure script will enable networking only if it believes your system has the necessary support functions (select and socket). You can also explicitly disable networking with --enable-networking=no or --disable-networking --enable-gui-client: Compile a graphical dopewars client, using GTK+ on Unix systems and the standard libaries under Windows. If unspecified, this is enabled only if your system has the necessary libraries (e.g. GTK+) installed. --enable-curses-client: Compile a text-mode client, using ncurses or similar on Unix systems and the standard libraries under Windows. If unspecified, this is enabled only if you have ncurses (or similar) installed. --enable-gui-server: Use a (very basic) graphical interface to the dopewars server. If not specified, this is enabled under Windows and disabled under Unix (where a simple text-mode server is used instead). --enable-strict If using gcc to compile dopewars (recommended) then this turns on extra warning messages (useful for debugging, etc.) Unfortunately a lot of these warnings can be safely ignored, so this is not the default. WIN32 INSTALLER =============== In order to build the Win32 installer program for dopewars, place the libbzip2 source code (from http://sources.redhat.com/bzip2/) into win32/bzlib, and build it with make -f Makefile.nocygwin Then you should be able to build setup.exe by simply executing "make" in the win32 directory. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, 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. dopewars-1.5.12/ltmain.sh0000644001565000007070000055262210355115416012207 00000000000000# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # 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" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION=1.5.16 TIMESTAMP=" (1.1220.2.235 2005/04/25 18:13:26)" # 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 # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" quote_scanset='[[~#^*{};<>?'"'"' ]' ##################################### # Shell function definitions: # This seems to be the best place for them # 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. func_win32_libid () { 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 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` if test "X$win32_nmres" = "Ximport" ; then win32_libid_type="x86 archive import" else win32_libid_type="x86 archive static" fi 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_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 () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done 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 "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # 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. case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # 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 $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi 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 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xdir="$my_gentop/$my_xlib" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" status=$? if test "$status" -ne 0 && test ! -d "$my_xdir"; then exit $status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do 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 have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" $echo $echo "Copyright (C) 2005 Free Software Foundation, Inc." $echo "This is free software; see the source for copying conditions. There is NO" $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --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 $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # 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= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # 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= 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) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$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,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$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. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.f90) xform=f90 ;; *.for) xform=for ;; *.java) xform=java ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") qlibobj="\"$qlibobj\"" ;; esac if test "X$libobj" != "X$qlibobj"; then $echo "$modename: libobj name \`$libobj' may not contain shell special characters." exit $EXIT_FAILURE fi objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # 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 $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) 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 "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 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 $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "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." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </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." $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 $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </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." $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 $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi fi build_libtool_libs=no build_old_libs=yes prefer_static_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 case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$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 dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi 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 dlfiles="$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. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$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 non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework) compiler_flags="$compiler_flags $arg" prev= 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 compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes 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 $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=darwin_framework compiler_flags="$compiler_flags $arg" 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*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 exit $EXIT_FAILURE fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-mingw* | *-*-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 deplibs="$deplibs -framework System" 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 deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" if test "$with_gcc" = "yes" ; then compiler_flags="$compiler_flags $arg" fi continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # The PATH hackery in wrapper scripts is required on Windows # in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 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*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static) # 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 ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi 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 dlfiles="$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. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$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 non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" 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. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'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\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir status=$? if test "$status" -ne 0 && test ! -d "$output_objdir"; then exit $status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; 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 test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$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 test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$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 link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; 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 if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$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) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; 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 (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac 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 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." 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 -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; 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 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 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 used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi 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. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # 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 case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$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 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE 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. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$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 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$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 notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi 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 newlib_search_path="$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*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test 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 test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$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 -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 *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $dir" ;; 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 "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$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 if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if 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 "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; 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*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" 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 "$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* ) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; 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 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; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case "$libdir" in [\\/]*) add_dir="$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 $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$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:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; 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:"*) ;; *) finalize_shlibpath="$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 [\\/]*) add_dir="$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 convenience="$convenience $dir/$old_library" old_convenience="$old_convenience $dir/$old_library" 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*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$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" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared 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 "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs 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 "*) ;; *) lib_search_path="$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 "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$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 tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" 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 if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # 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="$2" number_minor="$3" number_revision="$4" # # 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 darwin|linux|osf|windows) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor - 1` age="$number_minor" revision="$number_minor" ;; esac ;; no) current="$2" revision="$3" age="$4" ;; 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]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; 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]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; 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]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE 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 major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) major=`expr $current - $age + 1` 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 iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` 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 iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; 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 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$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) ;; $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 removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. for path in $notinst_path; do lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` dependency_libs=`$echo "$dependency_libs " | ${SED} -e '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 temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$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 "*) ;; *) dlfiles="$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 "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-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. test "X$arg" = "X-lc" && continue ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$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. $rm conftest.c cat > conftest.c </dev/null` 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 "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$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 else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name="`expr $a_deplib : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$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 newdeplibs="$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 else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e '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 "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $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 fi ;; 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 is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; 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 # 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 if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$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 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"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$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" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$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 "$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 realname="$2" shift; 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" for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $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:" && len=`expr "X$test_cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # 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 output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*"` && test "$len" -le "$max_cmd_len"; }; then objlist="$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. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 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~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "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" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" 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\" 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 # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run 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 "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $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 wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${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" # $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" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac compile_command="$compile_command $compile_deplibs" finalize_command="$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 "*) ;; *) finalize_rpath="$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"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; 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"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$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 "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' else $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # 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/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= 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*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; 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 "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" 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 rpath="$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 rpath="$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 "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? 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" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e '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 "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "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}\" || 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 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) cwrappersource=`$echo ${objdir}/lt-${outputname}.c` cwrapper=`$echo ${output}.exe` $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR #define DIR_SEPARATOR '/' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) #define HAVE_DOS_BASED_FILE_SYSTEM #ifndef DIR_SEPARATOR_2 #define DIR_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 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); char * basename (const char *name); char * fnqualify(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup ((char *) basename (argv[0])); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = fnqualify(argv[0]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } char * basename (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha (name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return (char *) base; } char * fnqualify(const char *path) { size_t size; char *p; char tmp[LT_PATHMAX + 1]; assert(path != NULL); /* Is it qualified already? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha (path[0]) && path[1] == ':') return xstrdup (path); #endif if (IS_DIR_SEPARATOR (path[0])) return xstrdup (path); /* prepend the current directory */ /* doesn't handle '~' */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ p = XMALLOC(char, size); sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); return p; } 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; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # 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. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # 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 variable: 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 echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e '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 \"X\$file\" | \$Xsed -e '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 \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ 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 >> $output "\ # 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 $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # 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 \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \$progdir\\\\\$program \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \$progdir/\$program \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" exit $EXIT_FAILURE 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 $EXIT_FAILURE fi fi\ " chmod +x $output fi 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" 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" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$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 # 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 $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" status=$? if test "$status" -ne 0 && test ! -d "$gentop"; then exit $status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_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 for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*"` && test "$len" -le "$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= 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 save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "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}\" || 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 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; 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 "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then 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) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # 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' # Libraries that this one depends upon. dependency_libs='$dependency_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 fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # 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. $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg="$nonopt" fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest="$arg" continue fi case $arg in -d) isdir=yes ;; -f) prev="-f" ;; -g) prev="-g" ;; -m) prev="-m" ;; -o) prev="-o" ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest="$arg" continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; 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. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$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 "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. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi 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 $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$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 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run 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 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` 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 file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # To insure that "foo" is sourced, and not "foo.exe", # finese the cygwin/MSYS system by explicitly sourcing "foo." # which disallows the automatic-append-.exe behavior. case $build in *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; *) wrapperdot=${wrapper} ;; esac # If there is no directory component, then add one. case $file in */* | *\\*) . ${wrapperdot} ;; *) . ./${wrapperdot} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # To insure that "foo" is sourced, and not "foo.exe", # finese the cygwin/MSYS system by explicitly sourcing "foo." # which disallows the automatic-append-.exe behavior. case $build in *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; *) wrapperdot=${wrapper} ;; esac # If there is no directory component, then add one. case $file in */* | *\\*) . ${wrapperdot} ;; *) . ./${wrapperdot} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir="/tmp" test -n "$TMPDIR" && tmpdir="$TMPDIR" tmpdir="$tmpdir/libtool-$$" save_umask=`umask` umask 0077 if $mkdir "$tmpdir"; then umask $save_umask else umask $save_umask $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 continue fi file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyways case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $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" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "----------------------------------------------------------------------" exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 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 -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables if test "${save_LC_ALL+set}" = set; then LC_ALL="$save_LC_ALL"; export LC_ALL fi if test "${save_LANG+set}" = set; then LANG="$save_LANG"; export LANG fi # 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 ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" 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) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; 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 (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" if test "$mode" = uninstall; then if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. fi fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$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 rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [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 --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information 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. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [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: $modename [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 -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking 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: $modename [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: $modename [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: $modename [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 rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [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 -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 -static do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] 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: $modename [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." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # 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: dopewars-1.5.12/dopewars.spec.in0000644001565000007070000000742007711243016013463 00000000000000Summary: Drug dealing game Name: @PACKAGE@ Version: @VERSION@ Release: 1 Vendor: Ben Webb URL: http://dopewars.sourceforge.net/ License: GPL Group: Amusements/Games Source0: %{name}-%{version}.tar.gz Obsoletes: dopewars-esd = 1.5.7 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) BuildRequires: SDL_mixer-devel, SDL-devel, esound-devel %description Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. dopewars supports multiple players via. TCP/IP. Chatting to and fighting with other players (computer or human) is supported; check the command line switches (via dopewars -h) for further information. %package sdl Summary: dopewars SDL_mixer sound plugin Group: Amusements/Games Requires: %{name} %description sdl This package adds a plugin to dopewars to allow sound to be output via. the Simple DirectMedia Layer mixer (SDL_mixer). %prep %setup %build %define _localstatedir /var/lib/games %configure --with-sdl --with-esd make %install make install DESTDIR=${RPM_BUILD_ROOT} %find_lang %{name} %clean test "$RPM_BUILD_ROOT" != "/" && rm -rf ${RPM_BUILD_ROOT} %post %{_bindir}/dopewars -C %{_localstatedir}/dopewars.sco %files -f %{name}.lang %defattr(-,root,root) %doc ChangeLog LICENCE README doc/aiplayer.html doc/clientplay.html %doc doc/configfile.html doc/contribute.html doc/credits.html %doc doc/developer.html doc/example-cfg doc/i18n.html doc/index.html %doc doc/installation.html doc/metaserver.html doc/server.html %doc doc/servercommands.html doc/protocol.html doc/windows.html %attr(2755,root,games) %{_bindir}/dopewars %attr(0660,root,games) %config %{_localstatedir}/dopewars.sco %{_mandir}/man6/dopewars.6.gz %{_libdir}/dopewars/libsound_esd.so %{_datadir}/gnome/apps/Games/dopewars.desktop %{_datadir}/pixmaps/dopewars-pill.png %{_datadir}/pixmaps/dopewars-weed.png %{_datadir}/pixmaps/dopewars-shot.png %dir %{_datadir}/dopewars/ %{_datadir}/dopewars/bye.wav %{_datadir}/dopewars/colt.wav %{_datadir}/dopewars/die.wav %{_datadir}/dopewars/gun.wav %{_datadir}/dopewars/jet.wav %{_datadir}/dopewars/losebitch.wav %{_datadir}/dopewars/message.wav %{_datadir}/dopewars/murmur.wav %{_datadir}/dopewars/punch.wav %{_datadir}/dopewars/run.wav %{_datadir}/dopewars/shotdown.wav %{_datadir}/dopewars/train.wav %files sdl %defattr(-,root,root) %{_libdir}/dopewars/libsound_sdl.so %changelog * Mon Jul 28 2003 Ben Webb - High score file moved to /var/lib/games for consistency with other packages * Mon Oct 21 2002 Ben Webb - Dependency on SDL-devel added to properly build SDL plugin * Fri Oct 18 2002 Ben Webb - ESD plugin incorporated into main package - Sound files added to distribution * Fri Jun 21 2002 Ben Webb - Description typos corrected - A lot of hardcoded texts replaced with %{name} etc. - Redundant make arguments removed * Mon May 13 2002 Ben Webb - SDL and ESD plugin subpackages added * Sun Feb 03 2002 Ben Webb - Use of %attr tidied up - Rebuild with new version * Wed Oct 17 2001 Ben Webb - Added in %attrs to allow building by non-root users * Wed Sep 26 2001 Ben Webb - Added support for a buildroot dopewars-1.5.12/NEWS0000644001565000007070000001476710355323021011062 0000000000000030th December 2005 dopewars-1.5.12 released. This really fixes the potential exploit against the Windows server, which was not correctly fixed in 1.5.11. 30th December 2005 dopewars-1.5.11 released. This is largely a security bugfix release, fixing a potential exploit against the Windows server when running as an NT serivce. 24th October 2004 dopewars-1.5.10 released. This is largely a bugfix release, fixing a server DOS and some minor bugs in the text-mode client. 7th June 2003 dopewars-1.5.9 released. This is largely a bugfix release, fixing a crash on pressing the "drop drugs" button, and adding minor improvements to the text-mode client. 21st October 2002 dopewars-1.5.8 released. The Windows and GTK+2.0 builds now have fairly complete Unicode support. A default set of sounds is now provided, and Windows XP is better supported. 25th June 2002 dopewars-1.5.7 released. There is now sound support (ESD and/or SDL on Unix systems, WinMM on Win32) although you have to provide your own WAVs (musicians take note - if you can provide suitable copyright-free sounds, then they can be included in future releases). Some minor bugs have been fixed, and overall security has been tightened up. 29th April 2002 dopewars-1.5.6 released. This corrects some problems with the GTK+2.0 client in non-UTF8 locales, fixes a server memory corruption bug, and adds extra sanity checks to the server to foil cheating clients. 13th April 2002 dopewars-1.5.5 released. The code should now compile with GTK+2.0, and several minor glitches have been fixed. 3rd March 2002 dopewars-1.5.4 released. This fixes bugs observed on the PPC platform, and adds a configuration file editor to the graphical client. 4th February 2002 dopewars-1.5.3 released. This fixes several bugs and annoyances in the Windows version, and supports running the Windows server as an "NT Service". The Unix server is now also more daemon-like. 16th October 2001 dopewars-1.5.2 released. This features a new networking subsystem, with HTTP/1.0 and SOCKS4&5 support, and now has a familiar install/uninstall program for Windows systems. 19th June 2001 dopewars-1.5.1 released. This fixes a few minor bugs, and supports the "new" metaserver on SourceForge. 13th May 2001 dopewars-1.5.0 released. This improves on 1.4.8 by adding a graphical client, and features many security and usability fixes. 29th April 2001 Second beta release of 1.5.0, fixing several bugs that were reported with the first beta. 9th April 2001 Beta release of the new dopewars version, 1.5.0, which features a graphical client, internationalisation, and rewrites of many parts of the code. 10th September 2000 The dopewars project, previously hosted solely at http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/ now has an additional home at SourceForge! This is to allow developers easier access to development codes (by CVS) and to take advantage of SourceForge's mailing lists and forums. Translators are particularly needed for translation of the development version of the dopewars code into other languages! 2nd August 2000 The German translation now has its home at http://www.ideenpark.de/dopewars/. This site also mirrors the original English version of the program. 28th July 2000 A German translation of dopewars is now available, at http://www.rLUG.de/files/dopewars-german/. 9th July 2000 dopewars 1.4.8 released. This features a complete revamp of the metaserver interface - new servers now report game data, such as current number of players and high scores, to the metaserver. Several bugs, mainly in the Win32 networking code, have been fixed. 2nd July 2000 A mirror in the US is now available for dopewars downloads. Follow the US links (as opposed to the UK links) on the download page to download from this site. 14th January 2000 dopewars 1.4.7 released. This now uses autoconf to build on a variety of "odd" Unices, and also "out of the box" under Cygwin (Win32). Servers for which the IP is incorrectly resolved by the metaserver can now set a preferred hostname with the "MetaServer.LocalName" variable. 31st Decemeber 1999 The Polish version of dopewars has moved to http://dresswars.mtl.pl/ 12th November 1999 dopewars 1.4.6 released. This fixes a few minor bugs with 1.4.5, and is now also available on the popular Windows platform. A Win32 binary can be downloaded from the download page, http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/download.html. 8th November 1999 A translation of the dopewars pages and dopewars client software into Polish is now available at http://naboo.mtl.pl/~dopewars/. 21st October 1999 dopewars 1.4.5 released. Client players can now be instructed to connect to the metaserver, to present a "nice" list of available servers for the user to select from; more configuration options; metaserver almost works with web proxies now. 11th October 1999 Snapshots of the latest in-development version of dopewars are now made available on a semi-regular basis at the main download page. HTML documentation is also now available. 16th September 1999 dopewars 1.4.4 released. This handles connection to the new metaserver automatically, so that the list of dopewars servers can be easily kept up to date. Other minor changes fix small bugs from earlier versions. 15th September 1999 Servers can now be registered by completing the form at http://bellatrix.pcl.ox.ac.uk/~ben/dopewars/serverform.html. The upcoming version 1.4.4 of dopewars will be able to handle the connection to the web and the completion of registration details automatically. 23rd June 1999 dopewars 1.4.3 released. This adds many new features (while hopefully not adding any new bugs) such as much better fight handling, and the ability to customise dopewars servers and clients. 16th May 1999 dopewars 1.4.2 released. This version fixes numerous minor bugs and makes many small improvements - most noticeable is the support for AI players in multiplayer games (dopewars -c). 28th April 1999 Interim release of dopewars 1.4.1b, which fixes a segfault problem with the server. 28th April 1999 Interim release of dopewars 1.4.1a, which corrects a few minor bugs in "antique" mode. 27th April 1999 dopewars 1.4.1 released. This fixes a bug with the loan shark, which was discovered by several people quick off the mark; dunno how that slipped past my team of beta testers here at Oxford - they're obviously too busy doing "real" work! 27th April 1999 First GPL release of dopewars (1.4.0) dopewars-1.5.12/depcomp0000755001565000007070000002752507506105756011755 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # `libtool' can also be set to `yes' or `no'. depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. This file always lives in the current directory. # Also, the AIX compiler puts `$object:' at the start of each line; # $object doesn't have directory information. stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" outname="$stripped.o" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; tru64) # The Tru64 AIX compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. tmpdepfile1="$object.d" tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'` if test "$libtool" = yes; then "$@" -Wc,-MD else "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi if test -f "$tmpdepfile1"; then tmpdepfile="$tmpdepfile1" else tmpdepfile="$tmpdepfile2" fi if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a space and a tab in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. test -z "$dashmflag" && dashmflag=-M ( IFS=" " case " $* " in *" --mode=compile "*) # this is libtool, let us make it quiet for arg do # cycle over the arguments case "$arg" in "--mode=compile") # insert --quiet before "--mode=compile" set fnord "$@" --quiet shift # fnord ;; esac set fnord "$@" "$arg" shift # fnord shift # "$arg" done ;; esac "$@" $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" ) & proc=$! "$@" stat=$? wait "$proc" if test "$stat" != 0; then exit $stat; fi rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) # X makedepend ( shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift;; -*) ;; *) set fnord "$@" "$arg"; shift;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@" ) & proc=$! "$@" stat=$? wait "$proc" if test "$stat" != 0; then exit $stat; fi rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tail +3 "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. ( IFS=" " case " $* " in *" --mode=compile "*) for arg do # cycle over the arguments case $arg in "--mode=compile") # insert --quiet before "--mode=compile" set fnord "$@" --quiet shift # fnord ;; esac set fnord "$@" "$arg" shift # fnord shift # "$arg" done ;; esac "$@" -E | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" ) & proc=$! "$@" stat=$? wait "$proc" if test "$stat" != 0; then exit $stat; fi rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. ( IFS=" " case " $* " in *" --mode=compile "*) for arg do # cycle over the arguments case $arg in "--mode=compile") # insert --quiet before "--mode=compile" set fnord "$@" --quiet shift # fnord ;; esac set fnord "$@" "$arg" shift # fnord shift # "$arg" done ;; esac "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" ) & proc=$! "$@" stat=$? wait "$proc" if test "$stat" != 0; then exit $stat; fi rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 dopewars-1.5.12/ABOUT-NLS0000644001565000007070000003744207366605037011627 00000000000000Notes on the Free Translation Project ************************************* Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work at translations should contact the appropriate team. When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. Quick configuration advice ========================== If you want to exploit the full power of internationalization, you should configure it using ./configure --with-included-gettext to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias, message inheritance, automatic charset conversion or plural form handling) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. So you need _not_ provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. INSTALL Matters =============== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. If not, the GNU `gettext' own library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is _not_ required. Installers may use special options at configuration time for changing the default behaviour. The commands: ./configure --with-included-gettext ./configure --disable-nls will respectively bypass any pre-existing `gettext' to use the internationalizing routines provided within this package, or else, _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl.a' file and will decide to use this. This might be not what is desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use ./configure --with-included-gettext to prevent auto-detection. The configuration process will not test for the `catgets' function and therefore it will not be used. The reason is that even an emulation of `gettext' on top of `catgets' could not provide all the extensions of the GNU `gettext' library. Internationalized packages have usually many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. Using This Package ================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. Translating Teams ================= For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `translation@iro.umontreal.ca' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skill are praised more than programming skill, here. Available Packages ================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of May 2001. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files bg cs da de el en eo es et fi fr gl hr id it +----------------------------------------------+ a2ps | [] [] | bash | [] [] [] [] | bison | [] [] [] [] | clisp | [] [] [] [] | cpio | [] [] [] [] | diffutils | [] [] [] [] [] [] [] | enscript | [] [] | error | [] | fileutils | [] [] [] [] [] [] [] | findutils | [] [] [] [] [] [] [] [] | flex | [] [] [] | gawk | | gcal | | gcc | [] | gettext | [] [] [] [] [] [] [] [] [] | gnupg | [] [] [] [] [] | grep | [] [] [] | hello | [] [] [] [] [] [] [] [] [] | id-utils | [] [] | indent | [] [] [] [] [] | libc | [] [] [] [] [] [] [] [] | lilypond | | lynx | [] [] [] | m4 | [] [] [] [] [] [] [] | make | [] [] [] [] | parted | [] [] | ptx | [] [] [] [] [] [] [] | python | | recode | [] [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sh-utils | [] [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | soundtracker | | sp | | tar | [] [] [] [] [] [] [] [] | texinfo | [] [] [] [] | textutils | [] [] [] [] [] [] [] | util-linux | [] | wdiff | [] [] [] [] [] [] [] | wget | [] [] [] [] [] [] [] [] [] | +----------------------------------------------+ bg cs da de el en eo es et fi fr gl hr id it 0 14 21 27 10 1 8 20 13 1 28 17 0 9 11 ja ko lv nl no pl pt pt_BR ru sk sl sv tr zh +----------------------------------------------+ a2ps | [] [] [] | 5 bash | | 4 bison | [] [] [] | 7 clisp | [] | 5 cpio | [] [] [] [] [] | 9 diffutils | [] [] [] | 10 enscript | [] [] [] | 5 error | | 1 fileutils | [] [] [] [] [] [] [] [] [] | 16 findutils | [] [] [] [] [] [] | 14 flex | [] [] [] | 6 gawk | | 0 gcal | | 0 gcc | [] | 2 gettext | [] [] [] [] [] [] [] [] [] [] | 19 gnupg | [] [] [] | 8 grep | | 3 hello | [] [] [] [] [] [] [] [] | 17 id-utils | [] [] [] | 5 indent | [] [] [] [] [] [] [] | 12 libc | [] [] [] [] [] [] [] | 15 lilypond | [] | 1 lynx | [] [] [] [] [] | 8 m4 | [] [] [] [] [] | 12 make | [] [] [] [] [] | 9 parted | [] [] [] | 5 ptx | [] [] [] [] [] [] | 13 python | | 0 recode | [] [] [] | 11 sed | [] [] [] [] [] [] [] | 16 sh-utils | [] [] [] [] [] [] [] [] [] [] | 19 sharutils | [] [] [] [] | 11 soundtracker | | 0 sp | | 0 tar | [] [] [] [] [] [] [] [] | 16 texinfo | [] [] | 6 textutils | [] [] [] [] [] [] [] [] | 15 util-linux | [] | 2 wdiff | [] [] [] [] [] | 12 wget | [] [] [] [] [] [] [] [] | 17 +----------------------------------------------+ 29 teams ja ko lv nl no pl pt pt_BR ru sk sl sv tr zh 40 domains 18 8 0 23 6 16 1 15 26 9 9 20 2 3 336 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If May 2001 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. Using `gettext' in new packages =============================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course the GNU Public License applies to your sources from then if you include `gettext' directly in your distribution on but since you are writing free software anyway this is no restriction. Once the sources are change appropriately and the setup can handle to use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `translation@iro.umontreal.ca' to make the `.pot' files available to the translation teams. dopewars-1.5.12/COPYING0000644001565000007070000004313207156722202011413 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. dopewars-1.5.12/sounds/0000777001565000007070000000000010355323337011755 500000000000000dopewars-1.5.12/sounds/19.5degs/0000777001565000007070000000000010355323337013214 500000000000000dopewars-1.5.12/sounds/19.5degs/shotdown.wav0000644001565000007070000002221007541421127015510 00000000000000RIFF€$WAVEfmt ø*ø*data[$€€€€€€€€€~~€€€€~€‚ƒ‚~}€‚€‚‚{~‚ƒ‚}}€|y‚„…yrxt~€ƒ‡‡‚s…wy„ Ž‡kfnw…‰}…ŒŠp]rkxt ›€€lŒ—wu}‰Œ’w‚u_v‡~tcpˆ€kjqt˜|Tmjh”‘cWo…||r†x‡|‡­”q[‡s‡¥™†}w~skƒy£‹__x{of]v€e†Šmku”‘zŠjmv€ek‡¡‚‡’Œq¢p„“vr{‚xx•Ž}xˆœŽzƒŽ ‰pmnpxŠ–”†ƒŠ~pldok}zu…ƒsp‚‚ƒwyz|uqsvnqpszqs€–|‰kn€ƒ~„rt~„˜”Ž…zz}qk‹ˆ~~ƒji{‡ˆ€Ž„zz~ƒ“}yvu{Œ™”†|€yx‡ˆˆ€zƒ‚‚~{xƒ{u†Š™ˆ|mguŽ“•›“kqs„ŽƒŠŠ‰mgsƒ„jXUpˆ˜ª§¤„‡…“†€ƒ~}}|r|wxyu‹mkhnssxuqxox{szxz‡„‹‚Œ„x”‡{™†—™|hŸŠdt}h}—p†œy`h_Ya}˜‡}fqw{ztƒ€fm˜~f]x†w~–”xZem‘›„vf_˜‚{{jy¦£’ˆymjiiflb|ƒ|‡}™¤•‡{vstlkx|pyuhu€ƒˆ‚vqw…‰‹€tekk}ƒŠ|Œ‰““‹|ƒŠ‹‰•ƒŽ’‡‹’„ˆ‡‘Ž€‘‘—Œ€~wŽ‘‹Šƒxhnrstu{wpy€|‡yumlllsoz~~…uqwip{|qqzkcf|xtq|ssszpsxvtpddq†dXi€œ¤ Œyz‡Ž‰…‰‹€|}‚…€€‚€|eozЉypuŒ{‰€œ’“‰“ŠŽ••ŽŒ‹‡‹ˆŒŒ’Œ‰ƒŠy‰ˆŒ‡†‰ƒ€ƒ‚‡„‡~y€ƒ‚ŽŒˆ…„zqsty„„ˆ‡…†€ƒs|‚‚xxy€vƒ€…‚wv€vnv}{zt}zqgimq}vz•Ž„ykumak{y|~}xyzyuvz…¢™“ j[eijV_meo}’ŸŸ™‹‰†‰xi]^bdiuš‚›‘z„‘Œƒ„~iWecmpbyŽt^u‹Ÿ«¤‘‚™‰vlivƒ…„€‚‰“—™{es~Œ££{t~mU`oˆ‹‰’™„‚„qjt}xxˆ’•…|tuwx‡‰t‡‡†‘‹wp‚wemo~Ž‚ƒ¡…ŒqnurnvƒszŠŽv}€pivpv‡›‡zpoyrq€€~ŠŒ…†}fnt‚‡zyy‚‡ŠŽŒ…oXZvŒ ©£†{z‹…Š}ds{€¢—•’z€~t‹uu~x~w‹—Š…{ip„‡{‚†|„‘…|†p{rr’˜ƒ~†‚Žzqmmm~ytƒ‘——‰ov…jexsswš‡Š„wŠvehplzƒxy{Š€‚{hldjyxxu~‰„}~…lnyrxz“wX[pŠ¥¨x^m~|gjry•Ž}€ƒ{ljm{„ƒ}‰€x{~‚‚„yvrxzy†~†Žzrtor~v…– “„€zx€ˆ†‡|zy}”Œššƒ}€{€j]q­‰‡š|Ž‘wˆœ‹pngrp“‰„¢“u‡}u{†{}~tr{z|‹†‰‰Šwtvpu’–ŠŽ„}€spgf~†Ž“”‹vyrƒƒ†zw~sr€‹†ƒ‰r|€og\u™‘€€~‰—’ujw|mq{‚‚Гހ}}ympjty~…‡Œƒymotwx{‹}yo{{u€†‡ˆƒwyylk…|zyqw‡’Œ‹‹ƒyidox}€’Œˆzqlny}†‡Œ‹ˆ…uv~ƒ|l†“~v‰Š‚z„‰„xr€ƒ„‚€Šƒt|Œˆz‘ž„vldn~†’‘‹†‚€|vrtmzƒ…Š‹…‡|yuqp†Ž‡~zow‚†‰…ƒ‹†zjo†ƒ…ƒ€}~w~ƒƒus|ˆŠ†wilx}~}‹…zk„|zpuwxz‰„‚xsnw{„‡‚‚z{ytx€„††€{xzww‚‡ˆ…‚ˆ…zpnt‡‘˜‹‡{qsp~€‡’‰†‚}|y~|{|†ˆŠ†|yv|‡‹Š‚ˆ}vsx‚†…ŒŒ†x|zwsyx~„ŠŠyvl|Šˆ‰Šsmr~‚€ˆ‘Š~z{zyxw|y{~„…‡„~|tu|ƒŠ‚„vsu€x†‚Šˆ{yiryv„}†‹€yqvy‡~‚‡urs~€~ˆ‰{|zxuvy~~ƒ„Œ‡„|tvmr€‘Ž…ˆtlr{„€‡Œ†||syytv}…‹Š‰Š}sos|…ˆŽˆƒ}qww|„‹‹‡€{uwu{}}…†‰ƒ{wssxˆ‹‹‹ƒtmqw|‰Š€xqmoqu„”Œworw€……‚~w|€„…Љ†€wtstx‡ŒŠ‡‚zohnƒŠ|hju|’‡oy€}|‰€ylqyˆ‘’†tiiszƒ‘‡|sntzˆˆ‹„|vzz{|…€|z~}{yƒˆƒƒ†~tmx~€}ˆŽŒ€}ttw|~†ŒŒ„||uooy‰Œˆƒwsqq‚Œ‰‚„vw‡~‚ywssz„ˆŒŽ†ulpyƒŽŒŽ‹€uppy…‹Œ‰€zwyxzu}x‚ƒ„‰ˆvlv~‚†‡‹ƒvrw€zˆ‡€||xv|„…„†w|}yxtƒ‚‹ƒ‚vnqzq|†Š‚‹ˆ•‡pqqwzww€y…Žƒacrv~‡žš€‚yntuuŠ~…€ƒ~o‡ƒx‡~u}„si~ˆ‡”š“vo„zs…{†ˆzo†twˆ‹Šxdq{xu‚‹†~Š’€s€Ž~ƒwyfg…tpzlo}|wv’–yssju‡yx…£¡†y|sukhtuŠ˜ŸŸ•ƒppgspq†ƒŠ”Šw}„‡‘‘•Š€{}pw„{qoloƒ‰Šv‚fWWs„oyš•‹—„ˆ†qs€†€o€”†yredbWb‚ŽˆŠ‹‘vt†|zŽ}“Œ{ƒ‰~vwtus{|“‡~z‚qpiq‚››†z|~~piƒ…„Š„~ftrk|xrop‰€€†‡€lsˆ‰ƒ‘…}vos€x{’‘zpipqyˆˆ„{ŒŽw|Œ‰nlkw‚†‡’˜€qlsn}u~—›}~‘‡km†}„vv‚w{‡lstsk{‘‡™–|vf|ƒuŠ‹…‰z…}xttˆlu†wr†Ž€z}hy‡}šzqmxŒƒ‡–‡{‰ix€{Œƒxƒˆ‹ƒvo~‚ƒ|q~{oˆŒ”އ‚tjvty}sŒ¡˜~ˆˆ}sgnwyqy‰“†‹‡|qrqorŒ£™…}shpy‹}…zytwy}}”|{spy}r~€u‚‚Ž“ƒ‚rguzxw~’Œ‡ˆŽlwygjpsxv‰Œƒƒx€}skd}‰…†‰€z‚~q…ˆ„€€~yly‰ŠŒ„}‰€jor}€v{˜Ž†w‚‡{z„Žƒ~w~ŒvŠŒ‚„ƒv~x„†ƒ…zy|rw€|†‡xuwy~„~Œ‹y|†€‚|z|€ƒ†€z„„€}…}…‹zyŒƒ|xwzu~z€xx|€~ƒ€yy~†|{}xr€}zy†~z{}‚|v‚‚‚€…‚~„†„ƒ€€€ƒ€}z||~~ƒ€|{||€}||€~~€~~€‚‚€ƒ…„‚„„ƒ„ƒ‚……ƒ€‚‚ƒƒ‚€~~€~€|z|€|~~xx}yzy|}}|zyz{{ƒ}}~|~~~‚ƒ‚‚}„‰–’…|xi]gut€‡ŽŠ†|qtn`fv‡yq“Œ|•’z}Šw†zy{}~szŠƒ‡†‡†€‡‚€t‚€‚…€‚‰ƒ‚€}}||zƒ||†‚…€|І†~~ƒ|z€|ƒ„€}…„}‚‚y††}€…~u‡y|Œ~„y}t…ww}v~v~€…‚…x~„‡y‚}€|€}{|||z|{u€‚‚~wp}‚y…y‚|ƒ~|z{„}„Šžˆ}}p\[fwx{Žx{„qnpps{yŽŠ”Š‚€|{†‚z}€ƒƒˆ††‰„€w|~{{{€…„ˆ„…„‚‚ƒ~‚~|~{~}|~„ƒ…ƒ‚‚€~€ˆƒ~|{w|„{€€ƒ|}€~~}}~~‚|‚}z}||~‚y{~z|z{‚~{}z|}{~‚}{zƒ}}€}~}~|~€€{|}~ƒ|~|}€ƒ€‚€€|€}€€€€€‚ƒƒƒ}~‚ƒ€‚~€€‚€€€}€€‚‚‚~}‚~|~~€~~‚}}€}~~|~~}~€€}|}€~€€}~€|~‚€~~~€€}}|€}}~~~~€|}€€€~}}~€~€€€€€€‚€~~€}~€€€€€~€~~~~~~}~~~~€~}}€€€~€€€€~~~€€€~}}~~}~~€€‚€}}z~~€~}~}€€}~|~~€}z€…€~~~}}€~~~€€€€€~~€€€}~€€€~}~ƒtw{{€€‚€~~z~€€~‚‚~{|~y}~|}}{}€‚€~~€‚€€~}‚‚~€‚€ƒ€|€€~€€€€~€~|}€€‚~}}€€}~~€€~~}~~~~~~~~€~~~}ƒ€€‚€€€}}}€€~~€€€~€€€~€€~~}}€€€~|~€ƒ~|}„€€||€}€€€~}~€€€€~}~€€€~~~€€€€€~€€€€€€~€~€~~€~~~~~~}|~|}~€~~}}}~|~~~~~}~}€~~~~~~ƒ~€€€~€€€€~~€€€~~€€€~€€€€~€~€€~|€€~}}€|}€€~€z|€ƒ„€}|}~~}~€~€€~~~~€€€€€€~€€€€€€€€€€‚‚}}€€€€€‚€€~~€€~€€~€€~€€€~€~~€€€€~€€€€~€}€€€€~}~~~~~~~€~}‚~~~|}~}~€‚€~€€~€€€€€~€~€€~‚}x‚†€ƒ€|||€~}‚}~€~~~|}|}€€€~~€~€€€€€€€€~~€~}~~~~€€~€~}}{}~}|}~~{~}}}~€€~~~~€€€‚€€€€~€€~~}~~|~€€~~€~}}~€€€~}€‚‚€~}~~~~€€€~€~€|~€~|€€{~€‚|~€~~|€€‚€€€€€€€~~}~€}|€€€‚‚€€‚€€€‚€~~€~€}~~€}~€€}~~~€€€~€€~€~~€€~~€€~~~€~}~~|}|}€€‚~€€€~~€~€~~~~~€~~€~€~€€€€€€€€€€€€€~€€~…”†zpbfloqv”Ž“•Ž‹Ž~rlrrrsrqw}‚„Ž–‹†‚‚€yvxz€ƒƒ„„……†ƒ€}‚}}€…„…„v…~€‡}ƒ~|z|‚}z€{~y|{z{z}{|€~}xq„~wzzz~{‚{{}|{{}~}~~}}~}|{|}~~€~€~}~}€€€€€~€‚}€€€~~€‚€€‚€€€€€€‚‚€€€€€€€€ƒ‚€‚€€€~€~ƒ‚‚€€‚€€}~}€€€€~€|}~€€€€€€~~~~~}}~}~~€}}~}}€~}€~~~}~~~}}|€€€}}~|~}€~~‚€~~|~~{~‚‚}€€€}}€~~€}}€€€~€€}~€€~}}~~€~€€€~€€€€€€~€€~€~~€€€~~€€€~~~~~€~€~€~~€€~€€€~}€€€~~€~€€~~}€€€~~~€€€€~~~€€€€€~€€~~€€~‚€~€€€€~~€€~~~~€€~~€€~}‚~~~}}‚ƒ~~€{€€~z‚…}|…}}}||‚‚}zy|~~ƒ€~€€|€|~‚€‚€€€€€~€€~~~~}~€€€€~~~€€}~€€}€€€~€~|}‚~}}}~€€}~{~‚~~|~||€~‚}}oˆ‡~……|{z~{~~~€|x}„‚{vˆ€{Љz{{xz{ƒ||€€€}|~|€€~}€€‚€~~~~~€€€€~€€€€€€~~€€€€}~~€ww„ŠŠƒy|€}~‚|~y{€€€€‚‚~||||}€‚‚‚€€~~|}}}~€€€€€~~}|}|~}€€€€€~}}{~~~‚~€€~~}~€€€€~~}}~~€€€€~~~}~~€€€€€~}}~~~~~€€€€€~~~~~~~€€€€€~~€€~€|}‚‚~~€}~€~}€~~€€€€€}~€€€~~€€€€€€€~~€€€€€€~€€€€€€€€€~}~€|ƒ€}„…€t{€z}ƒ}{}}€‚~€€|~~~~€€€€€~~}~€€€€€~~~~~~~€€€~~~~€€€€}~~~~~€}€€€}}}~€~€~€~{j„ŽŒˆ}s~||x€ƒ‚~xz~ƒ€€‚‚~~}~|}|~€€€€€€€~}}~€€€€€€~}~~€€‚€~~~~€€€€~~}~~€€€€~~~€€€€€€~~~€€€€€~~~~~~~€€€€~~~~€€~€€€€€€€€€€€€€€€€~~~~~~~}~~}~~~~~~~~€€€€€€€€€€€€~~~€~€€€€€€€€€€€€€€€€€€~~€€~€~~~€~~~}€€~€€|€€}€~|~}~€~~~€ƒ}€~€}‚~}€~€€|€€~~~~€€€~€~€}€~~~€~}€~}~~~~}~~€~~~€~~€~€€~€€~€€~€€€€€€€~€~€~~~~~~~€~€€€€€€€€~~€€€€€€€€€€~~€~~€~}~~~~€~~~€~~€~€}€~€|€~€|ƒ{€|€€z„}~}~~‚z„{‚{‚}€€€~€€~€~€}€}€~€€€}€~~ƒ{„}}~~€€~~€~€}€}}€~}€}~~€~}€}€~~€€~€~~€€~~€}€~~€}€€~€}~|†x€„~€}~…}}€}„{}€~~€}€~€€~€}~€~‚~€~~€~€~€€€€~€~~€€€€~€€€€~€€~€€€€€€€€€€€€€€€€€€€~€€€~€€€~€~€€€€~€~~~~||~€}€~~~~€~~}€~~~€~~~~~~€~~€€€~€€€€€€€€€€€€~~€€€€€~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~€€€€~€|…}|ƒ€zƒ}‚}„{ƒ{€€€}€~~€~~~€~~~~~}}~|€~|€}||€}}|‚~x}‰|w|Š}v€…{{ƒ}{‚|{„~~}‚{‚{‚|€|€€€}„}~~€~}~€€~€|€~~€}€}~~€}~~}~}~€~}€~}‚}}z‚|}~€}}€~}€€}€}€€~€€€~€€€~€€€~€€~€€€€€~†{}‡~{„‚|~ˆy‡z€ƒ|€€€€}ƒ}€€€€€€€€€€€€€€€€€~€€}€~€~~}~}~€~}€{~}}}~€|€~€}€}€~~€€~~€~~€|‚|€}~€{€~€~€}€}€~€~€~~~…wƒ~{‚€|‚}|ƒ~€}}€€~~€~‚}€€€~‚~~}€~€€~€€€€~€€€€€€€€€€€€€€€€€€€~~€€€€€€€€€€€€€€€€€€€€€€€€€~€€€€€€€€€~‚}€~„~{„z}„}‚}{‚ƒ|~~€€€{‚€y‚}~z€€‚z|‚€|€‚~}~„}}‚‚{€}‚}€}€~€€|}€€€~€~€€|‚~€~€|ƒ|€}€‚|‚|€|~€}}‚}|…|€}„|~~~€}‚€~€€|€|„{€~€~‚~}~~€‚~~€€€~€~€€~€}€€~~€€~€~€~€~€€€€~€€€€€€€~€~€€~€€€~€~~‚|‚{„|}~‚|€€€€€~€}~~}~}€}€€~€€~}€€€}€~€€€~€€€€€~€~€€€€€€€€€€~€~€€~€€€€€€€~€€€€€€€€€€€€€€~€~€~€|„|}‚}€~€€€~€~€€~~€€€€~€€~€€€€€€€€~€€~€€€€€~€€€€€€~€€~€€€~€~€€€€€~€~€€€€€€~€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~€€€€€€€~€€€€€€~ƒ}~€€€}~~‚z†w„wuƒ}‚}€~€}ƒ|€~~€}€}€€~€~|ƒ}€€~}~~~€€~€€~€€€~€€€€€~€~€€~€€€~€€€€€~€€~€€€€€~€€€€€€€€€€€€€€€€€€€€€€€€€~€€€€~€€€~€€€€€€€€€~€~€€~€€~€~€~€~€€€€€€€~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~€€€€€€€€€€€€€€€€dopewars-1.5.12/sounds/19.5degs/colt.wav0000644001565000007070000006335407541421126014621 00000000000000RIFFäfWAVEfmt €>}dataÀfóÿ÷ÿÿÿüÿøÿûÿ öÿúÿùÿüÿøÿùÿùÿ÷ÿ   øÿùÿøÿ÷ÿþÿúÿïÿøÿ  ëÿàÿ  ûÿüÿ üÿãÿçÿòÿüÿïÿ þÿ øÿåÿ÷ÿúÿóÿþÿûÿôÿ÷ÿýÿïÿ÷ÿýÿ éÿØÿòÿ öÿúÿíÿòÿ"Ûÿ÷ÿæÿÿÿþÿ#ûÿ“þ'ÿCÿËþQÿÝÿ,ÿœþYÿ6ÿYþÿ÷ÿNÿ^þ8ÿ7ÿQþDÿ:ÿ§þEÿÿ¡þjþhþ(þ\þÒÿÊéÿãþ¦ýpüÏûËüxý€üüÇý]<ûCáûÝôGõ÷[÷z÷øýú/õ§u Ä ò ¬ Ìf§žÿ&ûØû£ýúpþ)"Q?ó,¼ í<×ôÚäéÇþ…¦V Òì¼Õ ä‡ødóœì"÷ýýqøÚû–ùÞÕÛËßAÛÝ”÷k© üÿõ|ìëÛïþv°!ê)T¤øÈóêõøÛúwü¯ýÅþ mí ó ´ > ñÜé Fê "ölù3òuF Šéûªúüùÿ•þîÚfÙûö»ñ>î”í‘ñ`÷pý÷Õ+±ÿtþÉùW÷ ðeý‡ñíZíÑôuþöù ¶-1 D™øýZǰŠî÷ï×÷,|ÿüDòyü³üoþGþŒþžlnþ”øÌ÷ùrüü ›Eñû:ÿŽÈü’÷. ™¶ù‚Ë ø‘í°}4Ø5“ö0À\ìÄØøÑ óóg­ëýAð¯üÞ wÏ6ãᅩòj'W cçÜî¦þŒçÿ‰$¦ý%üûøv÷áû!ÿüßõyñ™õ*ûü¶ý]^ @ "Ÿ’Ü„ Yô¾½ rÏàu R þ ÙÞú&.+   Õû$ þ ü6ýþCý-üÂþêÝýæú¨ü’þoýõú*÷óò¨ñ¯òoò†æ—å8^?$.Ñ´0Y?8úaÀùH?2>‚"ùÑÿ¾À*Þí=)?ô1v*f-lù£ÉåÞsùSÝð¿uÒBç Õ[À°Ç¿Ñ6ÊCÀÞ¾ÀÀÀ2À(ÀAÀ4À%À/ÀÀտοԿs¿ÀgÓǧÉlÏ•áióŽõ÷Zô >…üã†ô\Z“!È2T?ã8,0  ¾d 2…?Œø­ +©5x4õ#ê ’õ°àÓÎÛêQëóèé©ç³ßŸÛrê_øî‹åÏúøSå 7ó×âCÿ ¼µÎ#`I!®Ý%X/8˜881>¡?/¶7˜‰ó *4&Å!þ(0-±'='*$³ïy/ò~2& ¡ Ò“ ³Ñö‡ç—êTòõ ÷Ûû†d˜Fò*üG ð r lÿs÷óà Ÿœ:r¶" X-9{>Ì6’(#€Î $k'12Dˆ œ#ƒn(· ç­Ü!ØìÌ¡Éäá˜ø¿íÝ5Ú»ÛGá”å*àƒÙÄØLÙð×Þ×üÜ–à©ØÖÓ‘ã)öîúŽýk ‹) ~¾á=4/? ›MvCp"Š!&i#Cýõñ/ï€ísìTê‘ìŠþ ~ûé‹ðûöï½ðgñKæ%Ý[ã—íwõ3ûzùuø7ó = ¢™ 'ÿµùú¸æ  U ü ¤ß t ºÁÿ"ûHùŠøV÷ö“óPò­ôv÷Áø^ùÚøS÷úô´ò“ò‚ò+ñïÞéSåvæÜèièòè[ïìôæñ&ï1õü ý¨ý!÷â ïe qx#ï  )ÖÖô4˜p  g h’ýÑùyøíú–þÈ—ÝvýBýeýxüJûòù ÷£òïñáõáýlÜý%öäógóøòŒó7öoøe÷õõdöb÷>ømùüTý…ùöøÜú ûŸùÈõózøþÄ Tÿ˜ýDÿônþÈûü†ýbÿýqg × ‹ Ø ý « ÷ ž ó û U] Þóì ¨ ø îñÔMl €¡þ™ýkýùöWûîío¦qœ[ýÃþïûj÷™ó=òkò4ô|÷«üÓ]”þGÿlþRö1ïžòx÷õŒò‰ö ûSú‡ùõüâÿÛýÔûcþøêñòo|XXÿÏøòúþÿM+m  JH  ì¦ûýñný üüÿ\§ÿûmúôûG†eÛûÙù™ùLü“þ\üpùù’ùŽúûýø“÷nùûú²øÒøpøÿô«ñ˜ñmó}÷ôúæúšùS÷ö’øàûåü•ý/ûéÿqýKýþ‡—bœ í  ýIý÷þT‰ ë°p X ê,þk{Õõéÿë–óÃøžýšs…  t >ýü”ýÓþéþ†þ% ‹ü'…ÿˆþkþ†ý…ø«ótóõ÷oùÁû—ý(þ†þªÿû³zÈxþgøŽóõƒøÉùü¦Š ·,þzþæ·€ Kø ƒ è Mÿ L JýzþÒy˜þˆù8úôúöŒñ}òïô¬ö~÷gõƒóõ…øhúêûšývþZýûïöó1óùôâùyþ«þ~ýŸüüüý>÷| 2þütú û¸õð } å{u ë¼ Ãõÿ$ýü5ý†þlý üäûÿû)üóû«ù€øjýôªú—óóõÛ÷ ûÊý„isþdý…ýÕƒù0%? r l ûPþ´õ Y Œ ¾n œ<tñ'óÔ‚þ»{!Ãÿß÷'šúžúÿqþ|ý"ÿiúÿ¨úúô‘ò~ñ5ññåñò¥óõšö}øhûŠþ«‚QwþNþþlýü/ú—ùý lyÎ öÏqXn v: ìÿ‰ý,ý€ý¤ýþp€ ý${þÈy ‚‚ýóöŠñïí‰íVôüúhùöüôÿôðõ}÷Šùüÿú|É€ýéö„ò¥÷ˆýû‰ø°ýƒx«ûÔþþîÅ ³ýþúþöƒö:Ƶk| /é¶ïßüæÿ&þøú®úûlùsø]ûþÿ€þjýüÓú†ù,÷ö¤ùƒýWü û*þÁûÑõ^[ е”Ö¼ýêû‰ Ìþýý‡ýõþæ·í÷|ÜŽý³ý~þýôû3ú}ø¤öûõÓøöûPüèû|üøûd÷€óxõxøîøyø÷þõ$÷{ù˜ýîÿlû öõö©øýúðù…øùôúuÿJï—ðÿý£ý”þ›ÿ ÷öÿþúûXüyþ÷y\ ó ÿãú ‚ Å †  ˆ M ‡ e ƒ p Üæq—öh’þïý‹ý?ú÷?ùüý†þïý„ýhÿíçÿnýeùþõõöùsý‘°ñý~øø†øË÷s÷Dùû½ú‹ùŽ÷ õòðéðòjó{óµñùïgð˜ñ°ò—ó„ózóô÷ôºõ…÷fü-ü‚¿àƈQo  ÷­èÿ1ù ¼‡ üF kÕ÷ : | ¦,þ@ü ü†iƒÊü þÿª}jüåû˜ýY€)áÑšþÛö“ñ/õöûÚõÿp"Œbœý‹þüÿÿnþ‡5 Oü‰÷íôõ,ûñ!ÿû&÷ öÂþùxþõéóö¹ù”ý²ÿõ}fÿƒýüû±ú ûóüƒþîüü“†ù0‡[ý†÷aôöhy\~ý‡þÚ†þ‰gEýöÓõ}øxýîšùÿÿ•þÌÿú þýüîü”þoõÁÿ©mü-Mý†þ£ýqø¸“þ›‹¼} Áâ•þ,}ïÿûûü‰ý÷þöŸý½ t¸ä H ðï ï ï í%þñúqø‹÷…øÃýñðù•ñÎïôîëé˜æ`ì~ñwêäÉëòô5ô‚ò•÷öûL÷tó1üeÆÿø´õ õÈõ—øÆù¶üò‹ôø¨ööqþø´SüžóIöûUúŠù]ýøÿàúõ%ôûõMû \ q¬ ” Ò=  ˆ– €õùÑC  ‹–ì¤óÌ øÌ WõúÑùóûZÿqû‰óbìæ¨ãäKêÿïí ééƒìFøþL÷ŽìÜð‰ø>üsþ`þuþ8þLü¼ñü ð ÷‡ý„é ûlJ¼ „ pƒêÒþ‹ý_ÿñ"ÿçû“öxóú2ù’òaø Võœþ ü¶þðn2ü„÷v÷ˆ÷èñïVù–|}[ëû²øƒø kþÿãÿ þôú õ¦òùqþâúNúŠùÄõuòÎòõ¾øöû¾ü ü¥ù|÷¢öŒøóy  ÿ üÓý ©qéþûµ rßì O k = í å øÑýžø§÷…øñúxýcþŠþlÿqþœõ ïò÷êöþû*æŽý‚ó>ñŠòB÷ñû¬ûûÞý§ƒ ¿ Z Õ†þ˜ú¢øRùóûLò£v¯ë ÷ ¥ ÃˆÔ ? z ™ß ×Biû’ó¥úy|…ý¼ýˆþmþ˜ý›ù‰øðô ½wþ-ýüôˆíÈð öh÷z÷BöõôVõçõ‹öåõÐðsìlî‚ñ¼ñ{ñ5òxòäð ïöî‹íýåŸßnâç'ê‰ë(êöèöëíî¤ì¤ì÷÷s ¡ O e †\ü a ‘ ^lys…c‹ ‡  — ” õ ò ~ 1 Š N … åå´øûsúûˆþ½¡œû÷˜d ?uþ[ u ™ã ü œ è ¤6þwýÝúùËýòÓúˆó&ò‰ñ î ê2æõã¨æêšééÃëï…ñ‚ò‰ï…ìèíðŠððˆì{ë“ôeþÄ—ýûÉûü2õvò+ú© ßþØ ýØ öêÒ sý ƒ !  e † ƒ…rv6öÿ¯ÿ ÊÿšŠ õñèûþ…_ kû×ýÙþéú'÷ ö–ýk3€ùNözóèî‹ëíïíëÊíbñpõ}ø5øp÷üøúú`ûùû¡þú‹ycq"îÕ ûLü‡Ùö_|& щÝý‹÷ÆòšñÇúõrù…ìuà˜ÙÛá…ímóõ.ïrçâ‹àrè|ñÅòŒòlõwøÑù û”ü‘þ|•t®ñM f…„Ì Ô ‡¥{gü° w ԆИþ…ÿ úvóìô†ùÿ|à l ôýŒó÷éû^økó@ññØõöúôýæÿ§ò—ö„ëLë ïÚó{øÞúùú»öñî¡ìúï‚óûñíïrðòU÷öûJýýŸþþúïõ2ö“ø[ýíÞüxùìÿíjqZüææ¥hÉôÿ¹þòÿ`lÉåÆõö Œ Ó þ–¡‡ °‚mþ†ùdúýƒ¨!¨ù¢ò»óöôñññÚîŠì9íï¥ñ†óŒñð ô„ø^øzøþz_ CuþxùTüøøëy(ó°üÚö‡òððÎó„ø8ü|þ›ýûû3ü÷ûfø÷ôö÷¨ô|ò¡öû§úø•õmò*ðïðŒò†÷ûD÷òòó4ö û  …NÌ L ò ×1üaý ¡ € ûbþÿÇó•ýøô¥õkø_ù€øÏòvíEîð¯îŒíFïñÜòóòò³úˆÑw Ô…9zýÿŽ@ çø ³ ÷ Û t p øØÿ¡ù ÿû Ðþ÷úÐýëÿ¨øˆñó÷ü÷ÿ$ø¼ûûõwøöûû„øœóðOôpøØóóîæðõêøôûyüøûÃûûæøœ÷âúwý·øzó0ó õuø ü5þ]óñÀ ‚  qW ÿ\çÿ“ ÷ð¡÷î·¡þÿûÿrùšú&õ+øzý„´ý“ødùû‘ù{÷nõõùŽþ†GŒýÓõšñrùî2ÿ ûýJþQý€ùöø~øgôò¥ú†7}Üo ?Ñ=  .üFù}ùÿÙŠ÷Ÿõéõ”ö†øyýcý–øN÷ƒøNþ xþ>û}øÜ÷x÷õuópõ„÷©ööô)ó~ò¯õ…øKöˆóŒôö@õõFøøú%ùª÷ûƒþ®üüúÅþhz%w„¹“™ Zr e ù  â ë i ýÿŠøºþòöðÿíüû¿ýVý‘øóò©íäééxïÒõóßïåó“ømø÷Nùñú#útùMüþ-û‘øíüô«!÷ëï]ôü7— M}ðýˆý†ˆL} m Ý  g¸éV øù÷=ûüÿ€ÿþÿd {øwþdù&ö*ó­òí÷þsÀiþ]ö'ï½ë~íwúê{~ù÷öîôõð÷ûýüKðpç²ò}ý÷û“jÌ ›ó”ó‡øøðõð™ìõ†þ þŠýMÂíô¬øýÿ¤‚žùæï}ñ öù ûõùø7ùøúqþí1uþm÷`ûæÿ ûõóõ)û‘ ÈŒõýü z ô üþq W û ^6öØÿÖ e òÜ‹ý«ýóÿ¼ßÞŒý¢õâïåòŠøÚü’uÿ‡þ“üüØìËOú:öhøðúJö/õîŒÓì¸/—óÄíŸìò_÷ò0ïgþ ôõþ‚þTùuAûzõúîIä ÛÛß.é‚óúuýTûˆø(ü™ý¶ñxæ½é ðÐñòóŒò“ð{íçäêìˆù q)û0õ‰óZùíÿOÿŒþó rú’4 F~“þ2ÝöŽîíù  ùñÑøsüìôÔøªþ þû¾õaòŸ÷}þùÜÀÞéÝÉûúïÍíï8ðƒòlõsù" ù¿w%„þö(ðpòøyò© ñ ‡¡Æ“ñ¾êêñü·ø ê©ý­þ”èuâˆvþpý¡]½Ð¯Žó5ëéêðyùöˆós[ íüˆí%îOóðøÝûhô[ëäèé¸é|ìCõóú—ð…åèífîôï“öYþ}r ¢àŠöÙüäü˜óPö…þa q`ŠGÛEš „Gö—ëˆè®ìèþ„9 ×ýïúµ¬ü ñë øï²ì’ýõ¥›Ô† æ‡þêoù¨í/ôû½ð‡åãæsëuíïeñ…òîëòõòÿûüøõ¯ïýéIç•åõáá‘ë÷õ öõ…úö Y|fþ ü#ü³ûŠýû Fö0 üûó|í‡é’ëÓüã è†øóùzþtg€²øtñ"óiø!ûµÿÿõØò›ñ·î;ïúê#ƒ {X!+{.'"Ðé ᣆeù  ûÆ tüàñïsyþó€íDóü3þTÍ}„÷Žídò•ùðøýõññ ïêññôÅòïCë1é«ëâïÊô†÷ÛòmíÞî÷î_å”ÛêØÚþàéfïö­ÿò ”øyøìû¹ï ü£æ3£þŒré÷ ‚ ƒ —üÞw0 ÓýO} “ î ñþÿû‰÷÷€÷ õ õæþîØþóþèíè‰ì6ï‹òø÷ýû«ú~÷"ôñcñ‚òôôg÷Úôzø³i-º .ãÛ‰áJóƒŒþýõM÷þú©ýõîu  cŠõ˜íÍô‚ýÍùö þýEpýWÙÛöÃFý’øùûjûòûÒü‡þUòú¥*‚w„f’“ñÌæþ‰ýÿý•þÞüüŒ‹» ü™ürþ#Ïþøû‡ú•ùÚøsøøvùµû™þ%Šõß÷Ãþÿû±ù‚øÏúoýýèû…ûü|þ’ÿ’ÿýæú…ùùüMüŽøû‚þÿ~þ?ýüÔûüÍü„ýFýpý ×ÿÿû÷—ó örùMùvøµøšùnû’ý¹ÿøaÿmýý}ýû¡ùºüpå_~¨ ÛÿÿPømý)‡~{þ—ú„øtüø ïÿóþmþ$øäõ«ÿþOþvþ®þ‡þýüü™ý¬y—îüðôú’kz ‘ ù1þç_5ÿË…·üõ†‰þÉüèû¦ýëÿŸ–ŽÍÿÿ-] -‡ùñ{íºöÖÿöZò”ñÌôˆønø‹÷Tø€÷˜ðêëêŠí|î ïî ï‘ó‹÷ö{ó9ò˜óXûz ˆ¸ù)» |si ˆÕu/f Z øûÿûJûzþ y ï õýö»ùçÿœ–òÿÕþŽþJÍ pòÿ4ýÿ÷ýübûüFÿ´þeý|ýD‚y"©ÿã¸t ýÎý û8ü{þ)ûúþ‰ýÅ}UjŒý[üü¡ûûVúù^ø€÷1÷‰÷øù"üWú{øòùñû.ý{ý|ûùØùûú6ü‚ý%ÿyþõû¬øôõIö‘÷Rø†ù»ûnýÅüþûJýoþZýüÛûúû'üükûûúuûüRüü|úˆùBûýNÿ»ý ü‹ÿ“p„˜ò|-‡ý¶þ L  ¥áù ç µ Ò ›„·,ôzdý m “óÂ…׃þ“þ}þâû}ø¨ô„òsõ“ù‡üŠýƒù õ#ôõÐøü^ú„÷öëôüòŒñøñ~óö“ødúû.ùœ÷Qùüäýõˆgð‚üôJÿ‡þ¢ÿ 3 Êþ7ífüþŠýÁ±ui ÿû‚û‚ýãÿç‘ü‡ø_únýíý‡þ?møÿ‘ùÊóðfòö÷Ÿ÷Fø†ù'ý ÷þìû ÷•òqñ“òWöúú’ÿöwýøÅùü%üü€ü„ýlÿU ëàÅöoÞß üü€þp’ƒ÷ˆ©þéû¶ùø¶ùðûÿó›ý}ù#ù‹ùøq÷ú}ýüÿòû³üþµ wýßü€ý¬ÿ ‰joŒýŽþîýþvä9çÿý©ý‡ýŸùöÍöùIþåzýDþ_~žý¿ú|ø¶öƒ÷ºÿ÷…‚þZh“Y :žù&üþÿfü†ù–ÿxüõrúcoÂûÿ–û’ø¹úyþö†[‹ˆ„ŽpçüV˜þ'ýüºûû'øö_ø ûîù“øÑùûûþøÿýtù‹÷—÷ûôÿ{Š „÷åöoøå÷x÷Dø…øYõ{ó‘øwþåÿþÿš š /u÷ùÿ/ó&ë *ÿõáùë ú ^ o ‚wš÷-}6 Ö £ ÿƒªk Þ üàü‰þû÷+ø„ùŒø™ø™ýÿÇÿüÍúƒù/õ‡òY÷Šý iý’ø‘ùûg÷õšû,ú©ò¶ô›ùZþþ†üŸ÷ºøûÞúûcþý¯þûÏø÷ø†ù²úøûðýþ—úöÑóˆóötù½ûlýCþvþ—þ„þÑý†ýcÿê‹ÿwý úûq ðzþýõÀïì~ì›ò åÁòÓ 2 / ø¦ Ñ vÎ }þˆùÁúüTö‡ñÚôû2 ûÞXüàü~ý÷Œñ«ñ‚ò–îƒìíóü¤üüÿü{ÿÿ¢÷ïQëÿé£ê‰ìÙîñbô—÷úûÝbØ Î8ÿüšd çŒùøh©ò¼‚ Vîb¤Èÿ‰ýïûa 9 l è dþôúÚ÷õòð×ï ðMîñîƒøá×ÿxùuóóþôŸøûo÷¡óÐô‰÷ëù üý†þRþxþWÞŽýýmý©ý}þk/€ ÿüû•‡Œþÿý…þþ€þªðþ»{þø“ó3úõƒígŠ ´…ù¹ýu¯“þñü <ýõýó„øØƒq Pþöv ‰øøôóïñxó“ýûZþùûÓùŒøvúûú¾ósëçŸæóíõõyööXúzþÿzýç÷wó¯öü|oüÿ<÷ÿ¡ûˆø|ûý0j <×è{ëb©ù K | rý–ýÃzÌ ‰   ‚ºþûÕùpùPø÷‹÷…ørû{ýúˆ÷7ýlù®øðì†ë¡ðöõÿõ…óvî êžéìÌõný¿ø}ó+ùÙþÿëþtý(üøû ÿýŒþ8ÿ‰ 9t èþíÿc~j ?ƒ:˜þ,þ†ý‡ùö«ölùßýìúýˆùôöîõ—÷oùuù÷SðŠëEòáû‰Då/*ì ûü·  w Tóû„ùqùXý°€èßoý s>" ô9÷‹r Ú‹Ìøíûo÷&÷ƒøÎùõûÓÿtqýç0î †þ üúûý€þ€þ~þ/Fþ û1ú†ùš÷öpõö¨øü;ޤûòvðñsõ‚ù2ú•ùø÷êú~þËþvþ ófþ û¸ø‡÷ø”ùTû—ýÌNˆñK 0ßÿt¦|Äî }üÿÄÿ®ýz%ûûIûüûXýšþ{ÿƒþ×÷ˆò÷Šýûyøùúú÷ýú%zuYy·„þ üïûÈùýÿò5õ¦ÿµ€ey÷ýsƒzýíûûƒù}ùêþŠülõ–ñøëÿ¸'ÿü÷•ò}ñ€ñ™ðñÌ÷kþÓö-ÿòûÃ÷tó*ï™íÅóôúQüûû’ûüûPÿ€£n ´ ·þq | ‰È †:ú[ý‡øŽþòqpg7 ‹ tTüÒöêë ðTð’ññ÷tþD…øê“æ™ç‚ëúîêëé™í–òÖñð"ð‰ñYõyùPü{ýªûuøôwñRöðûBûûÒv æ{þ ýqþr ž ò ò m ½ß³ ±é _ù î‚òèý ˆ£– q q®jôr‚dZÿûø…÷,ùû6ú‚ùÏûvý új÷ üû5ˆýpú|ø}ú‰ýÿÿt ·_þû¥÷"ö¼øxýð~ „ d cë‘þ÷™ò«÷uþéÚýƒùDô‹òŠüõð{?ø|ì çæFíõH÷÷yööüùzý~û‰ølø€ø°öõ-õö÷høåùû5úû·| VôÆ”þCüùúvúÿûþ ô®úÑÃ{ °ò¦;þ–ýiþCažý+ýŒýÑýý@ûwùûwýÙÿ½þûö‡òõˆøøø#ô.º ú ƒ ú8ü1úû±÷ƒ äˆìýÿ¥…ùøô{óJø‹þY{d fVýübüŒý%ÿóqÞüÃþÿúö‰ótø¯û Í ý[þ“÷Âúéÿ§‹þýÿÿûf‚§òšþúû ùy÷Ëù€þO b‚ ^üïDîyò øsþ1u Îxù‹óÇôtøÆûyþŒÿ€þùzó2ò‰ò€ò€ó´÷üaýƒýzüëúoùŽø¿ùöûMþú£ö-éLþþú/ùùƒþlñýŽøö÷‹ù3þú‘ÿþûûüú¢ûü’úsù&ûqý™þ-­ñÀñ†ýü¡SîBxjx÷þùùûÊÿ‡üùýû¨Ÿkƒpþ1þÿÿ{ t ü% ÉôT { @ ÿÊþxý3üû¢ùƒøø‰ø¯ùüÊž€ýõúyùÍø€ùåüõÿ\ÿý®ûñúïý ˜(y*…‚rþþ€þ1þþ={k÷D”køÔðÉ}ô|ü{øMø|ùûüµù˜÷?ùûèù‹øŒøoù–ü}þåúöòðó€÷ûùûû\þ®ÿþ‹ýôûoøö¾øùûÚú†ù5û†ýÿlîÿÂýüÇý&Døy¯øÿ€þ·ÿûäÿƒþ¡ýšþ2| î öÒÿ„þñýsýýøûxøòôtó†óÃõyøúûüöûøö‰ýýÍåíû ÷õ‡õˆ÷Lú†ý‚{/n ,yŒû:ü™úû]ýõ: É›ýƒûûDüuþK މúv r püøú$þöýaÿ‡o E z *Œþ[üü¢ýñÿ=d¯výóü‡ý¯þ÷ÿ§ ãKÿüðù{øJ÷t÷Æú€þ Œ˜a Jþùú"ü‡ýâú•øYú{ýluºþˆùÄùúúÚù}ùý šHþ¼ åû÷æòï"ììÌôyþ.ðõšò×üwù úsýÜ ž áKñû ùƒ÷ö÷k€ ñfwJø œûî÷õõ?ð™ëÀëïlö‹þlð,m~þºÿ]þôú ùøPúüÍúŒøàõ“ópò…ó~ùüÿgz¹` íj‹Øïúòÿvþ_þ†þ9þ~þ‡9†ÿÿ¼úüõüöø©õ‚òkñˆòœ÷ýós·ú¼þüúõø„÷ìõö¡úR€xýû€ùù€ù ûüøù“ø‹ûöÿ:ëÜ v 3ø"òðŸ÷ÿÿôÿ‡þ_~©ô høx³wkÿû7ýÿ¦k–Äêz¬þý\ÿ­þüÍû}ýõÁúûýóz  † V"yþOú‚÷­ú„þ)þ~ýàÿûàþ‡ûˆùUûý(ý ü0ûˆùœõ}òWóöµùý¦îÿÿú·÷öøýúÜû ü¼ûöû†þûöûÿ-þgý÷roøúóôŠúò¼€ëøÿöþ…þ¸þþÿ` 2 s  € ‚½ÿÿûÌû}þ;ù ä Ó}þ‹ýaü÷úÝ÷önùsý°ý€ý3ÿõ'ý’þû>úû;ýùÿ)û”ú ûCù†øüô%÷U{ýûû)ÿî°þþú‰û‡ýʃæ ð  þwü„ü‹þ'þˆþýó ƒ tíÿ7ùÿÒúýõ"öˆ÷˜÷ƒ÷n÷|÷2øøO÷ö‚õöTùüûFú‹÷ãõûô?õöÛö„÷øŠ÷ôŠñ[ô†ùsö±ƒö6vùlý‚ùüýàý 8  €·õ Í ê Ó€þÞüxýºþø×ÿåi|þLu ] ú Ò ó…yÝõÿ ýüú¼ü{þÉûxù]ü=¸þûûúuøÑöö'÷†ù§üúÿ«ùöªþ€ýÞþÿ„ÿþ‰ùYöõŠöù•ý˜Jÿƒþ\õ`ü€øýîNÿükýþÿï…&~Ø”ƒý8ÿDófø3þûêüôÿG5úBüûõ¨óóañˆñùöç ë sýhù†÷Pú†þx«þvùiùûéü†þ¿ý‰ýä H|ksÅû„û†ÿ~þ·ÿóÁÿ†þ¶ÿ ÇIÿ€þýýýÜüüfú‡ùÖûuþŸþ~þ·ÿú' þzù÷õõFö÷ÕùüÐûüÛÿ€>„ ‹ þƒ÷ŠŠ! ýŠø§÷ŠùÝÿAÿl|þÓûþúþý ïúgŸþ öôõ÷ûŸþûyò|&üûúüÀÿws;úªÿvþÝþ!|éŽþÛm…úãƒú”îˆû,ùùðüûÿsþüûûüvþI| ß ÿ¹õ8ýöúÈü€¤üŠt¯ü-ÿ†ýêýyþZýüÛúû5ÿ}U{:þüû"ýùÿ+x±Âÿ{ýÚûøú[ûüJüüúwøù ûöúû¦ü~þqÿÿÿýzü†øûú†þåþŒþYþ‹þ…ð÷Pþ÷ûçùŠùSý)ù}£yÄÿ…þ[ÿÏýüfý£žóÿhýüÿü’þ”ÿûÿÿŒýGûoùÒøxùõüðÿNþü„üýWþ‡ýó÷ŽòâñyóO÷ÿúCûýúüƒýøÿöIüÿ¼ÿüÿü'Ðÿ¡úc~ ã ÿ7öùÿçý…ýqu~ ¨ ü’ïnë~”‡ÿ‚ýsý‡þ.|0 ð 5 …ýþúØúöú±ù“ø—ø€ù“û‰þ[õ¢j *©ÿ}þIÿïÿ@þýû}ùø©üàõÿÐüÎ(ýbz¹+q¹orç­û~øYú|ýKÿþÿpþ üàù†÷úó†òƒø‚þÓü‚ù`ø…øöú„ýþ‚ý]ûŒùŒúüïûüþþÿ¥ÿ}þýüüÁüˆþu„ ö0ìüŠùø‹øÏûäú÷0'Œv°ÿ‹ðýüšûüûý{þôÿ¦þÿ¶ÿÿÿ4}Rù W øÍÿ…ùõ‘ò‘òõ‘ûó£…6ÇþüÂü‡þ±ÿü"ƒ6øÛþ~ýFþûÿç€ê}èýÿˆþ„ýqý„ý.ýüòøýõæôõhö~ø+û†ýþ€þ$ýûø öa÷ù úû´þüÿzÿ‚þ *úÜpMú/ù­ýüúžü/ü” ¥{ÑÿüÓûlýyx#Ã÷· ¢uL {púp‰þàþüþý®ûûú†þõ¿„þÝýƒýküü“þú¬ÿxþ›L<°sþ†ýƒý‚ý|ýõüü!úŽøHøŒù§ýõÁƒ©xïvQŠýxúrøá÷}ùäÿö*+ûyó&íê½îùôûõƒ÷ÿól ø Ëýûˆöó[ôz÷mü* ]þ³„Ë…OyăþÆÿÿ¬þ üéûüúˆøùû½þô˜Óþ’ýÖüüúŒøøøû¨ÿ}þ]ùu£ÿügû÷úì÷õ—óõýø3 ý Íümù{øMøøö÷‡øÎü‘ƒ û}t  ƒ ª{Tßü„ùoúyý¥)ˆ&ù7û’þ¥þùÿ‰« £YøÿZú«øGñÿµýüêü†þÆÿýÿcüù9ýÿßþû}÷õHõ‚÷füôˈÿƒý#ûù{úü/üüíûüãü‹ý²üü^ý…þý ü5þª¼û€Í ˆü‰ùÞ÷w÷ñøûü|ýƆ|-ÿÿûFù‡÷Û÷‰ù^üüÿ þE|PúûUù{÷’õõ‚÷û’þ™ÿŠýþyþâüïú¾ù†ù~û}ýëüü›ü|ýÉý|þÿ„‚y¹ùdÔ "|uƒþ­ú`n ùÏxöþ¤üü•þû§ÿ„ý<üüyþø þþûwûõúÛøw÷6ù÷ûŒþ&þü«ü„ý(üþúfü{þ þ ÿƒþ`ÿŒù+ý ÝÿüØŽ‰š  { ü¬ö‹ódô…÷Òûû¢ÿ „ wîù‡ñ6ð…òè÷}ý±ÿ™þüÓøÿõ'õõXôõ…ùsþþs‰ýùýõ õüõ~ùƒýÊÿùÒ–ÿ‡þûˆø¦úýCý{ý⇈²ÿÿÿþ‰ýƒýbyxt’ùPÿ‚ý©ÿþ7€þy ö¬+üÿ¦ÿûÿtÿGüÿˆýDþt{_¶õCE~ ,Þýü‰ûü"þüÿÿ…þ*þˆý%û…ù~ûuþ•òòÿ|ý"ÿô{þéýý¼üüäú ûkÿrâýÿ³úööƒ÷øˆùàùþúwÿ€ø9þüý~þCþ‰ýÇü ü ûûþøøÿþü‹úƒùsù…ùù‹ø©÷‡÷9ùùû,ƒÞù£ÿsþ0þ}ý ú|÷–ùƒýï ùuz»û*ù¨õÀüµÿþËÿ- | œÿ÷üm° ø ô ý ðÿ„®2„‡þ;üû_üˆþ˜ÿŸ“ü„ùÃùû‚ûüíü}ýÃü üòüƒý}û€ùÅùûýtþèü û$ûýûdýƒþtþ‚ý)ûø:öõSö‚øcúúûýˆýÿüüú|ùGúürþûP}ºûÿ…ýÿûý{þ*þ|ý7ý‚ýQÿÜùþ‡ýû|ù¾û„þÄþŠþ6ÿöÿ¿§ÿ‚þÕÿWÿýëý|þfýüûÿúQü‚þö‹8ueþ‚ýyÿòòzü{™Áÿƒÿˆþ´ý€ýwþÓt{ze ÿþýüŠüˆýñý}þøÿýÃÿ„þÏÿÿ•ÿ†ýü û¢úûÅüþþ‚þ'úWá}ýõú„ù„úüüüåü‰þÊnóûÿü7úùúøû±ÿ‚ú]ÿ—ÿzþ¯üûÂù†ù;ûþ‚ èû@„þuüûƒù…ømøùœüþÿ;‚û?"€hybùÿÿþ±ý…ýåþ¹ûaýi|@öÀüÿ^þ ú¼ýÿñýüsûüAþø0y´óÙÿ€ý%ûˆùÕùýúLü†ýgþŠþïüûíùùúû]üý¿ý{ýËüüBû ûüý¤ÿÿ‹ÿ‚ýPü üþüÿ¢ÿ†þÎüþû“þ÷¹úWÇþzþ$ÿÿÿUýÿëý üü|ý–ý}ýSý~ý¡þÿÿlùÿý;üüàý½þ ûq` ‚’ú3ûÿQþ~ý¶ÿú†´ýüÝü†þûÿúãÿÿóýüŸûüý„þéÿýjË~ò{X~ý þþÿäýýû[ý¡ýPþü5ùþ†ý›ÿûêùáÿþœüûnúûôý,Æÿ†ýý{þZúìüIÿ…ýOüüþýÿTÿþ¦ÿްýüúõüóÿeû8ýþ‡þÕÿïÿŠþrþƒþïý|ýìý~þ¢þþÒý…ý¼þ. ÷ÿÝû þûƒú û2ü†ý÷ý‡þ7÷øÂ‚uFÿ‚ýáûþú ü‡ýøý…þOHûühÿÿìÿúÿüÿüÿöÿý’ðÿþÿRýûÀýø×þÿïÿBýÿþüšûü+ýþÿÊþ…ý¡ý~þWøêý ÿ„ýµþÿÿ(ÿƒý/û~ù\ú üPýþVÿœ"«ÿÿ¤þýèý}þ÷ý|ý·ýþ^ð/ÿ|ýý|ý€þÿÿ~ûÀÿÿ÷ö0ùÿæþþ1ƒ+ýþúDüþúÏÿÿªþýLý‚ýÿý|þuþ{þCÿcÿ}þ)ýüÁûüý†ýSû…ùvû„þ§L†þXþ|þ:ýÿû±ûü]ý‚þþ…ýŽþ÷}Øúóú‡ûqÕÿÿÿáýxvó¥ÿ€þÊý†ýòý€þfþ€þèÿüôÿþ²ý†ýÕþLÿ}þCÿFÿŠþTÿìþyýüü­üýmýyýÀþ IþÿMÿþþƒý üûü|ý©ý‚ý‡ý€ýpý‡ýÿý}þlþ„þ´ÿÊýþrþ¸Œþˆýcþþÿ|Üèpÿÿ>ýûâû}ýøý~þÀÿþÜþ_|þÅýýIý‡ýzþxzH†§|èÿÿþ~ýoüüîü„þ~´ýõ¿ÿ„þjþ‚þôý€ýÈý~þ¾ÿßþðÿù ~ûÒÿ„ýæûûDûüÄüýþ~þœþþAþýƒûƒù–øƒøcùû«ýýÿwØþ~ý_üüéý>ÿÿ(²þ†ý´ýþ½ÿùÆÿ9§þ†ýmýý€üü£ýþÿ²{þ2šÕÿ€þþ~þ8} ýÿ±ÿüÿwœü¶‡ÿ|þ’ÿøJ÷¼ÿ}þRþ{þfþ†þCÿâÿ¼}ò€æ¡þ€ýuüüýþhÿ.ÿÿxÿ€þ½üüúÊùˆù[û{ý!þþ2ÿ`û|ý¦ûûVýæzŠhùÿÿ}þBÿ0ÿ…þšÿõìÿ…ý^üüšü„ýþ{þuþƒþ1ÿþÿ¿ùÛÿ~þÆý…ýøý„þkþ…þ™ÿý¡|ûóþ€þÿ-°ýlûÿËÿûÿ ûÁû–ÿˆþ8ÿüÿÿ€þ£üýútúÿúbýQþ[v}þrüþúûþûý€þ=ÿÂ}iÿÿžÿüÿÿn>ý ŒýüûŸúû•üyþÊÿÿŸ}þìþ€þ'ÿÿÿ ÿÿnüMülVÅþ‚þ|ÿûÿ…ýû ûüfý…þþ„ýËþmÿƒþjþƒþMþ„þ„ùøÿîþ„ý;ý}ýÓý€þûÿýùÿ„þÛý€ýoýýý‚ýVý‚ýØþþÿuÿ|þ±ý€ý0ÿýBù`ÿ`Ãýüœü€ýýü¸ùƒøÏûNwÙù¸$¾ÿý…üüûûSýbþ¬þ•ÿÿ}þƒýÿÙ>xþ‚ývþüÿ5ü©úa…¦0ÿƒþ?þ€þÅÿ*þÿÅþ‚ýWýýýýšýý|üüåýøÿ|þüÆû üëûÿû”üƒý£þ€ÿ’þÿôýü—ûþû=ý~þXþþÖ‡`÷ÎÿEÿ€þŠÿ‘ù}Uÿ«úVútŠûÿ*ÿ|þ;þ€þÂÿþ%ðÿgüã{ÿ)þGþ€þ€þþhþ€þZÿÿÿbÿ|þ½ý~ýðþþÿ_þÿûïù~ø¡ø†ù¾úüíü…ý‹ýƒýþþ8þ€ý"üûAûþû«ü†ýõþwÿþéý„ýsýýTý{ýÖþUÿƒþ'ÿ0ÿÿTÿƒþ ýƒý™ÿû ƒ¬|Ðý‹ù–ÿ‡þ2ÿþÿiÿ€þ¡ý€ý‡ÿýxƒ}sý ý~ýûýþ[þ€þ$ÿ"zŽ3ÿƒý‰üüÃûüý}þõÿÿ¼ýÿRÿzþQýüIúƒù¿ûxþRÿþÿÕ{ê{®?²Ðÿýÿÿƒnþ7®ÿ…þÿéýŸþúûûÿúIûü ýþh!ÿÔ{âüœöFÿ|ýlüü…üˆýÑþ™ÿtÿ~íþÿ ÿ}þNþ‚þgÿÖþ}ýYý…ý„ýƒýoý}ýþ~þþ„ýqý†ý^ý†ýÜþþÿxÿ€þéý‚ý™ý€ý@üÿú®úÿú÷ûƒý÷ÿþ÷‰ÿ„þ—ÿû*þ%ýæÿƒþýüQüýØÿ]×GþüËü†þÝÿÿÿü?ûüÙþÿ†ðüì‚ý9üüýûüVûýúøû‡ýBÿþ“€!7}þžýŠý¹þAÿ„þÓÿƒþýü²ûü)ý€þdÿýÿùÿþÿÖþ\~ |Œ€þý‚ýñý€þ“þƒþ€þ…þƒþþ[þ…þØÿþ„ÿÿìû>ÿÿÿÿþBÿÿÿiÿ…þßý†ýþ€þ6ýüœü„ýqýƒýÀþüÿ%(ÿÿÃþý[ýƒýªý…ýüûü|ýþþ?ÿÂüÿƒþýüŠü€ýðý…þøÿþ„þýüüƒý¯ý€ý¾üÿûÀûü)ý€þIÿ8<4ÿ€þÁý‚ýxþÞ8„Ç€í²ÿ„þýü‡ü|ýþ†þGÿÅÐÿþ>þƒþ3ÿ«þ§ ÿ‚þ¹ÿþÀÿÿÿþÿÀùÉÿ|þOþ~þ“þ~þîý€ýþþäýý«þþÿ@þÿUÿƒþÁý‚ý¤þ¸·ÿÿÇþýüüÙûü‰ü€ýhÿÿËýÿ/ÿþ þ~þÁüû úû/ü{ýþþ½ÿý²þ¹·ÿƒþBþþ/ÿÿÿ§¦ÿÿ/ÿ‚þSþ„þ7ÿ¨þªEÿ…þèýýFý‚ý²þ™ÿüÞÿ[þüfü‚ý,þ€þþ€ý\ý€ýéýþwÿÿÿ°þ‚ýzþ8¡þ Gÿ†þOþ‚þ3ÿ—ûÿZÿ†þýü‰ü€ý+þþ(þ…ýµüüéûüÙûüðüþQ}žYòÿþÿýÿÿ€þ¨ÿ;þ–ÿÿ-ÿþwþzþîý~ý·ýƒþ`üÞ™ÿ„þÿªþÿ Tÿ„þÀýý²þ ýÄýØÿ‚þýüuü‚ýÚþ'Pÿþþ€ý¯üÿûÏûüÁü€ý‹ý†ýÿýzþ’þ…þkþ…þ"ÿþ/üŽÂeýûñúüþþÿÑþ§0ÿ~þeþ}þXþƒþÐÿýÎüÿ‡þ€ý–þþÿ+ÿÿ)ÿþÿ§ªBÿ…þíý†ýeý…ýþ‚þ’þþ‚þ‚þiþ‚þAÿÿÿ qÛÿéÿ‚ý_üü™ü~ýþ}þfÿþÿhÿ‚þþ…ý›üüœüýþþ¡þ€þ×ý‚ý¢þ§ùúþ¹yþÞüüÿü~þjÿÝÿýÿ!ÿ!+ŸþýIý„ýþƒþlþ‚þÎÿýºÿÿÿþ*ÿþÿ)ÿ€þ'ÿÿÿ.ÿÿBÿ„þ{þ‚þÜý„ýÇþÿÿ|ÿ†þÝýƒýðý€þŸþ€þþ€ý‹üüýþZÿÿÿ¨€‚ÿ¦þÿÿ‚þÿüÿ¦ÿ¦þÿ0ÿƒþ’þ€þ)ýüŠüýþƒþxþ~þ=ÿýÿ¬ÿ€þ&ÿûÿ,þÿÿþ…ÿ}÷þx–ÿÿ®þýZý€ýnýý,þþ6ýübüƒý[ÿ%ýþÑÿýÿŽ©ÿ‚þ,ÿÿÿRÿ‚þØýýÚý„þmÿiÿ„þßý„ýÙýþMÿüÿ+hÿ‚þýürüýÿÿƒýœüüÂûü ý„þRý÷–~¢~~ÿ‚ýFý~ýý}ýHý…ý1ÿÿ¹IR‚þžýýÊþkÿ†þfþ~þƒþƒþ‚þþjþƒþCÿýÿéø~ÿb‚þˆüÿúúûCü‚ý˜ý{ýæýþAÿšþ3ýÑÿþÙýý^ýýêýþUÿ€ý4ÿÂÿþAþ‚þÿÿÿ(þüûû!ü€ý*þ~þ¡þƒþòý€ýÊý…þÒÿ*þý ûl‚ü€ÿÿ·²þ‚ýtý„ýœüü'ý}þ§þ€þhþþ>ÿõÿpþŸÿðüÿ ý¿þýGýýþý€þ»þþ+ýüoüýËþ™ÿŸ¹›ÿ†þ ÿùÿþÿ3ÿÿ'ÿ‚þÿ™ÿ þ×ÿVzü)‡þ5þþ.ÿ—þþýý þ€ÿÿÃþˆýLý€ýéýþNÿÿÿ=ÿÿÄþ…ýKýƒýþƒþ+þ…ý²üüìûüëûü›ü‚ýÙþþÿ>þÿfÿ~þ8ýüYûûóúûÛúû5ü~ý þ‚þRÿVÿ…þÞý†ýÛýþPÿ ”ôÿþÿùÿûÿþÿCÿþPþ}þ>ÿ/þÿLÿþÂýƒý²þ>@ÿ}þ>þ~þ—ÿŽzŽ™ÿ€þ.þþ¾ÿû%)þÁÿƒþBþ‚þ4ÿ™ý þÿÿîÿÿÿÿÿ?ÿþSþ†þCÿ/ÿÿ>ÿ~þ0þ~þ<ýTþÿÿ-ÿ{þØý„ýþ„þþýbý}ýûýxþoþ€þ@ÿüÿþÿþÿþÿÿÿhÿ}þ5ýýûYûûÊúû3üý þ‚þ>ÿýÿ¤û¦>ÿ}þèý€ýqýýsýýÖý‚þáÿý•qþþ}þÿ,ÿ€þÿ†þyö}0ÿ/8þ¸ý‚ýñýþ“þ…þYþ}þÌÿûÀ1ÿ…þzþ~þþýdý…ýþþ)þ‚ý³üüÀûü(ý€þ|ÿiÿ}þÀý}ýþþÿ6úÒÿIÿƒý˜üü[ûû\ûü«üý·þ8þ‹ÿ€ûšû®üÿñýüûüñýþÿϪEÿ‡þíý„ýIýƒýÚþýÿuÿ‚þÄý…ý¢þÿÿ¶úÙþý|üü™ü}ýïý„þäÿýÏÊþƒý¬üþûVûûKûü'ý€þéÿþ'üþ(ýôÿ{þˆüûIûüûûÿû¾ü‚ý—ýý[ýýÁþþÿ%ûÿÿÿðÿ‘¨ÿÿÿþÿþiª‚€|“|ÌþeþÞþiѬ}Â÷ÿŒûˆÿÿôþ€þþ…zNW|ÿ|þÿûÿ/Bÿ‚þgþþ}þ|þþzþŠþzþìý}ýÖý€þOÿ1Rÿ‚þéý„ýŠýýÄüüìûþû&üüªú†ùôùûXü~ýÅý„ý½üüêûüüüûûÐúûü~ýûþþÿ|ÿƒþëý†ýdý„ýëýþ@ÿ©Òÿþþ úþ-wþƒýˆþúÿ¤þ üþøÒü=}Ý~äýÿzþ‚ý¿ýƒþRÿÿÿáÿ½{€+þÊüüBý|þNýÿûQü†ýÚÿÿ€þAƒþ2þ„þCÿÿÿ@²þ…ýÄý{þcÿVÿ|þ?þ€þ°ÿãý[}þÇý~ý7ýƒýOÿþªqÿEþ0ÿ€ý×ýþ(þ„ývüüÛýöøOÿ‚ýFýƒýý{ýsýƒýæý€þ1ÿ8ý4ûÿÿþwþþëý}ýþ…þþƒýKýƒýÃþ)?ÿzþ>þþÐÿþ¥åÿ¤þÒÿ‚þ>þþ]ÿeÿþÙý„ýÜýþeÿûÿ>ÿ‚þÿ:Hþ‚ý³ý€þßÿþ¥ýÿÞÿýÿ¹ÿgÿ‚ý_üü*ýþÒþƒþ/ý üfüý‚ÿøÿ~þWþ|þ´þ~þšüû!ü~ý¿üüý…þ’ÿüÿÿ€ýû…ùûýÿ>@ÿ€þhþ€þ„þ†þjþ‚þ@ÿ.üÿKÿwþàý~ýrý…ýZý€ý¡þ ø~ƒvÿþ“ÿûL˜ÿ{þˆÿüÃü ¨ÿ­|\z‰þVþ|þ(þ€ýÑûûÛýý†Œÿ†þ9ÿxÎýüGü~ýWÿù5&ü¾ÿþYþ€þiþþ"ÿ,Éÿ„þÞþþÿý}‰Hüÿ]ÿzÍ|°ƒáþçþÿÏÿý©ýÿ5ÿ…þfþ„þþ~þYþ†þÅÿ:™ÿÿBÿ„þþ‚ýšüü¯üƒý˜ý}ýpýýýý€þþ~þþþ&þ~ýüûü†ýÄýýÂüüæûýûÿûüÅûüðýùyÿýûûû[ûüûûü²ü‚ý þ‚þ þþØýƒýÔþùÿ¹þýxþIÿ6üÿ!ÿ„þCþƒþ½ÿýüfþÁ‚Q€ þÿ€ý6ý‚ýþþzþþ>ÿýÿüÿçÿûÿ¥ùÿþýü‰üƒýþ‚þjþþµÿ¸þ°ÿÿØý ü\ü~ýÿýÿåþ}ý/ýƒýßþfÿ…þYþ†þ3ÿýÿÁÑÿ…þ4þ…þêÿ×ÿ†þÿúÿòÿûÿ ü²tâÿýÿŒÿ· þ~ý½ý~þQÿøÿÿÿ ü²mþÿáÿ‘¼þÿ«þ}ýký€ýrüü]þÞÿÁÿƒþ~þ}þ$ýÿû(ü€ý<{¿iüÁsýûbúÿúšýwÿ…þ)ÿúÿSüÿæýÿûlü€ýâý†þsÿUÿ‚þ'ÿüÿ÷ÿBüÞðþÃÈÿ†þòý€ý—üügü„ýÝÿ¶üXþûªûý­þê…½¼´ýütüƒý+þþþ†ýŽý…ý‚üü¡ýÿÿ¤y›ÿÍþQý…ùÔ÷÷çøýúýƒþþ~ý×þüÿüþýšüüÿûüsûûZûüÀüýòý€þöÿûôÿþñýý°üüÉû ü/ý€þeÿüÿôÿûÿ þ­pðÿüÿðÿjÿ‘ý þ‘mþÿñÿ ÿ…þLÿa—þƒýÁýþ0ÿÿTöc€þÇüýûîý|ÿ€þTþ€þ"ÿ üy|b€ãZüÿÿƒþÿóÿk(úvþäüüþü€þHÿÿÿ^ýÞÿ…ýýýéþÿÿÿ€ý0üûÚùˆù\ûýOþ~þ5þ„ýüû2üýêüü«ûüþýýÿU)ÿ{þÿÿÿ™ýp—þ¹ÿ{þÿ,(ÿ~þñþÿÿ‚Ÿÿ§ÿ†þ»ýˆýïþüÿþütü…ýþ…þSÿ?ýÿÂþƒýtý‚ý¼üþûäûüÂûûûþÿÿÿƒþwþ}þ)þ‚ýKüûú„ùEù‡ùœúüNý€þ‡ÿYÿ‚þuþ€þþ‚ýrüüáýüÿ0oþxz ÿÿýû_üþÿÿ€þê€~‚þµý„ýœý„ýüûÑû€ýèÿEýûƸ{*ü {þçþØ4ü‹v/|(þ7üûOüþwýqŽ€þÎû…ùàø„ùü…þúþþýüý‡þ…þ‚þÌÿùáüÿ¡ýüjþ=…þàüüßýB*³þƒý²ýþ¾ÿü‚cM}/ÿçü~ÿÿ(ÿ|þëþÝ}Ï þçþü‰ûüÙü~ýÀüüoü{ýcÿþáÿÿÊþ„ý¬üüaûûGûü:ýþ~ÿüÿjÿþÙý„ýíýþ¹þþ?ýü²ûüý‚þÚÿþÇü!ÿÿ7ÿ‰þëý‚ýaý€ýðý„þPÿ)±þýÃýþ{ÿÇþ€ý¿ý|þMÿWþü—ûüýþéÿÿúúª³ÿ…þ@þ{þ+ÿªüˆûÿÀþ‚ý3ý…ýÄþþÿLÿÿ”þ~ýxþüÿDûÅÿÿ;ùîrþ’Þÿ’~þÿ}ùŒüÿ³þ‡ýÆýƒþRÿ Z<ymSÓÿþÿRÿþ»ý{ýþ$ý-ûŽÿ˜ýÿ«þývý†ý™üÿûý{þˆÿùÿ¯þýˆþãvÿ~ýùûÿúXûüÔûüïýýÿäú}þˆüû ûüû:ýþjÿ’ýÿíÿÿ~þ¹ÿ—þÿkýþ~þÿÛÿúÿ~ý!þÿüÿ?ÿ€þgþ|þeþ€þ0ÿþÿ¥‘ýÿðÿñÿ§ý¹ÿ‚þÿÏü+ÿƒývþÔûÿƒþýü²ü~ý³üü)ý€þáþ}þ“üÿúþûƒý_þ…þÆüûtûüÑú„ù2ùƒùÄúüü ü¶ü‚ý+þ‚þ9þƒý üûüý„ý„ýÁþÿÿ#ûÿÆÿ˜ƒGûÍúiÿ~þDþ‚þÿýÿÙ9þÿ~Ðæÿÿ÷ÿÿ~þzÿú èÄÿýÿ'ýÿ×þ†ý^üüþÿ‚þCþ~þ®ÿÿâcƒþÞý~ýÁüüVûû[ûÿû©üýÚþAjÿ€þýüòüƒþùÿƒþ”ýƒý™ÿ€rÚ¬|NþÿBþˆýÿ&ýXg‚?‚Âþ‡ÿþ§ÿ›wÿ}úUÃÿ‚ý'ý~ýÖý€þßÿù©ïÿ@þÿþü™ûü?ýþ©þþ‚þ‚þþ}þÈý‚ý0ÿ‰úyþü³ûüüüÿûýûãûþûÃü{ý„ý…ýþþµþ|þ?ýü²ûü(ýþ€ÿøÿVÿƒþhþƒþiþ€þAÿAÙþ‚ýƒüü½ü‚ýÃüþû˜üýþý„þRÿÿÿþÿ}ýýþGü@…þ1þ†þFÿþÿþÿþÿøÿÿ€þ›ÿ¸þ·ÅÿƒþÌý€ýÉýƒþÓÿÿ;š2ÿþkþþþ‚þþþlþþ/ÿ˜þû• ÿŠþ†ÿ~|þ* þü…ú…ùù†ùbû†ýÿvÿ€þÂý€ý­þþÿ>ÿÿÿ„þ»ÿü¼ ÿ„þ¶ÿýÃ2ÿƒþ}þþþ‰ýpý~ý«ýý3üûûü.þgÿ†þÿÿÿÄÿóÿ~þýüsü‚ýôþ|ÿ…þíýƒý_ýƒýþ†þ¾þ€þ'ýü±ü}ýÚüü½ûþû,ý†þZÿªþÿñÿíÿüÿotýêƒêþxpÐÿëÜ€±~Íûx‰þÿÿ|þÿþÿ˜„ïÿðÿŽþª3ÿ€þRþƒþYÿþÿ>ÿ„þÿþÿÂåÿˆþËýƒýÙýþjÿþÿZÿƒþSþ‚þ/ÿ–þþ˜þÿ0ÿ„þnþ‡þkþ†þqÿÛþ‚ýVý€ýný}ýéý€þMÿ2*ÿ‚þÿ5ý6#ÿþyþ„þþ}ý_ý€ýþ‚þyþ}þ=ÿÿÿ?¿þ‚ýWýýƒýƒýrýýèý„þGÿ©ýÿ<ÿ}þjþ†þ„þ„þ“þþõý‚ýþ…þþ…ýsý€ý€ý„ýYýƒýÃþCSÿƒþÝý‚ý·ýþ`üÄýkðÿþÿBÿƒþnþ‚þfþþ[ÿYÿ„þRþ‚þBÿùÿüÿç÷~äþišÿþÿœÿp˜ÿ‚þŠüû/ûÿûÄüƒýþþ‘þþ«þ€þ'ýüŠü‚ý@þ}þOýüÀûüÙüýšüüëý[+ÿƒþ+ÿ Žþ«,ÿ|þAþþÀÿ,üÿ"ÿ{þÿ…ý’ÿ¸"ÿ„ý³ýþwÿúÿÆþ€ý°ýþ÷ÿÓÿ€þ3ÿYÿþþ~þ@ýü˜ûüþÿÿWÿþ§ÿû%ÿ«Ùþ„ýüû³úû4üƒý7þ~þëýƒý þ§þýšÿ‚þBÿWÿþjþþþ€þþ„ýŠýý˜üüý„þiÿ¨ýÞÿþ²ýýŸþ¨ý!˜ÿ€þ ÿ+²˜ÿÿŸþýÖýþxþ€þ1ÿ™ÿôÿìÿû€ÄþýpýýÀüÿûÒûüÀü€ý‡ýýþþþ€ýóýƒþyþ|þ>ÿÿÿ*þ‰ýþ(ÿÿñÿŽýÿðÿüÿBÿ„þPþ}þ?ÿ ~ÿ þ¨¤þˆýÆý„þRÿýÿü‹ÿÿòÿÿÿQÿ€þÕýý×ýþPÿþÿÿÿ@ÿþhþ€þ“þ„þðý€ýðý‚þ‘þþZþþæÿú…þýüsüýÿþÿçþƒýKý‚ýÚýƒþüÿùÿƒþõý„ý³üüÒûü³ü‚ýðý~þÏÿÿ4þpþÿ]þ°ãÿþÿ>ÿþkþ‚þ€þþYþ„þ³ÿþÆÝÿýÿ(ÿþÿ¥ÿÿÿ QÿƒþÙýýÙý€þQÿ@ÿþjþ‚þþ€þ}þ~þþƒþlþ€þ>ÿÿÿ.þÿAÿ‚þkþþ|þþþþiþƒþCÿ:ÃÿƒþAþ€þXÿZÿ‚þQþþAÿÿÿ@ÿ}þfþ‚þiþ€þWÿVÿ|þjþþþþ’þ‚þþ‚ý™üü~ü€ýÇþýÿ¹§0ÿ‚þhþþ‘þþðý„ýØý€þfÿûÿZÿþiþ…þƒþ‚þƒþ…þjþ„þ4ÿ§ÿ§ÿÿ1ÿ‚þxþþñýýñýþiþƒþ½ÿû6ü—ÿ…þ*ÿÿÿ1)ÿþÿÿÿ§¼£þ€ýÖý‚þyþ‚þ[ÿÿÿZÿ‚þPþ€þ>ÿ0ýÿ@ÿ€þfþ€þþþhþþAÿ3*ÿ„þ(ÿÿÿÿÿ*ÿƒþÿþÿ¾ýÒÿ‚þUþ€þþ€þþƒþòý€ýòýþþ€þfþþBÿ-ÿÿÿ…þ¹ÿþ¿þÿAÿþþ‚ý™üü—üýþþžþþïý‚ýòý€þ’þ‚þhþƒþ3ÿ™!ñÿþÿýÿñÿ‘ÿ¨ÿÿ1ÿþOþþ@ÿÿÿüÿþÿïÿþ7Âÿþ?þƒþ#ÿÿÿ(ü¬þp 'ÿƒþAÿCÿ€þÿ¨ÿ©1ÿþQþ€þ?ÿ.üÿ?ÿ€þwþ~þþ‚ýˆüü)ýþ’þƒþAÿýÿ<þÿÁþ‚ýIýƒýþ‚þþþ‘þþþ~ý`ý‚ýþ„þ¢þ€þñý‚ýÙý€þOÿþÿþÿÿÿþÿîÿþÿ¦ÒÿƒþiþþØýý¡þºÿŠþÿòÿÿÿþÿþÿýÿÿÿñÿ~üÿü~Oÿþèýý]ýýþ€þþýðý€þþþ~þ€þmþ„þBÿþÿþÿÿÿ@ÿ‚þRþ‚þZÿhÿ~þèýý^ý~ýçý€þiÿYÿ€þQþ„þYÿZÿ‚þNþ}þ>ÿÿÿ/ÿÿ(ÿ„þÿ—üþñÿÿÿÿÿýÿÿÿ$ÿþ(ÿ0þÿ?ÿþfþ€þ‚þ‚þþ€þ~þþ€þþfþþYÿÿÿ[ÿ‚þfþþƒþ‚þþþþ€þ~þþ€þ€þ‚þþþ€þ‚þ‚þgþ~þ>ÿOÿþÚýýðýþxþƒþBÿÿÿ@ÿƒþkþ„þlþ‚þ0ÿ¨üñÿ)ÿƒþ)ÿÿÿ*ÿ„þÿ§þþÿBÿþgþþ€þþhþƒþCÿÿÿÿÿÿÿþÿÿÿÿÿþÿDÿ„þgþ€þþþ€þþ~þ}þþ€þþý`ýýþ€þ‘þþdopewars-1.5.12/sounds/19.5degs/message.wav0000644001565000007070000001617007541421127015277 00000000000000RIFFpWAVEfmt ø*ø*data€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~~~}}}}}}}}}}~~~~€€‚ƒ………†‡ˆˆ‰Š‰ŠŠ‹ŠŠŠ‰‰‰‰ˆ‡†„ƒ‚€~}|{zyxwvutssrqppooonooprrssuvwz{}}€‚ƒ†‡‡‡‰‹ŒŒ‹ŒŒ‹ŠŠˆ‡‡‡†„ƒ‚€~}|{{{{{{{zz{{{}}}}~€€‚ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ‚‚‚€€€€€~~~~~~~~~~~€€‚‚‚ƒ„„…†…†‡ˆ‡‡‡‡‡‡ˆ‡†††…„„‚~~}{{zyxxwvvuuuttsssrrrqrqqqrssuwwxxyz|ƒ„†ˆ‰‰ˆ‰‹ŒŒŒ‹‰‰‰ˆ‡†…ƒƒƒ‚€~~}|{{|||||}}~€€‚‚„„„……††‡‡‡†‡†………„„ƒ‚€~~|{zyxwvuttsrrttuttuuvy{{{}ƒ„……ˆŠŒŽŽ‘‘‘‘ŽŽŒŠ‰ˆ‡…„ƒ~}{zxwvuttrqqponnmmlkkkkkmortttvwy~‚‚„‡‰ŒŽ‘’‘Ž‹ŠŠ‡„ƒ‚~|{yxwvvvvwwxxxyyz{}‚ƒ……†ˆ‰‰‰Š‹ŒŒ‹‹ŠŠ‰ˆˆˆ‡……ƒ‚€~~~}|{zyxxwwwvvvuutttuuuvvvvwyz|~„‡‡‰‰Š‹Ž‘‘‘‘’““’‘ŽŠ‡†„‚~|ywtrqonmkigfeddddefhnstttvw{€ƒ„…†‡‰ŒŽŽ’ŽŽŽŒŠˆ„‚€€}{yxvuuvvwxyyyz{|}~~€‚ƒ„„†ˆ‰‹ŒŒ‹ŠŠŠ‹ŒŽŽ‹‰ˆ‡…ƒ‚€~}~}|zwz{xvwvtttsqppoooprtwwwwy{~‚„†…ˆŠ““’’“”•˜—–•””“’Ž‹‰‡…ƒ‚{xvtrppnmlkjihfeeefhjnprssttwz}‚‡‰’•”‘‘’””–•“މ„{z|}|{zxvronnopsvxxwvuuw|†‹‘’“•—˜–’ŽŠ†ƒ‚ƒ„ƒ‚~{xwwy{|}|ywuttuwyzywusstvy{{||}~~}~‚†ŠŽŽ‹‰ŠŽŽ‹‹ŠˆŠ‘‘‹‹ŒŠˆ‡…€zupmmllkgb_]ZYZ\^^btЇƒ†‡ˆ“—”Š€{u}‹Š‡‡‡†…‡Œ‰„}unpvvojjiinsvz€ƒ„„ƒ‡Ž‘Œ‰‡…ƒ†‡ˆˆ…ƒƒ‡‰‰‰‰‹Š‡…„„„ƒ‚{yxz||}~}‚„…„‚}}|xvvvsqpruuuwvtuwxx{}€‚„…†…ƒ„‹“•—ž¦£š”’“‘ŒŒ‰ƒ…†„‚€{x}‚{wuqllmnoproidefdbbglkoŒ£–}‹‹‹‘‘ƒtmqprƒŒ€ru…‡ˆ—’ˆ†„~~‚‚|sosvqqy~||‚‡‹”š™Š‹‡ˆ†z{~ƒ‡ˆ„‚†‹‰‡‡‡zuttqoonjgghijkpqot…’“Œ‰‰ˆ†ˆŒŽ‰‚}zvv|ƒ…‚€‚ƒƒ„‡‡†‚~xsrtwurrstw}‰’‘“œ¢›”•œŸ›’Š…ˆŠ‡‰‹‹…‚ƒ‰Š„~}xsolihhf`[Z[\ZZ_a^^czœ¤‹}™””—“‘‰{vy|ƒŒƒuw„Š‹ŠŠŽŒ…€€}||vnjiousr|‡ƒ~‚‹•–””‘ޒЇ€„„€~|zz{yvuvuohfgea_^^cem„“Š~„‹ŠŽ”•“ƒ}~}€‰‹‚z}‚‡ˆ‰Ž‰„‚€~}xqlpspqx{{|~†‘˜˜–˜ ž–”˜•‹†„ƒ‚„…„‡‡ˆ††…Š‹…}zxwsqolihhgfggedeihefhjƒž–{x‘ŽŽŽŒ‚vw}€…‰zs{†‰‡†‰‰€„‚ƒ€yust{ywƒŠ€~…‘’ŠŽŽ’ŠŠ‰ƒ‚‚†…z{}zxwuttsqmjikjeceeaafz~z‰Ž”Š€‚ƒ‰Ž…{|…‰‰‡‰Œ‰‚€€€{uroqsrpuxx‰Š‰”›•’’—™—ŽŒ‰Š‰†ˆ‰‰…„…‰ˆ„ƒƒ}zvtqnljhddecaadeb``ehk~——€{“‘‘”’Ž„z~€„‹~tyƒˆ‡††Œ‡€„‚€{ustw|uyƒ„€…‹ŠŽŽ‹‰ŽŽ‰„……‡„€}z{ywvvsrpoomlijjjgfhhmƒ“Š{‘“’އ…†‹Š~z‰ˆ††‡Š…~}ursv~~xw‡…ˆ‰Ž•‘””•”“Œ‘Œ‰†‡‡…‚ƒ‚€}zwwwvspmlkhfhlha]`fedaefr†Š„~‹ŽŽŒŽ•–Ž‚‚„‡‰‚}|€ƒƒ‰†}~€€~zxvy||„‚}~…‹†‰‡‰ŒŠ‹Šˆ…†‰Š„~}}}}zxvtrqqqrqojjklkijlmnŽŒ}€ŒŽŒ’‘Ž…‚„„‡ˆy}ƒ…ƒ„‡‚}‚€}~~{}…€€€ƒƒ‡ˆ‹Š’Ž”’ŽŽŒ‰Š†„€}zxywtrrqomlkkjjifegiifhiln}†‡€ƒ‡ˆ‹”†‡ƒƒ†ŠŠ…€~€ƒ†„€}|z|~€€~||~„†ƒ‚…‡‰Š‡‡‡‰‹ŽŽŠˆ‡ˆ‡‡……|yyywwuspolorvuolmrpqnpqz…†ˆ‰ˆ†ŠŽŽ‰‚…‡‡‚€ƒƒ‚ƒ†„}}~€}|€}€„‚„ƒ‰‰‹ˆˆŠŽŒŠˆˆ‰‰‡ƒ€}|{zyxxwyxvutstutuutsrstuuwvuqrstsw}~yw}{~~ƒ‚~z|€}}}}„„„†ŠŠŒ†‡Š‹Š‹‰Š‰‰†‡ˆŒŠ†„…‡…„ƒƒ‚€}|{|}|zzzyywwwvtsqrqrroqqtw€„ƒ~€‚ƒ††‰ˆ…‚„ˆ‡ƒ‚ƒ…„„‡…‚‚ƒ„‚…ƒ„„ƒƒƒ„ƒ‚„„„‡ˆˆˆ‰‰Š‹ŒŒŠ‰†††„…„„~~}~{{yxwxxwywuuvuwvxvwvtvwvvwxwvvxxyz~}|}}~~~‚€‚€€€‚ƒƒˆˆ……ˆ…‡‰‡ˆ‡‡‡‰…‡‰‰†ˆ‡ˆ‡‡†……‚ƒƒ‚‚ƒ‚‚€}€€}}}}|~~~€}}€€€~~z{~|‚…†ƒ†ƒ…†ˆ††…~|z|x{yyz|~|zyx}~w{zx{yvwvu{zvvvrvut{yt}xtyzx~|z€}€~€‚ƒƒƒ‚|„‚„†‚…„ƒ…„‚‰ƒƒ„€ƒ€ƒƒ‚„€€ƒ„€‚ƒ‚‚ƒƒ‚…‡……ƒ„†ˆ‚ˆ‡†ˆƒ‡‡…ˆ‰ƒƒ…ƒ€‡„„‚‚‚‚†|‚€}}€{~|w|~zz€zz}zw||w}w}}uz{{‚|~{}€~„ƒ€‚€‚‡‡…ƒƒ‚†‚†ƒƒ}|…ƒ}‚z‚yƒ‚„{~„~|†‚ƒ„€„ƒƒƒ„}‰€z……~ˆ…ƒˆ|‚„‚Š‚…‡‚„ƒ}†‚Šˆ„~†€}ˆ†€Šƒ|ƒu€„{}x{zu|€}y€€tz}yy€zwzw~xys{us€{y{q{}x|}‚{{|„…~ˆy~‹x†…|†|‚ƒ~}‹{ˆ††„~…„~†}†|y†|zˆzvwwyˆ‡}‰Œz~Šz‹€‚{}€z€‰~}„{†€„ƒz‡„zƒ‰‰‚€‚ƒ}‚€ƒ„{}‰ƒ†…‚|†}‡„w…‰y|‰‚y‚€}|€‡}€€…‰‚…~ƒƒ†~‡}x‡v{…|{…ƒp…s‡yw†|v‡r‚~s€}}†}}}~z‚|‡y……o…Šy†{|…~ƒƒ€|}w{||yz|zw‚u€z‚‰y}†{w†ƒ{„ƒ‡}„„z{‡tzˆx€…€y„‚‚}‚‚y„z|‡w€„€|ˆwƒ}|„ƒt‡…yƒ‰}…u‚…y}‚w}}|ƒ€…~~†{}†{~ƒt~…vˆzƒ„}~‰~…Žˆ~„…|††€ƒ€„z|~zŒ…v„‰t„yƒ|‚|ƒ‡}ˆ€Šzy‡ƒ{„ƒ{„‚‚€Ž‰‚„}…|€~‚v‹|Š}Œ}{}yƒŠyƒ{„€†‚€…€†}|‚x…‚†z}|„†x††z„vƒxyuƒ}}„z†‚|€x€„y|{…}‚x€„|†€ƒ‡‚~~ƒ|~ƒ}t‚{{}„~}„zs€ƒ||Š{wŠƒ„Š~„ƒ~{„…{‚u€u‡w…{z†~~€‚‚x€{€|x„€u€‚y†}€~€…€„‚„~}{„w}t€}‚~{{„~‚ƒ‚{ƒ{}}~€ƒƒy{‚~~‚‡~~„}~‚~€ˆƒy„„zŠ‚z‡‡u‚y‰‚{…|€ˆ}z†€€~z„„z„€z~€}{‡†{‚~}„x|„}w€…y…€~ƒ{†‰s€‚v€}|€„~{|…}ƒ|z„„}ƒ|y}†ƒ{…‡~ƒ~|‚~v~~€‚y€~‚…{€„}}{„}‚|{‹z|…}y‰v~€x€x~{ƒwz||}~|wty}|u|~|x}€z€xv„~{~}{‚‚{y~w||w~}xxyz}}zxw||€|yq{x|€|t{€|€y}€|ƒ†zx{wx‚zx~€~~‚~…‚€„„€‰‚}‚‚ƒ€€{{€z}~€‚|„€„~…ƒƒ€„ƒƒƒ€‚†‚…‡€ƒˆ{|~‚|ƒ}€~€ƒ€~…‚…~ƒ‡}€„~{„ƒ€|‡~{‚€‚~~|~€~|ƒ€}|}}|€}}‚|€}|}€|~}~~~|}{z}}‚{€€}€|‚‚€ƒ}~~~~}}|{|€|{y|}}~~|}}{}{|€||}~~~~}~|~||‚ƒ…ƒ~|~€ƒ‚z~€}|~€}z{zzz{{xx|ywxzxvvsrssy~|vvx|}‚‚~|€‚„†ˆ‹‰††‡‹Š‰‰…‚‚……ƒ‚€€}~€~€‚„„€€‚€…„ƒ„…ƒƒ………†‡…„†……†…‚‚…„€ƒ~€€‚€€€€€‚‚€€‚€‚€€€€€€ƒ…‚€„„„††ƒ‚„‡ˆ††‡‡†…†††…„„‚‚ƒ~~~~}}}}{{}||{||{z{|{zyxvvvusrqpmovzvoptuy~€{z}„„…‡‰†„…ˆ‰‰Šˆ„‚‚…†ƒ€€~}}~}}|{{{yz~~}|{|~€‚€€ƒƒƒ„„„ƒƒƒƒƒƒƒƒ€€€~~}{{{zyxwwvuutstwyxwxz{|€ƒ………‡ˆ‡†…††…††…‚€€~}||}|||||||}~~~€‚‚‚ƒ‡Š‡†‰ˆˆ‡„ƒ„‡‡†„……ƒ‚„…ƒ~~‚~|}}~~~~}}}~~~~}{|~~~€€}|€}{|}|zxxxx|~zuw{|{||{~€ƒƒ€‚…†…ƒƒƒ‚ƒ~}}{yxyxtrrpoqvwsnquvx{|zy|€‚ƒƒ…†„ƒ†‰‰‰ˆˆ…„…‡‡„‚€€€€~||}}||~}{z{|}~~~}|~€€€€€‚‚€‚€€€€€€~~~~~~~~~}}~~~~~€€€€€€‚ƒˆ‹†ƒŠ‹‰‡ˆ………‹‰†„ˆ…‚ƒ„„~}}}~}ywz{{z{{zy}€~{|€€~€€€€‚ƒ~|€}{zzyyzyxwvxzzxx{{z{~~~~€€ƒ‚€€€€€}}~~|{{zywwwxz{wtvyz{||{{|~€€ƒ‚‚‚„…‡†…„„„…††„ƒ‚‚‚‚‚‚~~~~~~}|{|}}}}||}}~€‚‚‚‚‚ƒƒƒƒ‚ƒƒƒ„„ƒ‚‚‚‚€€€€ƒˆˆƒ~ƒ‰Š‡‡‡……‡Š‰††ˆ†ƒƒ…†„‚€€€~{y{}|zz{zyy{{z{{{yy{}|{{{||}}~}}„„}„„‚ƒ„ƒ‚‡…ƒƒ†„‚ƒ„ƒ‚€€€}|~}|}~}||~~~~}}€€€€€€€€€€€€€€€ƒƒ‚‚ƒƒ‚‚ƒƒ‚‚„„ƒ‚€~}|{zzzzyzzyxwvtrqpoptvrmovyxx{{{|€ƒƒ‚„‡†„…ŠŒŠ‡ˆˆˆˆ‰Š‡……†…„ƒ„ƒ~~~}|{{|}}}}}}~€€€‚‚ƒ‚‚‚‚‚ƒƒƒƒƒ‚‚ƒƒƒƒ‚‚€€€€ƒ†…ƒ†ˆ††…„„†ˆ‡……†…ƒƒ„…„ƒ€€‚€}}~~}~~}||}}}~~}||~~}~~~~~~€~~€€€€€€€€€€€€‚€€€€€€€€€€€€€€€‚‚‚‚‚‚ƒƒƒƒƒƒ„„„„„„………„„„„ƒƒƒ‚‚‚‚‚€~~}}|{{|||||||{zyxxwvwz{xuw{}}}~~‚ƒ‚‚„…„ƒ…‡‡†………„…††„‚ƒƒ‚‚~~~~~~}}|}~~~~~~~€€€€€€€‚‚‚‚‚€€€€€€€€€€€€€‚‚‚‚‚‚‚‚‚‚‚‚‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€‚€€€~~€€~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}~~}}~„‡€zz…ƒ~{}ƒ}}~€€}~€‚~~€€~~€€~€~€€€€~€€€€~€€€€€€~~€€~€~€~~€~~~~~~~~~~~~~~€~~€~€~€‚~€ˆ‘ކ~{„‚}z|~~~}€~yy€|z~}x|ƒƒ€zw~‚~z|}€z|~~||}{€~~zy€€yy„‚vs}‚‚}x}}~}{|€|~|y{~„|w}|„~yy„€{}z}ƒ€zz|„€{zz‚|zy|ƒ„…vy}‡ƒxxx…Š€|wy‚…„xvƒ…ƒ}u~„…uw…Œƒyst€‹{qw„††w{yww}ˆƒ„xq‡‰~wy}…ˆzv{‚ˆ†{~~wƒ„†zw†††|t{‚‰ˆxz€„…|{{|‡†wu€‡„~{}‚||~„{ƒ€{|€……~{{„|~€…|}†ƒ‚ƒ…Ž‘ˆ€ƒ†‚{y‚‚}}~€{~{||€€}z}‡|~|‚‚}y‚…|}}|}|||}}ƒ~x{{‚„~}xw€†ˆ|nt„‹ƒusyƒŠ‚rq~‡‡{wz{|~…€{x{‡…ws}‰ˆ{zvu‚‰ƒ{y{}ƒƒuv‚‰ƒrp~†Štv‚€~xy‚…‚~xy€‚|}ƒ‚|xx„†||v…~vrz†’…rq{‹Žqp‰Š„qp€Š‹}xsvƒ‰wnt‰–ˆolzЇwq‡„ƒyr‚‹}oo‡’‡{l~‘‹pv‚…‹ƒxwy‚Š…€t|†‡ƒvz‡ƒ}{|„‚zyˆŠvxˆ†yw}„…€vy‚‰Š„}{‹‹‡{y„„€€„~{„„€~|{€‚…€~x~„…‚€u~Šƒ}wz…‡ƒ~vz‚„ƒ}{}‚€}€~|‚}||~‚~~w}‡„w|~}‚€|u~ˆ…}{‚ƒ}z€}y€ƒ€€€‚v{ˆ‰‚tx„…„|z…~||}‚†ˆy|ƒLISTBINFOICRD 2002-08-03IENGRobinISFTSound Forge XP 4.5dopewars-1.5.12/sounds/19.5degs/train.wav0000644001565000007070000005243407541421127014773 00000000000000RIFFUWAVEfmt ø*ø*dataïT‚„„…„„ƒ„…………ƒƒƒƒ„ƒ„ƒƒ‚‚‚‚‚‚‚ƒ‚‚€€€€€€€€€€€€€~~~~~}~}}~~~~~~}~~~~~€€€‚€‚‚‚€€€€€~~~~~€€€€~€€€€€€€€€€‚€€‚‚‚‚€€€€~}|}}}}}~~~}~}||}~~€€€€€€€€€€€‚€‚€€€€€€€€€‚ƒ‚‚‚‚‚ƒƒ‚‚‚‚‚‚‚‚‚ƒ‚€€€€~}}}}||}}|}}}|}|}}}~~€€€€‚‚ƒ‚ƒƒ‚‚ƒƒ„ƒƒƒƒƒ„„…„ƒƒ‚‚‚‚€€€€€€€€€~~€€€€€€€€€€€€€€€€€~}|}}}~}}}}}}}}}~€‚‚ƒ‚€€€€€€~}}|~~~~~~}~~~~~€€~€€€€€€€€€€~€€€€€€€‚€‚‚‚‚ƒ„………†………††††…†………„ƒ‚‚‚€€€€~~~~~}}}}||||}}~}}~€€€€€€€€~~~~}}{}}|||}|}}}~€€€€€‚‚‚‚ƒ„ƒƒƒƒƒƒƒ„ƒ‚ƒƒƒ‚€€€€€€€€€€€€~~~~~€€€€€€€€‚‚€€€‚‚‚€‚‚‚‚‚€€€€~~~~}|||{|{||||||}~}}~€€€€€€€€€€€€€~€€€‚‚‚‚ƒƒ„„„„ƒ„ƒƒƒƒƒƒ‚‚‚‚‚‚€€€€€€~~~~~}||||}|||}~~~~€€€€€€€€€€€€€€€€~€€‚‚‚‚‚‚ƒƒ‚€€€€€€€€€€€€€‚‚ƒ‚‚‚‚‚‚‚‚‚‚ƒƒ‚€€€€€€€€~}}~~~}~~~}‚ƒƒƒ„ƒ‚‚„„ƒ‚‚‚€€€€€€€}~~}~~€‚‚‚ƒƒƒ„ƒ„ƒƒ‚‚‚‚€€€€€€€€€~~}}}|}}}}~}}}}~~~~€‚‚‚‚‚‚ƒƒƒ‚‚‚ƒ‚‚‚‚ƒƒƒƒ„ƒ‚€€€€€€€€€€€‚‚€‚‚‚‚‚‚‚ƒƒƒ‚‚ƒƒ€€€€€€€€€€€€€~€~~~}~}~~}|||||||}}||}|||||{{{{|{||||||}}~}}€€€€€€~~~~}}~~~}}}~~~€€€€~€€€€€€‚‚‚‚‚ƒ‚‚‚‚‚‚ƒƒƒ‚‚‚‚‚‚‚‚‚‚ƒ„ƒ„„………†………………†……„„„„ƒƒƒƒƒƒƒƒƒƒƒ‚‚‚€€€~~~~~}~~~~~~~~}~~~~~~}}~~~€€€€€‚‚‚‚‚€€€€€€€~}}~~~€€€€€€~~}~~}}~}~}}|}}}}}~~€~~~€€€€€€€€€€‚ƒ‚‚‚ƒƒƒƒƒ‚‚€€€~~~~~}}~}||}}}}}~~~~}}~~~}€€~~€€€€€‚‚‚‚‚ƒ‚‚ƒƒ‚‚‚‚‚‚‚‚‚‚‚ƒƒ‚ƒƒƒƒ„ƒ‚€€€~~~~~}|||}}~~~€€€€€€€€€€€€€~€€€€€€€€€€€€‚‚‚ƒ„ƒ„ƒƒ„„ƒ„„ƒ‚‚„ƒ‚‚‚€€€€€€‚‚‚‚€‚€€€€€€€€€€~~}~~~}}}~~}~}~~€€€€€€€€€€€€€€€€€€€€€‚‚‚‚‚‚‚‚‚€€€€~~~}}}|||||{{zyyz{{{{||}}~~~~~€€€€€~~~~€€€€€€~~~€~€€€€€€‚‚‚‚ƒ„„……ƒƒƒ„„ƒƒ€‚ƒƒ‚‚‚‚‚‚‚~~€€€~€‚€€‚€ƒ‚€€„…„„„‚ƒ‚€}||{}|}‚‚ƒ€€€€€~~€ƒ„†ƒ‚‚‚„‡…†…~~‚‡ƒ€~~€}}„„ƒ}~~}~€‚…ˆ†ƒ‚~€‚„‚„‚‚„……ƒ€€…„{y}z{}yz{{|yvvwy{yy}‚}‚‚ƒ„‚‚ƒƒ‚€}}{|||{xwyzy{wvwy}{{|}€~€€ƒ†ˆŠ‰ˆˆ‡‡‰‰‡‰‰†ˆ‡„ƒƒƒ‚‚€ƒ€€€~|~€€ƒ‚ƒ‚„ƒ„ƒ€€ƒ…ƒ€|~}zy|{}|z|}{{|{}}}~~~€‚€~~~€€~}€}~ƒƒ†……„†‰‰‰ˆˆ‡ŠŠ‰ˆ††‰ˆ„‚ƒƒƒ‚~}{||}|y{xzzzyzyz|z|{y{zz|zzyy{|z|y|~}|}~€~~~€€€€~~€~}}~€€€~€€€ƒƒ„„…‚„……„„…†‡ˆ†…„…‚„ƒƒ†„………„…„ƒ€ƒƒ€}}}~}}||{}||}~€€~~€€€€‚‚‚ƒ„ƒƒƒƒ‚‚‚€€€€‚ƒ‚€‚‚€‚€€€€€€€~}|{|{{{|}}~~~~~€‚„……„„„„ƒƒ€€€€€€~~~~~€€€€‚ƒƒƒƒ‚‚‚€€€}}~||zxxyzyyyyzzz{|{|~}|€€€~~~~~~~~~~~~‚‚‚‚ƒƒ„„ƒ‚‚ƒƒ„‚„„„…„…†„ƒƒ„„„ƒ„„„‚‚ƒƒ‚€€€€‚‚‚€‚ƒ‚€€€€€€€~}~~€€€~}}}}~}|}}}~}}}~~€€‚‚ƒ„ƒ„„„„………‚‚‚‚€~}~}~|}~~~}}}}‚ƒƒ„ƒ„…„„ƒ„„ƒƒƒ‚€~}|{||}~}}~}}~€‚„ƒ‚‚‚€€€€€}|||{zz{{zxwyyxyz{{{{|}~€~€ƒƒ„ƒƒƒ‚ƒƒ„†„„ƒƒƒ‚‚‚‚€€‚‚ƒ‚‚„‚„…ƒƒƒƒ‚‚‚ƒ‚€€€€€€€‚‚‚‚‚‚€€ƒƒƒ„ƒƒ‚‚‚‚„ƒ~€€€~~~~}~~~}}}}{zz{{|}|{z|}||}}~}~~~~~}~~}~~€‚ƒ‚‚‚ƒ‚‚‚‚€€‚‚ƒƒ„„„……ƒ„…„…ƒ„„ƒƒ‚‚ƒ‚‚€€€~~}|}~}}}|||}}||}|{||}}}}~€€€‚ƒƒƒƒ‚ƒ‚‚‚ƒƒƒƒƒƒƒƒƒ‚‚€€€€~€€€~€€‚ƒƒƒƒƒƒ‚‚‚‚ƒ„„ƒ‚‚€€€€~}|{{zyzzzz{|{zyyz{{{{{{{||}|}}}~~~€€€€€‚‚‚ƒ‚€€€€€€€€€€~~}}~~€€‚€€‚ƒƒƒ„ƒ„ƒƒ„„ƒ„„ƒƒƒƒƒ‚‚€€~~€€‚€~~~~€‚‚‚‚‚‚‚‚„…„„ƒƒ‚‚ƒ‚‚‚€€‚‚€€}€€|z{~ƒ‚‚„ƒƒ€}{{y{{||}||‚‚ƒ‚~{}‚ƒ„…†††‡‡‡…„†…†ˆ„…ƒ„‚ƒ„€xwyyyxtuuvttx}~|}}z||~€†ˆˆ†ˆ‹‹ˆ‰‡‰‹‰†ˆ…‰ˆ…„‚€~|}|{{|yyxxxuzxxvvvvuttwvwzƒ€}‚†„†…‡‰‡‡„‚„„…„ƒ€ƒ„…‚ƒƒ„~{|~ƒ€€ƒ‡†…††ˆ‰…‡‡†Š‡ƒ„…„ƒ„„…€€ƒ€|}|}€}~„€}}~|}}z|}|{|}~}|}}ƒ‚‚€…ƒ‚ƒƒƒ„€€ƒƒ‚€€ƒ€€‚}|~~||z{}~~||{{~~}z{{~}}~}{}||}€}}{{~}{zxy{|{|z{}|}|}€~€€ƒ‚‚€ƒ€‚ƒ„ƒ‚€ƒ†„ƒ€ƒ……„ƒ€~€€~‚‚€}ƒƒƒƒ‚ƒ‚€€€€~zyy{zxvuwxyz|||{|}}€‚‚‚ƒ„‚„…‚€„…ƒ€‚ƒƒ€~‚‚€||}€‚‚‚ƒ„ƒ„ƒ„„…ˆ‡‡†…„„„……„„ƒ„„„„ƒƒƒƒ„……„…„ƒ‚‚€~€~€~€€~€~‚‚€€€€€|{~~||{}~~}}~€€~~€}}~}}}}~}}~}}}€~}{}~~}‚ƒƒ„‚ƒ„…ƒƒƒƒ€€‚€~€ƒƒ‚‚‚‚‚‚……„„‚‚…ˆ‰ˆ‡‡†ˆˆ‡†„……ƒƒ‚‚€~~€}|~~~€€~€€~~€€€‚‚‚‚ƒƒƒ‚€€‚€€€€€€€€€€€€€~}}|}~~~}€‚€‚ƒ‚‚€€}|zz{{zyxvxxxyxwuuwvxyyz|}|}|}|||{{{|~~}}~~~~~€€€€€€€‚ƒ††ˆ†„ƒƒ„ƒ…‡††„……„„‚‚€€€€€€‚€€}~}||}||}~}}|}}}~}}}}}}{z||}|}}}~~}~€~€€€€ƒƒƒ„ƒƒƒ„……†††…††……„…„„†…ƒ‚„†††‡‡‡‡‡†‡ˆ‡‡……††„„‚ƒƒ‚€~€}~~}|}|}}~}}}~~}~€ƒ‚ƒ‚ƒ„ƒ€€€~|}~~~~}|{{|}|{||}|€€€ƒ„„…††††‡‡†‡†…„ƒ„ƒƒƒ‚‚ƒƒ‚€ƒ„ƒƒƒ„„ƒƒƒ€€€‚‚‚€€€€€~}}}~~~~}~|~€~~~~|||}}}~~~||}||{{z{{||{{|{}}|}|}~~}||}~€€‚‚ƒƒƒ‚€€}}}}}}~}}~}{|||}}~€€€€~€€ƒ‚ƒƒƒƒ‚„„ƒ„ƒƒƒ‚ƒ„‚ƒ„„††„‚ƒ‚‚‚‚‚€€€€€~}||}}|{{z{{z||{|}}~}}~~~~€€~€€€€€€€‚ƒƒ‚ƒƒ‚„„ƒ„„„ƒƒ„ƒƒ„ƒ‚‚‚‚€€€€‚‚ƒƒ‚ƒƒƒ„„ƒ„‚ƒ„†„ƒƒ‚€€€~~}|}|||||z{zzz{|}~|~‚ƒƒ‚‚„„ƒƒƒ„ƒ‚‚€€‚‚‚‚‚ƒ‚‚‚‚ƒƒ‚‚‚€€€€‚‚€€€€€~~~~~~~~€~~~~}}}~}}~~~~~}}|}}}}}|||}~€€€€‚ƒƒƒ‚‚ƒƒ‚„ƒ„ƒ„‚‚‚ƒƒƒƒ……„ƒ„‚‚‚‚‚‚€€€‚‚‚€€€~€€‚‚‚€€€€~€~~~}~~~~~}|{zzzy{y{{{{{z{||}€€€€€~€€‚‚ƒ€~~}||}}~}~~~~~~€€€€€‚ƒƒƒƒ……†ˆ‰ˆˆˆ‡‡†……††‡‡‡†…„…„„„ƒƒ‚‚€€€€€€~€€~||}~}|||{z{{|}}}}}~}~~~€€‚‚‚„„ƒ„‚‚‚‚€€€‚‚‚ƒ‚€~~€€€€~~~~~~~}}}~~~€€€€€€€€€~~~~}~~~~~~}~€€‚ƒƒ„ƒƒ„„„„‚ƒƒƒ„ƒƒ„„‚‚€€€€€€~~€~€€€€€€€€€€€€€€~~~~}|{{|{{z{zz{{{zzzzzz{{|}}}~€€‚‚‚‚‚‚‚ƒƒ€€€}|{{{{||{{|}||}}~~~€‚ƒ„…††……††ˆˆˆˆ‡††………„…„‚‚‚~~~~~~~€~~~~‚‚ƒƒƒƒ€‚ƒƒ‚‚‚‚ƒ„ƒ‚‚ƒ„„ƒƒƒ‚‚‚‚ƒ‚ƒƒƒ‚‚‚ƒ€€€€‚‚‚ƒ‚ƒ„„„„„‚€€€~€€€‚‚‚‚€€€€~~~~|{{z{||}~{{||~}|{{yyyz|}}~}|}}}~}}|}}}~€ƒƒƒ€€~~€~~€€€€€€€ƒƒƒƒ‚„„‚ƒ‚ƒ‚ƒƒƒƒ…„ƒ‚€‚€€~€€€~~~~}|||||~~}~€€‚‚‚€€€€~}||{|}|{z|~~€€€€€€€ƒƒƒ„‚‚‚ƒƒ‚‚ƒ‚ƒƒ‚‚ƒƒƒ‚ƒ‚‚‚‚‚€‚€ƒ‚€€€€€€€~~~~~~~~~~€€€€€€€€€€€~‚‚„……„„„ƒƒƒƒƒ„‚€€‚‚‚‚‚‚€€‚€‚‚ƒƒƒƒƒ‚ƒƒ‚‚‚€€€€€~}}}|{}}||||{|~}}|{z|~}{||}}}}~~€‚€€€€€€€~~€€€‚ƒƒƒƒƒƒ‚‚‚€€‚€€€€€€~€€‚ƒ„ƒ‚€€~€€€~}}~~~~|}|{{|}}}~~}}}}||}}}~~€€€€ƒ„‚‚ƒ‚„„„„…„…†………†„…„„ƒ„…ƒƒ„ƒ‚ƒƒ‚ƒ„ƒ„„„„ƒƒƒ‚‚‚€~}||}~|{zzyyzz{z{zyzyyyyyyxy{{||{||{|||{{z{||}}|}}~€€€€€€€€€ƒ„„„„ƒ‚ƒ‚‚‚ƒƒƒ‚ƒƒ…………†††…†‡†††††…†………†…„…†„‚‚‚ƒ‚‚ƒƒ€€~}|}~~~~~~~~~~}}}~~€€€€~~~€€€€€‚‚€€€‚‚‚‚ƒ‚‚‚‚ƒ„„…†…„ƒƒƒƒƒƒƒƒ‚ƒ‚‚‚ƒ‚‚‚‚~}}}||}}|}}}}||}}|}}~~}~€‚ƒ€€}}‚ƒ…ƒ}€‚‚‚…†ŠŒ‹‰ƒ‚„ˆ†‚€‚„…†…„~€|yzxuuywxzy{zz|~€€€€€€€ƒ†ˆŠŠ‰‰ˆ…„‚ƒ…††…„‚‚}{zz|}}}~€}|}€„€‚‚„ƒ‚‚‚~|{{{{||}}}}yx}|}€}|{~€€€„‡…‚€‚…€~}}€{}|~{||zzzz{z{{}{||€‚€~~~€„‚€€€~~~||€~}~~€‚~}|}~}€€€€~~~€ƒ‚€€‚‚€€‚‚‚‚€ƒ€€~~~|||~}}|{{y{|~€‚}}‚‚…„‚‚€‚‚ƒƒ‚‚~|}|}}~€€€‚‚€‚~€ƒ„„„…„„ƒ‚„‡‡‡‡‡†„……‡‡………„„ƒ…ƒƒ‚…ˆˆˆ‰Š‹‰‡†……ƒƒ„‚‚€‚€~~~}}|{}}||}~~}~~~~~€~‚€€‚‚€€}{zyzxyzxyy{}„ƒ‚†ˆ‰‰ˆ‰ŠŽŒŽŒ‹Œ‹ˆ‡††……ƒ‚ƒ€€|{yxyyyzyyzy}|}}|~~}~|{~~|z{|{yyxyzzyxxxxz{zzzzyyyz{{yz|}||}{z||{zyz{||{}}~}}|{{{{}|||}}|{}}|}}~~€‚‚‚€€‚‚ƒƒƒ‚‚ƒ€ƒ‚‚ƒ‚ƒ‚‚‚‚‚~~~}|~}~~|~~}~~€€€€€‚€€€€€‚„„ƒƒ…………ˆˆˆ‡†‡‡‡†ˆˆ‡ˆ‡ˆ‡ˆˆˆ‡‡†††„ƒ‚‚ƒ„‚‚€€€‚‚€€‚‚€€}~}}~~~|}}}~~}~~~€~}~~~€€€€€€€€€€€€~~}~~€€€‚ƒ„„‚€€€€‚ƒ„‚‚‚€€€‚‚‚‚‚‚€€€€€~~}}|||||}}}}~~~}~}~~~~~~€€€„ƒ‚‚ƒ‚‚€€€€~~~€€~}}}~~€€€€€‚ƒ‚‚€‚€€€€~€€~~~~}}~~€€€€€‚€€€€€€‚‚‚‚‚€€€€€~}}~~~}~}}|}~}}~~}}}~}}}~~|}}}}~~~||}}}}}}}~~~}~~||}~~~‚‚„ƒƒ……††„………‡ˆ‡†…„…„ƒ„ƒƒƒƒ‚€€€€€~~~~~~~€€‚‚€€€‚‚‚‚‚€~~€€‚€‚ƒ‚‚‚‚‚‚„ƒ‚‚‚‚‚‚„ƒƒ‚‚‚‚‚‚‚‚‚ƒ‚‚‚€€€€€~~€~~~€‚‚‚ƒƒ‚ƒƒƒƒƒ‚‚‚‚‚‚‚ƒ‚ƒ„ƒ‚€€€~~~}|{zy{|{z{||{|}~||}~|}~~}}~€€~€~€€‚‚ƒƒƒ€€€~~~~}~€~|}€}~€€€‚‚ƒ„„„ƒ‚ƒƒƒ‚€‚‚€€€~~~~~~~}}~}€€€~€€‚‚ƒ‚ƒ‚ƒ‚ƒ€~}|~|~€ƒƒƒ‚ƒƒ‚€}€ƒ………€…ˆ‰‰‡ˆˆ‰…‚„‚ƒ…ƒ„„‚|{‚}€~wtwz|{urv|y{{yuxzzyzz‚ƒ†„„||€€€~~€|yxy{~~~~|}}~€€€„†ƒ‚‚~}‚ƒ‚ƒƒ~~{|~€~|~€‚…‡‡…ƒ„„ƒƒ‚†††‡†‡…†‚€€€~}}{{yy{{{y{{~}{€„„†‚„…†…ƒƒ„…ƒ„…‰††„ƒƒ…ƒƒ€€€‚€€€}~}~€}}}}|z{}}}z|{{{{yx|€„‚€‚ƒ…†„‚‚‚ƒ‚‚‚‚ƒ‚‚€~|{z|z{~|~~~‚€„ƒ…„ƒ‚‚ƒ€€‚€~}}~|{{z{}|zzzzz{z|}~~~€‚„†‡†‡††‡‡…„…ƒƒ„ƒ‚‚ƒ‚ƒ„…ƒƒ…††ƒ‚„…‚‚ƒƒƒƒ‚„„ƒ‚ƒ‚€~€~€€~~}~€}}~}~|}~|}}~€}€ƒƒƒƒ€‚ƒ„‚€‚……„…„……ƒ‚ƒ„„„…„‚„†…ƒ‚ƒƒƒƒ~~€ƒ‚ƒ€€ƒƒ‚‚‚ƒƒ‚ƒ‚}~||}|zz{z|zyyzyyyz{{{|}}~~~~€€}||}~~~}€€}~}~~}~}~{{z{{zz{||||{}}~€€~~€ƒ„‚‚ƒ‚‚ƒ‚ƒƒ‚€€~~~~~~~~€€€€‚‚‚‚‚„„…„‚ƒ‚‚‚‚‚‚€~€‚€€€€€€€€€€€€~~~~~}~|~~~~~~€~}}€‚‚„ƒ‚ƒ„ƒ…†‡†‡‡ˆ‡†‡ˆ††……„„„…„‚€€€€€~€~~|{z{{{z{z{|||{{{{{||}~}}}}~€€€€€€€€‚‚ƒ‚€‚‚€€€‚ƒ‚‚ƒƒ‚‚ƒƒ‚‚‚‚ƒ€€€€€€€€€€‚€€€~~~~~}||||~~€€€€€‚ƒ„‚„„‚‚‚‚ƒƒƒ‚~~~~~~€~~~~~€~€€€€€€€~~|~~}~||}}}|}}}}}}}}~~~€€‚ƒ‚‚‚ƒ„ƒƒ‚‚ƒƒƒƒƒƒ‚ƒ‚‚„„‚‚‚‚‚‚‚‚ƒ‚ƒƒ‚‚€€€€~~€€‚ƒ‚‚„„„ƒƒƒ‚‚ƒ‚ƒƒƒƒƒƒƒ„ƒƒ‚‚€€‚€‚~}~~~~~~~~}~|||}}~~~~~~~€€€€€~€€€€€€€€}€}|}~€~~}|}}{}}|}}||}~}|{{{{{||z{{zz{{zzz}}||}}}||||}}}}~€€€ƒ…………ƒ„„„„„‚ƒƒƒ‚‚‚‚‚ƒ‚„…„„„…„„„…†………„„ƒ‚ƒƒ‚‚€‚‚‚ƒƒ‚‚ƒ…„„ƒƒƒ„„‚‚€‚€€‚‚ƒ‚‚‚‚€€€€€€€€€€~~~~~~~€€€€€€€~~€~}|}}}}}}}}~}}}~€}}~}|~€€€€€}}~~~€€€€€~~€~€€~~~€~~~}}~~€€}}~~€€~}~€~~€€€€€‚ƒƒ„ƒƒ‚€€‚‚ƒƒ‚ƒ„„„„ƒ‚‚‚ƒ‚‚‚‚‚‚‚‚‚ƒƒ‚ƒ„ƒƒƒƒƒƒ„„…………„„ƒƒ……„‚ƒ‚‚€€€€€€€€€€€€~}}€€~|{|||}}~}~~}}~€‚€€€€€€€€€€€€‚‚€€€€€€~~~€€€€~}||||z{{{||}~€‚‚ƒ„„ƒƒƒƒ‚ƒƒ‚‚€~~}~~~}}~€~~}}~€€€€‚ƒ‚‚ƒ‚‚€€‚‚‚ƒƒ‚‚‚ƒ‚‚ƒƒƒƒƒ‚ƒ„„……ƒƒ‚‚‚€€€€€€€€€€€€€€€€€€‚‚‚‚€~~~~~~|||||{|}||||||}|}}~}~}~~~€€~~€€€€€‚€€~€‚‚€€€€€€€‚ƒ„ƒƒ‚„ƒƒƒƒ„…„‚‚€€€~~~|}€~~€‚‚‚‚‚‚‚‚€~}~}}}|}}||}|}~~~€€€€€~€€‚‚‚ƒ‚ƒ‚ƒƒ„………†……„……†…††‡†…„„„„„ƒƒƒ‚€€€€€€~~}}}~}|}}}}}||{|}}~€€~€‚‚}~~||}{{|{|}}}}~~~‚‚‚‚‚‚‚ƒ‚‚‚€€~€€€~~~}}}}~~}}||}||}}~~~}}~~~~~~~~~~€€‚‚‚‚‚‚‚‚€€€€€€€€€€~€€€€€€€€€€€€€‚‚ƒƒƒƒ‚‚€€€€€€€‚‚ƒ‚‚‚‚‚‚‚ƒƒ‚ƒƒ‚‚‚ƒƒ„ƒƒ‚ƒ‚‚‚€€}|}}~~~~~~~~~~}€€€€€€€€€€€~~~~~}}}~~‚ƒƒ‚€‚‚‚‚‚‚€€€€~}}~~€€~€~~~~}}~~~€€€€~}}}~~€€‚‚‚ƒ‚ƒ„„……„………††‡††††††††‡††‡…„…„ƒ‚ƒƒ‚€€€€‚€€~~~€~€€€€€€~~€€‚€€€~~~€~~€~€~~~}||{|}}}}|}}~~€€€€€€€€€~~€|}~}||}~}}||||||}~}~}}}~}~~€€€€€‚ƒ€€€€~€€€€€€‚‚ƒ„„„‚‚‚ƒ‚‚ƒ…†…„ƒ………„„„ƒƒ„„„ƒ€€€€}}}|||{{{|}{|zz||}}~€€~~~~~|~}}|}}|~€ƒƒƒƒ……ƒ…†…„„………ƒ„……†………„…„„‚€€€~~~}}}~~~}~~}~~}~€€€‚ƒ‚‚‚‚‚€€~~€}€€€‚‚€~}~}~~~€€~~~~~}|}}}|||||{|||}}}|{{{||}~€€€€‚€€€€€€€‚‚‚‚„„……„„…‡‡†…†‡†„…††…†„†‡†‡…„„ƒ„…„…„ƒ‚‚‚ƒƒƒ‚ƒ„ƒƒ€€€€€€~~€€€€€~}}~}|}|}~~~~~~~}}}}~~~~€€€€‚‚‚‚‚‚‚ƒ„ƒ€€€€€}}~}~~€‚€~€€€€€€€€‚‚€€‚‚‚‚‚ƒ‚€~~|{|}}||}}}|}|{{}~~~~€€€€€€€€€€€‚‚€‚‚€€€€‚€€€‚‚‚ƒ„ƒ‚‚ƒ‚‚‚„ƒƒƒ‚‚ƒ‚ƒƒƒƒƒƒ‚‚€€€€~}||||{{|{{||{|{{}}}}}€‚ƒƒ„ƒ„„‚‚„„„„ƒ„„„……††„„„ƒƒ‚‚‚€€€€€€~~}€€‚‚€€€€€€‚‚€€~||{||}}|}||||||}~€€‚‚‚‚ƒƒ‚‚€~}||{}~~~~~~~|}~~~~€~€~€€€€€€€€€€~~€~~€€€€€ƒ€‚ƒ‚‚‚‚……††‡‡‡‡†‡‡ˆ‡‡‡‡‡†„„ƒ‚‚‚‚‚€€€€~}~~~~}||||{{{{|}}|}~~€€€€€€€~~~}|{z||{{{|{||}~~~€€€€€€‚ƒ‚‚ƒ„…„„„ƒƒ„„…„ƒ„ƒƒ‚€€€€€€€€€€‚€‚€~}~~~~€€€€€€€€‚‚€€€‚‚‚‚‚ƒ‚€‚‚ƒ‚ƒ‚‚€€€}}}}|{{{{{z|{{{{{|}}}}~~€€€€€€~~~~€€ƒƒ‚ƒƒ„………„„„„„„„„ƒ‚ƒƒƒ‚‚‚€€€€€€€~}~~}|{|{{|{|{|~}}~€€€€€€€€~~~€€€€€€~~~€€‚‚‚‚‚‚ƒ„ƒƒ€€€€€~€€€€€€‚‚‚ƒƒƒ‚‚‚‚ƒ‚‚‚‚‚ƒƒƒ‚‚€€€€€}|}~~~~}~}~~}}€‚ƒ„ƒ……„ƒƒ…„„‚ƒƒ‚~€€€€~}~~}}}~€‚‚‚‚‚ƒ„„„…„…„ƒƒƒƒ‚‚‚€€€€€€€~~}||{|||}}|}|}}~~~€‚ƒ‚‚ƒ‚‚ƒƒ„ƒ‚ƒƒ‚‚‚ƒ„„ƒ„„ƒ‚‚€€€€€€€€€€‚‚€‚‚‚‚‚ƒ‚‚ƒƒ„ƒƒƒ„ƒ€€€€€~€€€€‚€€~~~~~~~}}}}~}}||{||||||{{|{{z{zz{z{{{|{{{{|||}}}~€€€€~~}}}|}}}}}|}~}~€€‚‚€~€€€€€‚‚‚ƒ‚ƒƒƒ‚‚‚‚‚‚‚‚„„ƒ‚‚‚‚‚‚‚ƒƒ‚‚‚„„„……†‡‡‡‡†††††‡††…………ƒƒƒ„„„„„ƒ„„‚ƒ‚‚€€~~}~~~}}}}}}~~~~}}}~}}~}||~~~~€€€€€‚‚‚‚ƒ‚€€€€€~}}~~~€€€€€‚€~~~~~}}}}|}}}}|||}|}}}~~~€~~~€€€€€€€€€€€‚‚ƒƒƒƒƒƒƒƒƒƒƒ‚‚€€}~~~}|}~}{|}}}}}}}~}}}~~}~€€~€~€€‚‚‚‚ƒƒ‚‚‚ƒƒƒƒ‚‚‚‚‚‚‚‚‚ƒƒƒƒƒƒƒƒ„„ƒ‚‚‚€€€~~~}}}||{|}}~~€€€€€€€€€€~~€€€€€‚€€€€€€€‚‚‚‚„„„„ƒƒ„„ƒ„„ƒ‚ƒ„ƒƒ‚‚€€€€€€‚‚‚‚‚‚€‚€€€€€€€€€~~~~}~~}}|}~~}}}}~~€€€€€€€€€€€€€€€€€‚‚‚‚‚‚‚‚‚‚ƒ‚‚€€€€€~}}}}}}|{|{{zzyyyzzzz{|||}~~~~~~~€€~€€~~~~~~€€€€€~~~€€€€€€‚ƒ‚ƒƒ„………ƒ‚ƒ…„ƒƒ€‚ƒ„ƒ‚‚‚‚‚‚€~~€€€€‚€€~€€‚‚€€‚‚~~€‚ƒ‚€………„…‚„‚€~||{{}{‚ƒ‚€€€€}€ƒ„…†ƒƒ‚ƒ„ˆ…‡‚~‚‚€}€„‡‚‚}~€~}}€‚„„‚|}|~€€„‡‰…ƒ~ƒ„ƒ„‚ƒƒ€‚†…‚€€‚†€xy}y|{xzz{{xtuvyzxy~‚}}‚‚ƒ„ƒ‚‚‚„ƒ‚}}z|||ywvyyyzuuvz|zz|~€~€€‚…‡‰‹Š‰‰ˆˆ‹‰ˆŠˆ‡‰†…ƒƒƒƒ‚‚€}|~‚€€‚ƒ€‚ƒƒ„ƒ…ƒ„†‚€}|~~|xy{{}zz||z{{{}}}~}~‚~~~€~€}}€}~€ƒ„‡…†„ˆ‰Šˆ‰ˆ‰‹ŠŠˆ†ˆŠˆ„‚ƒƒƒ‚~}{||~zyzxzzzyzxz{z|zy{y{{zzyy|zz|x}~||~~€}~~€€€€€€~€}|}~€~~€€„„„„„‚…†……„†‡ˆˆ†…„„‚„‚…†…………„…ƒ‚€‚„ƒ|}}}}||{|}{}}~€~€€€‚‚‚‚ƒ„ƒ„„ƒ‚‚‚€€€‚ƒ€‚‚€‚‚€€€~}|{{{z{}}}~~~~~€€‚„……„„„ƒƒ‚€€€€€~~~€~~€€€‚‚ƒƒƒƒ‚‚‚€‚‚€~}}}|{yxxyyxxyyzyz{|{}~}}€€~~~~~~~~~~}~€‚‚‚‚‚ƒƒƒ„…ƒ‚ƒƒ„ƒƒ„„…„„†…„„ƒ„„„„„„ƒ‚‚ƒƒ‚€€€‚‚‚‚ƒƒ‚€€€€€€€}~~€€~~|}|~~||}}}}}|~~~€‚‚‚„„„…„„………„‚‚€€‚‚€~~}~}|~~~~}}}}€€ƒƒƒ„ƒ……„„ƒ„„ƒƒ‚‚‚€~|{||}~}}}}}~~€ƒ„ƒ‚‚ƒ€€€€€€~}|||{zzzzywwyxwyz{{z{|}}€~€ƒƒ„‚ƒ‚‚ƒƒ…†„ƒƒƒƒ‚ƒ‚€€€‚‚ƒ‚‚‚„ƒ…„ƒƒƒƒ‚‚ƒ‚‚€~€€€€€€ƒ‚‚€‚‚‚€€€€‚ƒƒƒƒƒƒ‚‚‚‚ƒ‚‚~€€~~~~~~~~}}|}{zz{{|||{{||{|}}~~~~~~~}}~~}~‚ƒ‚‚‚ƒ‚‚‚‚€€‚‚‚€‚ƒƒ„„„……„…„„„„„„ƒƒ‚‚‚‚‚€€€~~}}~~}}|||}}}|}||{||}}}}~€€€€‚‚ƒƒƒƒ‚ƒ‚ƒƒƒƒƒƒƒƒƒƒ‚€€€~€€€~€€‚‚ƒƒ„‚ƒ‚‚ƒ‚‚ƒ„ƒƒ‚€€€€€~~}|z{zyzzzz{}zzyyz{{{{{{{}}}|}}}~~~€€€€‚ƒ‚‚€€€€€€€€€€€€€~}~~~~€€‚‚€€‚ƒ‚ƒ„ƒ„ƒƒ„ƒƒ„ƒƒƒƒƒƒ€€€€‚€~~€‚‚‚‚‚‚‚‚„„…„ƒ‚‚‚ƒƒ€€ƒ€~}€{z|‚ƒ‚„ƒ‚€|{{z|{||}||€‚‚ƒ€}{~‚‚„„†…††‡†‡„„†…‡‡„…‚„‚ƒƒ~xxzyzwuvvvuuz~~|~|{|}~‚‡ˆˆ†ˆ‹Šˆˆ‡ŠŒŠˆ‡‡…І…ƒ‚}|~{|||yzwzwwzxxvvvvutvxwx|€‚‚}€„†ƒ†„ˆˆ‡†ƒ‚„„…ƒ‚€ƒ…„‚‚ƒƒ‚~~z}~€‚ƒ€„‡……††‰‡…‡†‡Š…ƒ……„ƒ„„„‚~|||~€}‚ƒ€|~~|}|{}}|{|}}}}~‚ƒ‚‚‚„ƒ‚‚€‚ƒƒƒ€€ƒƒ‚€ƒ|}€~||z{~€}~||{}~~|z{|}~~||}||}€€}|{}~|{zyz{|||z||}}|€~€€~€‚‚€‚€€‚‚ƒƒƒ€„…„‚€‚ƒ…„„‚~€€€~‚‚€~€ƒ‚„‚‚ƒ€€€€}zyy|zxvwxyz{|||{|}~‚ƒƒ‚„„€€‚…„‚€ƒƒ‚€~‚‚||~€€€‚‚‚„ƒƒ„ƒ„„…‡†‡…„„„„…„ƒƒƒ„ƒ„ƒƒƒ‚ƒ„…„„…ƒƒ€€~~€€~€€€~‚‚‚‚€€€€€€€€~||}|||}}}~~€€€~€€~}}~}}}~~~~~~}~€~}{}~~~€‚ƒƒƒ‚ƒ„„ƒƒƒ‚€€€€~€€ƒ‚‚‚‚‚‚ƒ……„ƒ‚‚…ˆ‰‡‡†‡ˆ‡‡…„†„ƒƒ‚‚€~€}}~~~€~€€€~~€€‚‚‚‚ƒƒƒ€€‚€€€€€€€€€€€€€~~}||~~~}}‚€ƒƒ‚‚€€€}{zz{{yywvxxxxwvuvwwxyyz|}}}}}{||{{{}~~}}~~~~~€€€€€€‚„†‡ˆ†„ƒƒƒƒ†‡†…„…„„ƒ‚‚€€‚€€~~~}||}||~}}}|}}~}~}}~}|zz|}}|~}}}}~€~€€€‚ƒ‚„„ƒƒƒ„……†††…†………„…„…†„‚‚…‡†‡‡‡‡‡‡†ˆˆ‡‡……†…„ƒ‚„ƒ‚€~€~~~}|||}}~}}}~~~}ƒ‚ƒƒƒƒ€€€€}}~~~}~}|{{|}|{|}}}€€€‚ƒ…„……†††‡‡†‡……ƒƒƒƒƒ‚‚ƒ„‚‚€€‚„ƒƒƒ„„„ƒƒƒ€€€‚‚‚€€€€€€€~}}}}~~~~}}|~€~~~~~|||~}}~~}|}|||{{{{{||z|||}}|||}~~}||~€~€€‚‚ƒƒƒƒ€€€~}~}}~}~}~~|{|||}~~€€~€€‚‚‚ƒƒƒƒƒ„ƒ„„ƒƒƒ‚ƒƒ‚ƒ„„†…ƒ‚ƒ‚ƒ‚‚‚€€€€~}|}}}|{{z{{{|{||}~~~~}~~~~~~€~€~€€€~€€€‚‚ƒ‚‚ƒ‚ƒ„ƒƒ…„„ƒƒ„ƒƒ„‚‚‚‚‚‚€€€€€‚‚ƒ‚ƒƒ„ƒ„ƒ„ƒƒƒ…†ƒƒ‚‚€€~~|}}|}|||zzzzz{|~}}€‚ƒ‚‚‚‚„„‚ƒƒ„ƒ‚€€‚‚ƒ‚‚ƒ‚‚‚‚ƒ‚‚‚‚‚€€€‚‚€€€€€€~~~~~~~~~~~~~~}}}~}}~~~~}}||}}}}}||}~~€€€ƒƒƒƒ‚‚ƒ‚ƒ„ƒ„„ƒ‚‚ƒ‚ƒƒ„……ƒ„„‚‚‚‚‚‚€€‚‚‚€€€~€‚‚‚€€€€~€€~~}~~~~~}|{zzyzzz{{{{{z{|}~€€€€€~€€‚ƒ‚€€~~~}|}|~~}~~~~~~€€€€€€ƒƒƒƒ„……‡ˆˆ‡ˆˆ‡‡†…††‡‡‡‡†…„…„„„ƒ‚‚‚€€€€€€€€€}||}~}|||{z{||}}}}}~~€~€‚‚ƒ„„ƒ„‚‚‚‚€€€€€‚‚ƒ‚‚~~€€€€€€~~~~~~}}}~~~€€€€€€€€€€~~}~~}~~~}~}}~€€‚ƒƒ„ƒƒ„„„ƒ‚ƒ‚„ƒƒƒ„„‚‚€€€€€~~€~~€€€€€€€€€€€€~~~~}|{{|{z{{zzz{zyzzzzz{{|}}}~€€€‚‚‚‚‚‚ƒƒ‚€€€€~||{z{{||{{}}|}}}~~€‚‚ƒ„…†…„…†‡ˆˆ‰ˆ‡‡†………„…ƒ‚‚‚€~~~~~~~~€‚ƒ‚ƒƒ‚€‚ƒ‚‚‚‚‚‚ƒ„ƒ‚‚ƒ„ƒƒƒƒ‚‚‚‚‚ƒƒƒƒƒ‚‚ƒƒ€€€€€€‚‚‚‚ƒ‚„„„„„ƒ‚€€€€~€€€‚‚‚‚€€€€€€~~~~}|{{z{||~~}{|||~||{zyyy{|}}~}}~|}~}}|}}}~ƒƒ‚€€€~~€~~~€€€€€€€‚ƒƒƒƒ‚„ƒƒƒ‚ƒ‚‚ƒƒƒ„…ƒƒ€€€~€€~~~~}}||{|}~}€€‚‚‚€€€~|||{|}|{z}€€€€€€€‚„ƒƒƒ‚‚‚ƒƒ‚‚‚ƒ‚‚ƒƒƒ‚‚‚‚ƒ‚€€€€‚‚ƒ‚€€€€€~~~~~~~~~€~~~€€€€€€‚€€€€€~‚‚„……„„„„ƒƒƒ„„‚€‚‚‚‚‚€€‚€€‚‚ƒƒƒƒ‚‚ƒ‚ƒ‚‚€€€€~}}}||}}|||{|}~}}|z{}~|{||~~}}}~~€€€€€€~~€€€‚‚ƒƒƒƒ‚‚‚‚€€€‚€€€€€€~~€€€‚ƒƒ‚€€€~€~~}}~~~~}||{{{|}}~~}}}}|||}|~~~€€€€„ƒ‚‚‚ƒƒ„„„„…„††……†…„…„„‚‚……‚ƒ„‚‚ƒƒ‚„„ƒ„„„„‚ƒ‚‚‚‚€~}}|}~}|{zzyyzz{z{zzzxyyyyxxz{{||{||{||{{{z{||}}|}}~€€€€€€€€€„„„„ƒƒ‚ƒ‚‚ƒƒƒ‚ƒ„………†…††…††††††……†…………„„…†„‚‚ƒƒ‚ƒ‚€€€~}|}~~~~~~~}}}~~€€€~~~€€€€€€€‚‚€€€‚‚‚‚‚‚‚‚ƒ„„…†„ƒƒƒ‚ƒƒƒƒ‚‚‚‚‚ƒ‚‚‚‚€}}}}||}|}}}~}|}}}}}}~~}~‚‚€€€~}~‚‚‚„…‚~~€ƒ‚ƒ…†‹‹Š‡‚‚…‡„€ƒ„………‚€{zzwvvywyzz{z{|~€€€€€€‚„†ˆŠ‰‰‰‡„„‚„†…†…„‚‚€}{zz}~}}|}}€€‚ƒ€€‚‚„‚‚‚‚€~~{{{|{}|~}}}xz}|~€}{}~~€€€…†„€ƒ„~~~~€{}}}{}{{zzz{z{||||€~~€€~~~€„€€€~~|}€€}}€€‚€~}}~~~€€€€€~~ƒ€‚€€‚‚€€‚€€~~}|}}~}}|{{z{|€€€|~‚‚…„‚€€‚‚ƒƒ€‚~}~|}~€€‚€‚€‚€ƒ„ƒ„„ƒ„‚ƒ…‡‡†‡‡…„……††„…„„ƒƒ„ƒ‚‚†‡‡‡‰‰Š‡†…„ƒ‚ƒƒ€€‚‚~~~}}||~}}}~~~~~~~€€€€‚€€~~{zzzxzzyzz{}€€„‚‚†‡ˆˆˆˆŠ‹‹ŒŒŒ‹‹ŒŒŠ‹‰‡†……„„‚ƒ‚€€~|{yzzzz{y{z{~|}}}~~~}||~{z||{zzyz{{yyyyy{{{{{zzzz{|{z{}}}}}{{||{{z{|}||}}~}}|||{}}||}~}||~}}}~~€€€‚‚‚€€‚‚‚‚‚ƒ‚‚‚‚‚‚‚‚‚‚‚€~~}}~}~~}~~~~~€€€€€€‚€€€‚€€ƒ„ƒƒƒ…„„„‡‡†…†††……‡‡†††‡†‡‡‡††……„ƒ‚‚‚ƒ„‚€€€€€€€‚€€~~~~~~~~}}}}~}€€}~~~€€€€€€€€€€€€€€~~}~€€€‚ƒ„ƒ€€‚ƒƒ‚‚‚€€€‚‚‚€€€€€~~}}}}|}~~~~~~~}~~~~€€€€€ƒ‚‚‚€€€€€~~€~~}~~€€€‚‚‚‚€€€€€€€€€€~~~~~€€€€€€€€€€€€€€€€‚‚€€€€€€€~~~~~~~~~}}~~}~~}~}~~~~~}~~~~~~~|}~~~~~~~~~~}~~}}~~~€‚ƒ‚ƒ„„…„ƒ„„…††…„„ƒ„ƒƒƒ‚‚ƒ‚€€€€€€~~€€€€€€€‚‚‚‚‚‚€€~€‚€€‚‚‚‚‚‚ƒ‚‚‚ƒ‚‚‚‚‚‚‚€€€€€€~~~€€‚‚ƒ‚‚ƒ‚ƒƒ‚‚‚‚‚‚‚‚ƒ‚€€€€€€~}||{{}}||}}}|}~~}}~~}~€€~}~€€€€€€€€‚‚ƒ‚‚€€~~~~€~}~€~€€€€€€‚‚‚ƒƒƒ‚‚ƒ‚‚€€€€~~~€~}~~~€€€€€€‚‚‚‚‚‚‚€~}~~}ƒ‚‚‚€‚~ƒ„„ƒ„†‡†…††‡‚‚ƒƒ„ƒ„ƒ€|}€~}ywz|~{wvz}{|}yx{|{{{}‚ƒ„ƒ‚~}~€€€€€}{z{}~}~~€~€€€€€€„„‚‚€~‚‚‚‚‚€€€~|~€€~}€‚„†„ƒ‚ƒƒƒ‚‚…„…………„ƒ€€€€~}||z||}||}}~}}€€€ƒƒ„„ƒ…ƒ‚‚„ƒ‚ƒ„†„„‚‚ƒƒ‚‚€€€€€€€€€~~}~}~||}~~€}|}|||}{{~ƒ€€‚ƒ„„‚‚‚‚‚‚‚‚€~}||}{}~}‚€€€‚ƒ‚„ƒ‚‚‚€€€~~~}|||}~}{||{|}|}~€€€‚ƒ……„…„„……„ƒƒ‚‚‚‚‚‚‚‚ƒƒ‚ƒƒ„„‚‚ƒƒ‚‚‚‚‚ƒƒ‚‚€€€€€~~€~~~~~}~€}~~€€‚‚‚€‚‚‚€€‚„ƒƒƒƒ„ƒ‚ƒƒƒƒƒ‚‚ƒ„ƒ‚‚‚‚~€€‚€‚€‚‚‚‚‚‚€~~}}~}|||}}|{{|{|||}}}}~~~€€~}~~~€€~~€~~~~~|}|}}||}}}~}}~~€€‚‚‚‚‚€~~€€€€€‚‚ƒƒƒ‚‚€‚€€€€€€€€€€€€€€€€€€€€€€€€€~~~}~~€€~‚‚‚‚‚ƒ„„„„„……„„……„„ƒƒƒ‚ƒƒ‚€€€€€€~}}|}}}}||}}~}}}}|}}~~~~€€€€€€€€€‚‚€€€€€€‚‚‚‚‚€€€€€€€€€€€€€€€€€~~~~~~~€€€€‚‚‚ƒƒ‚‚‚€€€€~€€€€€€€€€€€€€€€~~~~~}~~~}~~~~~~~~€€€€€‚‚‚‚‚‚‚‚‚€€ƒ‚‚‚‚‚€€€€€€€€‚‚‚‚‚‚‚‚‚€‚‚‚‚‚‚‚‚‚‚€€€€~~~~~~~~~€€€€€€€€€€€€€€€€€€€€€€~€€~~€~~~}~~~~~~~€~~}}}}}~}}}}|}}}}|}~~~~~~~~~~~~~~€€€€‚ƒƒƒ‚‚‚‚‚‚‚‚‚‚‚‚‚ƒ‚‚‚ƒ‚‚‚ƒƒƒƒƒ‚‚‚‚‚€€€‚‚‚ƒ‚‚‚‚‚‚€€€€€€‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~€~~~~~~~~€~~€€€€€€€€€€€€€€€€€€€€~€€€€€€€~€€€€€€€€€€‚‚€€‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚ƒƒ‚‚‚‚ƒ‚‚€€€€€€€€€€€€€€€€€€€€~~~~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~~~~}}}~~~€€€‚‚‚€‚‚€€€€~€€€€€€€€€€€€‚‚‚‚‚‚‚‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~~~~~~~~~~~~~~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€‚‚‚‚‚‚‚‚€€€€€€€~€€€€€€€€€€~~~~~~€€€€€€€€€€‚‚‚‚‚‚‚‚‚‚‚ƒ‚ƒƒƒ‚‚‚‚‚‚‚€€€€€€€~~~~~~€€€€€€€€€€€€€€€€€€€~~~~~~€€€€€€€€€€€€€€€€€~~~~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€‚‚‚‚‚‚‚‚‚‚ƒ‚‚‚‚‚‚‚ƒƒ‚ƒƒ‚‚‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~~€€€€€€€€€€€€€€€€€€€€€~~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€‚‚‚‚‚‚‚‚€€€€€€€€~~~~~~~€€€€€€€€€€€€€€€‚‚‚‚‚‚‚‚‚‚‚‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~€€€€€€€€€€€€€€€€€€€€€€€€€‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€dopewars-1.5.12/sounds/19.5degs/gun.wav0000644001565000007070000003631207541421126014443 00000000000000RIFFÂ<WAVEfmt ø*ø*data<€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~€€€€€€€€~}|}|}}€€‚„„ƒ‚‚‚€ƒƒ{z||zyyzyz{|||~‚€€‚„„ƒ„„„…ƒ‚€~}|~~ƒƒ€€~|~€‚‚ƒƒ„ƒ€~~{zzywvx}ƒ„ƒ‚†‰‰†„‚~|{{{~}€€€€„‚‚~~}}‚†~z„~}‚‚ƒ~„ˆŠ†ƒ€‚†„ƒ‚|}~wywvyxvuzz‚‚~‚‡‰†…„ˆŠˆˆ‚~€…~{|utxzyz}y€y{‚„ƒ‡„…‡ƒ†‚ƒ‚†‚‚y{y{|€~‚~~}|{|€|{{€……ˆƒ~ƒyz}„…„‰‚|w}xy|y{yx€~‚}{‚‚†~~{vw}||z}|„‰ŒŠ‡‰‰ˆˆ„||~|zv{w}wzv}{~~‚ƒ…†…ˆ‡……„……€„„€{z{{ursx{~ƒ„‡ˆŠ‡…‡‚„ˆˆˆ†…ˆ…‚€‚€€€}{z|}}{~y}~|„„ƒ‚‚…††‡Š‹†ƒ‚ƒ€}}{zyuzx}yyz|~}€€~}}ƒƒ€~~~{}w{{|…€€€~‚‚ƒƒ„‚}|{vy{|ytvy|ywy{~~~‚„†‚€€€~€‚}‚ƒ„…}}~~z}€‚ƒ{|z‚ƒ„ƒˆ‡ˆ…†„…€{|xwwtxrxuz€‚‚„‡…ˆ‰‡ˆ…‡Š‡‡ƒ‚~uxyzw{}}{ƒ„„€†‡‚{|}€{z}twz{‚ˆŒŽŽ‹†ˆ„‡‚…†ƒy…~|€„ƒ}€}‚y{y{xtzzy€‚y„‚ƒŠ„‰…ƒ€{{~}€|}~}~|~x€ƒ€„ˆ„‡„‡……‚{yxxsxxvvuvvyx{~†„„€†‚|{{uxutz{€{y€‚}€}xw||~~y|‚z}€€€„ˆƒƒƒ†‚‚‚…Šˆˆ‡‡„}~}}€|€‚{||z}|}|~~||~€|‚………„‰Š‰Œˆ‡ˆ‚‡††‹†‹Š€€€€‡†‡€‡Š†Œƒˆ…}€‚‚…‚€|w„„|‚zƒ|€|}zs{xw||rrx}}~wzxz}|{}}|€ƒ{}|x{wy{xtt|{†€t~ƒŠvxjnŒ•Š|‡vos‘jt„šŠ}zxyˆ‡‚‚}|qs‚~wz}z}‡ztwŠ…‚‡‹‚|€ŠŽ‹ŽŒˆ‚Љ†‹zyzxrz€yw€~z|‰…‡Švƒ‡qr†‚z’y–„w¦ˆiƒŽ›®jbq„‹‰xaSUUX_r|€`^cViµ£³Ã¹³®­¾´zkcUMHEFFR\q}nu||ti{yv”¦ž‘’“¬¶¯š›š²Ï®ŠkPi†ƒZLLO=?UUƒ¥—¯›™ud|²¨wkt’ž —um}…t~€”—Œf†tc[[^U\q†€†ˆvŠ˜Ž‹pjnl‡¤š}®”œ±º®¡œŽŠ‚}}j„ŽyS55JV4+.Hu]OK\`Œ±¡µ·¶Æ±¬ÀÌÙи›„‚~jhnv[B`^SkrX3- Bdjfqvnv„‹¤ÆµÇÙÆ§­ª‡}‚’™’ŽƒeqeNXk|s~}v”›‚}vr€‡€ƒur}zˆ…•‡•‹ŒzjX^ff†nelŒŽxnux{‹ ¹´¢ ¬šxlks`J:ML@CRnkZ[bQTfl`Ycs}”©³ÆÄ³Áɵ©­¼¹ºµ´­®®¡‰ŠŒ†Ž’І~xs€„…‰†ˆt^NHD639J^JBHJXolk}|…’tgq}š‡~„“ŒŽgGs‹wh|Žˆ‹ŽƒŠ›Ÿˆƒš¶Ç¼¥¶³¦»–q}”•‰wlxyz}}‡ƒ…ƒ˜˜ˆŽreWWMY`f92AXe]S9?Op||’™¨Ž¡Ž~‡“Ž˜p¢ËÐÁ°¯ž¦¯ž¨¯±¢–”‘~g[ekfQRw“Œ†ž””œŠª–‚o\PiN"8I;@;908+.`SU`i„vju‰”fb}‘˜Š‡³Á«¤¸´£¦™¥¤yrtlluš›š˜‘—ŸÄ¹šŸª¿ÉϾµÃ±‘gajcR<=Y~lZi¦¥ubXZhhn^}zWhrlUNWn¢ˆ’ž¾¸•¦¢‘yeއeu‚msf\ct…d9:MeumXJqž˜¥¨®²¸®¨£Šmh[MQRi†ˆ\P†”†k`gwzodRS{~yir|l…¥“¡¢®±¸¾µµÂÈ»¶¦¬Åµ•”¨¡xQF?En{izƒv~¦¥qm`GM\_QQN>Jba@R\D]inM46F]dcDFblryŒ€gzz_``VTg€‡•~ljv•Žse“˜r‘°²¨¦¨›¡µ­‚v•†l|}i=R|R9gk[Mm§„b ~p‡Œ‰¶¶¥±Áͬ•¿Õ²µÖåà¿¥µ©ž¹²“¥£{„´º– ¸®¦ ˜¥µ¯«¡°Ã·¨›‘•…ƒ ž’—¦®Œ£Ÿ“”Œy{zustuqlinx~pejkjQJ[E1=j^ERhpgn|€‰ˆ†ƒeT_\Zdlif[JDKZg_KR;$$+40' +@Wbrh_^WMSVOWyŽ“’“‹†’ŒŠ’›…~tntoyyqr}‡Šwi„…aNXiz™ŽpyŒ“•ˆzwn‰ž—’¤˜¡¬»¼§ƒžƒ|”¦´ºÑκ¯®½»¶›«À°ÉÖ§œ“¨µŸvŽ ¬—w¦™µpx©––“¢¬ ›ž…‰™’‚‚”˜¯š”šª¦—~u„xwxnosqmd_`k}}m{ƒ‚‡Œ‹‡ƒ„•Œ{uuqgfjmoldb`c\]d]QD5>06P\mact’—•”–Œ‰¬œˆ‘…kYPGJGO\OJF?@m€qdlwvzyvytmjaYMO]jrnw¤§“ŽtUemahcIWs_o{p•«~y‰nXrq|‹uf¡ÄŸºÆ¬»¡¤º–—Æ©…†¢´“·ÌŠ…­|o~Oq•dPg|ŒŒž‡¢Ï¿•­Ó¨£ÇΤ•® Ÿ±™“¨—›¦Œ¤qiŒ\Kduvw~x”¤˜›¯–™´œ~…¡Ÿvi‰~`^{pMYvjbofxZy’ey›“´­ª´Ç¼¦®~•”pFOvgFOVdUK9=U:W{\`”~h…–}^a˜yŠ}X€™†m|˜•’£©‹€|x…“˜|”šz¡¨u|ƒ^‡zK‹œ€‡¯¢¥ßè»¶›¨ÌŠr‘‘n7BRG_=7YnhFSjuYZ…[fkytz}\s «zUrcutoœÇ¸Šu˜©¼±s±žxƒ±¬ˆrx—…|twrRD\j:"`_A[xŸ}N]–¡fViu}kT‰šv~p_e`VXOngL‹¡Œ³­œ‰”¦‚xŒ†zm]{†`hqm{{‚€”¢¡®À°‘˜œŒ…‘•}jrhb[Zhkxogw…zco~{y…‡”¤¥¤«µº¯žœ¢§“„„šŸŸ’}zj`XV[j„„…zwkmpt€ Ž‘•š‰|lkhYRtІ}wŠtkw…ˆ©ªª¹±¢’Œ~pil}y„ˆ‰Ž“•‰’‘wyrip€}‡{mŠ¡…}•°®£¬£}}…x|j\VGB;5EEIPIJM^dh‹€vozˆŽ’›²Á¬¨¬ºÖÁ§³¹®ˆsUcm=5C&2QYŠ¡ £¤²¶š•šˆ£¶¹¾µ¡|„ž²¤€…™ˆˆ|’~ww‘™ž€bOH;Pgfah~Ž“›®§™Œ|}vrT@Wwyy{vXZaMKa]UPk|{oszqpmcl{†ˆˆ—µ¸ÃÎßïòåʾ±¯…†ˆš´°¦³¶¼¼™{ikfb_^LJMAO[oˆ¨¡Œ…iZ{iZOhwv‰…}}dlm\n”™Ž–¥—›‘‘™ž¨¤™Œ„ppris„ˆtwkg_NNMLNRft{}”³«”{c[WGV[GMch\gmheVm“}`dgryoc{„„–”’™Ÿ©¾­´–‚Š˜™žœƒ‘Ÿžž¦Ÿš‰Š‚sWWMPxrRNSnk`Vdo{vw„•¦¾¸ œ¢›”Ž”ow‹„zgtssƒuyoiarƒ‡…yh^`‹™‘ª«±·½»½¿Âµµ°¶µ¬Ÿ‰x|‡xl€€†ƒplƒ‘•«¸´–‰›‰rsdilaM@A3)% "Aluspƒ“«¸©©½¸¹ry‡zs…wŽ–…uu‰~gYa]GLfn~›‰•¤¨­™†š¥¢ŽvXdttbNE/LeV2Ho^k™¯ŒZly`\vŒvd\pr‰¥¢Ž“ŠŽno¡Îº™ÏÄ£ÃÑ»¤”“–¥¼Ÿweqv~•€n®”lƒ‘uuš¯†t‡d`a{£…UOR[ryjM*Adg~V}¥ mnžw‘±«Œ‹„tvƒ˜˜udk{Žœ˜}‰£žt}¡mL|“o`”žy~´Ï¶‘†„‘——ŽrC:VYN[Z>MtuY0DZ:LncIOb\O…«žš¢©¬£­¹«š°Ð¶…Œrhˆ®£‚¥¯ž¦°’wŽ‘z‚—š˜¨¬¦¥lmwfYYZ8?]WMr‰^Y‚¨ ”€x•¡okxkC^T?fs@AprI?e€ˆ–ƒbWzŸŽ{~ts’feziT^WPD>On‡zf_k„¦¶¥™¡Ðܾ®¤¤¹²¡‘„‹ž¡žšŒ€~y–­¯ –£°¶À«“tl\OYWZ`X[i{£·­¢¬¥—‘sKHe{†—Œ’“ž¥”{“”vdr‰cm†•¡¯Œpg„ž—~s°’‘¢©’{{xlj……vdLJRL?M\I/MS9Lh_YtŽ~fmwlˆdez„hWr‡~]q|fXnŽ€etuE)EY;(KT95m‡jZ¬‹~·Ã—~«Á•z‰£¸‚¸³’“»¼”k—³}k™°tBXpmQTkv:6…\lŸ¥xg­§}uŽ«¿…‹¼˜n}¯¹ƒn™µ´|€ª­~–ÕÈ“žÕ㲕ľ‹†” £}l…†|Šš‘px‘›kHLz†eo›¢wŽµÒ®€¯Ç©ª©µ¾›€Š’qdxc7CZZ+%[b:N„£™w·Ö±žÊ³wlhb|f#J2 >[:0Vxu;8f[6Gp”u‘ŒvZp`>H\@8^‚Zfœ_ƒ®º‚j–¥}Nc…^g€^fn}_9\{iN\o’¸±w}´¤sµ±¢szŸ¬|Eb‘U`›®Šp”¢Š€š¹°Š…›£¬QWƒ‚RažÈʰ©¼ÝÕ¢œ©°|Y†”zILb‚±—}«èÍ£¼ÔÚÁŒx„”§–{ŸÂ±xo‰ž—eCOtŒ{“ ¢ˆ€–³¥ƒrmy„h1:l}[0O„ªšmy¨ˆV_•¶’PSu†qD?jY6L€Ž_8Bs‘rE6X‚rm}Ž}t«Œih{•‘TPr`1Hu˜odo€˜`_§Çœkf}¦§‡f|™„_O[„“qb‹Š—§ok¥ÍÓ‘°¾Ç—u€—­•lNaœœaqdA{ˆU>ajZ\Wa|mU’Œ†Í§{¢Ÿ}{…«É˜†q{xxq]^sow’”‹•­´Œ‡›Žˆ…ƒ›§šˆ‘¥ªŸšž˜£·­¥¦•‹sh‰€‡‹‹ˆZ`wGntIkrl`}i_{¢±š†˜‡y‡vo›†cpŽ‹guˆcXk¡c–Áš Å°·Ä”²»ª¼¢¨®ˆ€“–£qˆ¬£€Ž´°Ž~… ¢ˆŽqt€~™ˆdlum{–†peZqzeb{nnrdtjmyo}rbv†‘ƒ„”¦›ž–‹‘‚”m~yrw`fXRu~dWp…tv€ntuxzo‡upv_ipkiQcXROAZVLZJWU?PFCWLPXBYX@JBNJ-CGSk\sŽŠ’…‘­£³¬›º¥‹‘xŠ–†‹v{mŽŒœ¦›»´¨¬¢ºÃ¡¨™|†tv‚q‹†_Rf~d`‚whw•ªŸ§¥‡£©¤ÌÇÌÒ¯¹ÍÄ®–~‡¡¦—––£¥§×æÄ°ž±ÆÂ¿¹¬ž©®²¾ÇÉÇÇË»£¬¼­”‡|qs{}mY_mk]\ZUff]WKDDQ\Wfs_F>MJCLTPEAMins‚w|™¢—Šx\QUajfVRZXYh\AU_EFA]guucQVx˜ª«›{t•º°£³‹j—yuš•vœ›pc„Š{mUSs‘“…€kK^oTr˜xq›™sstkŽmeqr}€ebx–œ©ÃÁ˜…“†mt‡xRUdZLbv~‹„npŠ™•Œ~i{Œ‰‹ °¨¥··£¢±¢„|hUX\`m„€dZ}«¤†•ž…œuEEyoTw…b_unbpxfapƒ‘Šz|‘ž¤œšž–Ž‘|nnqv‚ƒ~}˜“™™„x…œ¬›|‚ˆ‚‹Š{‚™—~ƒlZo„\:VW97Tjz|k_n‹£œ‡›¬š†u«¤xЦ„}¥´yr‰w[h—¶ lg“¡•~‚€ƒ’yržma‰’kZq[NVhckoA 7v˜‡ƒ‡is‡ƒ}Ÿ¿ŠK€‡\Uvtj‚Š_Jy‘Ѝœmx¥ƒ„°¯}w¥V‚ª~~’u]€yzŠ{Zr›‚o‡ˆ~™}Zb€™‡ƒ|rlho^rŒˆybr€‰ª¦’›¥­›~€yly‹’v{™‹’¦© qf‡£¤ƒh]dz—ˆˆŒ’Œœ°‹¥‡`qŠTOhR[lZLKbbmbKER‹‡[a¡«~‘ȱ‡œ³‰l” ˆ~ž£€ŠŸƒht…zvbFKaŠ—~tƒw_r•yUv•q\yWišº¢‘šŠs•³—kxYChU\““}ŠllŽ¢¢’µ‚s~¦­––¢‹^j†F'esA@n~\N{›†Škh”¸m£Ïœ†¦ÀÙ—ÅÌž|–k^‡e[wwI;UAG•u`q²œuž¼Ÿ‡†…Žma{‡yl}‘mg†l?Mho5*``*i­|^mš¢}—Õθ§©¦ª£š•›³¸“`~°“ŠŽ¤~Sf}Œ¨’RFldk’fDO|’pKmŸƒe…°ž¡¸œ‚›–sdyudfƒŽsZb{Žxtz`MVbO…‡h—”—©«‰•¢™„_kŠpnviC?ežÀ‡Nxž…€’šª°É¾ƒŽ®«qx¦”vŽ•qMc‹mcŠhVµŸzi‹¬–…¡°°—˜¾¥•™–oRlˆtQ[_7!6HVE8g2+e•vDKŒŠqjw¶´„©§­¸›mpˆ—–u`ƒ¼Ën‹¦‘z²žcq©KQ€’oie`jxˆxOSsx˜˜\b‰wZf~sHO‹y@U–­„l£Û¼’¿ÛÛÄ‹€œ±·£{ccª‚G@jzxo[zm‰—‚Yb—±‰]NdŸ¡oO]zq@8j’{ebNFl¢­‡ct¡«h”º§‚r„Ÿ£wR`‹•ZFŒ½§rSn©À¨’‘Œ–³ÈµŒ­ÚÈ„t™­©‹n–JEcƒ‰U5AsqGd|aPN}·Q†˜sXƒ³†[r‹{9-We†gGe…b~• ™ts·“}¤žœ§¿™y”¡—œ¥—pAN–xx_T|¥†VI[p€oloz{sap†˜©Œƒ‡ux ´¡~ot„}qer—’je~¥¤§‰™’¤Ÿ’uYuu^^‰šz\qzgs—ˆ£ wƒvd} ž£·±yAI{šJ*Bsb:@{ŒrLF†´‰l®¦‚fXf¥°©…Ž —€–¥ª¶°žxs¥Ä¨ts¨«‘¢Æ¨†•‡kwmn™s\\jfs¨¡€z‰x‡ž­|VseQR[‚ƒwx}†u[l‰£‚PET´‘Šœ…k]~•¨?-oƒ^@Y“w`\i\rŠˆŒ††jJQwqquxwkx‚Š¢žƒˆ}ZQ`ƒ¬»ŠY¦…sަ«šyJ]ztn’lYQl›²xb…•ŠfN}¯¸ ~ ´š…¥ÌÉ»¶Ÿ£¥…‚ž¤gab_fimnl]ciQAq›ƒXdŠaR}µ»€q²¿Ž€ÁÉšvZz‰—…„‹•zTL‰±‰^u«§‹i`w”š„zkNT~ˆƒu~ŠkjŸ©“vY~xy}‡€tcN\‹š\T…™†iQSŒ±‡ew„zji~œ¤…YbuTZo’¨’„tgmzzow„ƒtkYWee`|¯¥†k\ˆ ž€\~˜}R\~¤„w\g“”‡¢°·¿”nf‡¯±±¶¿²‰nk£–’gNTgr‚‚qp‚z`KZ†§¤†x†~Ц¡ŽŽšŸxER}Œ†€}p_`gsàkn“†zjqŒ©‘[iZHs‘¥ª‰qks‰‹”¢­’gT@VoxfCd¢X<]†k?2~YNnŠ’¢ v[\…¸Ç§¬¾´§Œ{НŠ™©€__i^t‹UGxˆtx‚ˆvi•ž[Lp‘€gXnppt€“ˆ‘zbQ^‡©­z´³ˆpt¨“z„—x^fˆª½¯{Ÿvx˜ª°nWt’œ›•©®ª…bYt‚sW{”|bW~І|ƒ}„tXj|q…{lbcyŒ¡—vbQRkoq‡“tVDTs…ˆv’zSIhŽ–ƒ|p‰ aY{¢»¤‹€}qt‹§³­“|ubMY†‡‚›š…ml…›œ†`bzf?YniƒzŠzyw{–ljy[Vw€{Œ•—ˆ}gb‚– yƒ¡§€£²¦€^sšžƒfdyœ”}rh_h„’‡š¦™˜šyVt§œyŠ£ “mTi˜ŸxWt™„P^†¤‡pxŽˆjiyœ°£“”}gY€ˆƒ‡†uij”°ƒ““|kSRgФ¥„„‰„–™¢²‡^jveaj‹”zoq`Tp{q{~mlsud\h}ƒgw†|bS[Q\~’zhx‰}mx‰’œ™xk|yXb‘i`peUr–}w ›t[SaŽ´°yc‹¦•ibt®¢ƒxž£„v„©¶¤Œƒ‚|hbn{‘…j]URfu‘o^xƒn\Yp†­¿§{‚¡˜vbvž°¨€`kyoq…’®³ž“•ˆlz·½²­¦¦˜|tƒ“®ª}n‰—uOK`ƒšƒ\SohUIkˆ’•{kz•lxŠš©«’ƒw]h›º¢“¤­¥Šw`i…«œhTjfPGP_q{‚nNR_^k‘˜›˜}t‡zjr„’ˆdWiZJWt†nXhid_edexˆ‡vuzkV[w{„‘†fut\LiŠ¢§ˆg¬–uq”±£–‘‡okw‚¢©tŸž‚sj~Ž˜q{…Œ~‚—¬µ ‚„—‘otƒž²¬Œl~‰yˆŸ¡–˜šŽ~raUf…—“p…“ƒbfŒŽ¢¢‘n}œ‹je¢³¤{m…{qy““ŽxsotaU\q‹ˆwjqp`TV`p{xiW]~ƒrhƒ‘œ¥ ‰‰—…oj…šœœ…fp{mce€¤’u|fT=:Xw……t_~“z__yŒ £†gs…w}—±º¶˜wp€im†œ¦§–ŒwŠ›Œ€º¾‡hx{hWMCWw˜ŽYA`ƒqW\u— “pkwgbj‚¢œs\zˆ|b^€‘˜Œ}oe€„ol‡¬¼­’Ž¡£Šyx¸ÊÁ¡„‡€u€–Ÿ™•€`kƒth}Ž“˜œˆlnukVeƒ^]i^VYYSdwŒ‡g]w€lXcz‰‘‘fdmn_gy‹¯·—£±’™´‹… ™‚’vkŠ…sŒ‹„˜¢€k‘…€wr‚œ°®žwe– ‡…–œ¬›{dTmlTYt…sdH6UZCKf~Š{`j„tnŠŒ“ž²¼–ct‚cQ_o~‡€lc]fye[o¡«”Šuo{lu‹œ’“”}tz\e‚››wˆ—†ttzŽ”Šmdqyvjr‰˜œ”{mv‰ŒŸ¥·Ã¯“|‚‰€|ޝ±«£“somxqvŽ­¸ª{„•~vmnyŒ€\ILOUE?\kqyfUceZ`s‰‘•~~Š„{x‹¥œ|w‚…Œ~p^hŽ“‹ie•„vwzz†™{n{zvjls‡”œ¥«“„~yuy”§¡”ƒ`SLD:Dcˆ•‹pd€‹†}…¡³ºÙ׺‘†¡ª”™‡~‹‚hY[cb[^~˜–Š~a^filftŽ•“‹ˆ„{eRUp’ž|YFMX][`n}‚ ¤oRr’„uƒ¯¦—„|lqso‡§´²¶©˜Œ}vzvtvŒƒV@Ylmge^`s“§¹£rgˆwfnž­§|nt{……‚ŠŽ…vc_|p^q•¹Á¥¨¤‡}‡ˆƒŽ¥¹¸’e\m~j^eo}£žycq’tz‘¡¤žŽ}g^s}uv‡’‹„t`[]_Zi„‘˜˜‡yieh]\sˆ‘—~ZLVoiXS`|©¥™|aLXqrpŠ–š˜o[HZodfy€wy†‹‡}~|„’¡°±ª†aSemtz…˜¢pcitƒ‚w”ž±©¬ªšŽ‡Š›¡¦¨“`Rbjv“·ÉÉ«‘Žvr‚„‰™ž¢œŒn[g~’Ÿ”‹“–ˆqYE2F`FB]h}Žš“iLbmen}’¡˜ƒxojw€„𹯏›{]X=);RYi‚•Ÿ’ugt{gbgalˆš •‹r{Š ª­¤tqnfb_]bega]fdktojok`gzŠ–œ¦¢˜’†‚Š‚|€”®±¦ŠqqŠp`u…’Ž„scU_nÃÑÅ«ž”„pXk“was|ƒŠ…}ogij`oާ²¦‰|”¡¤¦µ¬¢ºÛÓ°iTXt–™”ž‹xw~xqeUNJ]‚“†‡Œ› „€rw~wˆš“k_`QTgohg‡£¡‰b6DgdP\|‘¡š‘€qqls…~rz‰€}~_C+9ruP`mmrrtkfiketŸ²ÀµˆhjiVZjgpƒŽ…uqfSjšž„qz–¬¿Èºž„x|‘ŸªªšŽmcP67N\j|— œ•‹š–²¶´¹µ·µž„ee‚“œ›‡†—Ÿ’‚jSršŒx›¶°§®¥„iw††y~gGFITZhuvy‰uSReysXp“Œ‹—–œ‚Y9:Vhqkpyysqi_ile{§Ž‡•¶¿°®¤…\Mt…Š”’–Šnembhi_f~}‚˜«®Œa\sspv„}qx„…r_QE]’£€q‡‰‹ƒ~|gHJnvoœ¥ª¦Ÿ€Ž—…©š›Àиœ„qk^Ym~sao‡i\lxv’¬˜ˆœ¢›—ŽwY@AV|Œ|¤…sljq€™¥¡¤¡ƒtŠ“¢š‡š¨”…€…vgk{lJM_rtq|Œ’…h^x’ªŸ……Œ’œ¢ƒlXOVn‚ˆ}peXIP^aVWm|ƒ”œ–‚ju‚qsˆ|k•¦¢xUCBbdORx‡jh~ˆytkf…«µ”ƒ‰Šˆ|……}v§«¤¡“}‹—~tzyy‡‹‹—¡¤œ‚sk_ig\{”‹skƒš—|t~‹œ¢Ÿ±³œ’’•„ul__~†rn‚gWyš}†¢µ¼¿¼­™Ÿª¤Š}Жމ”‹aYs‡„uiZH^fMq¥‡qƒŽŠ}bK…¡w~eNokf|{[FH_w€—¢‡pmkyzn^Tcuvw…—œŒtwy_jhvtl‰š’“~bk{tjfjhs€Œ¥‹paa~˜—™«®¨ˆ`\eaQ]x€|uqŠšioˆ‹†z†¢¶ ‡‘«¡hƒ›€fg€‚mzŒ—‰k`lm}–±³Ÿ–“Ž—¢‘€}Ђޛ|ƒve|xlgklezŽ”‰rh`jvvvopw††„“¡¤‘t]Zy’q†¤Š„—™‰vqxŠ ³´¢”|{‡nnphn”´®¢¥˜Žwr†Ÿ˜Šƒ”{yŠ‘”‹uajX=;X~r[Ib‹Šu`~‡~z{t‘‚mr¡Štzwmcr‡†ppuf`†‹qmz{y‚˜ˆocs|uknvwp€xo‚uV;;Mfrz|~…ymgclnfXRnŠ¢ƒg}š™ˆœ°¯¥“€ˆ˜¦¿À¡Ÿ¢Ž~…¡¦•ƒ‰‡—‹‰•’tY{••|~¦µ”t}Ž›y_[mƒƒtg|–ww‘œˆunaa|ŒvwŠ…~€Š™™|__o…œ«¥š¤¡Œ‘”†{sn‚•¡ŽwŠŽŠ‡t†’||rdyyfhy\\b`csš¡hv‰~w€Œˆtfg€‰šœ}ƒ‡ak‹„}‰{q|psŒ…tnqxt{ƒ‘‚mco|w{Ž|t€{w…qzˆ€mcn|xWHJFZs„‡rea`kvtpaTcqn|˜~bŠ}Š¢™{…œž“¦”‘¦©Žš|ifx‚z‡™–””‰sl¦¾­—Ÿ± –œ˜Œ‰Ž¤°¦Ÿ‘vkieo†ƒulrwz„‹†f\m|‰‘‘ІއЗztgck^Zv}u~~}ƒ„x…s–¥®¡ˆ…œ¡vŒ–‡vqt~ž“uojZWas‰}TLdm|…|wghpTNnvbWduykvt[dyqlu‘’t€’‘‘‡wƒŠndt„s‚‰aE]oxˆ‡…†Œƒtv†–—‡x‡Œ|~‹‡vz‡„Œž”s|‰’ž˜ ˜ˆ‡“އ¤•“†ƒ„„š”’Žˆ|vƒ—£–‰‹yfs‡•„uz~a[be~uPLr”—|tls‹•Ž‹—™š‘Œ“€ˆ„š™ˆƒ†œŸˆˆ‰ˆ’‡zxrcbs…Ї{uwnWY•„di~vs„—“tpucmwtjSYrxgSQ`]O]pqrtr‚€v„Ž„€zgfpiVYu…y|xngxydntu„‰“¡›„}|†“‹…–¥ˆenžÃ¬nVŽ»¶¢†·µ”~‘¬Â­‚¥ª±–žw]ƒ¯ª‚}Ž££vr‚®’o|Ÿj‰¨–jViŠ˜“„l|cl}}~†Špgmy‚zlvxltˆŽyjcbi†’m`omvo^n–{MDk„rXLex^J_€pEKrŒ^Eoˆi[Zk“™`Hc—…iXuЉ€|v€’ƒqfes}rR5N€–†iv”—‰in¢°ŠŸ±¥’¡›„et®Á–sx‡¡•qw–¤šv}¦¶®¥£ž¦®¦”Œœ›“–¦¢{n„ª˜Š„”¤ž˜™|^m„¤¥}]{ Œ`Pgˆ{ct€~™ƒ„—ŠxXU‚¡•lI;aŸ›b9]›¬˜ƒrv¡’‹ŒŽ•”t]ck_L?Qlheeedjy{dWQp™“_NfŠ™vNNr‰†lm}~{xyz†zdkŠ“vRVi}…b=Gn€comjus€‹• ¥ Ÿ˜Ž|s„Œ|ox˜x^pŽœ‹pmž²›ƒ~z}†‘”…zŠ ¶©†…–ž§”†…Š“‰’¬¦c †Yr–𣄉‡{fhy›zn‘^\žtk“®«‘‰‘Š‹šš†w~’›—‡h[x„mkos|€xr~€ndiˆ¡kq’ª”g`mvŒŒ‡uv„u[SivzkZn€yšgVdˆ ŒbV‚vchnoljjm„vjsyym\j‰–ƒe]p‹jpvih}ˆjd¬štp‚Š„w{ŠŽ‘‰Œž¡ƒjt…‚wox|yos‰›oa|¥±“wu†¥ }t‡„‡zwu…•ˆ˜Œ|„Šƒˆ”’‡‡…Œ’{`dx‡Ž„yml~Ž’Žsd~¢©–‹Œ—‘xoz‡‰†…Œ•„u{ˆˆz}zv†ŽŠ~}‚„ˆˆ~Ž’yegyzƒzk}‡{ˆŽqvˆ…ˆˆ{‰‰tcn†„vtyƒzuqdyŽsgdkq€‚\Yv…rgt†„jz•˜’…‡‡ˆ‚s{ƒ|lxƒvxƒ‚‹ŒŠww‰vŠ€{u}Šutp~Ž‘Žx~’—‡‹“‰ris‘—‰dZnu`Y}Š|USn‰|[inx„ˆ‡”‚ƒ†“ˆot‘‘uy„‹kk~Œ‰tŠ™†Œ—˜ƒo{nw‹—ŒŒŸ•”…}ŽŒnbuxf{œ–ƒŠ––—‹ŽŒ„‚‡}|‡{vvgjƒ‘“{ˆˆw|Ž…Š‘–„‡zvƒ…€shnhq{z~‹•Š{vƒˆ‚s||uz„ƒ‡ƒ{wnq{ˆ|jzŠvejz„xqz†}ury‚zsyˆ‚jj|€pmszxlifiqvllƒŽ€h`rˆƒro„‘…qiwˆ‰‚ˆ}‡ˆ{{„†ˆymqujp‚‰}…‘‚‘ƒ…Š€„‹w‰š”‰Ž™‹yy‡kv‚‰Œ‹—›”“…—‰„rn‡‘€€‹‘{cdv~vq}€{}{}‡‡w}€|}q}Œ†}†’‹†Š„~„‡“~““}v|„…}ujn~vr‚tm‚‚jfy{wqy„wx…}no‚†qo}ufrˆ€y‡Ž}Š„u‡ƒ}„‚uqzztpo‚€vv€xwz‚‡}†‹’”–𗔆}ƒ†}xuy…„ur…‡quƒŠt{†sv||{x€|rv‚…Špo„‘}rŒ†uty}ƒwmzƒˆŒ‚tŽˆyyŠ“†y†Š†…ƒ„}vy|z€€|{y|†‰tx‚ƒˆŒŠ†w|…|}…‰„…ˆ†~~‚€~~…‹„y{~‰}rŠ}x…{yƒ†Š‚}€€ƒ„‚ƒ‡Š‹€{‡€szyuz}z~xtu{}ƒ„‚‡‡ƒ~tx†‰{zˆ‡||…‚‚wv‚…yr}Ї|xx|uv……wz†…}z†€…}w~|ˆˆ~rzƒ…~z|z‚ƒyy…ƒ|}|w{}up‰‹‡ˆ‰‚€{z‡ƒ~…‡ƒ‚„Œˆ€ˆŽƒzƒ…xx„‚„…{z}ot~‡„}|~~ƒ†ztƒŒƒ{|xrrwyvx~xvuw||rp†ƒ}|†‰ƒ~}wrv‚ƒxu…{wwwz}{y{…„‚…„‚ƒƒ†‹‘†‚ƒ„ƒ~yz‡‹†…„€††„ŠŠ‰‰ˆ‹‹…†Œ”‡€‡‹Œ‹‚y{‡†‚‚~€ƒ„‚~~ƒ‚~‡„{}„‚‡„~zy{{|~€~{ru||yy~}ztsw}„ƒ~{|}~|€ˆ‰‰‰…€}~€€…‡xuw{wtvuv~€rsxrko|{z‚„{w{~}}€„…~}yw€…{y~~z~„zuy|ww‚}‚ƒƒ€…‡‡†‡‡‡…„ƒ††„ƒ€}}…„|{||ƒ‚yx~z}„†}ƒ‹Š‚„€„…†‡†yzz}‚„„†ƒ€ƒ……ƒˆŠˆ…„…ƒ‚‚}{}„†‰ˆ…}‚„‡†„‚‚}}‚†††ƒ…„€}|~‚„†‡€}~~zx~…ˆ„‚|{~}}~|}}{xwxyzyxyyyz{|yurruyyz|~}z|~|zzz||z{{zx{€€}|€}|}||~~{yz||z‚ƒ‚~{~ƒ‚„„‚‚‚€~}…ˆ†€~~~„„‚€†ˆ‡„‚‚€€ƒ…‚}|}‚…„„ƒ‚ƒ‚‚ƒƒ„ƒ€‚ƒ‚‚‚‚ƒ„„„„„ƒ……ƒƒ„……†‡…~€~~‚€||~€~~}~~~|y|€€€€}y{{z{|||}||}~~}‚ƒ‚‚ƒ„„‚€~|}~}||{z{|}~|{}€€ƒ„ƒ{{}}|}~~}~~}||}€‚€~||~~~~€~~€‚ƒ‚ƒ„ƒ‚~€€€‚‚€~€~~~‚~|~€‚ƒ‚€€ƒƒƒ€ƒ‚€~~ƒ€‚‚€€~}|{}~€‚€~~~~€€~~€€~~~€€~~~€€~€€€€€€€€‚€€~€€€~€€}}~~€€€€‚€€€€€€€€€€€~€€€€~~~€€€€€€€€~}~~~~~€~€€€€€€€€€€€€€€~~€€~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€dopewars-1.5.12/sounds/19.5degs/Makefile.am0000644001565000007070000000036207554340225015167 00000000000000## Process this file with automake to produce Makefile.in pkgdata_DATA = \ colt.wav gun.wav losebitch.wav \ murmur.wav run.wav train.wav bye.wav \ die.wav jet.wav message.wav punch.wav shotdown.wav EXTRA_DIST = README $(pkgdata_DATA) dopewars-1.5.12/sounds/19.5degs/run.wav0000644001565000007070000005147407541421127014465 00000000000000RIFF4SWAVEfmt ø*ðUdataSÿÿÿÿÿÿÿÿþÿúÿöÿóÿôÿøÿþÿþÿýÿþÿþÿþÿôÿäÿ×ÿÐÿÏÿÕÿÝÿåÿïÿòÿíÿèÿäÿïÿóÿûÿüÿÿÿ÷ÿíÿêÿéÿîÿîÿäÿáÿÕÿÛÿàÿêÿïÿüÿ îÿÐÿ¼ÿ¶ÿÌÿÊÿèÿ÷ÿ&(IELJ*#ôÿÒÿ¼ÿÄÿÝÿÝÿ÷ÿûÿ)35AXtpil_M*--3+) 1P_syŒi\Ys‰‹†wM Çÿqÿ}þ7ÿ+{¶:ìÿ]H¬+×Dõíúö㪕ϱ–¨‚3e&'-Or:ÿóý2ý4üÅú²ù ùQøÌ÷¨÷ú÷gøgøì÷÷÷ƒ÷.÷<÷=÷4÷D÷W÷>÷þöðö÷S÷‹÷Ã÷ý÷øøwøBø‚øÉø+ù–ùçù,úwúû§ûîû2ü!ü¯üeýïýŒþ(ÿÅÿ÷ÿ÷ÿ K£Ef•ë‚ øg>Á²0´•)¶<g–âÞdD_Jr¬ÉPÛ² × à ø ¾ ± œ ­  E ö ¦ ^ kóU\̧ m—Ä „ Õ ê }   Ê (  R ù 2Ê.°æŸó‡/+þ ç ² ˜ ! àà¸|Z»và€XWY"ï ŒöÆ|Uj7º~¯=(ñ¹ÍL´1üòt¼†ðÑíü´µC˜y%»YvS½yyÿyþ‘þ[þºýãüýûdûTú°ùàø´øË÷÷qö²õyô óöñ×ð?ð©ïoïZîÑíÊìËìí3íåì±ìýëcêŒéééäèÎè€è•èùèfé•éêóê?ëèêêëdëªëÂëðë!ì\ì9í.íví6îï¼ïéï»ïðHð‘ð†ðûðŠñŽñSñlñÛñ·òHó¥óôwôvôôvôüôKõåôúô¼õ<öŒöÛö¡öòöÿö5÷i÷€÷Ò÷ˆøùÝø‚øØøˆùõùÈùùÀùÃùŸú«ú,úú÷ù_újúûûÍûüNüËüÏü5ýøýÊþŠÿÒÿî­ä\ÂLãJižl=ÕYô•… K » E ) Û  Ù 8 ó ³ ­ ° ð z N 5 w … & Ì º Ä ¸ è £ r ¡  ì Ü ® L à 5 ¢ ¦ † S  3 ¯ ê s [ b y ­  ³ ‘ E J ‰ „ d ( Ø ¿ a ¸.`¸DŽ}ÛëgøÿŸÿXÿ¿þ/þ©ýaý–ýEý+ýpüÈûûú^ùáøtøÄ÷„÷A÷ˆöÃõ>õ?õõ õô2ôôÊóô´óŽó0ó½ó‡óœóó"óýòSó’ó»óÞó6ô¾ô¼ôÔõÿõÓö?÷ ÷P÷—÷øsøöø*ùhùú¢úèúƒûäûiümý$þˆþØþtÿÍÿ”jÊ@Q\•\À+Ï ;ÌtÇãÂÞhaa.¦Ä´ÓŸê< 2ÒÚY Ê ã c ¾ é h i o &  Ì ! k V [ a ¥ ï  J F ° £ ò T X ‰ ® W l g % Å ^ _ O ] ì ! Ç î > Þ ü  L l ã ‚ ˆ h E ¾ c  Ï ! E  à m Î w " O #  ×…Ö†ÍïxPæa7AW¾½$ŠÞ@SÖÿfÿøþÞþÇþfþ þ½ýœýêýýêü…ü°üùûgûÛúrúRúzùûøø`øð÷ÿ÷Ð÷¬÷^÷n÷÷+÷Ûö–ö0÷¤öÁöZöCö5ö@öö¶õ{õîõö–õ=õ¾ôçô²ôàô÷ó¯óÑóôäô—õýõúõ™õHõ*õÐô«ôÕôëôðôAô+ô ôÁó§ó‘ójóÄóUó™òòáñÚñCñÇð ññ£ð.ðæïð.ðsð$ðIðrðÑð5ñ…ñàññ¾ñÜñ5ò”òØòóóZó óÊóCô„ôþôŒõ$öµö¬ö÷ö“÷¨økùBùèùúTûûûü²üý…þòþ ÿÉÿWAH¶ütáH¬íV¸¿èt­#<wm±£ä I4èìúÇ}‚¤­º¾Eops´ævp4H½Xdz_mòcQiC*aˆÇÓ¬‚uÜS}JÎÕµ)z‘ðý"DPg~     %  à Å « Õ  i Í  æ Î ð Ö  $ k © u  ÿ ï  Á Y ~ ‹ r 0 î   j Þ®Ô˜ã›=øª’j’@¬6˜2¯Xvü°pçrÁÿ4ÿ¾þ3þÎýKýóüÎüËüuü†ü•üüü²û\û^û@û ûœúúú¹úŠú†ú`ú?ú6úYú­úóú·úàúÉúQúuúAúTúú úÃùKùÒø·øíøôøù’ø;øÓ÷è÷ ÷Á÷{÷R÷r÷n÷V÷O÷þö¨ö0öÿõÅõNõùô5õõ(õõ¶ô˜ôôôÍó¹óÃó{ódó\óSóó$óóÀòVòòuòÊò¸òòóñ5òbòEòJò‹ò§òµòŸòÅòþòÄò¤òÄò)ó»óôeô²ôîôõ@õRõ¡õ4öšö>÷Ä÷‡ø½ø>ùcùîùÑú'û¨û*üúüÌü+ý‹ý#þŸþ'ÿ[ÿïÿªmÛ?Þ]½1m–lÛI²/–ÌÞVgd¼ëO › Ÿ # Q | £ û = } ~ ¶ ³ £ u ç  & ä W x ’ E H C Ä ¯ H y ƒ ö Ú ú £ ¦ « § ‡ Œ c Z Ï   … ‚ s 5 " Î š “ ‰ € ‰ r S   b c S k :  £ v ö óòÅ ÿŽî KKJÊvWŸ\5vÜ>: „-•Y æÿÆÿMÿ,ÿ“þþÎýpý)ýrü-ü§û€ûûîú|úú´ù!ùÎøøµ÷‚÷m÷2÷¬öSöíõœõKõüôUôSôñóþó¿óˆó;óòòÍò«ò¯òaòRò,ò-òØñÔñ½ñŸñóñ òòÁñ6òQòáòóøòóWóHópó½ó‡ó°óêóPô¯ôõaõ»õöHö“ö«öÆöñöF÷Z÷¯÷”÷É÷Ý÷gøÆøù}ùŒùÁù"ú|ú‘úëúZû£ûQü›üßü ýOýëý?þsþÞþÿtÿnÿÆÿðÿ`ÉpË*‰¹NcepÏ)…7yáû0µàå0\¿6¸Þý$ A 6 g µ   R j Z u Y J A S u ¤ ª ® ˜ u b z s ÿ # ï ü æ š ‡ Ê ´ s  4  ÞRÁ¬õ¹àq¢Gd–H6Å`89'ßR*ìRý³2Í”(¨CEõÿÛÿ¤ÿ‚ÿxÿ0ÿrÿõþ¬þ þ´þÀþeþOþñý(þÓýªýý§ülü]üYüülü=üàû¡ûÞû€û^û@û1ûýúÐúàú£ú™úRú˜úiú‚ú:úëù¡ù“ù¸ù¢ù“ù†ù„ùSùgù_ù:ùù8ù^ù1ù\ùiù>ùAùVùFùù¥ùØù¦ùõù¿ùúèùEú†ú“úÉú¼ú1û:ûQûhû‡ûzûBûkûÃûŠü‰ü¶ü…ü»üý&ýHýˆýÒýÚýþþIþ6þ¶þ×þ*ÿNÿNÿ™ÿæÿÝÿfï \¾Å ’YźìØJ8iVSAJG„}e&I‘Óš ø /oZ8P¼ÉœÓàÇÔšÓê ·±}fÊÜãÅÁîÆåµ‚^•¯| Îã™|\Œ“žeŠÀxPøÿÈÿ‹ÿrÿZÿ}ÿqÿÿÄþºþÂþµþºþiþ!þNþþÕý£ý=ýýýýïüðü¸üáü¡üžü·ü ü©ü@üíûü7üzü=üÜû¾û÷û;ü*üYüÑû%ü=üEügü?üOü ü=ügü“ücü$ü2üpü¸üüUü6ü¶üÈüËüÅüšüµüý¨ýRýýýý6ýmý ý­ý×ýþAþ‹þcþiþþþ±þžþÌþÿþ ÿ2ÿ6ÿVÿQÿ]ÿaÿBÿ„ÿƒÿªÿÍÿíÿ*öÿ:7`@yf”ÇÄ/ù*%ZLb}¾ª»¿óí#%OOePY^RžŽ¸—T>^—ª§‹{”¾u¡˜Î™¦ŠšÖ¨£€Æ¹Ö¿¯É¡Ëˆƒh‰ZH'MS4ଈvdLP <%ôïǧ¢¤~0H%*ðÿáÿàÿ»ÿöÿ»ÿ¥ÿ­ÿµÿÿ˜ÿ¼ÿ•ÿÿ’ÿzÿ3ÿMÿÿÿóþúþÏþ²þ©þªþ¬þwþ_þ'þ-þþ)þ-þ þÿýþ"þ,þQþþþëý#þ þþ8þoþjþJþ4þþÿýPþVþ7þ(þ þ/þþ>þ%þ'þ?þ,þWþCþWþþþõý þìýúý þ=þþþ þöýCþ!þNþfþ†þ„þ[þþ“þ¤þŽþzþeþ~þ…þ¡þ¥þœþôþÔþûþôþëþêþ ÿKÿƒÿkÿ`ÿnÿ~ÿÂÿØÿôÿ NG€|ÎÑÃè!H6dy™ŠƒxÙÜ "7FUUq?Bƒy˜ixan†Šm|M ÓÿÌà·Þ¬£ œržwy\|_831K*OSƒZ]@;ôÎé !ÞõŸÈ}„NS& Ûÿîÿôÿíÿ©ÿ¸ÿ„ÿ“ÿ¬ÿ™ÿ ÿ€ÿ£ÿ†ÿ‹ÿ\ÿLÿqÿLÿwÿ]ÿ{ÿ{ÿzÿqÿaÿdÿpÿ1ÿuÿ‹ÿ²ÿÔÿÿŽÿiÿ?ÿtÿmÿfÿWÿnÿqÿjÿbÿ6ÿ.ÿÿþíþüþ±þ®þ™þ¦þ§þ þmþPþ[þþtþeþ`þ2þþþ/þ6þEþQþ9þkþEþ_þWþ‡þ}þžþ·þÀþÐþÉþÌþðþûþ1ÿÿúþòþÿIÿHÿ1ÿ\ÿeÿjÿxÿWÿ’ÿ˜ÿ—ÿxÿ™ÿ§ÿåÿïÿóÿõÿüÿ ÉÿÞÿÔÿ! ++2FSQ‡]d£çîéåöÌ¿s“w”LO„—­m™T«ŸŸ”u¡ŽŽ“ÛµËÄ£½›ÆÂÐóB'1->9vkŸdjYl“fjCK×ÐãßëóéÑûÈàóúÒÒ§£dŒk”—gv‡š‚XaBNÕÿÐÿ¬ÿ¯ÿŒÿŠÿrÿ|ÿiÿuÿzÿ]ÿ1ÿÿÿÿÿñþçþÆþÿÐþöþÜþÿðþÿ>ÿÿYÿsÿ“ÿzÿÿ¨ÿ³ÿÄÿÈÿÙÿìÿõÿ¢ÿàÿÓÿîÿþÿÙÿðÿîÿÑÿÜÿÀÿ­ÿ§ÿ’ÿ—ÿ¦ÿ¥ÿÉÿÉÿ¹ÿÖÿÛÿûÿáÿÌÿÁÿÊÿ¿ÿÉÿ¦ÿÔÿÿ¥ÿŒÿÿ‹ÿ ÿâÿÞÿâÿöÿíÿÒÿþÿ'3$ÿÿ! ÿÿ2;>>èÿÑÿÒÿêÿàÿàÿåÿéÿèÿ÷ÿúÿçÿ1-<óÿ!1%#=Y}\PFKep›un‚‚SjQkYh^ps|i9@mmj3n^yRA\77ÞÿêÿÖÿðÿóÿåÿÅÿËÿ©ÿ¾ÿƒÿ³ÿµÿßÿÎÿÀÿ¬ÿÆÿöÿñÿýÿ©ÿáÿÒÿíÿÁÿªÿÄÿÛÿÍÿÝÿÏÿÊÿÍÿªÿòÿíÿ$. çÿÄÿíÿÚÿìÿ1 ôÿA#LFA:æÿ#KO? ùÿèÿÐÿ³ÿ“ÿ¯ÿ‘ÿŸÿ¯ÿÿ‰ÿ¤ÿÑÿÚÿ¦ÿ©ÿ–ÿÿ‚ÿQÿTÿOÿ-ÿ2ÿBÿEÿ;ÿFÿCÿ{ÿ§ÿ³ÿÃÿ«ÿÍÿÜÿÞÿËÿÌÿÛÿÀÿ×ÿôÿ üÿ&iŽÅÅÉÖÆÈÖÆ®©¹Úͤ͵˜ggŒT‚SVC>I8=NQ\SINK„qNCA@VZP3A\s‰v?Eo\W6úÿ÷ÿ÷ÿðÿýÿ ôÿ úÿ ûÿýÿ 32ÿÿôÿêÿÛÿ êÿÐÿâÿ +% üÿíÿ üÿÙÿèÿ¬ÿ¯ÿ¾ÿÌÿöÿÚÿ¿ÿÿ›ÿzÿlÿlÿœÿ•ÿ«ÿ¨ÿ¿ÿ¯ÿÉÿêÿçÿ0?# Öÿ¹ÿ¦ÿ‹ÿ™ÿ_ÿpÿoÿkÿqÿ|ÿ´ÿ†ÿžÿ´ÿ|ÿ[ÿÿýþ(ÿ8ÿ…ÿoÿÿ˜ÿÿ‰ÿ¿ÿ¡ÿºÿÍÿÌÿÙÿÂÿàÿâÿðÿ #>]P_EUn†i9KI4îÿâÿÐÿÕÿêÿÜÿþÿúÿüÿ÷ÿ4EWH7kD3/?`Tj214LU?N gkiOïÿ (&áÿýÿìÿ8Ch\occ`š˜cdr¨²“­«‘¤¹áÙÍ«¤â¿Óͱ»¯¼Òš§Š­Øº¼ŸŸ¯’¬¿ÁÁej_W€˜tpcAZB7 ÒÿÁÿÁÿ~ÿnÿšÿÇÿÃÿèÿÐÿÎÿÕÿÓÿ¼ÿ¸ÿ™ÿKÿ;ÿ'ÿSÿ)ÿÿ÷þÙþÿuÿdÿ-ÿÿþþÿÅþõþ®þùþËþÑþìþÜþÿÿÿ!ÿÂþ ÿ ÿ(ÿÿäþöþÝþÜþÃþîþßþíþ ÿÿÜþÿ3ÿuÿ¥ÿŽÿžÿwÿbÿtÿwÿ£ÿ‘ÿ|ÿoÿ‹ÿ€ÿtÿQÿKÿqÿ‰ÿ<ÿUÿ[ÿ­ÿ»ÿžÿiÿÿXÿ1ÿ<ÿÿ+ÿ)ÿAÿ€ÿLÿJÿÿÿ,ÿJÿEÿ{ÿnÿ»ÿšÿ—ÿ¶ÿ„ÿŸÿÍÿÊÿ ÿmÿVÿvÿ¯ÿÁÿA #âÿÏÿÐÿÝÿ÷ÿ&I,¨«×ÿÚÿÚÿøÿÚÿÛÿ—ÿ`ÿYÿuÿ\ÿ&ÿkÿÚÿR¦æ %9ºÝ(/tP_j-çwl7,Ÿ9éÿÇÿœÿpÿ&ÿÿ¡þÂþ¦þþþâþÎþèþ5ÿdÿ`ÿÿ¿ÿåÿõÿY˜†¢³ !F_!Rn–¬–…£¾§Í¥£B5B ?FT%éºÔʲ„g}öÿÔÿïÿ¾ÿ¬ÿ—ÿÊÿ¿ÿÆÿºÿÃÿ:íÿùÿ, /* :êÿ%<*ýÿöÿÙÿšÿµÿ–ÿ¨ÿpÿøÿùÿýÿÜÿÃÿäÿ ìÿðÿ­ÿ¿ÿÔÿøÿ7GðÿÚÿéÿúÿÑÿTÿwÿ±ÿ°ÿêÿïÿÆÿÙÿïÿ +%,àÿúÿ.I$ÿÿÙÿ´ÿÒÿ»ÿÈÿÆÿºÿÄÿ¦ÿ”ÿ}ÿªÿÿµÿoÿfÿÿ¶ÿ÷ÿ÷ÿíÿÛÿÒÿïÿìÿ ÿ¥ÿ‹ÿ—ÿ¢ÿ£ÿÏÿkÿ£ÿ©ÿ„ÿÿWÿLÿIÿqÿZÿ2ÿTÿUÿFÿ|ÿtÿˆÿ ÿÿ›þ£þöþÿ4ÿÿüþ¸þÿ1ÿBÿëþÿÿPÿ|ÿ–ÿ|ÿ9ÿ8ÿ/ÿ?ÿ*ÿ7ÿTÿ€ÿ’ÿÞÿÜÿ†ÿ:ÿ(ÿ«ÿ¼ÿÉÿ¾ÿŽÿÝÿÂÿ±ÿ’ÿ‚ÿ~ÿ•ÿ€ÿ³ÿâÿõÿ8Eúÿ 6QIˆÇäžv×ÔÉΡ¥ÂéùÄŒmlÎ=95gR‹H4*fQ< N( HIlBc§÷ïÀj´×92*iêüEù>p\:P:PvÞàõÆ€ovzfÂÖý‘¤ÿ0ÿ þzüÄúRù1øöñóáñ¡ïTí ë\épçåkã8áß=ÝÝÚÝØ×ÄÕoÔ2ÔÔµÓ,Ó Ó³ÓÌÔiÕÐÕÌÖ ØåÙäۺ݀߅áÕã1æ›ç'ééê`ì·íìî¹ðó·ôPöløÛúüüñþʰ±ê6£’ b Ý ÂbÇJ†Ÿº²øÉ5z«œ7††"ÅÁ3,¹°¡{?²¡»£Á~wT¦°åÿSÎjAΖ ‘ ®!œ"$·%þ&Q(¾)[+e-5/þ0É2å35X6…7t8a9Ï9š:?: :µ9§9}9Å8A7Û5R3­2%3ì.+'‰$’"Ž 9(ù’Š ´þRªþHû¦øUö›óqñ6ïõì¡ëRêAéè„ç׿>æöå~åRåå™äŒäïä‘åªåàåƒæ¿ç§è]éêê±ë·ìVíäí€îbïQðØðÙñ½òÚò#óó½ódôJõnõ4õ¼õcöÄö·öËöðöÀö¿õõõZõ_õ±ôXô»ó ó‡òÄññð×îñí¥ísíÿì2ì·ëëpê:êêµé7é«è£çç€çfèLéÎè„è›è é˜éïé#êçé!êBê0êLêAëPëŠëxë»ë8ìì‰ìÁì í,í™ìÝë ìí‹íˆíQíí™î±îÆíXíî'ïkï€ï!ïï²ïððÏï<ððñáðüðjñRñÌðþñöòÖóðó«ó†ôÌô¯ôôpô0õOõ3õôõ&÷>÷ÝöºöföŠö5÷¼÷cøvø+ù©ù[ù»ùÎùúúkúûãûUü…ü‘ü®ü¸üÍüûü°üªýdþøþLÿÿZÿQ¥5޾6d=§G)´AÇ@ñP fµb{-6¿- n  Í  Y ? ýý`  5 ‹ Ç ³ í  ð a b „ ¬ Í^ 4 Óx*¬¤3•Âõ™AN·ŠÇŸaïO@iZ#è‚ ³BZÜÿÿRÿÿËÿ¶ÿŸÿsÿ/ÿÑþ˜þþAþ>þ2þ^þ¡þ‘þ þåý(þÃþŽþ£þ¥þ†þšþ¯þ´þûþÿ9ÿ§ÿÊÿ×ÿX 'J-bÒB1ë:e¤³íIªì©s×öÀ3/3YXŒ¬ÅÜn˜ÚÇû0|¦F/€zÝúñ£¶S”XÛÒ\™ Ò ¸‡ãA Ý‘)­ Ë r  { ê  3 B ñ ý ÿ ¤ æ w ¡ ) - : Q ` £ Ê  ï » { Z ç è J T # ì ƒ  . K  ê¨àŠÖS+ C"pv­nèš0ítûÄbo†6NB½Z¿ÿCÿ(ÿ4ÿSÿýþ”þÞýÅý$þ0þìýgýþ þWþÍýùüü«û$û+ûäú¬úJúµùLùØøªøùóøÅø¿øyøOøø_øø·÷™÷÷ƒ÷Š÷n÷Ôö¿ö÷ûö÷’ö1öwö ö÷nö_öMööØõÒõÊõnõûõ}õ’õ}õjõÇõ]õõõõ[õÞôô?ôÚôõ@õ õ=õLõ—õ³õŠõVõQõüô©ô4ô…ó8óxò¶òMòòöñŠñ«ñØð<ð+ðKð˜ðYðð3ðšðýð†ñÀñ5òòòõòoóðó’ô­õÓõ öêõ˜ö?÷øJø²ø:ù¸ùúßúûãû¶üý†ý¦ýþ²þ ÿ{ÿ’ÿ Õÿìÿ†ì*1vÄ£¦ug·TCœìáöB*^/&\S"ŒLe8ÖÕ93 W ÉÞ<‚g§°ƒºð`™Í¹”{ÂC e Š ³ K v › » ˜ 6 F – ² — a Œ â   Ü v ’ ƒ ø ì ¦ ž æ ß s { Ð & Ó « ã › ¬ 8 ú Ø Œ  ± ª | =  ö ­çá¥qX4¶R2ÿ£ÉTsiõ^ý›Jú{Öº•-¼ÿ ÿ¿þUþþ«ýLý#ý5ýý×ümüüüçûªû$ûþú›ú¥ú®ú^úzú?úyú/úúúú?úùù“ùSùYùLù>ùù—ø•øiørøø&øï÷—÷z÷S÷ûöèö~ö.öö…õµõ‡õŒõÁõøôõžôhô¥ô;ô…ô\ôKô9ôøóô ô8ô.ôBô*ô$ôôKô{ô¹ô¯ôõõÓôðôõô™õnõ¯õÁõ ööÜõ;önö‘öxößöýö]÷c÷W÷•÷ú÷ø1øaø‚øÏøÖø„ùèù#ú”ú†úþúZû¹ûûûYüLü—üªüý–ýíýþUþªþ ÿBÿAÿ}»}Ìê|ž ƒõ n›G¯'ÕÜ6u£KYÀ›Ÿ¾ÅD W ¨ ¨ é Þ  ( ˜ l R \ À î ¥ t D 5 @ k ! 7 & ö  ù é  E F V > n ÿ , # ü Ò i ž J V + %  èÙ‹Eø* ›­~Ƥ¢{"Ö‹sóŸ‘^*áóÅðž±Wî«as& ÞÃrZ׳™Ê0ÄÇeOž~#»ÿªÿ­ÿTÿWÿ0ÿ‚þSþÔý þÚýxý(ý¡üHüZüfübüÖû–û™ûVû+ûÞúÎú£úú5ú:úõùßùèùžù–ùqùŽù®ù°ùTù³øºøëø¨ø‰ø(ø øNøIøXøIøø ø‡øDøï÷ øË÷è÷øcø!øŠøwø•ø«ø¶ø¼øŠø_øJøùùgùVùù‹ù…ù¹ùÑùûù"úHúQúúúsú³úàúûú#û?û¥û´ûõûØûñûSüƒüŽüzü]ü˜üýæüýü¿ü¸ü'ýýoý¯ý…ýÆýúýUþsþ‰þþ‚þ´þÿ.ÿDÿ4ÿÿ(ÿ¡ÿ)ÿÿ q±ÍéÖ:O‡‹¬ñéöu©Ïû‘R–ÑǯÄÐ&išc϶ NN‹ŸbI /5KX¢¢™œŠ¡ÚwetC Ú½Óøí“¦¿ÍšÔE0‹Á”y¨OÄÐî²a 5.Ú ö¶`™hj ë··Š«gµ±Ø¯>0@üÿÕÿ¬ÿ£ÿ?ÿmÿÿ1ÿ|ÿÿñþ§þ§þ„þ•þ6þþèýþ±ý‹ýhýuýAýý5ýýýÁü™üEüÅüHükü;ü=ü×û{û€ûtû‹û4ûIûþúÿúÅú—ú‘úˆú‰úMúJú\úúzú‘úµú½ú¬ú‰úiúlúpúÉú±ú…úúÖúôúçú©ú›úßúïú û$ûNû„û¦ûˆûïû<üCüIüJüfü@ürüfüÄü ýEý.ýÍýþ'þ?þ.þrþ(þ¢þŽþžþµþ ÿOÿ"ÿAÿHÿSÿlÿÞÿ¿ÿ$tQ†tÝÙð%ùURÔþ7ƒÐ¬Ü ÿO#5-Um›Á¥òü1;`z‰aPPKD,6úì×ÂøÝðÖš—–w_ï[B- N4)ûýäÝÁ‚†an}nEþâîäǬwDUòû¾òÄ›Ž;<FÑÿ ÃÿÙÿ¼ÿ×ÿ±ÿ´ÿpÿPÿWÿ?ÿ6ÿÿ)ÿ¹þÌþˆþ§þ°þ”þ:þàý¿ýÂý§ýŒý¾ý<ý\ý4ý(ýýúüäüÛüý;ýMýSýHý&ý0ýýFýEýBý‚ýYýZýhý|ýý©ý‘ý£ýgý§ý‚ý‘ýqýyý^ýnýWýEýUý%ýSý6ýIý?ý3ý/ý5ý`ýWýkýgý_ýeýŠýŒý®ýÁý þóýþ:þ)þKþ‰þ¯þ·þ©þÆþ¾þÿ8ÿKÿTÿ<ÿƒÿjÿ†ÿÖÿ×ÿóÿãÿ9N[Ž’™»Ó18Fƒ¨«¢Ïãæù$Úäæ½ÌŠ¦o£©éÑÚæåÖòö!#öö*4MFPSu\š`wg{{gvwlff9nM8íß®k> ÓöÇÖ¹±}ƒeS_MRðÿðÿ«ÿ¢ÿ¸ÿ×ÿŽÿ›ÿ©ÿ¾ÿÀÿÄÿ»ÿ‡ÿ£ÿsÿ ÿ{ÿžÿvÿvÿgÿZÿSÿ5ÿ@ÿWÿvÿGÿ|ÿ1ÿ3ÿ]ÿVÿ_ÿ'ÿAÿHÿ[ÿGÿQÿ=ÿÿ9ÿ ÿôþÿñþ3ÿ)ÿXÿFÿ<ÿÿøþçþøþÿßþéþÞþÕþðþþþÿþùþûþþþ ÿøþÔþÒþžþÙþêþÀþ±þþ­þ‘þ«þÆþõþÿ*ÿEÿ@ÿCÿLÿKÿNÿYÿfÿ[ÿjÿaÿjÿbÿ›ÿ›ÿÿ»ÿÛÿßÿéÿéÿëÿçÿ¦ÿ·ÿ”ÿŽÿ£ÿ…ÿÿ†ÿ†ÿzÿrÿxÿÿhÿcÿ=ÿ›ÿiÿÿ’ÿ¨ÿ«ÿ¿ÿ³ÿðÿëÿæÿÞÿåÿùÿ9C•rƒ\`v@‰‹¬ ±®ÑÒ ÑÞ¹º¯À˜†x|tJKijaH2EHSmC„qk<;/:0*%@QYsYZ9:'<YZŠi[Qpqxgaˆ¡°¦¯‰gqwš†qJU^aNb/N8Züÿöÿÿÿÿÿçÿ  ûÿÖÿæÿñÿôÿïÿ®ÿŽÿÈÿÿ¸ÿ¶ÿñÿÞÿËÿºÿ¯ÿÂÿ³ÿ«ÿ¹ÿ¡ÿ·ÿ­ÿ¨ÿÇÿ¬ÿÆÿßÿôÿÒÿàÿûÿúÿ '(ÿÿÞÿÜÿÁÿ·ÿŽÿYÿœÿ¦ÿÁÿŒÿqÿ‰ÿ‘ÿ›ÿ…ÿdÿSÿBÿYÿeÿBÿFÿIÿ•ÿšÿÁÿÅÿçÿÓÿÞÿ  ñÿ   Íÿ7PulqbbDC1#Ñÿíÿßÿ -' ïÿúÿôÿèÿ´ÿ®ÿ°ÿ­ÿÆÿáÿúÿðÿëÿÚÿìÿüÿòÿõÿàÿ¿ÿÊÿ»ÿÆÿÊÿÍÿ›ÿÃÿ¬ÿÓÿýÿùÿáÿÚÿõÿðÿ- 'ÿÿÝÿúÿèÿàÿ BVY<M7pK7ÿÿúÿ$öÿ73POO)(¹ÿúÿîÿóÿÒÿ(Lw=?!HæÿìÿÛÿêÿ÷ÿ(+LF 0 pzlcUCMQ,óÿëÿËÿèÿAOa2N='M) ++>)P>U_]jwZYSi>,* éÿäÿîÿ$ ðÿËÿèÿ 2éÿ±ÿ¼ÿàÿÍÿ×ÿÆÿ¾ÿÆÿ¦ÿ§ÿ§ÿÎÿÖÿÜÿµÿ—ÿ#ÿÿ=ÿ ÿ'ÿÿÿ¹þ¼þ½þÕþ÷þÿþÿÚþÃþ¯þîþÿþ>ÿðþðþéþ(ÿÿøþöþÿÿÿ'ÿ1ÿ]ÿyÿtÿ†ÿ¤ÿžÿÕÿÙÿãÿâÿ±ÿÏÿØÿ âÿËÿËÿ2úÿÄÿ°ÿÆÿ¿ÿßÿèÿ×ÿØÿñÿ-"M3.[f+>l_g†rÃÁ…¦¸þ¯—†xZM[jJ.ZS]<E`†Lxv4569`µ“’l¢­«Ó†–™¥ˆ’¬¼ŸÙÂʧ·ß§ÌÊwŠ¡{kxйsH]kwQdk‰b9bw¬¨£{“‡m€YG.q‚0 Öÿôÿ,öÿ²ÿ¶ÿÀÿíÿºÿ©ÿ|ÿIÿgÿ¢ÿ¬ÿ¡ÿºÿÿÓÿÏÿÏÿäÿÂÿæÿÔÿàÿ÷ÿÌÿÙÿÍÿÕÿ¨ÿ©ÿŽÿ¬ÿ{ÿÂÿªÿ¨ÿåÿ£ÿ˜ÿ¤ÿÅÿ¯ÿ¹ÿ¯ÿŽÿsÿwÿˆÿ¨ÿØÿÞÿÔÿvÿiÿ}ÿžÿµÿ±ÿ­ÿžÿ’ÿXÿ˜ÿ¢ÿ¶ÿ¸ÿ¾ÿ¨ÿ¼ÿ®ÿÓÿüÿ)` îÿüÿýÿÅÿ¿ÿ¼ÿÎÿÅÿ»ÿÂÿ¨ÿ¥ÿ›ÿîÿ­ÿ}ÿ¼ÿºÿðÿæÿÏÿâÿÏÿªÿ‘ÿ¨ÿ¬ÿ¹ÿñÿÉÿãÿ/_, ;a_f*F5m‰‹‚^«¹òÆØÝêÝ ýÕÀ²«”¿¯ñÛåØª´‡ÇÇŽbKjph”¼§›h“†œ:U9K2*ëÿ×ÿÈÿ©ÿ¸ÿšÿ³ÿÂÿýÿÛÿ¥ÿ€ÿªÿ¯ÿÙÿæÿ¤ÿ²ÿºÿ¯ÿÊÿÛÿÜÿÒÿÚÿÍÿÿÿ¼ÿ¶ÿÙÿðÿÐÿ«ÿØÿ¹ÿ¼ÿãÿåÿ&*ÿÿßÿìÿÞÿóÿëÿÒÿÓÿîÿÆÿüÿëÿøÿýÿþÿ.MyjxWSvy„†z_lxo£¢³§¯ž¢W8GÃuo5h¨ÃR. KTþÿçÿÿÿ ÿÿÄÿ®ÿ×ÿ !dq™k€6@]i'S2-dUZ`a<GI+B(  ýÿûÿúÿþÿÒÿØÿÉÿåÿçÿ ãÿœÿfÿÿ]ÿLÿnÿ;ÿ8ÿSÿTÿ=ÿðþ ÿØþÿËþãþ£þ¿þ’þØþÚþ¯þhþuþÊþ¶þöþùþÝþçþÆþ¿þ×þ²þ©þ¬þ¡þêþÿëþÿMÿkÿ]ÿsÿ|ÿèÿðÿÑÿÊÿ"12?esuL‡—Œ¥‹©˜Umum}ŸžˆP‘¬©¦›ßË ÙûÍõÀ®¡µ€R!)T¢ŽÐgSS-<< æÿ%Z%#½ÿáÿ®ÿ-c……R€`†r˜|p:$ýÿ3zOWciW&(P9%(8j;. G=2*ùÿýÿ'J&ñÿÙÿ: ^Îîº~t|®Á²Œ“ÕáÉÕxÁ”BXzy`CLHÎÿ(P™^N ;0Z&òÿËÿ£ÿåÿÓÿ Åÿ×ÿ½ÿäÿÚÿÁÿ®ÿ«ÿÐÿÈÿÃÿ Èÿ´ÿÍÿ8A.e8†¬’–qeM"HLÅÿâÿÿÐÿµÿBiG²ÞÁaWHjQt+  òÿÔÿÛÿåÿÖÿšÿ ÿ ÿÇÿÊÿÿˆÿÿ`ÿeÿ>ÿbÿTÿ|ÿÿrÿ¦ÿ‰ÿ¿ÿœÿôÿÃÿÁÿÑÿßÿ¶ÿÊÿêÿCTY@&“¼§~\k‚K\v§º¤—b—%ãÉlž½cÆšy;ƒu¥ÂÖibÖóÓóüæíåúss€”ª mqLŒõÿ)îÿUîÿ ¿ÿ«ÿ‰ÿ…ÿTÿ"ÿ[ÿ%ÿ;ÿ@ÿ`ÿRÿkÿ†ÿ‚ÿ_ÿJÿ8ÿGÿAÿÿéþÿùþÿÿ7ÿ¥ÿhÿ`ÿÿZÿ}ÿ—ÿœÿ‡ÿÿtÿGÿKÿJÿ>ÿ_ÿ8ÿ†ÿWÿªÿëÿõÿKÕÿüÿÒÿþÿ-ùÿ£ÿáÿb¿È b/\@óÿîÿÀÿ ½ÿãÿëÿòÿÜÿ"Ýÿ÷ÿa26N‹„óÿ-òÿ=EK\kWZ¦Æž¡ã³”§‡¡µyZaV>üÿ"ùÿÜÿüÿúÿ–ÿ÷ÿÿÿéÿ÷ÿHZ0h¹bÉÿ÷ÿðÿ*^ezDST°–!-Dz鸻o@Y.YoL8RX~èi6hÃvr~»›IÒÿÝÿÿ˜ÿ¤ÿüÿ§ÿˆÿùÿ¶ÿõÿ­ÿéÿôÿÇÿ¢ÿÅÿ4âyŠ5ľÛùÿdhk«)È㳋¶åÝ`yŒ¦Æ5A;Zž“ñN10›‡ª;ZÏž&Îÿ}ÿÿþþÚýýÌýýüwüˆüôûžû9û ûÀúûÍúBúúsù…ù^ùŠùBù%ùùAù¸ù úúFúsú¡ú.ûˆû üOüÖüõü‘ýgþÿeÿ‡ÿÿéÿíÿ"Ñòb1âÉ;.niužäÿÀÿÝÿÔÿŒÿÿTÿSÿÿ—þHþ.þeþuþ_þ.þ(þý¶ý}ýƒýyýzýpý«ýÐýýýùü›ýèýüýãýþ‚þ²þ'ÿ5ÿïþ8ÿŽÿ.A\¢¦r´“2!9dé%&E&5,z‘ÀæFa~Ú×H)z¡Òô» öM¢ ˜oR^Í ù:Ÿ® Ö3ï>5«X¢¿·¹·N‚J_KJ´n¹åÈKÏa/Ó›X>àUC â+}ÿ#ÿ<ÿ}þþþÎýïýDý;ý«üü7üüEü™ûûNú;úúú±ù1ùîøšø•økøà÷å÷±÷v÷÷÷ïöñöäö>öAöö4öµõ²õÀõ§õÓõ¦õºõ[õXõõIõEõWõ#õõ6õãôõðôïô…ô2ôïóÏóÜóþóôAôºóuóŽóðó\ô>ôŒômôwô¼ôÕôõXõ§õËõö„ö¡ö­öÂö<÷÷ø øÐøùWù½ùäùQú ú^ûHû§û ücüýügýïýxþµþêþ)ÿÿÇÿÀòkô6õ¥šT¥Éß?ï>Ê. ™ ¶ 8 — ¸ ! 6 ø g ® î \ “ Ì ÿ x³åö%üî'5û×y—60µ E Ì Ã ó Ý g Ù è Š N © c  Ë J ò¥ÙeÖgÆ Ñ¿+z.•qqrÀ‰ô^î¿IÐÿºÿSÿ"ÿ­þÍý–ýBý÷ü‚üEüËûÚû®ûTû ûyú{úúïù]ù5ùÂøøøk÷|÷˜÷B÷‘ö|öâõúõôôÅôTôJôMô|ô¶ôéô˜ôúó ôôôïó;ôô†ô¨ôéô õçôzõkõƒõ~õöböØö÷÷ön÷Á÷â÷DøZøù\ù£ùkúúúyû|ûšûÉûü²ûEü¸üþüý¥ýþeþhþˆþÌþãþHÿ£ÿ!‹±ðUê>‡¾ÍŽ h0yÖP»ò?ƒÌø + " | ` š Ó ó 1 M r … Ú ²   a ° š ì ³ ¯  1 O B  i Œ ¤ › á â µ ƒ Ž Š £ ™ h f L ¬ ´ ž y ï ™ k Ú ˜ 9 çS'¹^ ;ÛKЋ.›<Ö¿SÄ„õÞhMxÿ?ÿ)ÿÿ‘þ+þÁý…ýWýäüºü<ü*üÊû¦ûÿúáúNúvúúþù£ùVù8ù¿øàøÕøøÿ÷øé÷Ù÷h÷)÷ùöõö5÷÷öÞöÂö¸ö‹öFöMöYööëõêõö*öXöÖõËõ–õrõ˜õjõ˜õõ°õ¢õ[õOõfõ õpõhõjõÕõ ö|ö¤ö ÷|÷ê÷øø'ø-øˆøÎøùóøùSù«ùâùöùéùVú¥úûçúûvûñûÜûüiü‘ü—ü¿üýGýkýŽý¸ýµýÕýäýMþ³þóþÿ3ÿyÿáÿ;;>}ûó#K¦£ÉU¨ØÏàFÂÂõ: °7ƒýzçk“Ñ 6?Eb;Q`‹v‡x\0K@âµæ% É·d÷×ÂqA5Ëe‚—†-¬¨S5Úª‹+øK/((®|ÿ÷ð©d`F×ÿ&ÿÔþïþÝþ¾þÆþäýâýÿý¿ýŸý¼ý¬ýþÁýMýý(ý”ýµýÏý,ýþüïüýÜüü³üýTýFýý.ýßüáü ýæüEýdý’ýfýý¦ýƒý ýñüQýZý4ýü2üÖûü ü’ü®ü¯üUü„ûýû%üGüCüŠûþú ûaû¹û˜û-üBüYü°üèü¡ýèý¬ý‰ý†ý‘ýáý…ý-ý5ýìüìüæü´ü ý#ýýXýhýpýšýŽý?ýý½ýëý¸ýý³ýÖý>þþ(þùýÖý±ýþ þçýÑýãýþ!þ“þyþˆþKþRþ»ýßýþdþþ!þ[þËþïþÿTÿJÿÀÿ [kS–Ô[äB&A„ý\³³S~³²õ;[šº¨ãÚ,Á‚¡² :8Y^cбìº_7§K'݉³Çr‚)Ï­gd’u#ë7$O½‰Æ«x‰/oKF**íä²í‘2ܔǖy!“ÿÿÿ‡ÿÿ9ÿÒþ–þWþþHþ†þZþþýþ°ý‰ýhýQýCýý"ýý ýìü®ü‹ü\üjüOüüÛû]û¡ûOûOû,û?ûû¥úÀú¤úèúÆúcúNú|úú$ú9úNú4úÛùpù[ù±ù¨ù™ù²ùóùúÿùrúeúIúƒú€ú•úúÁú¸úÖú÷úû‹ûû¯û¾û&ü@ü9üSü®üöüýýLýÔýþ þåýþnþ÷þòþ,ÿWÿ„ÿùÿAPi´k¾ñ2"+Wf±;•ÑËV¼(Q“t¨Ëû77J÷ïô)D9å4Z˜·ˆÒ«Ó#M+*2rt¹_J‚:.4b˜¦˜‡Eý‘W9<07$𸸉J±˜84î!Þ³w/Úq‡JöÞµ˜j#EòÿÅÿÖÿÉÿ‚ÿrÿgÿBÿ)ÿÿòþÓþ€þ~þcþBþþ þþ2þýýôýþþ þóýÕý£ýÓýÞýËýoýûüïüòüØüÁü—ü„ü|üBüüäû×û¶ûÔûÏû ûFûAû%ûûû ûûÒú¶úºú®ú}úVú7ú7úËùÒùÉù³ù¼ù¬ù ù‡ùnùXùYùaù~ùUùtùsù²ùùžùNùMùtùrùŸùùÝùÖù(ú:ú˜úvú§úçúãú û4û’ûžûîû ü%üVü/ü¦üÜüWý¬ýÒýùýþ*þGþŒþéþðþDÿšÿÅÿüÿ_nÁ«ð@‰„ÜÿP º”–JˆÅÆãègr³Æé)H(+JfVdR60): ïñÚÒä×êÇ®}ƒUm`•TC ÓËÛÞ ñƒ™ YõÒ±'àºNU{_OFO2Éù¹wEN¿Ó“¦_5I1Ùÿ´ÿÿZÿÿÿºþ´þ­þ‰þƒþDþCþ þþ/þLþQþþæýñýÆýËýYýOýýèüïü–ü¶ü†ü‚üƒü^ülürüŽüvüHü=übü~ü†üjü ü!üüüüñû;üèûòû¤û­ûû¶û£û•ûÑûÆûüáûüéûü#ü2ü'üüüòû üöû2ü übü!üüü\üoüqüŠü˜üÖüÉüýýTýOý±ý´ýïýùý<þ>þ'þCþ8þ>þnþœþ…þœþ[þ¬þ€þŽþRþuþ¦þ”þ¿þÇþÿÿ6ÿ(ÿ"ÿ4ÿLÿoÿzÿ±ÿåÿEwrg‡v„ÍÕ"L€‡ˆ›¾3VYžƒ•™ŸµƒUSC”¦ã¯®Žœç EÝ%F@UBPv:gåøÃðÕ䏯¦ªlkq…Q^3mWQIJõ;27'*øê%Í…`Hþâ㯬Ùà ſΚ٣³—¤dœÛªn2%æÿ ÿÿvÿÈÿÝÿ×ÿœÿÊÿ±ÿÂÿ‹ÿkÿ`ÿôþîþšþ¢þþ¿þÅþãþ¦þ’þþ±þþgþvþMþCþDþþ%þÿýþ(þ.þ÷ý.þ]þbþ'þ'þÕýûýþ(þþ þâý´ýþýäý<þþ/þDþ)þMþ5þiþlþbþþaþƒþÃþºþöþ³þ®þÁþÐþÿêþÞþ«þþþ½þºþ–þnþpþ€þ~þŒþpþ—þ¶þÈþÌþÿÿQÿˆÿdÿUÿIÿ ÿCÿÿÿ#ÿÿ$ÿ ÿ3ÿ%ÿ$ÿÿÿ ÿÿ.ÿ]ÿlÿ]ÿTÿÿŸÿ³ÿØÿÏÿúÿjÿœÿyÿ’ÿ¤ÿPÿŽÿ‡ÿæÿØÿ : ++8 6O]†`š‡» ¿ÉÀݳ×áãÞýðå#G4UDeƒªŸ¦¦³ÁÈÉØÌÕ¿¹»¦›Â¯®Û­¶‚K-=4(#úÞ¤w›t‚gœÅP(õÚªpsbOŽÀêúÛÎŽªz‚U„Õ¹éË뽯€8@F1( Ëÿáÿ”ÿqÿ"ÿ+ÿ3ÿÿ6ÿÿÿJÿ/ÿÿ*ÿUÿYÿDÿGÿ<ÿ4ÿ?ÿ5ÿoÿ…ÿ›ÿeÿ[ÿ5ÿ0ÿ3ÿÿÿ3ÿ"ÿ2ÿ#ÿYÿ]ÿ}ÿuÿ‘ÿƒÿ•ÿŸÿÿ\ÿ]ÿªÿØÿáÿÚÿ¾ÿ½ÿºÿ²ÿíÿèÿçÿ$ùÿ¯ÿ¿ÿ‰ÿ…ÿœÿÄÿüÿ×ÿ¿ÿåÿ¼ÿÐÿ¶ÿ©ÿ•ÿnÿŽÿ’ÿÉÿfÿ¥ÿaÿoÿ|ÿXÿNÿTÿQÿoÿÿxÿ˜ÿtÿÿQÿjÿ=ÿ6ÿ^ÿeÿ€ÿ`ÿ¢ÿ‰ÿÿ}ÿ•ÿ>ÿ‡ÿ9ÿEÿBÿZÿdÿ}ÿÃÿ°ÿãÿëÿ?4K0 øÿÿÿòÿåÿ ùÿüÿüÿ!þÿéÿöÿíÿõÿ,,.-EKc‰k‘×ÃþîìêÝã¢ðÖ(1c4ƒ‘¢yk{o€?[.3=õ×­É–š‰vb†uƒxˆz—‰Ó êàôêë,Tx¥Ñíáûôâ´Á½ª–ŒzLB(0#$úßÞª˜zLUlfdST[[81&ÿÿêÿñÿèÿ&òÿÍÿµÿ¤ÿcÿnÿUÿ^ÿJÿ1ÿXÿÿÿÿ+ÿæþ¹þ„þtþmþXþGþ,þ4þ9þ3þ3þQþ(þYþ%þ+þóý÷ý7þCþNþþ þ"þ.þþ"þþMþHþHþþþ/þDþWþnþþgþVþmþfþþeþqþþ¦þÂþÁþÌþÚþÕþþdþmþþ¿þÎþÂþ¯þ®þËþÙþùþòþþþÿ?ÿ1ÿ`ÿQÿžÿ‡ÿ§ÿšÿœÿ¯ÿ±ÿ©ÿ£ÿ£ÿ—ÿ„ÿ“ÿ¡ÿ¦ÿÒÿÏÿ¦ÿ»ÿãÿÜÿÅÿÑÿïÿ #)E3B3PZ`‰uZa‹’«‘¹Úåòý+%fVfME|ˆÖ»Ò°·~¨£Éʾâ½Ú¬íòæ–œ•Î×çÊßJ50ýÿîñÐÉÛ×»°Æ“¦–œ§vrOXC`b_V7,95'ó ÎèÃʱ–Ÿ¢’ƒ“…·wiNX:ûÿÕÿ±ÿËÿ¶ÿ´ÿ~ÿhÿÿÿÿ'ÿÿüþýþýþ ÿçþ÷þËþÇþ‘þ™þ}þþþmþUþþPþ;þUþ(þ þþüýëýæýÐýÞý®ý—ýýtý›ýký‰ýIýlýtýUý‡ýÍýÒýÊý¼ýÈýýýýýþÍýËýäýþþæý÷ýæýäýóý%þEþþQþkþ‹þ´þ¿þøþÿþÿ+ÿ:ÿ/ÿDÿXÿÿ˜ÿ¨ÿÌÿ¤ÿáÿËÿöÿ=9VKiTwivx¡Éäïê"+FOX@S‚™Á¤·šŠ¯—¨Ž©s]=ƒk›€iaKlMA4'ûÿü>2S;J<@JV]cJmp{LN<)$:ùóÃ Ž“‹}|Td`Vqq‡=K2.7( óÿåÿÿ¹ÿ¦ÿÒÿ¸ÿÍÿ¿ÿ‰ÿ±ÿ{ÿ¤ÿRÿ~ÿTÿ/ÿ-ÿ/ÿ"ÿÿÿ ÿæþäþÿÿÕþ¹þµþ³þ¿þØþ½þ¨þ«þ¨þ­þ†þ¼þÚþ¾þ›þ–þ}þ§þ¯þÀþÂþÈþòþíþ ÿÿÿÿ2ÿ;ÿJÿOÿDÿ_ÿWÿyÿrÿxÿQÿDÿPÿFÿRÿ9ÿ8ÿ+ÿGÿ=ÿnÿIÿoÿZÿsÿBÿQÿMÿÿ7ÿ4ÿrÿGÿzÿŒÿÿ¬ÿ¥ÿÑÿÇÿÚÿçÿèÿþÿïÿéÿûÿC#-"-G PF7 íÿøÿêÿ;DGp‡xfr|†wr|«ŒÀÈÀ±¼ÌÝÛñ ÷ÏØøãë84-Vg0B'-Qxiy^\ey|uZ3úúíÉš}Š\dZ¤¾¨¼‰­ ¼ Ï® ’„koŽW\[X\klF6->/BGXKYA|PO)$êÿÍÿáÿÇÿáÿÄÿºÿtÿ™ÿÿpÿqÿbÿ{ÿ_ÿaÿIÿMÿLÿ@ÿRÿ:ÿÿ0ÿÿ5ÿÿÿéþÿ2ÿÿÿÿ ÿåþÅþÁþÅþàþêþçþâþèþÃþìþñþúþöþ%ÿÿÿÿþÿøþÐþùþÒþÿ ÿÿïþúþKÿEÿ?ÿ-ÿZÿ=ÿwÿaÿ`ÿMÿ2ÿ+ÿNÿaÿaÿlÿ|ÿ”ÿŸÿ¸ÿŽÿŠÿ…ÿ‹ÿÃÿÈÿéÿÈÿ·ÿÏÿ½ÿÖÿéÿôÿóÿßÿçÿçÿùÿ#)2B3!#.E&3/%Bchdb9v“vY%]Da@XH4RkpJd‚vvm§µÇçÛÓ¹øÚ´õÏË©£Ïºï³éíñö%Rto Ÿ§XzŒŸl][`o_eCPPJ1#&=12:.>)èÆ®®–—‘®€‚pX@) íÿçÿþÿÜÿÔÿÉÿÛÿ®ÿÅÿÍÿ ÿ²ÿ¨ÿªÿ­ÿ}ÿaÿnÿLÿRÿ'ÿÿ9ÿTÿXÿÿÿ ÿ!ÿòþ ÿÿÊþbþ[þ~þ þ”þyþMþQþ\þOþlþCþœþUþŽþhþtþXþHþZþQþ^þcþ¢þŠþœþfþ|þ¤þéþÄþòþöþöþôþçþ(ÿÿ'ÿ!ÿ0ÿ2ÿ:ÿDÿSÿSÿgÿ`ÿmÿXÿdÿkÿÿžÿÀÿçÿ²ÿ£ÿÅÿÛÿÔÿ¹ÿßÿÏÿàÿ!!0L%&W}º®|’´©ÒÊúË¥ê )%ýüâÿð>AI5;V=xXr]ŒE:RL…‡dopewars-1.5.12/sounds/19.5degs/die.wav0000644001565000007070000007254407541421126014422 00000000000000RIFF\uWAVEfmt ø*ðUdata8uذøÂÊù÷ø•úCÿÜ_sÿþÌúXùjüµþÜãÿUýRûøþ÷·û®ÿ ލìÿ¬úbøwø7úUþ‘ÂÿþüÐú‚ú8ü¾ÿv&÷ÿ¢üéûüÉûÅüKÿ¤ÿâýÆùmøpù¨üúxâ•ñÿüûaûõûýíû,údúøûbýTÿS™qCûüýzüÌû‰ÿ¯þÌü=ÿ«þÀûXûýürý þ'ÿgýîùú—ýöý§ÿçcKþwþîûúuþŽs=¼ügö«õšõ~öNûuÌ ÿeÿ<‡Ü¸çåüäúßö´òøö¯ûÞûý™ÿø² –RàÓý÷Bø÷Ëõ7úAþÜýÕü]ÿ‚gÜ<T+ûß÷öWö ü?!Òûù~÷0ø}ýÉֱް¦ó2í‹óTõÓøo³xíÿ"-ÿªÌM<<ü ÷Ðò²òÿøPÿ"fÀû™ö·÷Àù²ýl  à êCÿólóõöJúoþÃÿ¯þ~ÿ2•SüIýlö"ööó_÷#ÿþþ ü,ú¤øÀø4ýÒÖ Œu)þÐôëô§÷†÷aúóüýÿOy¦ßr½û}ôØò$óÅöý”ÿyÿ<ûu÷¿ùhÿG>© CJ¸òËíHöC÷ô÷.ý.Cæ@  ·xÿCó=ó”õôTú—•ÿåúCù¤÷Êú3ìÏ ö˜ÿ¿ýöòø÷GõÅøMý#D|  ÎÿÞòÒñóòjòÏøÅXþ÷üÌ÷Óø>íç; å SÿÀþûmñ4ö$ùÍóêõPý(ÓLJ lÞmJø©òªôœó•ó­ûdÿŠü´ü“ûü KÐêÿ(ü\úêðIó*ùõa÷Óÿ6ûbo NÐ÷ïïüóiôôü—¯wÿý_ú”ýÈ´ý‚h°üƒÿÛùñ+ùþøõÌüTCñà‚÷`ÿ±ú‰óIó÷møÖúNœ(ÿ”ýùáù $’ý^ÿ‰Ì¼3öTóQûÆö©õ‘ÿÜß÷ÜÍýù¡õ5ôôø"úûXùÿgþýƒø¬û©Fÿiýó € hÿìñÈô¿ø2õ úxbí¸"•3þ\ûhúõö±úÉùôýhþ³þOúø­ýÿþ¡ýËÿ2›z@0ûƒñõ4ùÓ÷£üb•ÂhTëÿEøÊüü]ô úcþYúPü.ÿ—þ“û¬øÜúœýòý?‰þ‰Õ 1¹HþÞó¿óÎùÊö”øû1ãÿ´øÿÈúógû5ÿ¯ùÂù}ýOýû/üþEýrþoýdü[2%ÿóô“ñØûû±ø¨ó *ü±øñý×ûÚôñù¬ÿúú÷­ý­þütþŽþÉú˜ü¬´üƒú°Š ªMÿ_ùìñú€ýùøs š:‘žû û¦ü¤üùù”ýúJ÷ôü-þ_ý;@þ»ûñ¢ü¾ûŽúƒýL¯2ü! üù[ÿÿuÿI—ú<ÿ!ý®õîù ýªøBûéþþúTûÝ—Ùü üíýÄýÆüóýürøÔú5ø´x©,ûƒþ øþ·Œü³ûo¯ûø›þ“þ¶øuü àûíúÓÿPü|øTý|ÿþ®ÿ ÈûÇöX÷Åù+d ŽD.ÿôýÊøùõNùvýËþQþÊÿþiü!ûYûxûìûžûëûOûDû³ü±ü¬ü°ú|3ü‡ú~øøÆúŠ9 ¶ a¯ûZö°ôMöFúºþˆ rý³÷$÷¤ù!ú}üeüçûÁý ü…ú–üS޲Gý6úË÷òó}ôwý! Š· µ Wÿ<òSõõÊõ -šý:ý2úÑò9÷_ýªúÌü’Fü øêü‘ýYü ð*púêùõõúù{ýˆVÔô|yúœù.öå÷u¡:åÿ‡úñ÷%÷ù~ûŽüýîüü\ûú?ýe¤ñ© þòûü9þ2…þ{ýGü»üC¤ý<bþmúýÉþ˜þ]½ÇòùqøyöyôUø*ú]ù›ý!lþá¹’¹!'úý¢ü¢úû4ûäúû<úAý¹„ÿ^Dò΄üúíûaû¼ùíùŒúùŠúIýÛý¿ý\ÿ[“þõýÕýú8úýü+ü´ÿ¯âÿ#ù†÷&÷›ømý¡U NKXù,ùöþqû'ûÔÿBþî÷Ëønû­ù"û8ÿ–þÃüxÿªþqùTúŒÿ*"ú´bÿvúƒøêõø—þvÿ3çÞ^ydÿbüú7ú{úü.ýðû·ûûúÝûÖûmûèûýüý þ3þ"þlüÁþгÊÈþ”üaüEúûœ! ÿ4ýû!úvþWÿDÿ}„þÕþµÿ‚ý"ü-üWüTúCú”ûTúeúPûûØûÿø‚š¿þr=ütú§ùûÈþ®ÿ_ÿýý“ü7ü•úü7ÿº>ê`ÿÜùL÷5ù´ù‘ú5ÿ<ÿÍý§ýJüRþ¾+Iôþý ûÈømúÕýEýVÐçûþàù]ø™ö£ô­÷rúþúlüný²üÑþÏþ› aÃúvöñLï5öGüòü¹þ Âÿ ÿ¦÷¶, '°ýQõ õÄôö¬ú+ýÿîmôþ!ÿФ'þGø¤òô÷—ø?ýdã ¾P{ˆÍèù0ö‰ó;ó/ø8ýÝþÈÿÇÿ2þqîàŸ 7þ.ùqñtð{ö ùû­ÿ&”~U„Š 9hùô¢ò7ôXù=þÎ}Xÿ‘þþQþuˆ>³ôÿ ù¯÷°÷âöËùîý/ƒÍýsû™ýôþ ÿ¤þ?ýú øñ÷0ù‡ü¬=ò>ª«ü"öïóqô¸ö<ú­ýrÿäÿŽÿEÎsO Y \*ü8òîÔîÆòú¨ÿ5i]BjWêß š¦pôEî’ðóí÷Výÿ L¨ÿý ' /Ãá÷.ððJóÇõ¢ûaïö³æfô¢ÿúøñÊìÙñ¹øÛü#{>€™ ÿvnjùÉó$óÖõBùUü÷ÿwYºþpŠ]‡Jü÷Vô¯ô‡÷û>þùþþUÿW59Tfú}øVôrôHõHøŽü¸þ§(Û§Ä’‚Rýbøô7ò–ôMøhü8åN‡FÐЄˆoû)÷¾óÌò3ö³ûçþÆœHBPô6pþdþæúöšö öèö?ü_µ¼ ´Ç€JýÓüIüùv÷M÷<÷vúþOÿÍ䊙€þóýÓü+ú¹ø^øôøÙû:þþ1DOÌÿPýõûpú‚ú£úùùÅû¿ýòÿ QQŒ+µÿîûù øAùAû¾ý³ý*þéþ€þ„ÿ ƒÓ¡•‹ý§øHöVöäøOû¯ü4þžÿÑÿ@ÿÒþ¼wfäãðùŒõ;óaóø%ü°þ¶ÿÓþ¾ý&„ég¬þ ø!òÐò›÷zú9üÿîÿ‡ÿ¾µÿ<×wE¸ùóôªó¶õ˜ùïükv…ÿÜþ™½ÿ%ÿ=ûIù‘ø6ùvûÍý,ÿ{1–ÿÈü|ûü6ýÑý"þdý¹üÙû½ûXü ýºþÙJX'¥þ‘û7ûÔú…û ÿ­ÿÝýäý»üüßý9ÿqcœþ¡úÌ÷ô÷Eú5üÏü_þŽÿrþýrþe$e¢ýËøTõuõ|øÈûÅþ̶ µ[ÿÅ7–.'üÚööFùˆúìûðþÃFè'ÿÿûÿûGÿóÏÆcþÅù3÷~öQørýÁÚ¼¸:ýcùå÷™ûâ‘ð`þßûSù›÷È÷ƒú)ªsT·aüGùû÷Cùü­ÿ°ÿ&þÅû£ùeù¦ûoŸ" A ¤¨ü€õò@ó$÷ÐúÑýèÿ ÿ–ýùüCÿÖ¬7 #<ÿgöóÓó#õÄùIþqóý:üÁþJÌ„h!ùõÓó0ôlø}üºÿKuþÙý þ:jW ÿüÜöŒóŠô¯÷ÊüXžk Z 0úö{÷ÜùÄý†ký>ù|÷øû/=% C *ŸûáõËôµô)ø»ü­þçþàý'ü9û¤þà À n %ˆù5ñ¸íåïÙöü„ÿ¨áQÿ~üAýfÿ¯Í 9 ‚@þOö ðñwôë÷ÛýÈ@‘·ý.ü„þü¼ïÚþÿù÷óòô=ùlÓ ¥ ¹‡ÿøÖôÅö|úŒþk4ÿQýôù÷bøsýé} ; ›ÁGù_ôóäózù2ÿ2áÿ^û~úvýu¬ _ EŽû'ôÆðñTõRú­ýJoþrÿÅ3 _ 2éý²ô¡î¯îÓòíøÿ4ÈÑd=ýgýÿ>ü/‚ÿõø>òÀðó6ø*ÿŽ<§¦ÅþqûKú„üEÿ3ÿÕýÓú÷0ö®÷³úi“O Æ `y/ø­òœòkõ úÿÄõÿ¿ýÃûëû}þ¨¹ º±êø×ñ/ðSñ#ö•üÕƒðTÿÂý5ÍÈK ‹:ÌùˆðÉì¯î÷ôaülÂ;TfÿrüNýîU¼ý÷ëññQôøùmÍåA’²ü¼ùÍù¹üAèï~ü,÷Pô&öÛù0ÿ/÷† Ÿÿ½÷àó õùtýX©[ÿÖüÅùŒù³ü1[Ù 6šøEòÎðóûø³þ úÚkþý)çç MMÍ÷WïíDð"öŽü+ÿXFÜÿ<ÿöŠÎ-ùhóñ¨òÕö?üÚûýÀÿ}ûÆúü/ÿꓟûéõÞó6öŸú_Ä]âÞüDö]ôøCýxC€üòø÷·ùRþÞ ý +Šÿ÷Ññòãõ¿ûÝ ~Úý$ûøùæüiˆú ]Cõø÷ñîïÅñh÷ýýÙó*‰Ãýiý8ÌÜh #Kýiö,ñ€ð³ô6ûÆöz|»ÿ™ú$ù¾üj”]sÉüMøô˜óøíþ~|dŽüõ÷$÷€ú°ÿpífïü¼ø’õ¿÷ýÑ|B»ÿÓùlöûõJøŠü-ÿsêÿqþ+ü$ú¢û¾þ]­¼ÛŠÿ+ûÀ÷†ö¬÷aúÀýœÿOÿ´üûügþ”Ì´Ó´üGö'òÉñ»õûïþC7šþ=üˆûœý†®Vþ`ú¾ônòôù9þ”ÉÀryþ üÜú=ü4æÉöþ‘ûø×÷éùôüp`ôi@‡ü¿ø±÷eù¼úòûþ¨ÿHÿ[þÃý¾ý­Èê‹d¯þÝùõö³õÆõ·øýdÿ(ÿŠý*ý]þ" IaªjÿÓúi÷+õöø£úßýÿÿâÿ‘’h§³Ùüú•÷¹öùäû€þ†™¯þíü~ûŠüuÿÙêëÿ;ýÍúgù]ùŠû6ÿa!޵ýüú ù¿ùPûgýCÿQ™.½þÕýþ\¿ê$ºþý{û£ø€÷qø÷ùýèþÿäþwÿôÿ$4‹ŽÍ¹ü¾÷«ô[ô«÷ü!þJÿ5³ÿIÿžþõþýÿr0cÿõûÊ÷Àõ×÷gú¨ü˜þ½‰Öÿ|þ—ü[û·ýýÿ^èüý6û ù úAüÞýÄÿ°:4ÿŠý!ü®úóú¶ü‡þ¡ÿ¾‚ûþ^þ™þþäþþÿµÿ@ÿØýQûkùøHùøû{þµÿÅ.UþBþ*þÂþ§þ4†ÞûB÷6ôÅõßùáüÿYÿ¡þÛý•üþ➀RªøþûÛöœõÙø¬ûqý¤ÿÃÿ¼þþRýÂû,ý_šO7Òÿ§üÍø§÷äùsüËÿƒiÐþíüœûtû=üRýÿÓ¶Uÿ¹ý¡üÔü8þZÿµ®ÿƒý©ûûôúþúbû¼üJþþþ ÿÿ2þ]þÊÿ|îlª‹ý#ûÑøö÷±ùgûOý“ýœüÛüxý®ÿA î“9‡Aþ9ûÿù†ùøù]ûüüuüaýþÒþÿVJTΪÔüjû%ù‹øJûþüŠýïýýtý~ý þóþÿðÿ’üŠûþýïûûvüýýøüyü˜üðý†þvþúý€ýŠý þˆþÿuÿÿ~þêýýýuý0þ k|ÿZþgüöúúxú‘úGüÿQ!JÂÿyR¥ýú_÷$÷¶øÆúµüþŠþ+ÿœüŸð¶Ëþ`ü6ù›ø£ù¨ú·ûIý—þÿ˜ÿ?ÿüýØþçÿc'‡<ÿýîúØùàû"ý‹ý{ý„ýqý¢ýþóýLý[ýŠÿ !|»ÿSýàü^üæû7ü%ýšý&þ‰þnþ»ýËü‘üBý%þÇþ±êäþÿ½ýÖûGüýûý-pþgü‰úú²úýû9ý«þïÿ$ÿ]þòþ@˜S”þtû¦øa÷Ðø3ûAýøþ™ÿ:ÿ'þ`þÜþªþ4ütÀVÿâü9û¶ù¥ú|ûÚûÆüüü%ý¬ýÿüóü¥þ>zµ ;þnû‘úKûû‡ûqû³û8üÉüýýü;ýZÿáÏõ…ªþ<ý%üXúùùú.ûÀüþÆþPÿaÿ{þåý?þ¨þ¼ÿ·úÿ_ÿéý ûÄùuúÚû¢þ½!£ÿÜüZûÓúÀûýHþ²ÿÛÿ÷þþ•üEü&þÇÿìÔq¥óüù&ø`ùˆú0ü~ý/ý+ý(þ‹þ¥þý[(¥+ñüÎù1ø<øÄøÞù|ûªüŸýzþÌý“þ‘%ÈrÑ/ý—ù•ønø ù-úmûbýÄþkÿ@ÿKþ×ý<ÿÅmœ9þ½ú<ù=ø}øºúêüGÿácþ&ýLýàý¢þz=‘ÿ¥þoüÉùÀù¨ú¶ü†…2Dþ…ûúïùû ýÿÊøÿEþÓü’ûäüÿžGÐËý'ú\÷>÷ù‰ûNýZþ‘þþ_þíþ_ÿ´¨„öEþú²÷÷Ì÷úÝûMýiþ#þ‰ýý¤þÁW©IÙCÿ‚ûŠùxùïùßú}ûÑüïý þ þ‚ý¸ûÏü¢|r„ÂRýóû1úùêùUû€üÁþŠÿ ÿ†þ—ý€ýðýþU!‰ÿiÿý§û`ûŒúû`þùøýxûˆú„ú€û ýÿrùÿþiýüýöÿ e[ûüSùöŒöªø•û#þwbÿòý•ýþ‘ÿ:Œòc½ÿŸû÷÷Œ÷…ø§ù­û«ýÿsÿôþÉý/ý1ÿ#×-‡»‰ýúý÷¢øùWúÐüšþÿûþ\þaýý ÿ,šÿ0üúº÷Ü÷WúNüŒþ¡Z]ÿ9þÈüðûùü`ÿ¡íªºÿ üaúTøÂù»ý^ÁÈKýƒú„ù)úuûZþ½ÌÆþåû5ú@úý³Ãéu‡ü ù¢öÝ÷VûnýÿÇÿãýü|ûiüæý­IÆÿãÁþ¹ùÈö#ö÷Õùü‡ýÊþÿÒþký±ý9<>èYÔðû\÷‹õö/ø‡úýÿÝÿ2ÿúýÊý/Ŭú‹ý¢ú¦ø÷Ä÷Ñú#ýâþ(ùÿðÿæþyý6ýÜþ±‚é—ýèúWøÖ÷Bú`ý@û¢k‹þýôûû©ü>þ’ÿ*xÿSýû[úûú§ýâÎ+_Ãý#úi÷÷Ãù üŸýUþXþŸýµý5þ/ÿ@ýt‚9ÿýäøVõfô¿ö‹ú{ýŠÿãÿñþïýüüüýÞÿüåQ?=îú×ö·ö&÷Ìø-üžþ`ÿ]ÿþÚüùû˜ý@os÷ýëù£ööž÷¸úÃý“ÿ"²ÿâþþÿý1þ2Mm1ÿŠûùD÷ø·úýÀÅÏßÿþ ý¦üÂü²ýÿfÿ¤ý€û%ú‹ú·ü®ÿYúÁØý´úù‰øÐùü¤ýÛþµþ&þ>ý=ý£þdÿH¯·ÿ|üù4÷8÷cùŸû›ýåþ«þþ8ýˆümþîÿL–Ë’+iûÖ÷e÷â÷ÈøûAýaþ.þŒý¦üUü¶ÿQœmöý´øƒöãöBøCúýìþ€ÿŠÿ¥þþõýJÿ (þOú…ø¾ö0ø©ûãýÝÿï)ÿ¦ýôüý_þbr•ìÉýû…ù™øÝúHþ hŒ ªýü ûûpüÿýwÿøÿ ÿvýŠû ûnüœþëùéwÿ‰ûÛø#÷~øûúüþaþýwü‰üŽý•ÿ— aN¿ýbùèöŸöø»ùü‘ý þûýfý!ý2ÿ”òpdÃÿú|÷e÷£÷.ù;û3ýžþöþzþÛý¡ýHÿÃ¯Ž²€yü0ùE÷›öuøUû?ýÄþÓÿõþLþ8þ¹ÿF¹ÔAðþiûøÆö…÷kúý yáhÿWýýÔý?ÿ2iÿvüÓúNú úµûTÿÑÃÐÏìý&üŒú|ùiú•üUþ"ÿ¶þéýý™üþ9]‰ÿÕûø•öøúüöýdþèýýÎü‡þÞÿõ³uÁ;kýlùÞ÷ü÷/ø¢ù¸ûoý>þVþ×üüóýí†wQŸ”ÿFú2÷|ö¡÷ûùü˜ýÛþÚþUþ·ý²ý]ÿ9áW³Vƒû¾÷ölö¦øäûIþÿ*“ÿ¿þ2þ?þáÿ¶TMîýƒú,ø ÷ã÷øú£ýc‚wÈÿÎþýÃýíý¬þõÿ¦ÿTþ•üPú‚ùzúÕûþ%¨ sòÿWý®ûYúúHûü_ý\ýküæû,ücý-©¤NÆþýûùö2ö÷öøÔûˆýzý•ýýþðÿ‡\_CéÿîùsöØõyödølû’ý³þ ÿsþùüËüœÿø³7 V?û«ö…ôŽõÃøü{þvÿ˜ÿäþþžýäýÀ Š4¬üøõ5ô²öáú2þ’°Óÿ¾þ\þ|ÿýÁÚ‡þ“ú"÷éõìöVú6þôqÜÀfÿÊýýOý<þ°ÿ-ñþýˆúqù2ú˜ûFþsïOsýücúÓù6û÷ûÒüý5ü‰ûÖû*ý‚ÿ6=Þ®ÿ!ûr÷Óö?ø\ù.ûØü¨üü`üWý–ÿÁÀ:¦D¨ü‹÷òõúõÝö ù×ûaýÖþ¦þúý’ý4ÿÊL\'GýýÖø0õô:öÁùÐüêþëÿ–ÿþþþóýpÿMðñ0NúšõœóçôgødüuÿósÿÿýþÿÿôórýŒøöõ„õ˜÷‹ûÿùzhÿþý|ýþ‹ÿ‚êÿîýVûöø‰øú¤ü¶ÿ—vMÖÿfýÕûjúúûü‚üŠüjüü„üÁý-/Pþnÿóú<÷ ö7÷<ùGû7ýøýqýÿü³ýÿêØ Ë½ýñ÷+õ°ô÷yúÉüBþïþpþÊýæüþýö|t^ #ûóô©ò&õ´ø<üéþAY@ÿ^þÉý¹ýn*tÎû©ýzö~òózöHûÿíTIÿ¿ý‘ý5þn»ïCú˜õˆô)öÅù:þûM ¦þÇýký¸ýùþtטÿ³ýIúKøÁø÷úÈý¡Üô‚Úþ·ü"û1ûnû ü/ýÔüUüÍûTûüþ ÿ¡6î ôûù2÷Ñö ù'ûŸüþ5þýNý‹þQ]<eÞ)ÿaúöcõ÷ù/üXþ+ÿþ«ý¦ý/þÿ2I”ìþ´ùöžõÖ÷ û˜ý+ÿZÿÅþûý^ý±ýšþñ-87æüR÷ˆô„õÙø(üÆþžÿ–ÿÅþ†ýÇý*þ}ÿä·zÿ½ù…öJöEø}ûþ@Vqÿfþ¢ýxý²ýÓþtnUøÿ)ýœúˆù­ù ûîýÊÿ£-_µÿéþàýÔühüÑü ýýüýµü!ü6ü&ýÈýæþ‰¶fŒNlýûiù‡øùáúAü8ý‘ýuývýþŒÿ –Ê%výùY÷Ú÷îøZû-ýöýÿý þšýÑýVþ•ÿ"°{ª9ý‰úXøÌ÷ÑùÃûÉüÔýþŸýýPýDþCÿn­…Ó;çüqù°÷À÷-ùƒûUýýæý þ“ýØý8ÿÂEκL&ÿ{ûÔøŠ÷Iø˜ú\ü]ýöýþÿýeþõþmÿb\’B7þ2ü,úìùãúäûéüWþýþsÿ÷ÿ‘ÿŸþtþþúýþþrþ þý„üü üÔýùþÖ‹%þüûvúŽúÝû‡üúü~ý€ý„ýüýÿr ó~aýùp÷öøŽúvü¤ýâþ‡þþýþŒþ …ZeÉümùf÷(÷ù"û ý|þ}þöýýýýý¢þ»ñ/þXú=ø ÷KøGûý°ýdþ þùý þ”þ®ÿ)ÉZ{ýwùëö%÷ÅøÍúÅüþ™þÿýþÿ”ÿ ®˜'ªÿ”üúwøBù§úØûâýÿ±ÿíÿuÿÅþôýþ¤þýþ#ÿÿ°þHýDüKûû\ü¹ýÝþOËÆÿ¬þýÑûŠûPüÿü.ýgýôü ýêüBý:þqÿÀø-¢ ]ÿ‘üñùÆø…ø‡ù²ûXýeþúþ)þ^ýèývÿûm ÕÕþ»ûþøfø¿øúƒü%þ"þ¥þþný¡ýOþ~ÿ""És+¦ýíûZúHù9ú ü¨ümý!þ“ýý÷ý§þÿ"YRèÎ~þäû·ùÝøSùÑúËü¿ýLþMþøýêýþ@P…–÷CÿíýÐûÔùŸùjú­û@ý‘þÿÅþEþ°ý›ý¿þàÿôÿE^‚ÿ‘þýWûåúfûÎü þ–þxþ’þ@þÁýýwý]þƒþþ€þ…þUþ2ýüBü«üþrÿ¯ÿ­Ùõÿúþcý¾û†û(û:û ü0ýŠý‰ý)ý5ý þiÿ¡£Z¢²Úÿ+ý¡ú=ù:ù¿ù2ûÈüSýÞýþMýwý¸þ“ÿ9˜BÐ^þûù{ùúëûëü]ýŒý5ý’ü$ýãýþ°¯ 'ÿ üúœøùîúQü2ýùý¤ýýtý0þ5ÿöWì¼xÑþüùøù û°ü1þþþüýšýÊý)ÿRLõ²`qþü4úù—úÛû,ýgþ‰þ þøý ýlýNþXÿøÿ  ÿ®þþ/ý%üûáûÖüÛýÞþwÿ…ÿƒÿÿ(þŠýý‚ý„ýý&ücüñüžüSý÷ýnþÈÿ}`ù/ˆÁþDüûú‚ùeúÜû…üiýûýý„ýÑþúÿat‡£ ÿ¡ü*ú}ùvùúÔû‡üùü{ý‚ý‚ýýýøþ~äñ |ÿ‹ýÿûqúùÿù|ûüüdýý ýýýÿ‰hXþðûïùùùû”üzý„ý~ý‡ýþÿ¨ìƒùoqÿiþ½ü]ú–ù•ú•û¦ü|ýšýþøýþÿ„uòÿpÿûþVþÊülûû¬ûŠü.ýþœþÿþ ÿêþþ~þ„þpþåý}ý„ýrýçüyü‹ü&ý5þÿ«ÿÄxÛÇÿþ@üeûÚúˆúIûÉü{ý¨ýâýýWþÄÿ›2:MTçýŒûWú×ù~ùyú\üýÜýhþøýþÉþ¦ÿ7^êh²Ñþ[ü©úÊù«ùöúRü9ý€ýŠýqý ý<þcÿ㈗?$(þ÷ûjú\ù¾ù û1üÛü—ýuýý|þòÿ©9‚†d”£þüÏùÒøƒùðúÜûñü¶ý>þƒþ¢þaÿmE‹b˜³ÿ þûñù–ùaúžûý¾ý7þÈþ×þvþ}þÝþæÿÇÿYÿ{þôýáýÚü–ûºû"ü.ý…þHÿ¶ÿ4Hÿyþþ)ýüüýÁürü€ü±üRý~ý¬ý€þGÿûÿÜü‡Šÿþü1û¹úgúÿúüýÞýþüý3þÿ ÛÕïjþü_û¨úqú¾úû£ü]ýývýÅý‹þ«ÿD,EõÍ£ÿþîü>ûOúÖúKûÌûŸüýêüœý§þ§ÿªe6²ëÿŽþ´üîúÂù°ù¯ú§ûºü`ý‡ýÃýµþ§ÿ¥*¬ÐÿqÿMÿIýWûCúùúûfü4ýìýYþÞþ¼ÿnä¾¾ÿÀþlþœþqý:ü8ûæú³ûÐüý¸ýqþàþiÿ‰ÿÿöþ©þ·ýýýüýýŸüÛü ýºýÙþkÿÿFŸ¦ÿNþ¾üŸû{ûûÆû|üçürýçýkþMÿôÿj‡‚ë9Œÿ²þÉü*ûú¤ùÜùPûeüaýhþ^ÿÿaÿˆÿ|ÿóÿköÿ˜ÿ$þ=üû´ùRúâû}üóü}ýiþÿvÿ‰ÿ}ÿ‡ÿóÿÿÿŽÿ~ÿÿ–ýüûúyúæûƒüýöýwþþwÿvƒ‡ÿzÿˆÿtÿ‹þ÷üûú~ú}û“üüýxþ’þtÿ‡ùtŠÿ~ÿzÿÿ|þcýwû‰úÿúˆûœüúýŽþúþÿüþ ÿ€ÿgÿxþþÿýþüýlýoü üŠü ýýþ¤þ‰ÿeÿpþþòýmýýìüpü¤ü~ýýŠý)þÿöþ!ÿ_ÿÿ†ÿjÿÿåþÅýRülûÜú›úÄû3ýþ•þ$ÿ‚ÿƒÿÿlÿåþ=ÿìÿcÿÿêþ‹ýØûhûÍúÂúIü ýçý&ÿ™ÿUÿ0ÿOÿTþþ¨þõþ#ÿpÿÌþÀýÊüŸû6û ü üÊü ý.þ{þ¢þÿÞþ{þ‚þvþ›þ3ÿqÿ½þ¼ý²üÌûxû”ûRü,ý©ý*þ¨þ.ÿÿ[ÿÞþFþþÒþÃÿâÿDÿÎýüBûûÔûÝü¹ý#þ¹þÿÿúþÿ™þþºþ#ÿÐÿ¹ÿ~þáü”ûÍú’û·ühýþûý þòý2þŒþrþ¼þÿ,ÿÅÿðÿãþŽý†üãû3ü¸ü5ýÃýúýBþWþïý þïý<þ‹þrþÆþÒþxþXþ´ýuý³ýþôýþçý‚þÿÅþJþýîü×üPüýwýþŠþÆþÎþkþþ9þæý~þ[ÿ{ÿÆÿìÿqþÛüþûØúÝúnüý·ý?ÿMÿ±þ}þHþžý³ýŠþžÿV¡»ÿþžüNûåú†û©üGý!þ•þzþ…þƒþ6þèýIþËþ[ÿ‰ÿ†ÿCÿnþýÂûqûsû ü<ý’ývýþ:ÿ’ÿ9ÿNþåýKþ%ÿìÿÉÿ5þiüEû—ú°úYüyýËýaþÔþdÿŒÿ3ÿœþqþ"ÿG‘5þþýû£ùúšûýUþ‡þÚþ ÿþþ¦þrþ~þÐþÆÿm“uÿ×ý_üÆúÀú%üôü]ýNþþ€þþöýÿýXþíþbÿ„ÿâÿ²ÿOþ+ý-üðûcüçüiýKþöþÿœþþ•ýý_ý‡ýåýrþ…þƒþ|þ®ý×ýþõýþgþñþÿkÿ´þ—ý ü ü÷ûüØüwýôýåþÿ‘þéþÿ‡þ€þ`ÿýÿ•ÿ“þ³üûqûûçû_ýÿý{þøþŠþ þjþƒþ|þÿêÿûÿÿ}þ«üóû‰û‡ûpüý}ýþ~þþŒþêþ‘þnþ”þnÿ}ÿ ÿêþþýòü üüyü‰üýpý–ýuþÿnÿÿrþþþ—þyÿÿòþôýíüùûyû”û™üyý‘ýþ”þÿ÷þtþÿýþ›þÿþÿeÿÇýÜûúúû¬û*ýúý"þnþþþüýþþªþÿ‰p5ÿKýÅû û¥ûžüøüýý‡ýwý›ýóý&þ9ÿ³Ä<ÿ´ý>üjû·ûŠü‰üEýøý,þeþþúý!þ€þšþ ÿïþ3ÿMÿIþ6ýqü˜üýžý"þšþ0ÿjÿÜþjþ¸ýôüýóü'ýý}ý¡ýþíý;þSþ)þwþÅþµÿÜÿrÿmþ•üÞûMûûøû8ý¿ýÿþ3ÿmþþMþþ­þ&ÿ´ÿ áÿ@ÿÏý üGû ûëû§ügý3þ¼þÿ ÿÌþsþ†þwþ±þÿùþÿ¦þ‘ý¸ü‡üKüüöüˆý¨ýCþ‡þþ°þ$ÿ‰þìýûý,þ¿þÿÏþPþ‘ý¼üFüßûküOýý³ýAþÂþÿÊþGþµýŸý…þÿñþNÿ0ÿ°ý¾üøû”û…üMý‡ý±ý[þEþþÅýjý¸ý€þbÿoÿ iAÿ©ýjü˜ûùû×üGý‘ýwý†ýƒý;ýý#þÀþ¡ÿ D™¨þýÈû­û˜üaý‚ý‰ý2ýúüúüIýÉý™þ`ÿ‡ÿvÿÖÿÏÿäþãýÛüüŒüjý‚ýzýËýþªý}ýýýÉýhþ)þ=þëþµþ|þ;þŸýsýÐý þóýVþÜþÿ«þ.þQý›ü{üüÑüfýxý*þðþ¯þuþ„þvþçþ«þÄþÄÿÀÿÀþ,þü|ûßûüKüšýpþÞþ ÿþþ©þvþ)þòýþWþðþÿ ÿBþ4ýü{üüáüfýåýgþˆþ}þ…þþ!þ“ýxýzýJþþ|þˆþþ•ý}ýýóühýˆý{ý|ýRþøþŸþyþ°ýýhýôýpþŠþðþÿ*þôýý›üãüsýýký^þþúýþŒý„ý`þŠþþcÿÿÿÿÿÿþý„ü|ü€ü‡ü÷ü|ýýýûü~ýoþüþÿ~ÿrt¨þjý"üðûüü‚üüü ýúüýý…þkÿ“ÿïÿîŒÿøý}ü„ûˆûùû ü‰üüüýwýˆýþýþ‹ÿþÿüÿzêÿƒþbýõûûõû ü“üŒýûýþtþõý‰ýþ~þ€þ‡þÿnÿÿZþ{ýßü—üîü'ýþ—þýþ ÿëþ×ýýüúüùüýýþƒþ…þsþìýzý’ýþîý-þÿ•ÿOÿsþ½ýOü8üïümüËü!þ…þþ‹þkþúý þãýsý¥ýÍþpÿüþÿ­þLý ýÙüüý©ýùý"þ…þ€þˆþqþ¸ýïüýÂý²þÿÿìþ9þoý—ý,ýü6ý\ýýÚýþ‹þgþ×ýXýæüNý/þ¦þ-ÿ˜ÿ=ÿDþ þ¶ý½ü£ü ýëüYýþÐývýˆýVýýáý¬þ=ÿyÿ¸ÿîÿ,ÿþUý üäû7üƒüœünýìý8ý'ý¹ý þþøþ{ÿáÿ›XƒÿÄýÎüühû¯û=ü²üKýPýíü(ýíýÃþ5ÿ»ÿ=Œm&ÿ<ýü)û5ûµû~üýúüýöü1ýïý ÿÃÿ@À¼`ßþVü%ûôú*û@üeýwýÄýþ»ý¬ýOþ¸þKÿ¹ÿT|ŸÑÿ÷ýÍû×ú@ûüýÌýOþþ‚þLþýÁýþ>þËþQÿÿHÿpþoýTü2üÓüJýÈýœþÿýþÂþ(þ¾ýýHýŒýtýÈý[þ”þ0þþý¸ýhýÖýþûýBþ5ÿLÿ›þŠþëýÉüqü‡ügütýwþ{þ×þÿ°þ*þ¤ý!ýêü©ýgþÚþ ÿþþ»þÈý"ýœüÍüfýýÑýeþ„þ…þ,þ¡ýýõüúü£ý+ÿ•ÿ‚ÿ2ÿBþ‹ýØý²ýý[ýˆý|ýâýþýwý‡ý!ýîü½ýÐþnÿŒÿÿ–þþýý¥ý®üpüKýýzýêý þžýzýý{ýJþóþÿdÿŠÿÿÿ-þýýŽüäürýýÿüný³üÙüäýtþ‡þëþsÿ‡ÿíÿ”ÿ þýýŠüüqüñü¡üäüžüçüîýìþyÿ‰ÿíÿ‰ÿ!þý‚üüýûyü÷üýýùüýäý‡þjÿtƒ}€ÿýüû~ûüúü€ý€ý…ýoýýqýþñþ’ÿm‚ˆaÿgýüsû•ûyü ý{ý„ý~ýƒý{ýýþŠþÿŽÿÿÿûÿlÿsþaý‚üuüŠü ýý|ý’ýþòý|ý—ýúýþ{þ•þÿóþuþëý„ý}ýý€ýyý‹ýþƒþþ‡þuþéýý~ý€ý{ýŽý$þbþþˆþqþêý{ý|ýŒý#þvþ£þþþÿÓþÒýÖüŽüýý”ý#þ„þƒþ‰þSþKý/ý`ýýµý°þöþ4ÿHÿWþùýþÝýqý¡ý þôý1þgþçýMý,ýcýý®ýþÞþfÿ÷þ ÿ×þxþþCþ@ý%ýý†ý{ý’ýPý&ýŽýyýžý6þ{þ±þÿþ+ÿ‰ÿŒÿ6ÿ@þìýý üýÈüšü:ýý¡ýFþ]þîý'þ·þÿ"ÿÆÿëÿÿtþFþÊüüšüBü#ü¸ü0ý·ý9þþsþµþ ÿ÷þ4ÿŠÿ}ÿcÿþÍýý7üùûüøû(üòüÒýñýfþTÿ„ÿ„ÿÿƒÿ†ÿVÿ¹þ]þ;ýeüPüâûLüü~ü®üVýaý4þXÿÂÿùÿÆÿ?ÿÆþ þäüsüFüÜû‹üýúüýùü?ýÌý<þ ÿÒÿH—;Âÿ÷þ÷ý£üŽûÁûGüÔüýýõüJýŒýyý¹ý’þžÿg=ûÿÊÿòþýNü¨û]û^üzý#ý“ýþòýþ§ýÂýXþÐþ]ÿŠÿ„ÿ?ÿaþRý¤ü%ü;ü.ýâýþIþíþ¸þ)þ£ý{ý€ýÐýbþ†þþ…þ2þý€ý'ýLý”ýjý2þåþhÿ3ÿÿ]þ1ýõü ý ü#ýYþ)þQþ’þ$þžýyý…ýsý8þòþÿ`ÿ•ÿÅþ³ýýùüý[ýëýþaþŒþþùýýtý„ýzýHþõþiÿŠÿÿ™þ°ýsý…ýý`ýòý ýzýWþÃýjýîý™ýwýéýqþíþ ÿýþ˜þyþ…þþýýiýˆýýgýŒý}ý„ýý„ýóýrþ†þîþÿÿmÿÿþ{þ¢ýýýüüü€üôüýxýhþ†þ„þôþÿÿxÿ}ÿ ÿôþ‡þþ{ý˜üvüüˆûüíü‡ýtþÿþÿÿþÿÿÿþþþÿ÷þ‚þþxýü üìû–û÷û“ü|ý þ€þ ÿzÿŠÿiÿÿfÿÿÿïþúý‹ýaý{üüûüöûüý’ýþªþkÿÿ–ÿíÿÿqÿöþyþ’þ[þ˜ý\ýxüûû üØû´û ýŒý)þÿ‹ÿtÿ¡ÿíÿpÿúþÿêþsþçý{ýÉüü÷û üéûTüˆýŽý.þ ÿ…ÿÿÿ…ÿ|ÿˆÿgÿóþ=þ‚ýMýWüüüûü üÂü~ýý;þ*ÿ„ÿ{ÿœÿÜÿ†ÿmÿÍþ³ýýÐü¾ûÎûlüëû;ü0ýyý¿ý·þûþÿªÿúÿÛÿsÿ’þIýéü+üiû§ûüüÜü–ýlýÇýºþþþ%ÿµÿýÿãÿ2ÿ!þMýàü#üdû¶ûÿû(üµüýýþÿ!ÿÁÿýÿ.•MàÿóþŠýÄü\ü†ûLû,ü©ûÙûÅüþüJý†þþþ2ÿ®ÿI~šQÿhþýüBüËû/ûcû üâûüý!ýùýÁþ=ÿ¸ÿF„ˆIÔÿÖþsý…ü­ûtû¶ûüíûBü»üIý®ý“þÿwÿY†}Žôþþðü/üôûüúûüñûAü»üŒýIþÿŒÿôÿ÷¥Ô†nÿ,þÙü.üöûüüûüöûBüÑüCýþÚþAÿß½øÿHþÀü4üžûÀûbü=üçûXü}üÂü›ý°þYÿÕÿPÞ#!þ¾ü%üïûYü†üˆü#üLü0ü-üˆý½þbÿÒÿZØePWÿQýHüãûfü€üˆüvüçü«üvüxü*ýAþAÿèÿ^å•ÿËý»ü üUüGý2ýéüÈý´ýýýŸüÍüÊýÎþÿZÿüÿGÿÎýýýùüÍýþ]þŠþáþ®þ­ý©üküüÜüÙý þiþ‹þ®ýrýèýþeþ…þ~þSÿøÿŸÿÿ%þ´üÿû‘ûuûðûCýûýþÖþ þuþ‡þuþþÎþzÿ‚ÿöÿ¯þ ýüûûúéûèü~ýkþøþ‘þ|þþþôý þæþ…ÿøÿÿ—ýŒüü‹ûúûòüzý‰ýþývþŒþùþñþ þüý|þÿ~ÿ~ÿ ÿvþŠýüütü üxü ýmý—ýxþÿýþpþ€ý‡ýüý¢þeÿ$ÿtÿ‰ÿØþŒýÝüüüüñüýþ…þtþýýnýýþùþ ÿœÿ‡fsÿPþ÷üuüáû£ûwü‡ü3ýÕýý ýŽýþ}þŸþ­ÿs›ôSºþ~ý½üxû–ûþûÿûü üüüý®ýþkþÔþ¥ü¿=ÿ«ýOü1û ú¦ûúûüžüýý§ýöýþ®þÅÿ˜-k܈ÿŸý3ü\ûêúEû üüµüØü—ü ý¢ý þ¸þÏÿ1hËÿ=þ ýÈûuû ûüòû.ü{ü ü)ý©ý'þ þDÿa ïyþ)ý$ü@ûûÂûÉûÊûœüdüàü¯ý9þ•þ„ÿÇý2tzõþcýü4û0ûŠûzû¤ûFüuüãüµýdþ?ÿ³ÿ(é›]yØþ_ýþû7ûûÈûü÷ûeü$ýÏü°ýÅþ<ÿ©ÿwEœæÿþvü¨û¸ûüû:ü‚ü¶üýûüöücýþBÿÂÿ<Èfmþçü+ü*üØü½ü¨üUýŽý@ýèüAýÁýHþÅþJÿÊÿŒÿ(þý÷ü4ýØýþþóýVþUþcýçü ýæüý^þþxþ˜þäýlýqý þÚþWÿBÿíþÿÿ:þ¹üƒü$üFü†üÄü_ý†ý~ýzý¿ý¤þeÿ‚ÿ€ÿyÿÝÿÂÿ/ÿmþþüÂûwû0û.û’üýDý2þ‘þmþ2ÿšÿ#ÿôþYÿ‹ÿ†ÿ9ÿRþKýJü@ûçúTû.üCýáýbþ€þÕþ ÿûþÿ þÏþqÿ-ÿÿþ±þ¼ýýCü‰ûÖûbüåüý·ýtþ~þÞþjÿ,ÿ.þRþ‹þÚþvÿ'ÿ™þþýµü üùûcüìüfýèýÍþyÿ ÿ+þ‰ýyýIþúþhÿŽÿëÿ¨ÿ;þ!ý$üŒûåûqü‡üÀý‚þ„þþŒý|ýéýsþîþuÿZŽ ³þýü˜û}ûíû üáüåý•ý}ýðýþnþùþyÿøÿ}ù‹ÿŸýýüûoû÷ûü{üöü ýùýéþþ…þwÿxýÿ„ÿþýöûûuûüûûüíüýyý þuþ›þyÿŒñŽéÿþzýüüuüüýûüóûüíüý˜ýzþ‰þÿôÿ~yõÿzÿîþçýûü\ü‚û„ûbûûüýˆý#þôþÿ“ÿùÿ…nîÿÂþ{ý½ümûüúûòú6û¶ürý¨ý•þÿÿŸÿøÿ!|‘Vaÿ;þÖüÉûùúûôú/û3ü"ýý@þ ÿúþÿ›ÿ§î]þÿÿ5ýuü–û†ú/ûVû%ûgü®ýþ¥þÿóþ7ÿ4w®çcÌÿ–þ4ý7üMûþú÷úû¼ûàüzýÀý¹þûþ$ÿ¥ÿ+‰}ˆhŸÿíýæüüûëúûýúûüûBý˜ýgþ ÿûþ ÿµÿ"ÃÑ€@öþšý°üfûZú¹úøúCû©üý”ýsþ ÿóþTÿRpËÌ‘Wþýüüú¡úûäú’ûýxýÞýÐþýþ0ÿ»ÿ6ÀËOmÿ³ýÏüÒûªú|ú‚ú—úîûbý¦ýŠþÿêþtÿKÁ Ö Éþtý[ü’ú,ú”úaú.û§ü<ý þÔþÿ*ÿƒ¿Ã?“ÿäý^ü}ûYú'úßúñúÊû,ýÄýŽþhÿ.ÿzÿgzË·IàþFýüûhú†úyúýú|üUýþÜþUÿ…ÿÄÿVÔ ÃîÿCþ¹üóûjú<ú’údúaûýäýOþ-ÿšÿeÿ/†Ó  gýþnýPüôú úPú†ú»únü{ýÏý¶þnÿ!ÿ¡ÿmØn2ž3”þ1ýñû®úúTú‡úƒû=ý‚ý7þòþÿZÿæÿcë ­_ÿÒýQü/û0úUúŒúÒú/ü]ýŒý@þùþüþbÿLŠÜ™ Ìþ<ý#ü&ûˆúâúûfûÃü|ýìýÙþÿüþÕÿu„í ™ ÿÌýûü(üû”úæúûÙûíüqýüýÛþÿiÿûÿsö ÿ" ÿ¤ýüŒûžúêúÿúûUüÿüzýrþ÷þÿìÿx†ô‡…ÿþýüû‘úÞú”úrûzüýýýÿrÿ–ÿe{ûñþ…ýxüuû‡úúwú¡úüý‹ý‘þtÿÿŠúô€äÿ`þ ýRüþú|ú‚úú&û„üý«ýÿwÿ¨ÿ|Œ ßQÿæýèüÖûûìú{ú•úºûý†ýAþƒÿsÿªÿzŸóqéÿµþzý·übûûëúnú¿ú:üý®ý¢þ÷þ-ÿ${ õMOÿHþUý&üØú{ú}ú†úSû­üýåý ÿÿÉÿ‹{™ËÆÿ¼þÍý‘üWûÖú{úuú¯úÕû•ümý¼þõþAÿ5w Ýl˜ÿ+þ9ý(üVû×úPúúû1üÉüÜý®þ+ÿ§ÿ5¦ØAçþÖýý’ûÍúOúáù{úôûªüTýkþÿÿòÿ‡­ÐS¬ÿkþ ý%üû~úNú ú!ûAüØüûý¹þ=ÿ°ÿFw´ Ùÿ×ý…ü‰ûµúxú~úœúµûÍüdýŽþ ÿ"ÿŠªT\Š…ÿþ‘ý;ü/û¾úxúpú-ûkü™üÏýÇþFÿ²ÿ”ûÐýÿüþñýý›ûæúÏúúsúŸûBüýþ!ÿ„ÿýÿåòLPpoÿhþvýüû³úsúxúüú/üÈü˜ý þ\ÿ»ÿ¦üÃåÿáþÞýäüÔû)û¨úrúÁú§ûXüýþoÿtÿéÿ hNÿXþPýVüJû›ú|úxúû?üÖü­ý¹þcÿÖÿ[Ü ü¸ÉÿÐþeý˜üÌûû¨úúCú˜ûmü/ýKþäþ]ÿ=ð P7ÿ@þ:ý@ü0ûúú¤úkú>ûíû]ü©ýÛþÿ¿ÿvå ü Øÿ¦þ³ý¯ü­ûû—ú ú[ú»ûzüLý^þìþiÿP÷šCÿþ%ý#üŒûûú|úXûõûpüÉýêþsÿñÿsïü—³þŽýšü’û ûüúŽú€úÐû~üýüXþÿyÿkùÿ ÿþ ý üûûˆúúþú÷ûúüþýöþ‚ÿûÿƒø úòÿŒþƒýüüùûûíú„úˆúˆûvüýpþ ÿÿ‡úøykÿôýýgüûïú‚ú€úûüü ý ÿ{ÿžÿ‰óxîÿÔþ|ýèüßû ûîú{ú•ú¢û‰ü ý!þÿÿv’÷^_ÿ\þ]ýWüoûèú{úŠú,ûü¦ü±ý•þÿ“ÿ– évÓÿØþÌýØü¼ûûÝú|ú‚úQû˜ü0ýAþÿ ÿÇÿƒ  çfÖÿœþ_ýÊü¿ûÖú~úiúÓú2ü‰üoý§þ$ÿŸÿ"¨ î:@ÿ4þ@ý+ü]ûÑú|úŒúvû¸üýðýGÿjÿÖÿ¨º¶ÿþJý½ü”ûñú ûËúºúìû£üWý[þ:ÿ£ÿ@yµ ä#2ÿãýËü%ü<ûûúûòúLûsü/ýåý½þ/ÿ¹ÿ.ÁžÐÿôþuýãüÖûäúû³úÎúÿû´ühýyþLÿ}ÿ¯ÿ<¾ËJ¡ÿEþ9ýœüvûºúsúúÐú]üõü°ý×þ9ÿÀÿG†¸¿PPÿ¦ýµü üéúpúŒúbú4û¡ü?ýþÿŽÿµÿV|Àw¾ÿ»þ\ý|ü`û¬útúxúõú)üÁü•ý–þgÿkÿ‰Ã¹8zÿþßüçû×ú_úãú¥úMû»üIýþ.ÿŒÿ¾ÿaÑb©ÿðþyýžüéû¼úÐúºú«úüåüEýþtÿzÿÑÿ]‚Ö¾»ÿwþDýMüJûŽúÖú¦úû¤ühýÙýµþpÿtÿ3‹Ñ¢)Nÿæý³ü#üÛú^úîúúŠûÚü[ýCþKÿŒÿÓÿo}ä ¤»ÿ¸þOýŒüWûú„úyúßú+ü^ý€ý¨þ}ÿ}ÿåÿjê ÿ:‹ÿMþ¸üüÈúnú†úwúSûÈüyýòýJÿ“ÿwÿQŒç” ¶þ•ý ü”ûšúvúîúûÝûéüyýiþdÿ†ÿñÿu‡÷þ%|ÿ+þ ýü ûúìú ûvûxülýþîþ|ÿ„ÿûÿrëþÿÿˆýŒüùûû‰úðúûûîü†ýþóþÿ‰ÿk÷w~ÿyþzýxüpû†úzú€úû{ü ý“ý…þÿˆÿŒûövbÿõýéüìûñú…úvúú’ûŸü„ýþÿyÿ£ÿ‘úuâéÿÍþaýcüWûƒú{úŒúû'üý ý¶þÿ—ÿœóa?ÿÓýØüÎûæúzú‚úúQû”ü2ý5þ)ÿuÿ®ÿ¡þ ÑÓÿ°þAýJüQûûÔú‘ú1ûHüýÁý¥þ!ÿ¢ÿ§ð?Iÿþ±ü×ûcûÔúyú‹úlû´üýÍý¨þ'ÿšÿMô¶¿ÿ‰þ(ýOüàûJûýúëúMû.ü¤üGýmþýþQÿ6± å3ÿþ“ýÚü)ü@ûýúöú*û¥ûaü1ýÜýÁþ ÿáÿÂÖ[xÿ þ*ýÿû‚ûUûÁú‘ú~ûüû\üoýtþ5ÿäÿÎæÝÿ„þ”ýƒüÂûGûÂúdúîúÊû1üïüþ¼þkÿ‡I‹bRÄþkýÈüõûrûRû­ú©ú‹û ü\ü×ýÅþvÿR‰{˜Ñ$ÿñýöüçûeûûïúžú¨ûÂûÝûkýKþÿV±  ÁXÿ×ýòüØûnû‘û5ûóúHû‘ûXû¢ü=þÄþØÿ„ÿÃíšÿþÍü-ü£ûÑûÍûûKûŽûhûfü¸ý þ§ÿòQA®æƒÿøýÃü'ü ûÏûü£ûxûƒûuû!ü9ý,þŠÿQ>£Üoÿëý¹ü üšûØûü¢ûtûƒûwûÖû°üþ<ÿù_Éóÿñý¯ü´ûmûêû üŸûtû…ûvûÞû½ü.þGÿaëG/oÿ¹ýKüƒûûçûüü¤ûtû„ûÜûnü¯ýIÿ&lí§=Rÿ©ý:ü}û€û}ûòûuü!ü‹ûûçûvüÆýZÿÕ\ú™,:ÿý"üûcûˆûóûyüüŠûæûütüÙýoÿS}ø‘$ÿýüûsûõû üwüüüülü’üñýòÿxù… ÿ~ýýûûlûûþûüxüüü|üýþ‡Œìýf{þèüwû ûrûûü„ülüüqüƒüý•þ ™‚ƒÝÐÿóýÇüƒûrû}ûˆûünüüüüý®ý#ÿµŒqBVÿÎýRü~ûrû–ûüûüùûü€üŽü"ý6þÄÿ(&pì¤Ûþ¿ýDüzû}ûzû—û üøûü‘ü$ý‚ýoþ6D ú3Éÿºþ ýÜûvûƒû|û‡ûwûžûü¡üý¬ýþþן¼Úpÿ¿ý¨üüÖû©ûéûyû€û—û-ü™üDý^þ1¶îB…þ(ýJüûûþû üÜûnû­ûÿûüÏüÌýöþ‘Á î yÿùýüóûüüüü×ûiû´û"üáüÉýCÿîñu¤zäþdý+üüêûCüOüøûüüðûXütýRþÓÿŠFsdàÿNþý3üüðûEüOüñûüöû2üºü\ýèþÅ ¢ÐIÿÃýjüïûüüûüûû üðûGütüõüôý„ÿm}N£þyýiü²ûjûËûüüüûû9üÏü6ýEþáÿ#i-«ÿþâü+ü¶ûgûÑûüü÷ûPü„ü¼ü‹ýàþmµËš_ÿþËü.ü©ûrûÑû üýûýûGüÖüJýþuÿ°­%ca ÿzýGüŸûyû…ûû}ûÍû\üÔü[ýÍý©þ²ÿ²ÁÈÉÚÿqþEýFüûûQû‹ûÌûiüüÏü¸ýbþ-ÿD;õ®Í\ÿ<þÙü ü¡ûuû„ûzûÜûdüâüdýáýÃþÌÿÌpëP-Ùþ¦ý»ü¨ûwû€ûûzûâûiüéügýMþVÿWYö¥°Dÿ#þ*ý$ü‹û}ûû€û€ûèûoüòüÙýyþÄÿUü,·þ—ý¤üü“ûyû…û}ûûóûæütýúýSÿskù˜ £ÿ#þý üüŽû{û†ûyûûbü ýèý„þzÿìƒ ’ÿ|þý{üü€ûû ûpûšûmüýøýÿõÿŠ÷û}~ÿ~þsýŒüèûûöúûuû—ûŒü‚ýþÿüûovÿqþsýgü}ûæú“úïúûü ýŠýþÿ •üõldÿlþOýáûèú‚úzúúû)ü ý®ý‹þ&ÿ'ˆqé³ÿ¾ýRüeûñúSú'úûû2üý–ý$þOÿœ à·Cÿ’ýÅûÛú|úzúŽú;û üŸüý™ý/þUÿΟЭ ÿ«ýüöúáúeúÂú£û!ü£ü#ýý?þGÿJ-¡»Èoÿƒý'üUûÑúuú’ú]ûüFü:ý ý/þ·þ-ÁÙ‡MÕÿôý}üûxúwú§ú/û³û%üØü¼ý"þÛþÜÿåÀÞ1óÿvþ¸üõúyúxú¯ú3û¶û/ü¹ü)ýéý°þƒÿ4IY¦j³þ“üòúmúˆúiúíúÂûBüyüæüÊýRþ»ÿã[]þ)üû"ú/úÀú?ûÉûü1ü¿üný‹þnÿÉæ”‡çý.üßúlú¹úPûûÃûü÷û-üBý“þ¼ÿnY–BêÿÜý ü)û¦ú·úUû‹ûtûÏûü8ü ý^þäÿshŒC|Óÿþ”üHûìúMûŽû|û„ûwûÉûKüýyþªÿñA=b~þýÀûrûû€û€ûûyûÌûRüýŠþ´ÿõ·…êþsý5ü§ûûUû‰û~û}û}ûÆûý=þ”ÿÅ¿ý²ÎÿNý;üŽû}û ûñú`û†ûØûüªü2þIÿ°uä£ÂVÿhýü˜ûûúúþú`ûíûüøûÁüÐý4ÿ[Qö °DÿOýüûû÷úhû‡ûäûüûûfüWý2ÿÕâzƒ®œÅþ³ü’ûûþúqû‡û„ûìûœûâû|üÐýfÿÜúèž•"$þ$ü ûùúûwûöûüüüýûyüíýáÿzäŒ}"ÿýûøúûnûûïû üíû“ûêû˜üpþ‘nös‚þüüøû“û÷ûüüüÿûüöûü ýœþ•Šrnæÿuþlýwüüÿû üñû‰û{û”ûüœü‰ý»þ– æêäÿéþßýöüjüüôûiûûû‹û&üý ý­þFƒ‡vÒñÿZÿ]þTýgüîûbûÿúôúû‹û0üý§ý±þ©ÿ¾‡eêT8ÿ²ý?üdûÝúwú•úû’û;üýšý+þcÿ¥"‡ƒqűÿüýüÉúúuú¤úûÌû¨ü&ý˜ýCþAÿP'¬ í uÿZý¢ûÊú}úxú¥úûÜû”ü‘üZýþêþнéZÿCýûÌúnú±úûûëûü›üXý[þVÿËìhQÿZýüAûïú;û]ûáúfûCü§ühý2þÿÃ’ˆOÐÿßý}üÁûrûûGûòú/ûÂû-üîüêý,ÿ†J‹Xˆ’ÿIþøüü*ûûòúBû€û·û9üóüþÿþÕ ÒÁþ/ýçû5û­ú°úKûÊû ü*ü ýþÿÀÿW‘B†"ÿôý¢ü¡û7ûîúEûÔûü@üÇü‘ýSþÿ+Î_HnYÿ¶þ£ýFü«ûbû$ü’ü}ürüýéýþýAþ$ÿÞÿU™çÿÏþ.þ]ý˜ü|ü€ü|üÜü½ühüÖüMý0þâþLÿ3š(µÿþ=ý¦üüNüßügý:ýòüýœüÏü]ý×ý±þÅÿi“ÏÿÿPþ1ýôüýûü[ý’ý"ýÿü£ütü|ü5ýòý]þîþÿÿÿÿžþxþþ€þƒþ†þÀý¬üüùûü`üîügýðýþþýýdþíþÿbÿW3ÿ*þÂüü™ûsûîûÖüzýƒýý€ýìýqþðþqÿ_÷™ÿ«ýÿü#ü…û}ûòûçüyý„ý|ýƒýðýzþóþÿg‰‰ÿ•þŽý‘üüüêü}ý„ý{ýˆýùýþƒý‡ýuþÿùÿÿÿƒþ þwýœüðüýxþtþ’ývýƒý€ýý‚ýþúþÿþýý…ý†ýiýýõý‹þÿíþþþóýŽýký ý’ý~þyþ þÿýþúýsýýý’þðþˆþ}þ‚þrþþ þæýžýòýyýûüýƒýyý–ýõýþþþƒþxþ’þþþÿÿõþeþYýrüäû‘ûüü3ýþœþ ÿíþvþ”þÿÿ^ÿ!ÿrÿÞþÈý4ü÷ú@û,üü’ü`ý©þÿàþœþÿ©ÿòÿ`ÿÿÿûþWþVýjüüüü/ü°üGý>þ|þ®þûþ.ÿ„ÿŽÿuÿ½ÿÏÿàþxþÆýñü{üûûûÇû?üâüËýþUþ;ÿŒÿ„ÿ†ÿ†ÿ‡ÿˆÿsÿ»þðýMýpü#ü+ü"üFüøüÙýþ=þºþAÿÿŠÿ„ÿ‘ÿ`ÿìþ;þnýüü€üøûÛûcüâü.ýAýþæþ&[kÿ”ÿaÿ¸þ½ý¼üEü.ý”ý´üüƒý“ýóýðýÊý‰þ;ÿ¤þþþlþ:þŒýÙý„þ‰ÿVóÿzþ&þñývýþüƒübüJýýýü®ü&ý(þ ÿ~¡þ¤üTüáûJûªûüÜüVý6ýeý‡þéÑÀ«½3mÿQýõûêûìûçûÞûNü«ý:þhþ£þ ÿ+Huÿÿ1ÿ þªýöüØü–ü]ünüQüýÜþƒƒNÿaÿXÿÚþþ%ýýöýþzýëüžý£þ¥þ²þ•þ8ÿõÿ‡ÿ+þmýýVüûüýùýTþåýþÒþ½ÿDÅÄÿ´þýÁûûŽû-ü&ý³ýþàþÿàÿ¥ÿ×ÿ¹ÿ¥þ“ýsüRû€û¬ûôûÈü ýæü–ýyþ§ÿSÝ'TµgÿvþòütûûjüJü½ûûûýJþêþàÿ©ÿÝÄ×ÿßþ]ý9üÏû¯ûÃûiüVüÂûkü£ýóþ?žq Š&UþýûûXûü9üÒû"ü¨ýøý;þmÿTÐ’Z+Cÿ«ý”ûùú§û€ûÃû2üòûãü‘ý‰þ¢ÿ0ÓúýÞþ-ý‚ûäù$ú¼û§üºüý‚ý[þîÿÃàûmO›ÿ+ý»úßù*úLúuû¬üÉüý‘ý^þœÿ54ò­\ðÿ ýšú³ø¸ø^úÜûùûÜüXþÝþªÿÌ:0XV2þnûù(ù•ù€úü½ümüØü#þ¨ÿ˜M.Ì;¯ýûñø¾÷ ùëú©û"üyýØþdÿ I—$¨ÿ¾üÁùyøù»ùçúkü!ü‘üsý#ÿˆRÆ%æ ¦ÿü¹ùæ÷9øwúëû‰ü1ý¬þ6ÿ¿vfEñc>þÞúøÇøùŠúüjüKü%ýyþËÿ œ ƒ08&ýyúŒø£÷vùÔû®üýþùþyÿތ۳*ÿ%üÕøø&ù:úÁûýìüýšýÿcZ¨WÖëRÿ‘ûIù‘÷øìú–ü>ý(þÿ*ÿ·ÿ9Ò¡MÙývúø÷,ø[ù¿ú³üSý!ýƒýFþàÿ:ì!”ký,úø2÷Ñøùú‹üZýzþŽÿ®ÿŸøJ޾üçø1÷Ø÷mù û¸üñü×ü`ýŸþzÝ£³%l›.ücùy÷w÷šùiû¨ü«ýÚþRÿ„ÿîil‚%tÿÏûíø¸÷}øú·ûÏüÅüýürýÇþ¿ºtÄ~«ÿÜûUùì÷”ø[ú-ü[ýïý½þìþ{ÿä X>|`nþ$ûÃøXøˆùµú>üAýøü ý˜ýìþ/å°åÖóþ\û&ù\ø.ù:ûÜüÌý&þ ÿ#ÿQÿ˜û.ÈùÄÛýæúÚøLø¥ù7û’üˆýiýqýþ1ÿ^ÎIJIÍ;þêúÕøqøùvûKý9þ“þ2ÿÿgÿ±ËÒa¬—¡ýû<ùÚøúmûÃüœýmýŠý-þ\ÿ„¤§àЭbþ`ûàù\ùæù«û8ý/þgþ™þöþÿþ[ÓÙ‘`þ¼û¦ùÖøäùJûQüEýlý^ýïý7ÿœçÑšg\ÿ üúù8ùÊùWûýýýÏýÂýNþwþ×ÿà¼ÛþMü‰úùÔù'ûêû ý,ýýqý¾þ$àÂçÍÿÿ™ü›ú´ùú@û•üÆýÄýýSþxþlÿ9–¿ÅažÿýÞú+ù€ù¶ú¼ûëüý~ýŠý˜þ¨åÃjva9©ý?û^ú)úØú#ü¥ý þ£ýþ&þ«þyþ:ü#žJþMüúcùžú†û‹üŸýÛýxýÎý£ÿ6ø·ÏVlÿ]üû‚ú±ú°ûTýþSý¿ýþþÔÿ§§Ã¯‰ ÿ.ýû‘ùúAûÜûCýþ·ý¥ýˆÿ±ƒ”|‹³ÕÚýÝûûžúíúOüˆýŒýyýþ5þÿøþò~lFZþü‰úúôú‡ûµüÜýäý¾ý´þüÿê"×ÛtöìÿQýçû@ûû¿ûèü•ýšýý@þªþ¾ÿ5ȧl¤ÿ÷ý*üÑú¿úgûüýëýýýZþ³ÿUK‚v9Pÿaý6ü…û5ûüçü~ýÀýþáþuÿ†_ú-Áß3ÿÏý˜üQû2û´û#üDýöýEþÿve*X1Oÿ¢ýcüˆûeûüáü›ýÊýIþrÿÕÿnÔË„ãeÿþâüYûÝúmûüýãý¬þ¼ÿ#½?¹Î<./¦ÿ£ý?üLû,ûhû‡üžýþµþÊÿûÿr-]G‡ ®ÿ–þ ý0ûžúßúûýVþbÿ"p¸Å3‚¯ÈJ½ÿ¬ý<ü:ûûRû˜üíýŠþhÿ2O¾Äîp ÞÿœþÃüòúúóúÊûoýîþƒ´’Ìú–?ÁÿÞýLüûÚú ûýEþÿØÿAàÿ|{à¥IÕÿ…þ®üÂúúVûDüåýNÿXJqN˜ÂAÝZàÿ×ýCü.û4ûéûFýœþjÿõÿ9Üÿíÿo~²\¾ÿpþœüûÒú³û¹üþžÿ¡C<4TLÕiøÿøýGüsûžû üxýóþµÿÏÿ'ÑÿÁÿ2@x$ñ¥ÿŽþýƒûûüñüDþ¿ÿ«|òÿÿÀÿ¹Êµ_;\þºüüûûLü«ýÿ‰ÿÓÿ)ŽÿVÿºÿÈÿ ºÖÃÿÌþ”ýü¤ûXüAý?þœÿv4ËÿµÿIÿcÿš[„¹þ'ýUüüBüŸýóþ‘ÿÜÿ4¨ÿ+ÿƒÿÿÜÿÕ;#8ÿíýEü½ûKü.ý+þ‰ÿs$Òÿ«ÿÿ3ÿ:uÄ‘Üÿ]ý’ü.ü^ü¥ý ÿŸÿÕÿžÿ'ÿXÿXÿ¸ÿŸ€–ÿ_þÙüüiüýþhÿZFÇÿ·ÿ,ÿÿaò¯ ‘ÿáýÓüqüuüŸýÿþ°ÿÅÿÜÿˆÿáþûþ-ÿŒÿ’QÙôÿºþ8ý7üUüùüÐýÿþÿ$˜ÿhÿ.ÿÿÜÿ-8ýsAþ4ý¼ü´üxýÃþ„ÿ”ÿŸÿaÿÌþåþ9ÿ ÿ¢p5?'ÿÅýŠü_üèü¯ýÈþ²ÿ–ÿdÿ0ÿÿÄÿîîæyb½þˆýýßüNýxþ8ÿmÿhÿCÿºþ¸þÿaÿ_MO•Œÿ^þÿüšüöüˆý{þqÿèÿ€ÿ)ÿ"ÿçþoÿ‚qã‹­(ÿóýIýóüIý!þÿ@ÿ4ÿ@ÿèþþ-ÿvÿ27VÑÃÿ–þYý©üãüEýöý&ÿÖÿ›ÿJÿ ÿÝþ0ÿJbó».ÂÿHþdýïüýÞýÌþ5ÿ?ÿGÿéþ’þÿUÿôÿˆ>Aÿ±ý©üÎü1ýïýîþÉÿõÿŒÿSÿûþ ÿ×ÿòâiJÂþÂý(ýý°ýþ2ÿfÿ]ÿþþ¾þÍþ$ÿ¾ÿ®>:}hÿ%þ3ýýMýñýÙþ¨ÿÀÿ[ÿúþÿþvÿns÷ƒ–Gÿ)þ–ýGý¯ýdþ%ÿvÿXÿÿþÄþ»þÿbÿ'Ô죵ÿ—þÍý_ý–ýüý›þ]ÿÉÿµÿ[ÿ#ÿöþ3ÿì‡yÖÒÿ¿þþÅýÙýYþâþFÿRÿÿ¤þ—þÀþÿ˜ÿg·‹îÿÿWþõýìýþþAÿÉÿ±ÿZÿ%ÿûþÿ›ÿ$Í,æ7?ÿ¨þSþ$þrþÎþ#ÿSÿ+ÿØþ§þ¨þÏþ)ÿÍÿ).þÿ…ÿÿªþXþWþ©þ+ÿ¨ÿÔÿªÿYÿ+ÿ,ÿYÿªÿƒÊTªÿ-ÿÙþ°þ²þÝþÿ6ÿRÿ ÿÖþºþÖþâþ7ÿ²ÿ*÷ÿÿ.ÿÿÚþ¶þêþ`ÿ¸ÿÉÿ[ÿ.ÿÿÿ0ÿqÿ‘ælÅÿZÿ'ÿäþáþçþÿcÿQÿÛþ‘þ™þÃþîþKÿµÿãÿúÿœÿ0ÿ ÿÿÿûþiÿÂÿþÿÊÿÿ^ÿiÿ‰ÿ‹ÿÇÿ4M’ÿÿÄþÄþÍþóþ&ÿiÿ[ÿ7ÿ ÿíþòþ*ÿjÿŸÿÚÿÝÿÌÿvÿ<ÿ?ÿ@ÿ>ÿFÿrÿÿ†ÿ\ÿ6ÿÿ&ÿ=ÿLÿdÿyÿÄÿÚÿäÿéÿ³ÿ­ÿÿkÿ_ÿ;ÿÿÍþØþÅþµþâþùþÿ ÿ&ÿSÿtÿ£ÿ±ÿËÿ_gD§ÿ|ÿ+ÿíþ×þÚþÜþÍþ¯þÂþëþÿÿFÿÌÿEŒÁŸHÑÿxÿ ÿ¾þƒþqþrþsþoþŽþÑþçþ1ÿ‹ÿñÿyÖî½bôÿšÿFÿäþ¥þVþ"þþ.þvþÌþ;ÿ™ÿØÿ(Ce•}Y8úÿsÿ ÿÆþþ‚þþþÃþ#ÿiÿ”ÿæÿîÿèÿ!)ïÿ¢ÿŒÿTÿÿØþËþÌþßþÿ"ÿZÿŽÿ¯ÿÀÿ»ÿÀÿªÿ˜ÿœÿ™ÿ«ÿÕÿÑÿ§ÿÿRÿ3ÿ8ÿJÿoÿÿ£ÿˆÿzÿ~ÿhÿWÿ_ÿGÿ7ÿKÿ†ÿ¢ÿ­ÿØÿßÿåÿ¸ÿ‡ÿhÿ\ÿKÿ'ÿÿ ÿ4ÿSÿbÿ]ÿ`ÿ^ÿ^ÿoÿ«ÿëÿ $õÿÉÿÿAÿAÿ=ÿYÿNÿ@ÿ-ÿÿ%ÿ ÿ8ÿYÿyÿšÿ¤ÿŸÿ¸ÿÄÿÂÿÂÿÃÿ¬ÿ‹ÿkÿdÿfÿfÿOÿBÿ]ÿÿqÿbÿiÿNÿFÿGÿ^ÿ~ÿ´ÿßÿäÿÊÿÂÿÄÿ«ÿ£ÿ¥ÿ½ÿÈÿ•ÿUÿÿ#ÿ0ÿ,ÿ-ÿ,ÿ.ÿ.ÿ.ÿ]ÿÿÙÿþÿ8%Îÿ©ÿÿoÿ;ÿÿÿÿýþõþøþÿ/ÿKÿ„ÿ×ÿ8;:;"Îÿ­ÿÿ@ÿÿþáþÞþàþùþÿ4ÿ:ÿPÿpÿ¥ÿàÿ9RXT;±ÿvÿUÿ"ÿÿçþæþÿÿ!ÿ:ÿWÿsÿÿ®ÿàÿ86çÿ­ÿyÿYÿAÿ@ÿ>ÿ&ÿ$ÿ%ÿ&ÿBÿ[ÿ_ÿyÿÿ˜ÿÉÿèÿÿÿåÿ«ÿ{ÿwÿ^ÿCÿ&ÿÿ(ÿ/ÿEÿGÿDÿKÿ^ÿhÿ™ÿÒÿ461öÿªÿ~ÿyÿbÿBÿÿùþþþÿ3ÿNÿiÿÿ~ÿ‚ÿŸÿÖÿ!.Ùÿ‘ÿ^ÿTÿdÿJÿ-ÿÿ;ÿQÿMÿTÿgÿnÿÿ‰ÿÁÿìÿöÿÃÿ”ÿƒÿ„ÿ‚ÿ^ÿ:ÿ8ÿBÿUÿTÿTÿUÿSÿ[ÿpÿ—ÿÞÿ 5)ëÿ¯ÿ—ÿˆÿ‚ÿiÿJÿ"ÿ0ÿAÿAÿ>ÿIÿ]ÿÿ§ÿÈÿñÿ úÿØÿ¯ÿ›ÿ€ÿtÿmÿSÿCÿFÿDÿOÿ]ÿdÿ~ÿ“ÿ¬ÿÃÿÚÿóÿÿÿùÿßÿÒÿÌÿ±ÿžÿ‚ÿyÿnÿ_ÿcÿYÿGÿVÿbÿjÿ‚ÿ™ÿ¯ÿÈÿÔÿÚÿöÿ÷ÿèÿëÿãÿÀÿœÿ†ÿyÿuÿXÿSÿCÿDÿPÿZÿoÿ‘ÿµÿÊÿÕÿÜÿøÿ÷ÿÞÿÒÿáÿäÿÀÿ’ÿ{ÿÿ}ÿ‚ÿsÿiÿkÿlÿiÿvÿŒÿ¡ÿ·ÿÌÿâÿíÿìÿâÿÈÿ¿ÿÌÿÛÿÉÿÃÿ¶ÿ¬ÿ¡ÿ˜ÿÿwÿmÿqÿbÿcÿ}ÿ’ÿšÿ£ÿ½ÿÃÿÎÿÛÿÉÿÍÿÚÿÖÿØÿÙÿÌÿÁÿÇÿ·ÿ£ÿÿˆÿ|ÿdÿkÿuÿ~ÿ˜ÿœÿ¨ÿ¿ÿÇÿÄÿÆÿÃÿÒÿÚÿÚÿÌÿÄÿÆÿÇÿ¸ÿ²ÿ¦ÿÿ“ÿ‰ÿÿŠÿšÿ¡ÿŸÿ¬ÿµÿ²ÿ´ÿ²ÿ´ÿ±ÿÁÿÇÿÔÿÛÿÚÿÍÿÅÿÉÿ¹ÿ³ÿµÿ§ÿ¡ÿ£ÿ¢ÿ•ÿŽÿžÿ¤ÿ£ÿ¢ÿ±ÿ¸ÿµÿ¶ÿÄÿØÿÜÿÜÿÍÿÇÿÉÿÉÿÉÿÊÿ¼ÿ·ÿªÿ¤ÿ¦ÿ¤ÿ¥ÿ¥ÿ¥ÿ¦ÿ¦ÿ¦ÿ´ÿ¹ÿ¸ÿÇÿÌÿØÿÐÿÉÿËÿ¼ÿ¸ÿ¹ÿ¹ÿ¹ÿ¹ÿ¹ÿºÿºÿºÿ¬ÿ¨ÿ©ÿ¸ÿ¼ÿºÿ»ÿºÿ»ÿ»ÿ»ÿ»ÿ»ÿ»ÿ»ÿ»ÿ¼ÿ»ÿ­ÿªÿºÿ¼ÿ½ÿËÿÍÿ¾ÿ»ÿ­ÿ¬ÿ»ÿ½ÿ½ÿ½ÿ½ÿ½ÿ½ÿ¾ÿ¾ÿ½ÿ®ÿ­ÿ¼ÿÀÿ¾ÿ¯ÿ­ÿ®ÿ¯ÿ½ÿ¿ÿÀÿÎÿÏÿÏÿÏÿÐÿÏÿÏÿÐÿÏÿÀÿ±ÿ®ÿ¡ÿŸÿ ÿ ÿŸÿ¢ÿ¯ÿ²ÿ¯ÿ³ÿ¿ÿÂÿÒÿàÿãÿðÿñÿïÿßÿÒÿÏÿÄÿÀÿ´ÿ°ÿ¤ÿ¢ÿ¤ÿ¤ÿ¤ÿ¤ÿ¤ÿ¥ÿµÿÃÿÂÿÅÿÒÿÑÿÕÿáÿâÿâÿâÿâÿãÿáÿÑÿÅÿÁÿµÿ·ÿ²ÿ¨ÿ¤ÿ—ÿ›ÿ¨ÿ§ÿªÿ¹ÿÅÿÇÿ×ÿãÿâÿãÿâÿãÿâÿäÿàÿÕÿÔÿÖÿÒÿÄÿ´ÿªÿªÿªÿªÿ«ÿªÿ®ÿ¸ÿ½ÿÈÿÆÿËÿÕÿÙÿåÿáÿÖÿÖÿÖÿÖÿÖÿÖÿÖÿØÿÓÿÉÿÆÿ·ÿ®ÿ¬ÿ³ÿ¹ÿ­ÿ­ÿ±ÿ¾ÿºÿÁÿÉÿÎÿ×ÿÜÿæÿäÿæÿâÿ×ÿÙÿÔÿÊÿËÿÊÿÍÿÇÿ½ÿ¾ÿ¾ÿ¾ÿ¾ÿ¾ÿ¿ÿ¿ÿ¿ÿ¾ÿÃÿÍÿËÿÍÿËÿÒÿÚÿÚÿÖÿËÿÎÿËÿÒÿÚÿÚÿÖÿËÿÍÿÌÿÏÿÉÿÀÿÁÿÁÿÁÿÁÿÁÿÂÿÁÿÇÿÏÿÎÿÕÿÜÿÛÿÛÿÛÿÛÿÜÿÖÿÏÿÊÿÂÿÄÿÂÿÄÿÃÿÄÿÃÿÊÿÑÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÑÿÑÿÑÿÑÿÑÿÑÿÑÿÑÿÑÿÑÿÑÿÒÿÒÿÒÿÑÿ×ÿßÿØÿÑÿÒÿÒÿÒÿÒÿÒÿÒÿÓÿÓÿÓÿÓÿÓÿÓÿÓÿÓÿÓÿÓÿÓÿÓÿÓÿÓÿÔÿÔÿÔÿÔÿÔÿÔÿÔÿÔÿÔÿÔÿÔÿÕÿÔÿÕÿÕÿÖÿÏÿÉÿËÿÉÿÑÿÖÿÕÿÕÿÕÿÖÿÖÿÖÿÖÿÖÿÖÿÖÿÖÿÖÿÖÿÖÿÖÿÖÿ×ÿÐÿÊÿÔÿÑÿÊÿÔÿ×ÿ×ÿ×ÿ×ÿ×ÿ×ÿ×ÿ×ÿ×ÿ×ÿØÿØÿØÿØÿØÿØÿØÿØÿØÿØÿÒÿÎÿÏÿÏÿÎÿÖÿÚÿÙÿÙÿØÿßÿäÿâÿäÿÜÿÙÿÚÿÚÿÚÿÚÿÚÿÚÿÔÿÐÿÑÿÑÿÑÿÐÿØÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÛÿÕÿÒÿÒÿÓÿÓÿÚÿÜÿÜÿÜÿÜÿÜÿÜÿÜÿÜÿÜÿÜÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÝÿÞÿÞÿÞÿÞÿÞÿÞÿÞÿÞÿÞÿÞÿÞÿÞÿÞÿÞÿßÿßÿßÿßÿßÿßÿßÿßÿßÿßÿßÿßÿßÿßÿßÿßÿàÿàÿàÿàÿàÿàÿàÿàÿàÿàÿàÿàÿàÿàÿàÿáÿáÿáÿáÿáÿáÿáÿáÿáÿáÿáÿáÿáÿáÿáÿáÿâÿâÿâÿâÿâÿâÿâÿâÿâÿâÿâÿâÿáÿäÿéÿåÿèÿäÿâÿäÿãÿãÿãÿãÿãÿãÿäÿâÿÝÿÜÿãÿãÿãÿãÿäÿäÿäÿäÿäÿäÿäÿäÿäÿäÿäÿäÿäÿäÿäÿåÿåÿåÿåÿåÿåÿåÿåÿåÿåÿåÿåÿåÿåÿåÿåÿæÿæÿæÿæÿæÿæÿæÿæÿæÿæÿæÿæÿæÿæÿæÿæÿæÿçÿçÿçÿçÿçÿçÿåÿàÿâÿçÿçÿçÿçÿçÿçÿçÿçÿçÿçÿçÿèÿèÿèÿèÿèÿèÿèÿèÿèÿèÿèÿèÿéÿæÿäÿéÿèÿèÿèÿéÿéÿéÿéÿéÿéÿéÿéÿéÿéÿéÿéÿéÿéÿéÿéÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿêÿëÿëÿëÿëÿëÿëÿëÿëÿëÿëÿëÿëÿëÿëÿëÿëÿìÿëÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿìÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿíÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿîÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿïÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿðÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿñÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿòÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿóÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿôÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿõÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿöÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿ÷ÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿøÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿùÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿúÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿûÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿüÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿdopewars-1.5.12/sounds/19.5degs/losebitch.wav0000644001565000007070000003411407541421127015625 00000000000000RIFFD8WAVEfmt ø*ø*data 8€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€|€~~€€€€€€€€€€€€€€€€€€€|€€ƒ€{€~~€~€€~€€€€€€~€„}yƒ…~|~ƒ{ƒ€}~€~|ƒ{|‚„ƒyy……{|ƒ„~zƒ}}€ƒ{€†€w€ˆ€x|…†}w~‡„{{€ƒ‚}z‚†€x{…ˆv|‡†|w‡‚{z‚…€|}‚€~~€‚€~}‚ƒ~y‡„xu‡‹€t{ˆ†u}Š…|rƒŒ‚wu…Š€yx††yyˆ…~z{‡‚|}€ƒ€|€‚~€‚yƒ†€{yƒ†‚{v††„vx‹‰~p…vt‰‹{yx†ˆ|y~ƒ~}€ƒ~|‚‚~~€€‚{…€w€ˆƒty‰‡vvˆ‹„us„Œ‚|x€ƒ~~ƒ‚€y}ƒƒ€|€€€~€~€€€€€€{z††~w|†„€xˆ†ww……~‚}tˆˆƒztx……{uz‚†„€~|}„ƒ~{}‚~€€€~€‚‚y}‡…{w…€€~}}€…ƒ|w†ƒ„zwˆ‡€yu{‡Œ„zuy„‡†€zz}€ƒ„‚}|}~‚†~}|}‚†‚zt‚‹‡…wq|‹ˆyrv‹‹Œ}rrŒŒ„tqx‹Œ‰wqw‰Š‡~st€†‡„yuz‚ˆ‡uu€‡†yv{†‹ƒzrxˆŒ‚wv|…†~€}}~ƒƒ}z€…‚xxƒˆ‹€qv‡Ž†ur}‡‡tr‰}su‚‰‹€qw†Š„zu†…~x~…ƒz}ƒƒ}y}†…z~€}‚‚‚~|€y€…‚€}~y|„†„€}zy|ŠŠ|uwƒ‡‰‚{wz~†„~ƒ|€}}‚~…‚€|x{€ˆŠ†zruІzur|…‹Œˆ~rs}ŒŒzrrŽ‹Œxrr€Ž‹Štrr†Œƒqrx‹Œvqr{‰‰€tux‰ˆƒ~zzz}„‰†~yxvƒŒ‡€zv{}†‹}{x|€ƒŒ„xxx~…„Šzwz~ˆ…ƒ‚yy~€ƒ‚€‚€{{~‰ˆƒxsw€Š†zrt}‹Šssu‰ƒqtu‹zrqƒ…rryŒŠtqxŒŒ‰uqzŠ€yxy„ƒ„|v}ƒ„€|{y€ŠŠ€xtv‚‹„urv‚ŒŠƒyu|€ƒ„€ƒ€~|y{‰Œwsw„ŠŒ„xsv‡‹‹|tv{„…†‡ysw€Š‰}rsw‹Œ€qsvŒŒ|qsy‹usq…‚qrzŽŒŠsru‹ŒŒwqw‹‹wpzŒŒŠvp{‹…xrw‚€…†€vs}‚‹‰‚xqv†ŒŒ†sqwŒ‹Œ|qq}ŽŠŠurr…‹†rrr‡ŒŒƒqstŠŒŒ}qry‹Œyrq{Ž‹‹urq€ŽŒˆrsrˆŒqrxŽ‹xrqƒŽŒ…psxŠtsrŠ‹Žyrq‡Œ|qq†Œ~qrƒpr‚Œ‚ps…‹€ot†Špsމ‡srsŠ‹ŒrpЉtpv‹ŠŒypsˆ‹‹|otˆŒŠ{nw‰Œ‰ymzŠŒˆvm|‹Œ‡sn}Œ‹‡so|Œ‹…qqt‰‹‰„upu‡Œ‰{rqy‹‹‡}vpuˆˆƒsq~‰vqtŒŠŽzqp‚ŒƒqqzŒŒˆsqy‹Œ‰tp|ŒŒˆsqƒ‹oyˆ‰yvƒ†{|{€€}…†xyv{ŒŒ‰vqyŽŠŽ|qs‰Œ€qq‚Œ„pr{Ž‹‰qrvŠŒtrs‹‹xqs‰Œ{ps‰ŒŒou‡‰ypu„ˆ|ƒ‡{qy‚Œˆ|wtyˆ‡†ƒ}ssƒŠŠvqyމxrrˆ‹}qqŒ…rqzŒ‰tqxŒŒŠupy‹Œ‰tpŒ…pu‡‰yoyŠ‹{q|ƒ‚€|zˆ~x|€…†‚vr~ŽŠŒyqu‹‹€qq€Ž‹ˆqrsŠ‹|qq}Ž‹‰srvŒ‹ŒwptŠŒŒypu‰‹yow‰‰wn{ŒˆuoŒŒ†sp‰€sqzŒŠxvq~‰‚yvrzŒŒ‡|tq€ŽŒ‰uqw‹zqs‡Œƒpr|‰ŒssrŠŠŽ{rpƒŒrp€ƒqqŒ‚prƒŽ‹€nu†Ž‰|mz‰€tsvƒŒ‚~{{t{‹‹}yxs~މ†}sr†ŽŒ…uq|Ž‹Šyrs„Ž‹‡sst‹‹{rqŒƒqry‹ŠsruŒŒŒvqtŠŒŒxpv‰Œ‹yow‰‰wn|‹†soŒps†‹|nwŠŒŠxm{‹Œ‰un}ŒŠ‰tpz‹ŠŠtpu‰ŠŒxpq…‹Œ~pq‹…pqzމ‰rqv‰ŒtquŒ‰Œwqt‹Šxqr‰Šyqp…‹~qp€ŒŒ‚qp~ŒƒqqŽŒƒosƒŽ‹€nv†Ž‰{my‰Ž‡vm}‹„rpƒŒŒnvˆ‰xm~ŒŒ…qr†Œ‹mzŠ‹‰wm‹‹„or†‹Š}lz‰‹‡um€‹‹ƒpp„‹Šmt‡‹Šzly‰‹‡um€‹‹„pq…‹Šmv‰‹‰zlzŠ‹ˆvl~Š‹†rn‚‹‹ƒpq„‹Š€mt‡‹Š{ly‰‹ˆum‹‹ƒosˆ‹Šzl}‹‹†qp…‹Šmvˆ‹‰yl|Š‹†sn‹‹‚oq…‹‹mt‡Œ‰{mx‰Œ‡vm‹Œ„qq…Œ‹mw‰Œ‰ym}‹‹†rp„Œ‹€mv‰Œ‰yl}‹‹†sn‚‹‹‚or†‹Š~mx‰‹‰xm‹‹…pq†‹Š}lyŠ‹ˆvm€‹‹ƒpq…ŒŠ}mv‰Œ‰yl|ŠŒ‡tn€Œ‹„pq„Œ‹€mv‰Œ‰ym~‹Œ…qq…Œ‹~mx‰Œˆvm‹‹ƒor†ŒŠ|my‰Œˆvm€‹Œ„pq…Œ‹~mw‰Œ‰wm~‹Œ…rp„Œ‹€mvˆŒ‰xm}‹Œ…rp„Œ‹mv‰Œ‰xm|‹Œ†so‚ŒŒos†ŒŠ{my‰Œˆun€ŒŒ‚ps†ŒŠ|mzŠŒ‡tnŒŒ‚ot‡ŒŠym}‹Œ…qq…Œ‹~mx‰Œˆvm€‹Œƒpr†Œ‹}mx‰Œˆvm‹Œ„pr†ŒŠ{l{ŠŒ†soƒŒ‹mvˆŒ‰wm~‹Œƒpq„Œ‹|mx‰Œ‡un‹Œƒpr…Œ‹|mx‰Œˆvn€‹Œ‚os†ŒŠ{my‰Œ‡un‹Œƒpr„Œ‹|mx‰‡un€ŒŒouˆŒŠym‹Œ„ps†Œ‹|mzŠŒ‡tn‹Œ‚os†ŒŠ{my‰Œ‡tn‹Œnt†ŒŠym|ŠŒ…qp„Œ‹}my‰Œ‡tn‚‹‹€nu‡Œ‰xm|ŠŒ…qpƒŒ‹~mwˆŒˆvm‹Œƒpr†ŒŠ|my‰Œ‡tn€‹Œ‚os†ŒŠzmzŠŒ†rpƒŒ‹~my‰Œˆtoƒ‹‹€mx‰‹‰vn‚‹‹ƒntˆ‹Šyl}Š‹†qp„‹‹mvˆ‹‰wl}Š‹„pp„‹Š~mx‰‹‡um‹‹muˆ‹‰vm‹‹‚ns†Œ‰xm}ŠŒƒpr…ŒŠzm|ŠŒ…qq„Œ‹}myŠŒ‡tn‚‹‹nu‡‹‰ym}Š‹…qq…‹Š|lzŠ‹†rp„‹‹~lzŠ‹‡so„‹‹~lyŠ‹‡so„‹‹lyŠ‹ˆtnƒ‹‹€mw‰‹ˆvm€‹‹‚ns‡‹‰zl|Š‹†qp…‹Š}lzŠ‹‡so„‹‹~lyŠ‹‡so„‹‹ly‰‹‡tnƒ‹‹€mv‰‹ˆvm€‹‹‚nt‡‹‰xl~‹‹„or†ŒŠzl|‹‹…pq†ŒŠ{l|ŠŒ…qp…ŒŠ|lzŠŒ…rp„ŒŠ|mzŠŒ…rpƒŒŠ|my‰Œ…rp‚Œ‹|mx‰…sp‹|nx‰Ž…sp‹|nx‰Ž…sp‚‹|ny‰Ž†sp‚Œ~nx‰Ž‡tpŒŒnw‰Ž‡up‚ŒŒ~nyІsq„‹|m|‹…qr†Šzm}‹Œƒps†‰xn~ŒŒou‡‰vn‹Œ€ou‡‰vnŒŒot‡‰wm~‹Œ‚os†‰xm~‹Œƒos‡Œ‰xmŒŒnuˆŒˆvn€ŒŒ€nvˆŒ‡uoŒ‹~mx‰Œ†spƒŒ‹|my‰Œ„qq„ŒŠym|ŠŒ‚ot†Œ‰vn€‹Œ€nwˆŒˆto‚‹‹my‰Œ‡sp„Œ‹}m{ŠŒ†qr†‹Š{m}Š‹„pr†‹‰ym}Š‹ƒos†‹‰yl~‹‹ƒos‡‹‰ym~‹‹ƒos‡‹‰yl~‹‹ƒos‡‹‰xl‹‹ƒns‡‹‰wm‹‹‚ntˆ‹ˆvm€‹‹€mvˆŒˆun‹‹~mw‰Œ†soƒŒ‹|my‰Œ…qp„ŒŠ{m{ŠŒ…qq„ŒŠ{mzŠŒ…qq„ŒŠ{mzŠŒ…qq…ŒŠzm|‹Œƒps‡Œ‰xmŒŒ‚nuˆŒ‰vnŒŒ€nv‰Œˆvn€ŒŒnuˆŒ‰vn€ŒŒnvˆŒˆunŒ‹mx‰Œ†spƒŒ‹|m{ŠŒ„pr†ŒŠym}‹Œƒos†Œ‰wm~‹Œot‡‰xm}‹Œ‚os†‰xm}‹Œ‚ot†‰wn~ŒŒou‡‰vn€ŒŒ€nvˆˆuoŒŒ~nw‰‡spƒŒ‹|myŠ…rq„Š{m{Š„qr„Šym|‹ƒps†‰xn}‹pt†‰wn~ŒŒ€ou‡ˆvoŒŒ€ovˆˆuo€ŒŒ€ovˆˆvo€ŒŒ€nv‰‡to‚ŒŒ}nyŠ…rq„Šzm|‹ƒps†‰xn~‹Œot‡‰wn~‹Œ‚ot†‰xn}‹Œ‚ot†‰wnŒŒ€nvˆˆuo€ŒŒnw‰‡toŒ‹~mx‰Œ†spƒŒ‹|myŠŒ…rpƒŒŠ{my‰„rpƒŒŠ|my‰…rpƒŒ‹|myŠ…rpƒ‹{mzŠ„qr…Šym|‹Œ‚ps†ˆvnŒŒnvˆ†spŒ‹|nx‰…sp‹|ny‰„rqƒŠyn{‹‚pt†‰vnŒŒ€ov‡‡uo€ŒŒ~nw‰†spƒ‹{n{Šƒps†‰wn€‹Œ€nw‰Œ‡tpƒŒ‹}mzŠŒ…qq…ŒŠ{m|ŠŒ„pr…ŒŠym}‹Œƒos‡Œ‰wm€‹Œ€nw‰Œ‡toƒ‹‹}myŠŒ†qq…ŒŠ{l|‹Œ„pr†Œ‰ym~‹‹‚ntˆŒ‰vm€‹‹€mw‰Œ‡soƒ‹‹|lzŠŒ…pq†Œ‰ym~‹‹‚nt‡Œˆvm€Œ‹mw‰Œ‡so‚Œ‹}mx‰Œ†spƒŒŠ|mzŠŒ„pr†Œ‰xm~‹ŒnuˆŒ‡to‚Œ‹|myŠŒ„qq…Šym}‹Œot‡ˆvnŒŒnvˆ†to‚‹|nyŠ„qq„Šyn|‹pt†ŽˆvoŒŒ}ov‰Ž…sq‚ŽŠyoz‹Ž€pt†‡upŒ{ox‰ƒrrƒŠwp|‹Žpv†‡tq€Œ{py‰ƒqt„‰wp~ŒŽ~px‡†ss‚Œyp|Š‚pu„މvq}‹Ž~pw…†sr€ŒŒ{pyˆƒrsƒŽŠwp|‹Žpv††tr€Œzpz‰‚qt„މvp~Œ}pyˆ…rtƒ‹wpŠoz‡†qu„ŠŒxp€‡oy„ŠŠtr€‡~oz…Œ‡rs‚ŠŒyo}ˆƒow…‹‰up‰Œ}nz‡Œ†qsƒŠ‹yn}‰Œ‚ou†Œˆuo€ŠŒ~nxˆŒ…qrƒŒŠxn}ŠŒ€nx‡Œ†rr„‹Šxn€ŠŒmyˆ‹†qs…ŠŠymˆ‹‚nw†Š‰spƒˆ‹|m|‡Š…ou†‰Švo‡‹€mz†‰‡qsƒ‡‹zn|…‹„ou‚‰Švp~‡ny„Œ‡rs‚‰Œzo}‡Œƒow…ŠŠuq‰Œ}n|†Œ†qu„‰‹xoˆŒn{‡Šˆrs…ˆ‹{n‡Š„ny†‡Šuq„†‹€m|†‰ˆrsƒ‡Œ{n~…‹…pw„‰‹vp‡Œn|†Š‡qt…‰‹yo€ˆŒ‚nz‡Š‰ss…‰Œ{n‰‹„nz‰‰‰tr‡ˆŠ|m‚‰ˆ…nyІ‰vpˆ†ˆl‰…ˆqsˆ„‰|l€†‡†ov†…Šxn‚…‰ƒmy†‡‰tpƒ‡‹~m|†Š†pt„‰Šxn€ˆ‹nx‡‹ˆsr„Š‹zn€‰‹‚mz‰‰ˆrsˆ‰Šyn„‰‰‚m}Šˆ‡ptІ‰ym…ˆˆ‚l}ІˆqsІ‰ym…ˆ‡‚l|І‡qsІˆzm…ˆ†‚l|‹…‡rr‰†ˆ{lƒ‰‡ƒmyІˆspˆˆ‰|lЉƒmxŠˆˆsp‡‰‰|l€Š‰ƒmwЉˆsp‡‰Š{k€Š‰‚mxЉ‡qp‡‰‰ylЉlyЉ‡qq‡‰‰ylЉlxЉ‡rp†ŠŠzk€ŠŠƒmwЉˆso†ŠŠ{l€ŠŠƒmwЉˆrp‡ŠŠylŠŠ‚lyЉ‡qrˆ‰ŠxlƒŠŠ€l{Љ†psˆŠ‰wmƒŠŠ€lzŠŠ†qqˆŠŠyl‚ŠŠlyŠŠ‡rp‡ŠŠzl€‹ŠƒmwŠŠˆso†ŠŠ|l~ŠŠƒnv‰Š‰to…ŠŠ}l~‹Š„nu‰Š‰to…ŠŠ|l‹ŠƒnvŠŠˆsp†ŠŠ{l€‹Š‚mxŠŠˆrq‡ŠŠzl‹ŠmyŠŠ‡qq‡ŠŠyl‚‹Š€lzŠŠ†ps‰Š‰wmƒŠŠl|ŠŠ…nu‰‰‰un…ŠŠ}lŠŠ„nvЉ‰to†‰Š}kЉ„nv‰‰‰un†‰Š}l~Љ„mv‰‰‰to†‰Š|l€ŠŠƒmyЉ‡qqˆ‰Šxmƒ‰Š€l|Љ†ot‰ˆ‰vn…‰‰~kŠˆ…nvŠˆ‰to‡ˆ‰}k€‰ˆ„mxЇˆspˆˆ‰|l‚‰ˆƒmyЇˆrqˆˆ‰{l‚‰‰‚lzЉ‡ps‰ˆ‰xm„‰‰l~Šˆ†nvЇˆvn†ˆˆ~kЇ…nvІ‰vo‡ˆˆ€lŠ…‡puŠ„ˆzm…ˆ‡ƒl{Š…‰sqˆ†‰}l‰‡†nv‰‡‰vn…ˆ‰€l}‰ˆ†ptˆˆ‰xm„‰‰€l|‰ˆ†pt‰ˆ‰wn…ˆ‰€l~‰ˆ†nv‰†‰vn‡‡ˆk€‰‡†nvЇ‰uo‡ˆ‰}l‰ˆ„myЇˆrr‰ˆ‰ym„‰‰€k~Šˆ…nvЇˆto‡‰‰{l‚Šˆ‚lzЇ‡qr‰ˆˆym„‰ˆ€l|‹††psЇˆym…‰†‚l|‹†‡rq‰‡ˆ|lƒ‰‡„my‹†‰upˆ‡‰~kЇ…mwЇ‰uo‡‡‰}k‰‡…mxЇˆspˆ‡‰{l‚‰ˆƒlzІˆrrˆ‡‰ylƒ‰ˆ‚l{Šˆ‡ps‰ˆ‰xm„‰‰€k|Љ†ot‰‰‰vn…‰‰~k~Љ„nu‰‰‰un…‰‰~k}Љ…ot‰‰‰vn…‰‰k}Љ…nu‰‰‰uo†‰Š|l€Š‰ƒmyŠˆˆqr‰ˆ‰ym„‰‰€k}Šˆ†ou‰ˆ‰vn†‰‰~kŠˆ…nvЇ‰uo†ˆ‰}k€Š‡…nvЇ‰vn†ˆ‰€k~І‡ptЇ‰xm…‰‰l}Šˆ‡pt‰‡‰xm„‰‰€l}Šˆ†ou‰ˆ‰vn…‰‰~l~‰‰…mv‰ˆ‰to†‰Š{l‰‰ƒlyŠˆ‡qqˆ‰‰ymƒ‰‰€l|Šˆ†ot‰ˆ‰vn†‰‰~kŠˆ…mwЇˆspˆˆ‰{l‚‰ˆƒlzЇ‡rr‰ˆ‰ym„‰‰l{Šˆ‡ps‰ˆ‰xm„‰‰€l|Љ†ps‰‰‰xmƒ‰Š€l|Љ†ps‰‰‰wn…‰Šk~Љ…nv‰ˆ‰uo‡‰‰}k€Š‰„mxŠˆˆspˆˆ‰{l‚ЉƒmyŠˆˆrqˆˆ‰zlƒ‰ˆ‚l{Ї‡qr‰‡‰zlƒ‰ˆƒlzЇˆrqˆ‡‰zl‚‰‰ƒmy‰ˆˆsp‡‰Š|l€Š‰„mw‰‰ˆsp†‰Š|l€Š‰ƒmxЉˆrqˆ‰Šymƒ‰‰l|Љ†ou‰ˆ‰uo‡ˆ‰|l‰ˆƒmyЇˆrq‰ˆ‰{lƒ‰ˆƒlz‹†ˆrq‰‡ˆ{lƒ‰†„my‹„ˆvo‰†‡€l€‰…‡puŠ„‰ym††ˆƒl}‰…‰qs‰…Š{m„‡ˆƒl|‰†‰qsˆ†Šzm„‡‰ƒl|‰‡ˆps‰†Šym…ˆ‰€l‰‡†nwЇ‰tpˆˆ‰{lƒ‰‰‚l|Šˆ†otŠˆ‰vn†‰‰}l€Šˆ„mxЇˆspˆˆ‰{l‚ŠˆƒmyІˆspˆ‡ˆ}k‰‡…mwŠˆ‰tp‡ˆ‰}l‰ˆ„myЇˆsqˆ‡‰zlƒ‰ˆƒl{Ї‡qs‰‡‰ym„ˆˆ‚l|Іˆqs‰…‰{l„‡†…m{Š„‰tq‰„‰~lƒ‡…‡nx‰ƒŠvo‡„ˆl€‡…ˆpvˆƒŠynƒ„‰ƒmz„†Štqƒ†Œ}m~†Š†ow†ˆ‹vq„†Œm€‡‰‡ow‡†‹vp…†‹mˆˆ‡ny‰†‹uqˆ…‹~m„†‡‡m{‰„‹tr‰ƒŠ~m„……ˆnzˆ‚‹vp†‚‰‚mƒ„Šqv„Œ{o‰†nz‚„Œuso~‰ˆpy‚…ws‚ƒ€o‚Šˆpz„†vs„ƒo‚„Їo|††Œut‡„Œ~n„†‰†n}‰†‹st‰„‹|n††‰…m~‰…Šrt‰ƒŠ{m„…‡…m{‡…Štq„ƒ‹€m|ƒ‡‰rr…Œ}ny„‹‡rq€‰Œ|ny†…qr‚Œ‹yn|Šou†ˆuo€ŒŒ|ny‰„qs…‰wn€ŒŒ~nyŠ…qs‡Œ‰voƒŒŒ}m}‹‹„nx‰Š‰sq‡‰‹zmƒ‰Š‚m{Љ‡qsˆ‰Šxmƒ‰Š€l|Љ†ot‰ˆ‰vn…‰‰}k~Љ„mv‰ˆ‰so†‰‰|k€‰ˆƒlx‰‡ˆso‡ˆ‰{k€‰ˆƒlw‰‡ˆso†ˆ‰|k‰ˆ…muˆ‡‰um„‡‰€k{ˆ‡‡pq†‡Šzl‡‰ƒmv†ˆ‰un‚ˆŠ~l{‡‰†ps…‰Šxm€ˆ‹mx‡Šˆsp„‰‹{m}‰‹ƒov‡‹‰tpƒŠ‹|m}Š‹„ov‰‹‰uo…‹‹}m~‹‹…ov‰Š‰uo…Š‹~l~ŠŠ†ou‰Š‰vn„ŠŠl|ŠŠ†ot‰‰Šwm„‰Š€l|Љ†psˆˆŠxmƒ‰Šl{‰‰ˆqs‡ˆŠym‚ˆ‰‚l{ˆˆˆqr†‡‹zm€‡Šƒmx†ˆ‰sr„‡‹{m€†Šƒmz†ˆ‰ss…†Œ{n‚†Š…nz†‡‹tr…†Œ~m…‰‡pw…‡Œwp‚†Œ€n}†Šˆqu†ˆŒyo‚‡Œn|‡Šˆqt†‰‹xoˆŒn{ˆ‹ˆqs†Š‹yn‰Œmz‰‹‡rs†Š‹ynŠ‹mzŠ‹‡qs‡‹ŠxnƒŠ‹€m{Š‹†ptˆŠŠwnƒŠ‹€l{ŠŠ†pr‡ŠŠym‰Š‚my‰‰ˆrp…‰Š{l~‰Šƒnv‡‰‰tpƒˆ‹|m}‡Š„nv…‰‰up‚ˆŒ}m|†‹…ov…‰ŠupƒˆŒ}m~ˆ‹…nw‡‰Štq…ˆ‹|m€ˆŠ„my‰‰‰sr‡ˆ‹{m‚‰Šƒm{‰ˆˆqsˆˆŠzm‚ˆŠƒmzˆˆ‰sq††‹}m…‰†ov„†‹wo€„‹nyƒ‰‰sr€†Œ|n{„Œ…pu‚Š‹vp}‡Ž~oxƒ†rt€ŠŒxp}‡Ž€py…ˆruƒŠypˆŽ‚py†ˆstƒ‹yp€‰o{‡Œˆqu†ŠŒxp‚ˆŒn|‡‹ˆqt…ˆŒyo€†Œ‚ny…‰Šss‚‡Œ|n}…Œ…ox„ˆ‹ur‚†}n~„‹†oxƒ‡Œur‚…~n~ƒ‹†oy„‡Œurƒ…~n€…Іox…‡Œuqƒ…Œn…Їox†‡Œuq„…Œ~m…‰†ny††Œtr†„‹~m‚…ˆ†nz†…‹tr†ƒ‹~m…‡‡nx†…‹up„„‹~m…ˆ‡nw†…‹up„…‹~m†‰†nw††Šupƒ†‹~m}†‰†ov…‡‹vp‚†Œm|…‰‡pt„ˆ‹yn†Œƒovƒ‰Švp~†€ovƒŒ‰up}‰~ov…†sq€ŒŒ{oy‰Žƒqs„‰wo}ŒovˆŽ†sq‚‹zo{‹Žpu†Žˆup€Œ|oz‰Žƒpt…މup€Œ|oz‰Žƒqu…‰vq€‹}o{ˆ„pv„ŒŠvq€‰~oz‡†qtƒ‹‹wp~‰€oy†Œ‡rs‚ŠŒyo}ˆ‚px„Œ‰tr‰|o{††qs‚‹Œyo{ˆƒpt„‰wo~Š€ow‡‡tq‚ŒŒ{n{‰ƒpt…Œ‰vp€ŠŒ}nz‡Œ…qs„‹Šxo~‰Œ€nx‡Œ‡srƒŠŒzn~ˆŒƒnx‡‹‰sq„‰Œ|n~ˆ‹„nx‡‰ŠupƒˆŒ~m|‡‹†pv†ˆ‹vpƒ‡Œ~m‡Š†oxˆ‡Šuq†‡‹}m€ˆ‰†nxˆ†Švp…†Šl}‡ˆ‡pu††Šxn‚‡Š‚mz‡ˆ‰sqƒ†‹~m|…‰†ptƒ‡‹yn~…‹ƒowƒ‰Šup€†Œn{…Їqtƒˆ‹yo€†‹‚ny…‰‰srƒ‡Œ|n†‹„ny†‰Štr†‡Œ}n‡Š…n{ˆ‡Šss‰†‹{n…ˆ‰„m}І‰rs‰†Š{m…‡ˆ„l|Š…‰sr‰†‰|l‚ˆ†…myŠ…‰uo‡†‰k€‰‡†nv‰†Švn†‡‰€k~‰‡‡ot‰‡Šxm„‰‰€l|Šˆ‡prˆˆŠyl‰‰‚mx‰‰ˆto„‰Š~l|‰‰†pr…‰Šym}‡Šƒot…‰‰wnˆ‹€nw†‹ˆsq‚‰‹|m|ˆŒ„pu…‹Švo€‰Œnz‡Œ†qt…‹‹xo‰Œ€n{‰‹‡qtˆŠ‹xo„Š‹€m}ŠŠ‡pt‰ŠŠxn…Š‹€l}‹Š‡ouЉŠwn†‰Šl~Љ†ou‰‰Šwm…‰‰l|Šˆˆqrˆˆ‰{l€‰ˆ…nu‡‡‰xm‡‰ƒmw†‡‰uo†Š€my†Š‡rq‚‰‹{m{ˆ‹„ps…‹‰xnŠŒ€nxˆŒ‡sr…‹‹ynŠŒm|Š‹‡qu‰Š‹wo…Š‹€m~Љ‡pu‰ˆŠxn…‰Š‚m|‰ˆ‰rsˆ†Š}l‡‡†ov‡„Šymƒˆ†ov‚…Œyo|ƒ‹…qt€ˆŒzo{†Œ…puƒŠ‹xo‰Œox†ŒˆsrƒŠŒ|n~‰Œ„pv‡‹Švpƒ‰Œ}n}‡Œ†pw…ˆ‹vqƒ…Œn~„‰ˆpwƒ†Œwq‚ƒŒo~‚ˆŠrxƒƒŽzq‚€Œ…o|€…uu€Ž€p~~‰Šrx~ƒ{r}†ry~‡Žys|‚…rx‰Žzr{„…su€Œyq{‡ƒrv‚ŽŠvs}‰|qz„ƒrx€‹uu~ˆ{s|ƒƒrzŒ‹tv~†{s}…rz~Šuv}ƒ}s|އrz}‡wu|€‚r{{‹Œuvzƒ‘€sw}Ž‹wsw†‘st~‹xry‰€rv‚‰vs}Œ}qx††ss€yqzˆquƒ‰ur}‹Ž{py†ƒrtŠvr{‰|qwƒƒqv~Štt{‡ysz‚qy|ŒŠsw{„yt|~ƒq{{‰tw{‘}s{|‰sxz†ytz„sy{ŠŽvuyƒ‘sy~ˆsw{‰yt{ƒ‘rz~Štw|‡zs{„rx~ŒŒuu|†}r{€†ry~‰Žvu}ƒq{~Œ‰sw|†zrz€…rv|Šxrx„‚rt}ŽŠvryˆ}ru†ts{Œxsw„‘sw~ˆtw{Šxu{ƒ‘€s{Žˆsy}ˆwv€r‹‰r{€…wv‚€Žp‚€ˆŠq{ƒŽzsƒŠ…o}€ƒut€‚p{}‡Œtt}€pz~Љsv|…Žzq{€Ž„qx}‰Œut|„|q{€Ž…qw~‰Œvt}„~q|Œ‡qx€‡ws€ƒŽp~€‰Šry‚ƒŽyrƒŒ„o~‚†Œswƒ€Ž}p€‰ˆpz€ƒŽws€p~ˆ‹qy€‚ys€ƒp€ˆ‹qz‚‚xt„Œ‚p‚†‹q|„Žys†‹„n‚ƒ„Œsw†€Œ~oƒ€†‰qyƒ€{p‰ˆpy€‚yrŒ…p{†ut€Ž€p|€Š‰rv€…zq|‚„px€ŠŒvs…~p|‚Œ‡qy‡vtƒŽ€p‹‰qz‚…Žxtƒ‚‚p€‚ˆ‹ryƒ‚|q‚€‹ˆp{„Žxs€€…qz~‡Žwt~‚qzŠŒuu~„~r|‡ry€ˆŽxs„q{ŒŠtu‡|q|ƒŽ†rxŠws…~q}‡q{€‡Žvv€‚q‹‰rz„xtƒq|}‰uw}€r|}Œ‹tw|…}s{ˆsw|ˆzsz‚…sw~Œwt{†€ry€ŽŠuu|‰|ryƒ„sw~ŒŒvt|†ry€ˆsw|‰yt{‘‚sz|ŒŒuw{„‘}sz~ˆtw{ˆ{sy‘…tu|ŒŽzsx…‘ƒsu~Œysyˆ‘suŠws{‹rw„ˆus~ŒŽ|qy‡…stŒyp{‰‚qvƒŽ‰vq}ŠŽ}px…†rsŒŒypz‡quމuq|ŠŽ|pw……ssŒŒypzˆquƒŽ‰uq|ŠŽ}pw…†sr€ŒŒzoyˆƒqs‚Švp|‰Žpv„އsq~ŒŒzox†ƒqs€Švpz‰}pvƒ†sr}ŒŒypx†qt€Ž‰ur{‰}pvƒ†ss~Œ{px†„ss€Œypyˆƒrt‚Ž‹xp{Š‚qu„މvp~ŒŽ~px‡†sr‚Œzo|‰Ž‚pu…ˆup~‹|ox†Ž„qs€Œ‹wp{ˆŽpv‚ކss}Šypy„pv€‰ts{ˆ|qy‚…rv~‹wr{†€qw€ŽŠus|‰~qwƒ‡ts}ŒŽ{qy†…su€Œxq|ˆqwƒŽ‰ur‹Ž}py††stŒŒyp{ˆ‚qv‚ŽŠvq}‰pw…Žˆtr€Œ|py‡…rs‚‹yo|ŠŽ€pv†Ž‡tq€ŒŒ{oyˆŽƒqsƒŠwp|ŠŽpu„Žˆup~‹}ow†Ž†sqŒŒ{oy†Ž…rs€ŒŒyozˆŽƒptƒŠwp}Šov†Ž‡sq€ŒŒ{ozˆŽƒptƒ‰vp}Š}ow†Ž…rs€ŒŒxp{ˆŽpvƒŽˆtq~‹|py†„qtŒ‹vq}ˆŽpx„އss€‹zpz†„quŒŒxp{ˆƒqt‚‹xp{‰ƒqt„ŽŠxp}‹Žpv†Ž‰up€Œ}oyˆŽ†rrƒŒ‹yn|Š‚pt…‰vp‹}ow†Ž…rrŒ‹yo{‰Ž€puƒˆtq~‹{oy†Žƒqt‚Švp|‰Žpw„އsr‹zpz†„qtŒ‹wp|‰€pv„Žˆtr~‹Ž|py†…rt€ŒŒwq|‡€pwƒŽˆts~ŠŽ{py†ƒqu‹vr|ˆpxƒ‡st~ŠŽzqz…„ru€ŒŒxr{ˆqvƒŠvr~‹}px††ssŒyp|‰qv„މur‹Ž|py†„qu‚Œ‹vq}ˆ}pyƒŽ†qv€‹Œvr|†pzˆrvˆŽyr|ƒ‚qy€Œ‹tt~†|q|ކqx‰wt}„€qz€‰tu~‡|qzƒ†ruŠzqz…„ruŒŒyp|ˆƒpv„Švp‹€oxˆŽ‡sq‚ŒŒzo{‰Ž‚pt…‰up‹Œ|ny‡Žƒqsƒ‰vo}Š~ow†Ž…rs€Œ‹wp|ˆŽowƒ‡ssŠyp{†Ž‚pv‚ŒŠurˆŽ|p{……qv‚ŠŒxq}†Ž‚pw‚‹Švr~‡Ž€px„Œ‰tr‰~oy…‡ss‰zo{†„puƒ‹Švp~ˆox…‡ss‹Œzo|ˆƒpv„Œ‰upŠ}oy††rs‚ŒŒyo{ˆŽ‚ptƒŠvo}Šov†Ž‡tp€ŒŒ|oxˆŽ…rrƒ‹yn|Š‚pu†‰vo€ŒŒ~ny‰†rrƒŒ‹zn|‰ƒpt„ŒŠwo}‰€ov„‰tpŠ~nx††sqŒŒzozˆŽƒptƒŠvpŠ~oy‡Ž…qsƒŒ‹xp}ŠŽ€ow†Ž‡sq‚ŒŒ{n{‰Žƒpt…‰up‹|oz‡Ž„ptƒŒŠvp~‰Žox…‡sr€‹zoz†Ž„qtŒ‹wp|ˆŽ€pvƒŽ‰uq~‹Ž}px†…rs‹xp{Špv…†srŒzpyˆ‚qtƒŠvq|‹~pw…†ss€ŒŒxq|ˆ€pyƒŽ‡sv€Švt…~q~‚…q{‰Œtv„}q€‹‡qz‚†xs€‚ƒp{‰Œuu€„~p}Œ‡qy€‡ws€„Žp}‚Œ‡qz‚ˆŒuvƒ„Ž}q‚ƒ‹†pz„†xrƒ‹…px‚‡ŒxpƒŒ„pw‚ˆŒvq„oz‚‰‰st†{o~„Œ„oxƒ‰Štr‚‡Œ|n}†‹…pu…‰‹xo‡‹…ov‡‰‹zn~‰Œ†qr„Š‹{m|ˆŒ…pt…ŠŠwn‰Œ€mw†‹ˆsp‚Š‹{m|‰Œƒnv‡Šˆsq…‰‹{m€‰‰†pt‡‡‹~myˆŠ‰wm}‰‹…qp‚Š‹€mwˆ‹‰vmŠ‹‚nuˆŠ‰wmŠŠƒns‡Š‰yl€ŠŠƒnt‰Š‰vm‚ŠŠlx‰Šˆso…ŠŠ|k|ŠŠ…or‡Š‰yl€ŠŠ‚mv‰ŠˆumƒŠŠlyŠŠ‡qp†ŠŠzl~ŠŠƒnuˆŠ‰vmƒŠŠl{ŠŠ…pr‡Š‰xmŠŠ€lxŠŠ‡rp…‹Š{l|Š‹„pr†‹‰yl‹‹ƒntˆ‹‰wm‹‹€mxŠ‹ˆsp†‹Š|l}‹‹„otˆ‹‰vn‚‹‹€myŠ‹†rq†‹Š|l‹‹„ot‰‹Šym€‹‹„otˆ‹Šzl€‹Š…psˆŠŠ{l‹Š…psˆŠŠzl€‹Š„nu‰Š‰vm‚‹Š€lyŠ‹‡rp…‹Š|l}Š‹…osˆŠŠyl€‹Šƒnu‰Š‰wm‹Šƒnv‰Š‰wm‚‹Šmw‰Šˆtnƒ‹‹~ly‰‹†rp…‹Š{l|Š‹ƒos‡‹‰wm‹‹€mw‰‹‰unƒ‹‹mw‰‹‰wm‹‹„otˆ‹Šzm‹‹…psˆ‹Šzl‹‹„otˆ‹‰xm€‹‹ƒmv‰Š‰vmƒ‹‹€lyŠŠˆso…ŠŠ~k{ŠŠ‡qp†ŠŠ}k|ŠŠ‡rp†ŠŠlzЉ‰tn„ŠŠ‚mxЉ‰un„ŠŠlyЉ‰tn…‰Š€k{Љ‡rp‡‰Š|k~Љ†osˆ‰‰zk€Š‰…ns‰‡ˆ|k~‹„†vm†ˆƒ†ps‰ƒ‡‚lz„ƒ‹ym|‚‰ˆsq…Œ‚ou‚Š‹ynz††spŠ€ou…ŒŠyn|‰†sq‚ŒŒ€nvˆ‰xn~ŒŒ„qs†‹|m{‹Œ‡toƒŒŒ€nv‰Œ‰xmŒŒ…qq†Œ‹~myŠŒˆunŒŒƒotˆŒŠ{m|‹‹†rp…‹‹€mw‰‹‰xm‹‹…pq†‹‹~ly‰‹ˆun‹‹ƒosˆ‹Š{l|Š‹‡so„‹‹mv‰Š‰ylŠŠ†qp…ŠŠmv‰‰Šzk}Љ‡snƒ‰Šƒns…‡Š}ly†‰‰vm|‡‹…qpŠ‹€nt†‹Šzmz‰Œ‡um€‹‹ƒor…‹Š~mx‰‹‰wmŠ‹†rp„‹‹‚muˆ‹Š|lyŠ‹‰wm‹‹‡snƒ‹Š…pq†‹ŠƒmuˆŠŠ€ky‰‰‰|k~‰‡‰wl‚ˆˆˆsnƒˆ‰…ppƒ‰‹‚oq„ŠŠ€mt‡ŠŠ}lx‰‰Š{ly‰‰Šymx‡‰Šxnv‡ŠŠxnv‰‹ŠxnxŠ‹Šxmz‹ŠŠwnz‹ŠŠvny‹ŠŠvnxŒŠ‹wnyŒ‰ŒznyŒ‰Œ|mxŒ‰Œnu‰‰Š„oq„ˆ‡Šso}„…yov€†~pr}‰Œ…qqzŒ‹ŠtqxŒŠxpt‡‹pr€Ž‹‰sqyމŽ|ps‡ŒŒ‡rp|Œ‰Œzou†‹Œ…qqyŠŠŒ{osƒŠ‹ˆrqw†Š|ps|‹‹‹vpt‹Œˆssr‚Œ‡rstˆŒŽ€qswŒ‹Ž|qs}Ž‹Ž|qsyŒŒŽ{qszŽŒxrs~ŒŒ}rsxŠŒ{qswŒŒŽqswŒŒ~qts„ŽŒŒsssyŒŒ‚qts‚ŽŒ}zx{wx‰ŽŠ}stvŠŽŽ†stszŽŒ‰|rtszŽsstwŠŽ‰xsts|ƒssuu†€sttyŽŽ†tsut„ŒŽ|ruszŽŽ~qusx„Ž€stttƒŒŽ|rttv„ŽŽŒystu}~ƒŒ„€ysvu†Žˆxtwwwƒ‹ˆ}~‚yuu{ŽŽ‚ttuw‡ˆxwvuw‡Ž‰xsvx{ƒˆŒŠ}vy|€ƒƒ}ˆ{zv~‡……†~z{{|€‚ƒ…„€}yx}…‡‚{v{…†…‚zw|}€ƒ…†„‚{tuyˆŠŠ„|{vx~€„‚ƒ†}zz}€€}‚ƒ…zz{|€…ƒ}~…„}y{€~y|…‰‰ƒzvx|€ƒ††ƒ}yw{~€ƒ‚}}€…ˆ†}xwxz}‚†ˆˆ…~xvx€†‚|{€€…‡„‚{vvy…„ƒ‚ƒ‚~}|{|}ƒƒ€€ƒƒ~yvx}„†„ƒ‚€€}zxz}€„†‡†€|{y|~‚}|~ƒ‡†ƒ|z{|~‚ƒ~z}‚…‡„|yy|„~€~€ƒ…ƒ}yx|€€€€‚~~„„‚}xx|€€‚„…‚~}€ƒƒzwy~‚‚ƒƒ‚ƒ~||€€~|}€ƒ‚€€€~~}~ƒ…„{y|ƒ‚}€}~ƒ‚€€€~}|}€‚‚€~€€€€€€~}}~€€€~~€‚ƒ‚€~|{|~ƒ€}‚}}€‚||}‚ƒƒ~~€‚€€}|{}ƒ‚~€‚ƒ‚~|}‚‚‚€}||~€€‚‚~~€‚€~€€~~€€€€€€€€€~~€€€€€‚‚~€~€€~€€€€€€€€€€€€€€€~||~€€€€~€~€‚‚€€~}~‚€€€€€€€~~‚‚~~~~€€€€€€€€€€€€€‚‚~€~}}€€~€€~€€€€€€~~~€€€€~€€~~€€€€€~~€‚€~~€‚€~€€€€€€€€€€€€€€€€€€€€€€~~€€€€€€€€€€€€€€€€€€€€~€€€€€€€€€€€€€€€€€€€€€€€€€€€~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€dopewars-1.5.12/sounds/19.5degs/bye.wav0000644001565000007070000007235407541421126014437 00000000000000RIFFätWAVEfmt ø*à«dataÀtÿÿþÿÿÿÿÿÿÿùÿúÿûÿüÿÿÿÿÿúÿúÿùÿûÿõÿñÿöÿõÿ +5GE'ÚÿÎÿ±ÿ·ÿÛÿñÿ=LxJ,¥ÿ†ÿÿÿOÿwÿ"PÈÍŒ[}ÿ;ÿzþcþ–þÍþ n¹ò Ú‘!žþ]þþHþ¶ÿAN³wKÖ0¥þþ›ü“üŽý#þÒ…kŠâ®þÇý&ûÇúøúwû‚þÿ/öØ—³¦øü9übû§û<þ:ÿ.qˆ=Vÿ}ý’ý¿þ<ÿüÿÿºþ.þFþÙþûþÿåþIþQþþÄþÏÿìÿÃÇK>Z-fNGÿiÿvÿ’ÿ†zC%¸Ø×QSp‡]òÿ$þxþ?þþ7ôÿÿ»ÿEú9ûÝøpøUþ²ü¾oŠ—Ôîü‡þ¥øù£üNûT”A Å Ab4ÿXøwùí÷i÷þüûÖl¼.àù&ûM÷D÷<ûçùfô™Fš‰ôþ2"û‡û©üÖûÍ<®aô¿Õ©üTý9üü4ÿkþ¨X·qvý þ‘üƒüYþÒýÏWéÝÝ@þÿpý|ý¤þ7þ¸Uqp«ä¥ÿÖÿ%ÿ2ÿ›ÿlÿÚ Œ8`Xˆ—ÿÂÿ=ÿBÿûÿ¶ÿE([µÿèþûþ ÿýþFÿ7ÿêÿ¸ÿ¸˜K~0ÿ_ÿHÿ%ÿ"üÿALøÿèÿïÿÃÿÓÿ±ÿ«ÿñÿZOW\SX-¿ÿÉÿ'ûÿöѽå•ÿÙÿÍþåþíþÓþçÿ£ÿW ØßkÕ‰þÝþTþ6þ¿ÿfÿýÍGs˜ÿ»ÿBÿOÿaÿQÿãÿÉÿÌÿÞÿÚÿÃÿoQWvÿ¶ÿ~ÿkÿ%TU#,ÓÿâÿÊÿºÿvLÔ×Ko hU%A±ÿ¿ÿ-Ô¾x¡dÿ¨ÿ`þŒþˆþUþ~˜¦œþÿÏúQûýíû^Ào)‘édü+þWö6÷f÷|ö5íýÞ ; ¬ /yúöûøø‰ü-û)‰ÃQ‰Ñ¦ýKÿKù©ù›ûµúÁ³ÿe?K\ø úžô·ôûùi*º ^ *¸þýÿïøjùŠüû—žö s €Ü×þ¿<ø1ùzøÒ÷ØþAýÝÿÝ”ýÿ}ø+ù‚ùÕøõþ¯ý»ÜEÚÿÞaüÖübýÆüÐÇ/»~õÒ®ºý0þÜýý΀"}Ùýðý£ýhý¢ÿ)ÿ&ùwÎnþÙþ¶ý©ý¸þzþžþÜþ¶ü$ý°ücüx{ÿ¤ó?vå“ýpþÃûÊû«þ¼ýƒcWÉEÿ ýDýþ‡ý‰ºÚ¥ü²¿ý¢þkû£û¬ü1ühÿßþ•Œ_ÿÄÿ½ýÿýáý¯ýŽÿ,ÿç»ö t‰{¦bˆg~þ¬9It¹ÿÍÿ ÿ¥ÿ_ÿ{ÿÞþøþêþÖþ?ÿ8ÿCþ¢þüüpûZûÅýýiNCq˜þÿý•ýÀÿ ÿ¯Øà®>ÞC"¿ýþýlÿ¹þ³Ë°¥»¯ný€þúÄúVüûËåÿ’¥ÜþþÿÅù úuùùìý×üÕJ®  þ]ÿ9ü‡üXýÆüŒˆ5£Z›Éc¦ê)Ò™ óßDÓ(ÈŸþÁþUÿÿ_=¤ÿý®ý£úû¶ú€úÀüMüNþ!þÓýþíû_üÿúûPýˆüæãJLÈ d4ê‰ðès¾·]Õœ2ùµg¶¦9ËŒýaþúûú ú*ûðúÖûÎûgû›û‡ú½úZúMúÀûVûDþ½ý ÏÿDIdDÉa‘4cñ¢~ò¼¾4_ç×òîý þ¦þ|þý#þù*úéô›õ9ô+ô×õqõø ÷Rúñùû%û‡ú¬úÔû@û̃ÿEFƒU4ݺ ¥® P G @ Š  `[ Ü™ÿ©ÿ öÿåþkÿ ûü;÷ÿ÷ õeõ«ô¡ô<öÐõrøø¹øèø¯÷ß÷ñøiøCý;üÕˆZM×À•² u ùæ o ó   K êÂ䈩¶4Ýÿù°ûÐòôdñ4ñžôöóIöRööôdõaôZô`öÝõxùÒøCý\ü0±6r¬Ó Óó " Ì DÊ ¢ 3zg†¹)qã¸þÍþýùàú­÷è÷´ø^ø¡ù¬ùå÷møNösö†÷÷µùVù-ûäúrýØü¥7¶¥µ®I§Þ/«§Ú Ÿs»"G6TVoþ¬ÿØúAûkûûýàüyüâüùþù™õ?öòôÓôÐ÷÷¤ûöúqýHýlýqýjþþ‘Í]|䥋¿wेaçÓR?Ëßý>þfüÏüeúÒúkù„ù¿ù³ù¼ùÖùsùzùbúú!üÌûMýýyþ&þ­"ÂgGC`> áÖ¢WIˆ(Ò×þ4ÿýýþ¨ýµýþýÖý‡þ„þ ý–ýÉúû—üÁû–5üls~ÖýOþ¥þþûW0Šwþ[ÿwûêûŸúÄú5ú?úûûLÿ‹þ³Í®þ&ÿ²þKþl‹ÌÆïãê'Û÷îoUîÐâþšûéû¾üVüþþòüQý¤û×û”û’ûåûÑûýºüÊÿ5ÿpOzÈÐÿ¼ÿñQAñwÝ\³¢SmäFæÿÏýþjýwý(ý=ý†ýTýÓþ—þ8þ¨þ"ûÕû‰ú9ú”ÿ þ°B†  ± “[ýþ©ý%ý„²63º‰áûýD÷øPöö›údùÔÿøþ{ÂíýsþÑýývŒ6‘E@Ã3^Ïݬ»ñ1ö%4ýˆþ™ú•údý¥ü2ÿ-ÿ.ýÏýûUûðúÚúºûŒûGýÚüÈÿ=ÿ÷\ìÿ½ÿiÀªfÎ4®wP h†µÀ/Êþ'ÿ€ý´ýýýsýbý“ý¦ýÌüýüûüxü8ü*ÿ^þ@ Iú ‡ß"þôþ ýJýKb` 2)Nûáüƒö÷fø›÷ÕüüQþFþÅýÞýéýÔý}þ`þîÿrÿgƒs Â4,ŸÞŸÞdªý¼Oÿÿÿ©ýËýµý°ýÛü-ý$û‚û›úú4ûûöûËûhý ýOÿ÷þêÿèÿ÷›©{TIÏ _QÝ"A´ÿƒÿ,ý‘ýÃûüûöûÊûýìüÄüûüíûüØüüBþþ{ÿ8Õ° ä íó g·þêþÑÿzÿ½œO)'pý=þW÷Rø×öpö&û1údþÿýÎþÙþµþ¬þ‹ÿNÿZë±*°K(:¾(dKÁ›U;1ýþÖû·ûþý–ýÔý4þVûÑûÆú¸úû…ûßû×û%ý¸ü±ÿ3ÿ®ª=Doúõ€v˜Ù+fB²^àyæÿO%þ‰þ§üæüÇü–ü þÛýXýÃý÷útûxúYú_üßûcÿžþD T)æZ”:ÿjÿÚX  WÙÿPþÃþ~ûüÝùþùû¸ú}üYüˆüŠüíýfý{º1©»w9' $¶v†©OÀÈ^þªþþþHýœýVûÀûºú·ú ûtûÏûäû„û…ûý‹üÉÿ<ÿg.+ô·SáÄ7oku®’aˆ*fWyýÿiýÇýEûuûüÐûèüåüëû:ü(û8ûüÉûÇýeýáÿbÿÜ)ö\F/¹7©G³ø{v±£È¿?‚]ý8þ2ùúù‘øDø‰üû³ÿ\ÿëþLÿ¾ýÕýÿ¬þ+ŲW…=Oî’Öù× > žŽ þÛþ¥ýeýðþÔþLýæýËú.ûÿúÃú€ü:ü–ýcýÐþŽþtÿnÿðþ ÿ«ÿQÿŠåyFÂv¤}]I!Jxàøÿ*­ÿ³ÿÂþÿyüùübûkûZüüåüîü5ücüüùû£ý'ýo{»ò˜ÆëŠIf4D§Èÿ­ÿ‚Cµuýœþœú±úý[ü/þUþü€üDüÞûkÿÏþm}ÿªÿ‚"l½Æig±›’§ì íNXÎIYþÒþ…ý‡ý0þþþ-þãüýÛü½üñý¼ý…þþœþ’þeÿ$ÿŸ^8&78XKª˜ÎÃå×[?ǽCrï9³ÿîÿÌþøþþ>þÝýêýŠý°ý}üÁüûûòûŸý"ý—ÿìyTj8h‡a†^  ,þDþ¬×ÿŒJÍÍ"üÞüZüäûrÿåþ:øþ6ÿTþmþþ þÏþuþfÌëÛ“;ˆJ‚çCÿ¬ÿGÿüþ©,yâèý´þKüOüþœýNÿ5ÿêþ ÿSþyþ„ý¶ýqýGý›ÿÿç‘ÜøýþÁ Ø)HºÜâ?/2š?þþ”þWþ4ÿGÿyýéýBýôüzÿúÿw/üúüÁû\û¢ÿÈþ™‡”ÔƒX¿ÿ +U«¯; ö¼ì³Ü£¾ÑŽÿáÿ§þ³þAÿÿBÿhÿöý@þÆý¬ýÿÏþ¦ÿ§ÿÿ;ÿÜþÝþ^ÿ>ÿ ãÿve}ƒŒ}!ò™ŠB_ÈÖÛÎÝêAj©ÿ¿ÿÀÿ±ÿ äÿûÿiÿÿ^ÿWÿ¥ÿšÿƒÿ–ÿüþÿÈþÆþ9ÿÿýÿÔÿzn?X°ÿÅÿ§ÿ–ÿ1’ª¬›œŒu}aeLN18 ÖÿâÿÅÿÀÿõÿçÿöÿÿÿ’ÿ«ÿ^ÿaÿ¥ÿ‘ÿæÿßÿìÿðÿãÿéÿ´ÿÂÿ‚ÿ…ÿÊÿ­ÿU;_l úÿ2'HDVQfeCQøÿÒÿ×ÿèÿßÿ$ ˜ÿ±ÿ`ÿfÿ{ÿuÿ‘ÿŒÿ½ÿ°ÿÿÿÆÿÕÿÚÿÉÿb@¸®¾¾³µs… ûÿD6:Eßÿôÿ•ÿ¢ÿcÿnÿCÿIÿiÿ]ÿÀÿ±ÿÜÿÞÿ£ÿ²ÿ|ÿÿ»ÿ¦ÿ4xqtwys—Ž“lsRV#-ñÿúÿ&%âÿùÿxÿŒÿ\ÿ]ÿÿwÿ¯ÿ¥ÿÛÿÔÿÌÿØÿÿšÿ˜ÿ‹ÿýÿ‹}y…#4øÿúÿ"m\~R_'.Øÿãÿ´ÿ¹ÿ¸ÿ¶ÿÁÿÂÿÄÿÄÿàÿÙÿ" ëÿñÿÿÿúÿ+$$ÆÿÛÿÿ•ÿ¼ÿ¬ÿ ]UJUÖÿÚÿôÿèÿ*<;!(ðÿúÿÊÿÑÿÐÿËÿõÿ>2_\LV²ÿÃÿ…ÿŒÿ¦ÿ›ÿøÿèÿ.)!Ôÿâÿ²ÿµÿÒÿÇÿ QL=F ùÿúÿûÿûÿþÿ- [T8DñÿþÿÚÿÜÿáÿâÿâÿãÿîÿëÿóÿõÿÖÿßÿ·ÿ¾ÿ²ÿ³ÿÉÿÂÿþÿfYXeôÿ¿ÿÂÿäÿØÿ)_Udh7AÝÿæÿÁÿÆÿ¾ÿ¾ÿÈÿÅÿ×ÿÖÿÏÿÔÿÁÿÃÿÔÿÏÿØÿÞÿ¹ÿÁÿÍÿÂÿ,kcmlmklpY]WTY[*8Ôÿæÿ‹ÿ™ÿtÿuÿœÿÿËÿÅÿÆÿÌÿÂÿ¾ÿíÿãÿ÷ÿûÿÉÿÔÿÃÿÀÿäÿßÿëÿëÿs[¦£y†<F"$#!3/!)åÿñÿÇÿÈÿÙÿÖÿéÿçÿûÿ" àÿúÿWÿsÿ6ÿ1ÿ’ÿ|ÿòÿãÿ5'c[ANïÿÿÿ×ÿÕÿøÿðÿL?ƒx…‰P\ñÿöÿóÿðÿ Ýÿëÿ³ÿºÿ§ÿªÿžÿ ÿ ÿœÿ¿ÿ¶ÿÓÿÔÿ½ÿÆÿ§ÿªÿÔÿÃÿK,«ÍÖ`}îÿÛÿ×ÿ WNX]#»ÿËÿšÿ›ÿ¾ÿµÿíÿèÿòÿõÿÔÿÜÿ±ÿ¸ÿÿŸÿ´ÿ¬ÿúÿëÿ:/5:M9†u<Hñÿ÷ÿãÿåÿéÿèÿÝÿæÿ™ÿ¬ÿaÿgÿ’ÿÿðÿ@< +ïÿøÿßÿßÿòÿìÿ:4FDSN_\@Küÿ ÜÿÝÿýÿòÿîÿþÿšÿ­ÿuÿwÿ¡ÿ”ÿöÿåÿ7->@·ÿÇÿ¦ÿ£ÿðÿÜÿ7,486,]VSX"-öÿüÿìÿéÿ0.ÒÿÝÿ¾ÿÂÿ±ÿºÿ‚ÿÿfÿgÿ–ÿ‡ÿíÿÛÿ8)nd}}_f29%!96 )áÿïÿÆÿÈÿÖÿÒÿÍÿÔÿªÿ±ÿ®ÿ¨ÿÝÿÓÿ %1.%& %B<:Aõÿ¥ÿ³ÿ˜ÿ”ÿÉÿ¼ÿ ýÿ@7HL!ÞÿèÿàÿÝÿ÷ÿóÿ  Óÿàÿ¹ÿ¹ÿèÿÚÿ(('&**80CB#×ÿåÿ¦ÿ°ÿÿ’ÿ ÿ™ÿÓÿÇÿüÿ öÿûÿöÿôÿ!LEJO#+ÿÿ"11 Úÿäÿ¿ÿÆÿ°ÿµÿ¥ÿ¥ÿÁÿ¶ÿÿÿòÿ!    !"ÿÿÒÿÛÿ¿ÿÁÿÆÿÅÿÏÿÐÿËÿÏÿ¿ÿÃÿÏÿÈÿk^qv7B*&9746Ùÿéÿ¨ÿ¯ÿ­ÿ©ÿ½ÿ¼ÿ¨ÿ°ÿ”ÿ–ÿ·ÿ«ÿ ÷ÿ[KtsW^49')øÿÿÿéÿëÿåÿæÿæÿæÿùÿ% àÿíÿ·ÿ¾ÿµÿ´ÿÈÿÂÿíÿåÿ '"C<TRBJûÿ ±ÿ½ÿ§ÿ¤ÿÓÿÊÿøÿóÿ)% ÿÿöÿ÷ÿíÿðÿØÿÛÿÚÿÖÿùÿõÿ ""àÿåÿîÿçÿ(SLVW&4ÏÿãÿšÿŸÿ¶ÿ¬ÿèÿáÿýÿ ôÿÿÿ½ÿÅÿ¹ÿ¶ÿäÿÜÿKCSS7<&&#$úÿýÿøÿùÿçÿîÿ¸ÿÃÿœÿžÿ¸ÿ°ÿðÿãÿ'HB5=÷ÿÈÿÐÿ×ÿÎÿ YO[`#/ëÿóÿØÿÚÿàÿàÿåÿæÿÜÿßÿÊÿÍÿÍÿÊÿüÿñÿ,$#)ñÿûÿäÿãÿ <3OKGI"+ðÿúÿÖÿÙÿéÿãÿýÿÙÿâÿ°ÿ¹ÿ ÿ¢ÿ©ÿ¦ÿÌÿÃÿõÿD7lg`e<C#'ÿÿþÿüÿ  øÿýÿêÿíÿãÿæÿÑÿ×ÿµÿºÿ±ÿ®ÿÖÿÌÿÿÿ(";9$)÷ÿþÿêÿëÿüÿúÿ  2-56×ÿâÿ·ÿ»ÿ¶ÿ¶ÿÂÿÀÿêÿàÿ+- æÿíÿØÿÙÿêÿåÿ%TM9D÷ÿÙÿÜÿæÿâÿùÿöÿ óÿøÿãÿåÿòÿëÿ%DD#ÑÿÝÿÉÿÄÿäÿÞÿðÿîÿÿÿûÿ-,!% ðÿøÿÒÿØÿÁÿÃÿÁÿ¾ÿÜÿÓÿ NFLN+1 öÿúÿìÿìÿûÿöÿ ðÿùÿÚÿÜÿíÿéÿöÿùÿÑÿÚÿÀÿÀÿáÿÙÿòÿòÿëÿìÿúÿ !")&"#4)VOPS(3ùÿÌÿÕÿ¦ÿ®ÿ…ÿŽÿnÿsÿuÿrÿ–ÿÿÃÿ¹ÿýÿs_¡ŠU[EE69%( âÿìÿ»ÿÁÿ¯ÿ°ÿºÿ¸ÿÄÿÄÿÂÿÄÿ¾ÿÀÿÅÿÃÿÓÿÏÿéÿâÿ YLƒ}qx4@ôÿâÿâÿûÿ4*:;×ÿâÿ°ÿ¶ÿ¥ÿ¨ÿ¯ÿ®ÿÐÿÈÿöÿ$ # ùÿûÿúÿúÿúÿúÿúÿúÿ +#C@9=# çÿîÿÎÿÐÿàÿ×ÿýÿ÷ÿùÿìÿòÿÌÿÓÿºÿ¼ÿÉÿÅÿâÿÝÿ PBzuntALÍÿØÿ¯ÿ³ÿ¶ÿ³ÿÈÿÄÿäÿÝÿ üÿýÿïÿöÿíÿëÿ $!ìÿ÷ÿ¿ÿÈÿ´ÿ³ÿËÿÅÿíÿèÿ ?7AE÷ÿúÿ   Ûÿæÿ³ÿºÿ«ÿ­ÿ¶ÿ¶ÿÌÿÈÿëÿæÿúÿúÿñÿôÿôÿñÿ SD…|„ˆJWíÿõÿÃÿËÿÀÿ¾ÿÔÿÒÿÄÿËÿ«ÿ¯ÿ·ÿ´ÿËÿÉÿÚÿ×ÿýÿF;`_QT6< êÿïÿôÿîÿ$:9"Úÿçÿ´ÿ¹ÿ³ÿ±ÿÈÿÃÿóÿéÿ"./ ðÿóÿöÿóÿÿÿ)&òÿùÿäÿãÿüÿöÿ!.- Ôÿáÿºÿ¼ÿÖÿÏÿüÿ þÿÿÿûÿüÿóÿöÿðÿñÿ/*76%) ÷ÿýÿÜÿãÿºÿÁÿ¡ÿ¦ÿ¥ÿ£ÿÐÿÄÿQGUZ-àÿìÿËÿÌÿðÿåÿ1"_XPX"ÚÿåÿºÿÀÿ²ÿ²ÿ¿ÿ»ÿÛÿÕÿùÿôÿ2-88/1$(ÐÿÛÿÁÿ¿ÿìÿâÿ .(67ËÿÙÿ²ÿµÿ»ÿ·ÿÙÿÐÿüÿýÿúÿ83:966', êÿîÿöÿòÿ!"ûÿ¿ÿÌÿ•ÿ›ÿÿÿ®ÿ§ÿåÿÛÿ74*..(@<?@25þÿñÿôÿåÿêÿÒÿÖÿÍÿÌÿÔÿÔÿÅÿËÿ°ÿ²ÿÕÿÉÿ99#)ûÿÿÿûÿúÿ "-+)+îÿøÿÃÿÍÿ­ÿ°ÿ½ÿ·ÿòÿäÿ)87 ßÿçÿÜÿÚÿöÿñÿ (&ýÿñÿôÿõÿöÿüÿüÿ ôÿýÿÄÿÎÿ«ÿ®ÿ½ÿ·ÿðÿåÿ/![TTX%/üÿéÿìÿïÿîÿÿÿäÿéÿØÿÙÿØÿØÿáÿßÿôÿïÿ "    ãÿìÿÐÿÏÿïÿåÿäÿëÿÇÿÎÿ½ÿ¼ÿÎÿÈÿðÿèÿ\Ost;KéÿùÿÃÿÇÿÊÿÇÿìÿäÿüÿéÿéÿùÿõÿ  ùÿÿÿØÿáÿÅÿÆÿáÿÚÿ %"0.43+.óÿüÿÕÿØÿ×ÿÔÿÜÿÜÿÓÿÖÿÐÿÐÿàÿÝÿÿÿøÿ-"MI9@ úÿüÿîÿôÿÝÿàÿêÿäÿ öÿþÿÓÿÚÿÇÿÈÿÕÿÑÿúÿóÿ'D>CE). ôÿöÿôÿóÿýÿ (#,/½ÿÎÿŒÿ’ÿÿ•ÿÌÿÄÿìÿèÿ.&:;%' C?6= ÎÿÖÿËÿÈÿñÿèÿ  ïÿ÷ÿÍÿ×ÿ´ÿ¹ÿ±ÿ¯ÿÃÿ¿ÿæÿßÿ >8CB77?<AC)ãÿñÿ¼ÿÁÿ¿ÿ¹ÿçÿÞÿ  ýÿðÿòÿïÿíÿþÿùÿÿÿòÿóÿöÿöÿïÿñÿãÿåÿØÿÛÿÆÿÈÿÎÿÇÿúÿL=idklLWþÿµÿÀÿ«ÿ§ÿØÿÎÿ A;5;÷ÿÉÿÐÿÇÿÅÿÛÿØÿøÿóÿ  èÿíÿßÿÜÿðÿëÿ ôÿøÿ-$=;36(+þÿþÿýÿ òÿ÷ÿâÿçÿÑÿÔÿÊÿÉÿÜÿ×ÿòÿîÿûÿûÿæÿïÿÉÿÏÿÜÿÕÿ:2FEAB57" óÿ÷ÿæÿêÿàÿãÿâÿãÿèÿèÿñÿðÿÿÿ)( üÿüÿíÿïÿåÿæÿÝÿßÿÒÿÕÿÏÿÑÿÝÿÛÿöÿñÿ '&!$éÿëÿîÿêÿ#G>XX>Eìÿõÿ¸ÿÀÿ¢ÿ ÿ´ÿ®ÿÇÿÄÿâÿÛÿ ")òÿÖÿ×ÿäÿßÿøÿôÿ83%aP‰…“ŠÍÃMŠHþÌþxü¶üýÁüÿ÷þªK·”©¿ªëpªëÿïÿšZꪪõnþIÿ÷ú~ûUûêúÓþþ[p_¢*ÿfÿµþ®þÐÿxÿv)Õæw¨Ý·ÿÝÿ­ÿšÿ6MS'):5ÔÿþÿvþÎþ>ýlý„ýVý ÿ³þ~? ú ÌÜ€ˆ{/Ÿ˜å~ÿÆÿþ²þbþaþÑþ±þ¸ÿ„ÿw]So”ÿ¾ÿ7ÿ;ÿ˜ÿxÿC϶¯ÅQZfS´£”§(‰ÿ¢ÿÿ)ÿXþ|þ8þ-þÿÝþÅÿµÿªÿ¹ÿ¦ÿ—ÿ* []0’yˆ&èÿíÿúÿôÿdB> çÑÍß>]§Ç$sÿ‰ÿ5ÿ;ÿ)ÿ,ÿ/ÿ.ÿ=ÿ>ÿøþÿ/þcþqý‘ý^ýTýÏýµýbþFþÿëþÿÿÉÿ Ð÷ÃϘ½ƒ¡xÖßÀ<ÿ³ÿ¿ýüý‡ý}ýfþ+þ]ÿ:ÿúþ;ÿìüxýàú9û­úŒúhüðû$ÿ†þÿjžlã4çMßÿõÿR%{3ΆV[o¼ÿ-þ­þƒþþ”þ“þþþÕþ,ãÿ&5@÷ÿ÷€ªdÿªÿ)þiþ/ýeýHü{üíûäûwýõüU¾ÿº¤¨Øþ:ÿQý ý}üŒü%þŠýAPPÞÉÉðÉ©œµ)s ¢ _  q=üòôõøè¥êÒäkåëå7åAïŸìRþ+û‹,Ÿ Ø “†Œ à n Í žÁ }' Ú#ýRñ8óìêáë…ê0êDð¶îò÷œöcúuúøšøUøÒ÷°ýIüm0 X çu¹jwh–Òüþ‹ù ú{ø™øùçøúú•ø6ù/õßõõŸôŠúù•e„D  +îhÃ<üýüKüÐûM[ÿèHç‘|‚ïe‹“R_ ¦ \þZú7ýÍîäðéèéâçÜç3ìÁêi÷°ô¢ly ÄÕ ~ ¤ Ç v²Òàæ–TÉç jüÿòðócí#î0ì_ì‰í í~ò8ñùÏ÷\ýÁüÃÿ:ÿáÎ ¦ û Ù n ‚ “ ÈÜÿ zä6&˜üUý‚ûˆûÿûèûhüGü³ýUý½þ­þý ýîù†ú@ùù3übû§¿ÿ|·ŒhcÄýÓþGý£üÁÚa ƒ  € Ð|iú?ü:óøóèõ¬ô5û†úÉù¯úkõ>ööóô’ô\ôù”÷~¢ŽcªŸe‚±: 1PþyþÂü#ýÃùŸú~õtöýñ¦ò×ðßð\ó‹òTùß÷[ÿn Ä 1 ñ Ì™òIéJý*þùú0ûGüçûþÄýEÿáþ¹ÆÂù7ŒÞ.éYú£û2ö¹öÑöyö×øŽø2úåù†ý üXq£hÙ¶¯o‘0ÿxPû“û.ÿÎý<ë ÚBoWÚÒSþ|ÿ+û}û3úŠúèô“öbìîsêê­ñÍï»ûŸùÑ=6¬èšJQg ×M}:¶Ž×°ýµþ8õu÷ì§íQëÀêBò‹ð&ûKù-Dl : p Ì Áã]õK@©–ç?¨þÿðùæúÀ÷Ö÷ ûúùQª¾ Nu  m ™ ÐÙ[ùãúOõÍõ‹õCõuø¹÷áû@û5ý3ýôüý‰þóýÛ ¸ öæ _JõY÷Ïñ«ñÈùB÷W0”1š lÿ/»ôšöÑïYðñið-õeôlöŸöÎó…ô9óðòÚùä÷‘˜V ë_mÞƒô~÷Fù§óèóYõ»ô;øº÷AùEùá÷cø,õÌõèôšôûHù¤]å ‘ sT4 >ÍÊ—ûIýW÷Ë÷[÷K÷ë÷Õ÷¸úÏù‡æÿ·¯à ¥  $סKûƒüeø°ø¸÷Û÷Ðö÷ƒ÷8÷Gú°ùéüiü#Dÿíx á ö J* wû†þ5ï@ñmîxíúR÷Ž B:C»Â»'þ{ÖôÃõörõ¸ö1÷-ñ¶ò¯ë£ì]êtêlí^ìù»õÍ  8kè!w"è0£ 9`è\÷ÈøLöÛõãù.ùÞø°ù©òô8ï‘ïbñ³ð ÷šõ[¼þ[Í Ì«h _ŸxÍüýýJøýøuø×÷&þÚü±Ù8ü\ýú3úXÿáu¯ Ä R ¿ ” wýèð0òåìÊìØðÐï¯öYõHþüÑØ±Ø™î¿Ú™ é ,øú½ïüðñçï—ý=ú¡ ã¾7Nô`ùÚýuéìåTågè‹çÎí°ìTôèòzû úc>“¹ˆîŠ—+Ä @ÿ«+ôUö8îùî­îeîÚðð¨óÝòîùJø” ^(¼É “ a %^0þÿÛû7üdûYûÊüXüÃþ„þ†þÈþ,þíýyt  ¥   3 ªOûýƒð^ò¨í‹í¬òIñUú¶ø0¤—É  yŽkäiÙ­Æ©†ù_û}ñðòäððvüùù— åaÜ "› ßøÓýHç4ê‰â¯âmè±æiò]ðÃù±øÛû¹ûºüDüu°³ ¤ÛÅÆœû Úøþû‘î%ð7íâìÔò^ñ¾ùxøFýåüZýýËüØüÐýpý²£3¸Û ? B ÌðLøÄùSõõ­÷æöý-ü}…uq›‡î6 fv † ÃÕWÿ#ŸõÓ÷kíÚîûì^ìLõó'ùý²€   ³ )e×êœ-Áú üŠñ óaðØï¢øBövâ ^ï#Ê" |à ùî]ó~àÔâÑÜÒÜräâ”ò¦ïaüûçÿ5ÿ;=Ì$e­jßñfIÛøÖý_çê\ääëdé¦ô¥ò5þeü«dÿ,𘂚 ˜ a/ ¿C úüaóDôÀôÉóûú3//ü! à z« Á '¯ÿýÁ÷ºù¶ï&ñ)îìíRóüñÁúù.6& § m •ì ÁÀ=›þÃþ¬ùÂú¥õYöêôÐôXø8÷ÜDÿæˆ õ›·dà˜ûùÿîè~ìa߈àâÏàRëPé”õyóÓý* n† ÑnSÙew©—Îõoø ì¹í¨épé;ð]îúø=‚V‹D¼3;ï¹–Èþoþâþ.ü¼üiùòùãøªø™ý)ü®ŽrÜ bf ¾ßd‘ö¯øQð'ñßðXðÙõ°ôQûYú ÿ{þsò-w9œGC€ï£=Kÿ†Ž÷{ù<ðdñºðÐïŠúê÷ -®È?|¿Ê ¢ô-øŸçìéàâ!ã•èËæüñVð´õtõŽ÷Âö,kþÿÞ îdÏ0˜Þú5þuìzîSêê^ï î ÷WõþÚüîÆÿûÿ·þþÝè'® Ž 8d¸þ^eørùBögöAø’÷þ ü·z A QHì ø ¾‚ÙûÁýƒôÓõJñ¦ñdòêñºö®õgü3û}z¬Þ–-ÄM¶ªîÕËVú?üÚòôó[òÛù3ø 4 » y’Ÿl ˜hô6÷fèÛêá"â«â·á†ëJéˆø{õÛ*Ú»! 1~aüt•ø û×ðôñ%ðèïmó¿ò‰ö öù‰øSü”ûÈÿÿó<ÊçÆ a €<æÑùØú¯÷ë÷Ã÷¹÷Áùùrªþ+ #«¯ð<1 ~ Huè÷TúMï·ðÚí§íQòñÈø_÷)ÿÜý‡ˆ\@kŒ–;úæ@Eü/÷zù‰ï±ðQðrïÉù7÷Sñæö޾Ÿ éñ³õ†çÜèÀæœæØè{è‡ì‹ë‘ôò?ÿùü´ k lð3®¿à;Œßóaö©ëí ëêcó!ñý·û òÿóÿgÿ(ÿh§äêO@ – Z—ù²ûdòˆó+ñéð ÷õ¶Djlb³>’õÒôÄ÷ë‹ìÕêúéwôïñ^ÿtý“SŒí­´ƒ=7»5Z ¯ ØcFú‡ýßíÖï”î.í²ûdøç ÓeOç Áíþý™¶óòô@òmòzïlðìzì[î‰í-ò¡ñ”õŠô&kþ©"%‘#¾!|#I{ *´î|ò¬åYæÖìvêåøºöôýˆýqý±ýü\ü›ûûd¸þ† ó×,– ¤‹nÑóMö3ëŽìñìlëýµøTz :MsÑP &DüZìïÊç·ç€î§ì+÷‹õ¸ü¾û‹¿ÿú@äRm îÜ b Y @<òøü¯í\ï×íØìŠ÷õ¨ÃáÕ$™-  øYüxæ±é’ÞOßÐãüájïíø¤ö<þëüŸ›ªe$!÷¾ø àô.úÿVçµê{ÞœßáßæÞŽëjè”þWú»ÿ ²Ð< ¦cce/`ÿ*ìü?ýjûòûsöÔ÷ òvò¨ø9ö3ºÌÀ ׈]ä Qï¨óxâ÷ãå˜ã†ðÚíEýú~®È » ¡š' Ǹ T ‹˜ âû·þäñ~ó»îüîòñ­`ýk¢Q#Õ"‚ª¶ÿ:ïò¶ä·æ;á#ášêÆçPøöü5üÓüü‰"6X–Sa‰ôtí(ñþåNæyëòéióéñ üúÓ Ì !W`ŸòeÛó*ïýþøAùNõ[õZû.ùÀÀík¾B` uâþxð?óCê»ê¨î5íªöõ7ýôû³‰J¯íáåyå C v # ÞDIõê÷,íOî6ïäíõü(ùµ! E!ó‘ +"ŒZ÷ƒüqãàæÝ“ÝÖæ,ä?ôÍñÎúú üàû<ÿ8þïõÿš1#ƒ#jDÿEªéŸí´Þà}â–à&ó!ïE_ ¦ u \ !A!Lþžþÿµþ§„Âþ{ÿû¼ûMûÃú„ÿFÜ{ ¡ , Œ Ͱ/üwþìóEõoðØð¨ðSð{õô¼ýü\¥¥~)È º ã $ þ»ãü5ÿ]ó&õ®ïÊïÅõ¥óIcŒ™Ú" "…®Žüu”èyëFå*åuèâçSìeëáò~ñb÷ïö8ùløòú2‹'\&"3$=nDÜélîmÜ•Ý)å âeöókÿûÒÅ P R  n¶Â³Ûáù†üƒðÉñcòEñšû’ùÚ¨µµ ë Påÿ÷pøÙó]ô$ògòÙòXòôöøõçúOúÈýýü/è ?ÄÓù™á¢óæõ…îãîYòÀðtÿ÷û‘Ø ×ÙþL‡¬ úú[ýfñFóìêæëÄêmêíÖì›ëì]íìãüŒøð*_# !c&—&}!Š –ŽðÒõZáãÊå‘ãTô<ñëÿþüU2paÍkÕ œ 9 Œ½ôÚöèïðôšòÓþ,ü— ¸ ¢Ó£Sbù°úA÷[÷×÷§÷Ãøø‡øâø õöàòÑò\úÜ÷E sÉ…ÚKªöýE†êôísæxå÷XòÉí yá Ç!r¬ØúêÿÔçë=à á ãæá­í-ë øtöêûŽûvÿ,þ ߟÏ_’7œ <ìiðãÅãæ å|ïíóÿ4üæ ò º ƾ4±Âÿ²üˆü\þ_ýê~Vÿ?™üÍü›ÿ¶þ7«­_¯54ÀðþèÀõz÷½ñ"òŸòQòjõËôHû±ùGã  ï~“A Áÿ¥“÷$ù=õùôþXû³ ¡ "­ÆÌäØœÛígñãeä&âHââmâ6è3æ¦÷ô]‹¦|ºQâ" " ªööþžàíƒñ—âä­åïãTò—ïãýÂûvl"é Ö¬y mJÀý–þ„ù{ú$øøûMúFýüüHÿ‡þ-g 7 ¨ Fòj ÿ3³òõ©è6ê@éNè!òð´üyúç7^›Bû B`i®ùûIö—öÛú*ùIDøA%B¾F Âü†þÅ÷ømô+õàð¥ñ†ídî9è‘é7ååÎñ†íO "÷"³à'ì'ƒ"C$Áõûà¨âæñâ±øõûó½ºé!úþ¡ÿ‘þ þ"2 ¸ }“û²ý˜ö÷ï÷f÷ý¶ûo7ÿ ú ¾ U A\ù,ú0økøÈöA÷xöAöõøtø¥ø)ùåöÙö^þ¾ûA - •$.TXööøðUð²ùKöœ Ö,rh¢÷”üåèÐßëßSåÈãVîìÚõ¿ô½øŒø2ûAúIé$-"Í$Œ%Ôq5Zè†ì_áUá©érç®óÐñ™ü»ú 7Ó O ž ø áp.ºÿHûðû<û#û¤û¬û!ü¿û‘CÿD=ÎÒçž:$ÿ¬´ö}øñññÃïáï<ñ±ð¤øtöÙl¦iâ  ;ÿh÷\ø‡÷sö£•²ÙÂ}Âÿ¦\î³ñ´æ0ç<í+ëFöõ­ôö¶íóîÆî¡íWú9÷ ×{…Í)) Å#Í@ åñÃõMç§ècèLç!óVð»ÿoý…¥¶‰%‘‰^îÿQ¸$£üÙý«÷xøÁøí÷ÎþiýNŒ~. ¦K êvù×ú×õuöêò¢óSñHñëöõj6ÿCR-  ‘ Âqüåüíÿþ©  þ÷ ª‚h¹ó tîKórâwãyæ;åèéñé=é;é4ïPíúä÷-*mÔ å!\k(x(ÝT SÏ ®óÚ÷àä7ç¿ã¹âPðí™ÿÀü/ °k & Ó É ’ŒýPþ·ü†üíý¸ýkýÄý`ûÞûzú}úÖüüs8 x @³\ £ÿ¾¤ñ?ô#êëñêHêzòˆð³þõûš s ð¤  „fþÿþVþúýÝ ¶ ­V¦a› ±ýt;òyôÇêìÞçGèyèEèTë°êíð”ïúî÷Ò$b™Ãƒ:" " MÈ ÀóËöRì9íÙë²ëüï­îÁúøyÍ a ¾ _ ßÎ)ˆû­übùbùúú4øâø÷D÷²ý÷û›½  eÄ : q DH¹óßõïŒïî¡îçñ±ðyýuúz -‡wF : ŒÂüwþáùšùƒòÿ{ † ç½SÏE º óþ· ó3õÅí{îëèëç èç”æŸîŒìÉû¥ø± ËL¹$$­, æ ùœüîåïŒîî»òàñ™÷yömÿ‰ýJ   © ´¸}þõÿ˜øŠù ø±÷ û‚úü)üÈüxü^lÿs£´å[ – ¿ Š ´^ôÓö+í6îuì=ìïòìðgõý¸ Õ[A âÿ…AúûüÃúÿæØÿ(÷® ´ dõÔólökí×íJòÎðÚõ$öìíQðåæŠçüìÊêûÆ÷¿ ƒ¯ ¦ˆ(œ(ÎI0v´õ¶÷Mïyð íí ôÔñ»ý /G®ž&`ŠÆ,Â[c¢æ÷®ù.ó«óÈô ôûpù º ˆ\Æž£÷ úñ÷ññÂðöƒô™ þç 1 N É Âf#þŸÿÜø¨ù'ù^ø+šÿ!r ¥WjçE(6ü½1ê@í£äÖäÊççì-ëQòÙð5ùøüû°ûè ÿ! Ò”tññÝ 8 }õ$ú%äÉæëãŠâuñ1îíýjç Pž $Éÿ ÞûËûÿZþÿÚÿåü“ýLù:úKô^õØòpòˆûåø¢ ÀÍÝ]¥¦÷núfí ï¿ì ì[öÁó‡ø   P dþäüÉý™þ¦ÿdþ Éã´²¯A fÿôtö×í„î!ï¹î@ïÂïvìøìBïî&øöEùÿ7 ¿š3m1œ¼cûdý÷ñáóîî‘óçñ¦üÌú=lš C ò © L{lü„ýü°ûþÉýªýâýÂüíü0û®ûLøÕøœùªø×xR Û } K cmbú~üÁñjóWîpîÑô½òM¼þA :n º Ÿ5QlÏ 1 aƒm…²d ç ÝláôI÷þìTîXéêøçè³ëdê>õóÝþ ýCä¹ÕG3Ö× G )™eŽŒúOüáô¬õÍóéóÀôSôãûŸù‚ œôÂˆÇ qþ4lù=ú(÷~÷Ôùªø’œ<‘ô_ýþêüÎüuý_ý–þ#þSÈ+²%üqýB÷ øÀötö“ûú^\9 ? m . ~}ý¸þúoúàü‘ûïûÏE7{¯õýLäíªðœæËçUâ[ãDàMàç1å”öDó°å:ýMü"–#×·« $ûqýéï_òµèséî÷ëlûø¢™ µ ýG v @ünþ@øJøûgúcüeüÞûîûRü;üíû%üüüѪ 4 " ˆÜ÷ÂùTñiò”ïvïeõ‹ó¯-þê bÖ ¸ Œ ® ³Éúçû'ûmú³¨° t X î0 ) Pù³üØìïØçXèíêÚé@òãðöÜõ~õ¡õìøˆ÷á"iÕ \¸º#õûò1ö·éóêëê}ö~óõÕÁ ù ĸYü„ýðúÂúŸþ¦ýVÛôÆëúVüRößöQøQ÷e]þ™ Ð[ F bl ûËýÈñ2ó'ððŽôQóÀý|ûßµˆ ^ © c]Éÿ-fýÿýtü*üïÌE á ºªS6ò¸õ§ç7éÐåÌåŸéfè.ôtñÙþœ8þÿªùþ~ Ø IÅ`ÈÏô ¡ðAõ–ä·å/êìçŸùéõ× ¡¤¹„ûSÿ3òØò)÷kõ÷äþÓŒ‡” ýü Vñóó}ñ_ÿ}üú õÀ¸@ gúcýð–ñ†ïñîW÷<õR« Þ Ó ì øµ·ü¿ýÑù;úIüûÌ_¶+4F ‘ÛüóÿÓðóëëâïîØøj÷”÷üøLí‘ï’é^éôÕðÿLÒ¾˜&Ù%p« ÐJ ÷4ú»í0ïì<ìôôñµÿaýO{‚Ÿ)Xž:·ÒK^ÇöùßúÐü$ô õðó‹óù¢÷t*¢ Ç )‹>~ `üŒþõRöÒñ.òÞóæòÃûÍù¾XˆFanÈݬ©ÿ à‰ ï ¾%ò {Ò€×ö%ùÁðpñ]ò¬ñŸõ.õõˆõ8ó•ó£ófóÑöàõªþü S¦´mó Ñ% ì Åp¼ú©ü§ôªõàòó!õ'ô-þ­û Ô/ Ž ?mü­ýøáøÔúôù°Aÿ¤|ªuû?ýÁö÷ƒúùj­£ïňÜÿ»äö¨øó8ó<øö](m  º  ÁÈú'üõ¶õ<û‡ù”¢6 X ºWßÏW n ürþïõãöeðüñ çté—äuä4ëcéªõaóAMÿõ; .Ç‹ø? "  ¼ ÷] ägú~üÜîñ¬ê¢êðóþðtîVÛ øùÈûY÷÷ ý‘û’Ñ–QìûEý—÷%øâù¬ø¿4¨  ± `ráó öœïßïóéñÓû¥ùfQg ! Z»šË¤ýäýþÉýÅÿýq «œ Q B C T  Ö'5þžÿö-ø«é£ìߟà"áŒß9ïÒë.ÿôûÀ ò QjRnøià y áÊ÷ ú—êáì²æÆæ!îÊëþ[úwv ™ex ´Ò8ûügúMúÚûvûbý(ýÆü+ýFúÂúƒû¾ú>V :  » S¹úzüNô]õóìò´öµõ2üû¼žSB6øõ`fâ`)æiDùR 6 #Ñ¥þâÿ7õ¡÷õêßì#ç‡ç1èàçîìqëbúÁö 7 ¬Žð/Hz ]Š'Øÿ ¼þCÿ"÷hùÀì¢îkëÅê°ô5ò’ˆÿ£: ‚ Œþ$øÐø<ùøšý“üKÂjüý,ûÞúøÿ±þ‰{Åqå×ùlûVõçõðõyõ;úù,—ÿ2¤I (4›¿ w Ï à ¼ Ä(}HJüâþ.ðSòì·ìZìéìçuèè°æ÷/ó•˜^6_A?Æ7ÜÞ“cüÅü­úZûÖô=öËðEñBññô)óþ#û—5 QXú Ný­ÿd÷øk÷#÷Güâúì|ŠT+ü&þøøÿýƒª © ˆ ûÂýðåñÍîîK÷2õ¬ìþ7ÿ¾ ` uz †·X]Åy–µ–ão ¤˜â± Y 5»™ö3ø0òÜòóïpð î{î$íPí_îëíÆôØòíeÿ£^¡šÂ½¨Ž +ühþõ'öžòóãï¥ð¤îxîÏõ|óÎ¸Ê “ì÷ Å áÿëšùZúBûeúouÿg»ÃüþQøðøÍùëø"Mÿ_ àV g $“ùNüŸðÓñfñ˜ðÞ÷höÕþ\ý§3ª 8 ªv”GÔrÖÃÿÍL^ 4 Ç ï º ƒ •<âørûþïNñÃïZï?ðÃðVê×ëéQèÁõAò>ÁÑ-ƒ¿áâ¡nyÿj ùïùMúZú»öö÷Cñ:òOð.ð€ó—òµûUù¨ (à›¬wBþâCôAõoögõàüûIýeDíhiüýs½þàe ì Ðì€ö¶øDîªï#îGíÈ÷Xõº©ÌQ 0 å ä F oµ þ0þýdýmü"ü£ªë U Ô † ÉÑþ$ˆù¬úÏôÅõÔñSòJð™ðoï‡ï6ñðì÷ öÒ÷{»Ú¹Óê±oÐ üªþ öüöô}ô¬ð¯ñní²íŠò˜ð9ÿVü•  —õ Àö~û¸üDû¥úŠÿ£þü *ÿ¤ÿÛýòý3ÿ²þîhâðzHÚþ÷ÁùCò ó%ótòÌø…÷%þ+ýVc1ß T ´  ŒT¶ÝÝüþ´ùßùþý]ü1àöK[ E aþø/öR÷Iôƒôíòeó°ñÎñûò©ò…óªó‰ôÜóÿÙû…è œi7¶ø\2 E ¸ù¥üïó ô~÷ÉöºõîöMïjð¢ð™ïiøºö _þ³ h{Žñ íNƒÊüëüÿ€þ`FšŠ.w@ýöýüÛûê–ÿ-}BS¾ûÏý™óöô¢ò+ò‰ø÷RþiýuÌõ¼ , œ ë ž£V‹ü•ýÕú¡ú‡ÿ&þµ˜çð¹Žÿ)ùúœùèø*ýÎüFùíú;ðò_ì—ìËðCï]ýúñC »ÓÄ4ó­© 8 JeŸû9ýþø+ùõ"÷Cëíáèè|õBòêùÿ€u`  Ó!F ½ÿßBÿëþ2*þ…þ«þ4þ»zFÿÛÿUývý5ÿ—þý=ÿîÿÇûŒü·øYùÚö÷Öøø‰þ;ý¥»‡§þ   ZüÀýiúIúü¯ûVý÷ü¹mW 7 O “ˆ|¦Éútüòò‚ôïlïªïsï&ñåð4õêóÕÿýé J ÄŸx_ùnhùËã÷&úòÀòÁñÔñwðñïï–óò¨ü¯ú&pB r ÕÚ˜ã®Óú•ü÷Q÷}øü÷NübûÂÿ O«–`9BÿªÿÂû•üø ù$øè÷˜úú%ý«üå×ÿÒ2ã N s „ @}Jç/ýöý=ùöùú%ù®× =  ê À%{øÀúñ<ò†ï[ïäó»òµøø-ø²ø¥÷'÷(þô ©#@ó±Xî š Øÿb™öø¹ó%ôžð°ñÜë¯ìîÙìùö©û ´ ¸~ û F–“ÚMþóþGûáû"ú+úõû_û*ÿÞð×É9"Íþºùµúqö÷Mõ[õ9÷öÖûÈú‹Ÿÿ ¾ 4 ˜ Ô R©ù¡ú¯÷í÷„÷_÷åüûœxE§¹ tþîÿ?û‘û‹ù úÝõ¼öôòóWñºñÅñ[ñ8ùñöååßi?Y®Öí% ^ 8ZQùCûtò­óSïÆïð¥ïÄóêòOøf÷½ýiü¹Ô È ^ ö ePT†ÚúÜûŒùTùý6üÿVÿfÿwÿBìÿ¡|½¡ÿºÿ¾ÿÄÿ¨ý`þ–ùZú ùÆøxü¸û+ÿÄþU²ûÎ= £ < å ò-‹þ†ÿ_ûÌûûûúÝütüwÿÉþ&â ›/G êþ/øóøù¢ø›ùÿùôõâö ô ôžõ)õXù=øP‰Û Ù·›3 õ ŤkKDø§ù¨õÜõ|õ´õ ôcôfô ô¹÷ôö¬ûÚúâ•ÿ“$á L ±  R5 y×`ütýµúú»ýïüTT)ÿPÿêþèþMÿ*ÿ‰?mqqÿ/2ûüù/ùbû£úÿQþ·0±èCN¢ÄÀþìÿ¡û ü˜û|û'ýüæ‰ ª ` íØ ü=ý ûÖú´ûèû÷Ôø óÈó¯òˆò™ôôíùMøðûžºþŒ³ Äü * ’  ù„òû˜ý¨õÊö ò¢òÚñ ñ$õSô:ùvøÇüüûF()2¿px­5É]=»þ\ÿþêý‹ÿ¶„nbÿIÿÁþÒþñþãþ"ÿ#ÿ+þˆþvû üù^ùäùhù·ýÒüR¨ö]I‚t N Oÿíûü"þýÿEÿÉýåýgõÿš ôÎ „ ߘøðù¤öºö?ööœôïô¸õ.õ˜ùÉø(ýrü3ÖÇ %+¼ Ñ J © é ¬ ™ ö Åþc¬ôFöÞòžò)öxõj÷÷ûõUö‚ööjûúrôèúÕ ¬ ð; ôhÓÁüBý~ü?üðþXþJõq´ÿ†þœþiÿÿNDÀþFÿ ü“ü·úÛúûâú>üñûHþÌý޹pLI Ê " *¨¶üCý ü"üuûŽûÓýÄü¤È4 ú SÛ™þ«ÿ›ü¿üsü“üªûñûîøäùÝñ§ó@íhíöó›Z%PÛ‘a’±o G ËÕý·ÿ¦õ&÷§ópó÷_ö÷²÷óëóàó óPü)ú=ZØ ! % º nxò^HN|«þÿiþ2þOåÿ "[¦ÿ°ÿwÿÿ\þ¦þýUýƒüªüfû¶û^úlúAü•û5kÿˆ;áƒvß>f¨ÿ2ïýþÀýÃýgþ2þ–ÿ^ÿL"~ÍßY²ÎAüÉý¾ù ùaüñû¢ú‰ûªö6÷„øª÷¬üíû¨ÿéþþZÆ  • s ‡H5   a zþkö×öë÷8÷´øùïõuö¥ö2ö\ùõø]ûÑú"wÿ[' µ ü³i#äÏí ýeý·þþ ÓS•÷ÿàÿlywþÿ·üÈüÑþ2þAÚüÅýžú¼úýaüÇÿeÿ‹a7´‚ãöô„Pÿ+žüæüSþ ýt)syþëI±{õýpýýý ûãû™öx÷7õ=õöïõRø˜÷Uÿtý4” § W ÿ+Í Ú ‰ Cý+ÿùùúÅúÄúrø5ùNõÖõYô|ô˜ôrôžøI÷±¨ÿå?ˆ%éÕòr¶ ›¤ÄÂÿA…þ‘þ­þ²þ÷ü„ýSûlûtýÆüþÿ»ÿûþwÿšüýüùû°ý7ý~êÿD “‚kŽ\ X:»Üþ²ÿsûðûËü ü6|Œ¯ÿŠÿ?ü0¤Åþ—sûûÙÿ[ÿÚbõT÷ôVóyúCùJýúüHæÿ3 ²h ì éIŽ €ç o f û¨ûVýü¨ýKþØ÷*ù½ôíôôõ¨õõ÷z÷ÿü—ûKæP0Õ2õ&)ýWjªÌÕZvñÿV{ýþ<ûžûûÙúýƒü·ÿ:ÿ½½9ÿ¼ÿ@ý‘ý÷ýŒýÀ)øï,X|2gx¿CsýÊýþ½ýrÿVÿŸþéþ¿þeþìÿ‹âÅ£ÿž¿ýÆýõþ¸þþ™þúõúš÷Ä÷¤ùùø…üüLý9ý‡ÿ³þ˜" þ 6 e Ýj 3ðÄ4ÿIÿTÿrÿ«ûéü2õpö¡ó_óë÷ÛöLü•ûèþhþõlÐ×W¸¸Ž>¬ëßÿÃ:“ÿ9güúüžû‚û¾ý8ýðþöþ<ýºýèûü»üzü9þçýž/Êæ.ùç5‹RËìûüuý’ü‡ü¢ü›ü†þèýÈTØ^BÉÿ±…A jþÜ×ù…ùéVÿúÿgõr÷ÉôÇóÇûúmü¹ü„þLý¯Ã ‘ ²W8ß  ¾ô»üý’ÿ£ÿÏüöÄø­ô^ô€øÏ÷pù|ùhûúz46;ÅéÍÒÒ÷x´4¢zÐÿÖÿ”ý—ýfþGþÂý þEý/ýÒþsþÙþ$ÿ üýý¡üj¾ÿ5emÿÁÿQÅÿ¬ü—µŒ/¥¤ý6þµûëû„ýÌüÓ=zu¯k“©ö¹{ R¿ü#ýìû$ü”ù@úìöX÷2÷ëö5úmùDÿþš¬þÚæ°ŸÇ A Ê “™K5õÿ»îø¬úÞó^ô¡õõÝ÷¥÷>ùÃø3þäüB…ö„!®J€ã.Ü¥òÿÜýdýÉüÃüžü¾üaüXüPýý!þþúýþþøý-ÿÞþðŒDik…l)‰¾ÿC+þfþyý£ý$ý$ý‡þþ»VÖ§Ué…õÄ?ÿnÿžÚj×ü¶ýO÷½÷¸øFøMùwù úwùHÿ»@; Õ07 #X^ ‹½p¼sGwÿ$€ø„ùKøö÷Gù`ùGøbø(û'úûÿ=ÿjž1·¿;kàë©´cÛåGª˜·ÿ0püý´ûûøý‰ý(þdþÆüóüÖýlýÚÿÿ"P'¸eÁ”C%1TÙ‡7ýäýñûñûýý¥ÿBÿÇì½æ¡0é,bv2ZþåþDýbýüüýRüwü­ûÖû-úžúÏøåø1üúú‚þþÏWÄHÂ\û”˜}ÿâÿ€þÂþ;üãü;ùÌùø/øùºøúú€úÏý5ýuÆ•©g‡ <ù—æ<¸²â7½ÿÚý=þ¹üéü=üOü|üXü»ýxý+þFþJý~ý–þþ¡À`Xvï…s±if­ªÿX¬ü8ýªû¢û·ýýóÿ¿ÿ¦þ&ÿþ¶ýØ;< ¹b؃þÿ>þÃý §(³”ülý¢øzùKözö¥ùlø–?ÿÜïUINyƒ s ‘T#pû>Üÿl ü`ýùÎùo÷÷ú.ùüýZý9þ‘þnü©üþ¢ýmxÍô{ú:êéNÎì\qõïþ$ÿŒþ“þGþgþÖüHýúúKûrûû'þýÔÿ`[rdù̃"ëÖhdÿ þþþ/þ¦üý¸ücüEoÿ΂€Dqö8±”œñþºþÀ?–ÿ¼²ø ú$÷Þö,úœù;û.û3ýuüêöŸ¢”Q˜r  ¦+Åÿ7ˆä¯9 ühýÕøÿøûtúküoüŠû¶û°ü9üŒÿýþ/ñ áñóge+è~œ‚ ”ÿÑÿ­ÿ‘ÿŽÿÁÿ×ýHþ©üÍüàüÏüýý¸ýzýÓÿJÿÜ‹ýŒŒM «ÁT 7ýºý‘ý&ýƒóÿ¡ÿ„ý+þý¬üôòÿÇ/–ž ƒÃÿ<ÿ’ÿ[ÿÈþXÿµùõúÈöÚöûÔùÿÿcÿPÿÆÿ_þ0þ\.ú?T˜ƒ2qƒ˜ý(NÊ"ýàý?ú¾úÒù²ùû%ûâüÆüÁüÖü‹ý*ý›áÿø·¡ÌvDEÎDBòQvpÕ€þëþ=ýmýÊüæüüGü«û­û‡üEü/þÏý=ÃÿHä# aCOã>=1füýŒûƒû¶ükü"þÙýÿçþHÿ5ÿÿdÉöR^ÊsÇø}œÿËÿQûúûHúNúsú{úŠúlúñüAü¤ÿOÿ8ÿqÿ^«ÿc÷  }Ÿì9¢È3ÿíÿtüÈüÒûòûíú"û ûÙúÔüzü8ý^ý€üˆüäþþs‘³Ð÷LTö:ïð†i ÿÿ4ÿ@ÿþrþ¬üéüüAüyûœû†üüæÿ-åPð®¦%yî: ÿ»2üüÑüü_ýlýý ýóþgþÒ`Sk¨"ƒ–ƒEÿ†uý6ýΡ4 ü ýÚùùùéú©ú°û˜ûòü‹ü­ÿÿ®YcãsÃ?{/¯ÿýÿY¼ÉÞ^ÿb‘ûüÁûxû+ýûüý1ýýýÀý¢ýFþ$þðÿhÿÞGÄÛ?‘=üÌ„l[áLÿaÿùþ!ÿ}ýÚýŒüžüýæüsý`ýÞþbþ \2KÙjÙÿPÏ”ÍýÑþYû}û<ý©ü=ÿÿ_ÿfÿ=äÿ‹&çZr»3›èþÿqþ±þnûSü øŽøú5ù§þåýˆþÿ^üŠüGäþ"õ äÔ/Ê‚ùÑýœýü ü)ýËüÕþ¥þŠý þÄú+ûƒüªûÑÊ0hRëºÿ3‡ý'{¥ÿÝÿŸÿ’ÿ»ÿ½ÿsÿˆÿ§þèþ5ý…ýSýýÇÜÿ؃è³QþÙþbÿÀþn|ZüÓüëüCüÇ{ôŒý þþŸýS§U 3’•>©y /Òþ:ÿüû­üöù/úöúúý¶ü®ý²ýÌý®ý«ÿÿÔ*ú«fcÛŽßÎ&~¶fÿ­ÿñýEþ%ý7ýLýGý¯üóü»ûÖûý“üüÿoÿ9'«pSBßZeKOËõ)¹ÿÆÿBÿnÿBþwþGþþgÖÿk+sèëþ`ÿ´þ€þäÿÿŽÿ®üý ýýÄ4È% þ™þÙý†ýo…­2±ç=|. –Ÿg!zýFþ‡û¶û•û‘û0û]ûûúîúEüðûý_ý£þUþr±º+2VÖº–(%»12±Òþüþoþ‰þJý£ý³ûýûÁû”û‘ý(ýÿÒþ\ÿVÿ™ÿ‰ÿ ìÿ ¹ð€ÉψO~É” &lÿØÿþ=þSþ*þ²ÿVÿdñVºýsþÝü›ü‚žÿ"DôþÃÿ†ýjýÔÿNÿ3o¡þÙþÖÿTÿð¯Y˜iE˜B«=ÿsÿÁÿ¼ÿüýùpù}úåù¡ýýCþiþŠýýPÿªþJg Jn ]6²¸Zrÿ-FüÉüOüü“þ+þ þæþ¾üýý²ü‰ÿþþõÚ§-%ð·À¥sžNˆÅÿÅÿ?‚HNÍš …à/,ÿ}ÿÛþÊþuÿbÿçþ ÿþ&þ¥þsþÿ(ÿ+þhþOþþ•ÕÈOg$¾ú­d¼’Ô¬„wÂCþÿrûÈûâû¤û›ü£üçûü¡üBü-ÿ§þnîɦ&†>)cÄþRXÌ{«þÛþ„þ‚þ>þdþ_ý‘ýQý<ý6þþÒþ¼þrÿAÿ³k38a‘>""õáÃÿñÿæÿÁÿr)C’T)ÞÀÿ¤ÿ5þþ”ÿ ¿þÿÈüúü¿ýZýøÿ’ÿQ|ªþÿØþyþ|”Ù¸d'òÿ8txb->¹ü]ýøü•üŸþþÿü“ýûú6ûÈûyûCýý©þGþ´ö Ë;„úÁúLФUýÿÀÿVJÿ¿ûBühüöû^þ*þŸýîýIý!ý\ÿÞþ’LWÕ¢SW‰¾bE9ϧÿÑÿ"Þÿk5V}e’ÈÿÞÿUÿkÿ€ÿaÿŸb}¾þ¤þýýüµÿÿ*þ<ÿbý?ýe¡ÿM=ëDâœÇorÁŽà}ÿÆÿ ýÿýPý-ýrþEþMþxþþùýÀÿMÿP"<NI+ã6?†³u³ÿ§ÿkÿ]ÿ–ÿÿÍþÿUþNþ†ÿ5ÿtgÀÿûÿÿ&ÿ;ÿ.ÿrÿeÿáÿ¿ÿk\%Bíÿ Ôº¾’ãfÿÿbÿQÿ;üÿ¹cF['ÆÛý%þ¯þHþ~CµÿÌýþþÒý(½ÿ«ÍŽþÿ,ý/ýäÿÿÅ'‘ùí`ß >ƒÔ<rÿÿlþºþ`ý€ýßý°ýCþNþ‘ýµýþÄý¨ÿWÿ_Oë¹8òŠ–˜m>„¬ÿD€þxþ&¿ÿp«þ¤þôüóüWþøýzÿ]ÿÿ‡ÿÅÿ¦ÿ^?‹T`&*0*€lÝÊÇØKÊÿÇÿ¡[š}Ø* ÿlÿéþÇþÏÿ«ÿUÿšÿ÷ý/þþ8þís·ÎÁÿHþ.þÿ¥þIæ§\ëÿÉÿ>ó»Á×þÿ|ÿ™ÿîþ ÿØþÎþ#ÿÿ»þæþ1þ;þ0ÿØþì 1H«AýíTÿTÿ÷þÎþ0óÿ{‡Ñÿýÿ?ÿXÿ)ÿ ÿÐÿžÿ³‘Q‡$ÿXÿzÿ>ÿÇG’‘þßþ¢þlþ8æÿÒÖe€\N§•ÖÇ7hkŠÌ,ÿlÿ¹þ·þ1ÿÿdÿjÿÿ,ÿLÿ4ÿçÿþÿÚþÿoþ_þïÿƒÿ–Xi”©!ßKé#G¡ÿCÿnþþ/þ/þÍþŸþrÿjÿàþÿ¥þ‹þ;Ôÿ"$áÿ1¸ÿ…ÿ¤<Àµÿ¢ÿdÿAù?Óÿüÿþÿáÿæÿ Ùþ ÿ"ÿìþKÿœÿcþjþ¯ÿHÿÙÇH‹ÿ~ÿ«b9?W”­ÿ»ÿøÿÜÿdSsszq¦lˆÿ¼ÿÆþÞþþþåþsÿcÿˆÿ‡ÿõÿÒÿžµMÿÿ"ÿÿ¨JP_¯ÿ½þ²þÞ>©Ž”DûýIþ ÿ“þùÁ0…ÿ,ÿâÿ©ÿ8EÿmÿÿmÿH@qÿ°ÿ9ÿÿÿ“¦¾éÿTÿÿ~"28W@ÿHÿùÿÁÿ‚~âÿbÿjÿ»ÿ£ÿÊÿÝÿ`ÿtÿ­ÿ‹ÿA0Ýÿ•ÿ‹ÿw<âëIíÿ”B›ÿ“ÿÙš»ÿAðý'þ”þJþåÿ±ÿþÿÅÿËÿüÿVNPS#1ÀÿÕÿÊÿ°ÿוO^ `“ÿuÿ.Í^ÝýŠþ‡ýýa†(‡Mþ'ÿ ý=ý=`ÜÄývþÛý^ýÆzšï<†~RuCÿqÿ©ÿeÿ Ü&þeþ ÿ¨þ!à‘þTþBÿ¿þ¤HF—‘ÿÙÿšÿrÿfI.JÃÿÍÿçÿÛÿ <-eiÚÿRÿYÿáÿ°ÿhd©ÿäÿùþÿ®ÿqÿÉ™ÔàÇÄ£·‰ÿÜÿõý=þóýÂýÚÿgÿ<»ó³ÿâÿ“ÿ„ÿw7Y=”èÐþÿ ÿÃþä‘«ô ÿJÿ—ÿFÿÛºðÿCÿÿ+æÿŠÚÿôÿ@d…ÿQÿ;ÿîþRëpöþXÿÿÕþ©lG…Kÿfÿ·ÿÿàÿäÿzGûýüÿERÿPÿ\Õç~ÿ×ÿÇþÁþ­ÿøè#h#ÿCÿbÿAÿêÿS>Ÿ“š£5Tzÿ¤ÿÿÿÅÿŽÿ¦ˆdˆ¹ÿÍÿ%øÿ±«Ïÿÿÿ]ýÿ1>7ÿÈÿ¿ýÈýòÿFÿà Åøý'þ±ÿÿÒB° ÿ{ÿËþ³þ¼ÿ„ÿ­' i­>ÿhÿºÿtÿ ×g¼þíþ’þdþÍÿ”ÿ"ÂÿÍÿíÿyg²¦ýîÎêÑÿ =ÿEÿ£ÿ‡ÿáÿåÿ‡ÿ›ÿ“ÿÿ+ oo%9Ýÿçÿëÿàÿ;$dcýÿsÿˆÿ´ÿ’ÿW–§òÿÃÿ¼ÿ ùÿgÿ€ÿÿqÿB"?Wžÿ½ÿŸÿŠÿF"ŽZg-2ôÿ·ÿ¾ÿûÿâÿn_ BtÿÿÀÿ˜ÿ«„mžÿPÿŸþŠþöÿžÿí_›bÿ„ÿºÿŒÿÑœ /jXÿsÿ±ÿ„ÿ²ƒŸÈMÿ˜ÿØþÇþüÿ´ÿ”‹ÿÕÿ×þÜþ©ÿjÿ‹nxˆ'1/'ud·®c„›ÿÀÿ²ÿÿÅŒÙýkÿÂÿ“þŸþ?ÿ ÿôÿ04àÿöÿRÿpÿCÿ.ÿY?*•ÏÉÿÚÿ]*åæI6ÿHÿ³ÿ‡ÿYH.gÿ†ÿRÿHÿÛÿ·ÿiQox)5&!*0Öÿìÿªÿ§ÿñÿàÿÌÿÚÿâÿÔÿ8*(5ÜÿéÿÑÿÏÿæÿåÿ÷ÿðÿ7!rm4LÐÿßÿëÿÙÿO?:JÊÿßÿÈÿ¾ÿðÿšÿ¦ÿ³ÿ¥ÿòÿëÿëÿñÿùÿðÿ,$æÿèÿ01-(˜vöñK‚Lÿuÿ=ÿ-ÿ¸ÿ¤ÿÜÿÞÿÊÿÍÿ´ÿ»ÿ|ÿˆÿ‹ÿ}ÿóÿohT]\O´žÎÒn†ùÿ ÜÿÚÿÿÿúÿÛÿîÿNÿnÿÿÿwÿXÿûÿìÿíÿýÿ¦ÿ°ÿÛÿÃÿsS°²PjþÿP4¹«qÑÿíÿ¥ÿ¡ÿÜÿÒÿÖÿáÿˆÿšÿqÿnÿÄÿ®ÿ,HH(üÿÿÿ)' ÛÿãÿÙÿ×ÿþÿýÿÛÿàÿüÿñÿ+&!@/¤’™¾ÿèÿJÿUÿgÿ_ÿƒÿ‚ÿ•ÿÿåÿÑÿ.$KEd_P\þÿ üÿ¦„ÌÖ:_žÿ¹ÿXÿbÿaÿYÿ¼ÿ¥ÿ¿ÿÚÿXÿfÿqÿaÿÐÿ½ÿ%ž‚ùîÌÛ~‡kn8zÿœÿ:ÿ8ÿ¬ÿŽÿ) -ºÿÒÿ‹ÿŒÿÞÿÆÿ6+ ÿ°ÿ¼ÿªÿ2bb%7ÓÿâÿÉÿÄÿo†@Q ½ÿÎÿ‡ÿÿœÿ“ÿ¶ÿµÿ’ÿœÿÿ†ÿìÿ¢Œ­8ÉÿÐÿÞÿÓÿ gVšUq¦ÿÈÿ~ÿtÿçÿ"cÿŠÿ5ÿ)ÿçÿ»ÿ_T>I#"72IDhbWcßÿûÿ¦ÿ£ÿíÿ&0¤ÿÅÿYÿXÿ°ÿ˜ÿÿÿ A0yTd ùÿôÿØÿâÿÑÿËÿ/0ýÿ ÌÿÕÿ¹ÿ½ÿŸÿ¥ÿ«ÿ£ÿìÿF=)4óÿýÿúÿõÿ8(yms{/Ùÿàÿìÿåÿãÿíÿÿ¢ÿ‰ÿ~ÿóÿÜÿ/, ýÿýÿ üÿþÿ(D@+4öÿÕÿÝÿ¸ÿÁÿÿ¢ÿµÿ«ÿèÿàÿõÿôÿüÿ>1VY-7!I@IMýÿ¯ÿ»ÿ­ÿ§ÿüÿéÿ30ûÿ”ÿ¨ÿyÿwÿ³ÿ¥ÿ ûÿVKefIMTM\aûÿ…ÿ—ÿ‘ÿ…ÿßÿÒÿìÿïÿãÿãÿüÿöÿ /#ud†‹.EßÿêÿÏÿÒÿ³ÿ½ÿÿ’ÿ±ÿ£ÿýÿïÿ áÿðÿ¬ÿ³ÿ×ÿÁÿ\?ª¤‰”DP æÿíÿÚÿÛÿàÿàÿÏÿÕÿÀÿÁÿÊÿÉÿÃÿËÿ¨ÿ¬ÿËÿ»ÿ0jbT\+3 ÕÿßÿÆÿÄÿéÿàÿ5133 ýÿàÿæÿÖÿÖÿþÿôÿ1*#,×ÿèÿ¯ÿ°ÿÎÿÃÿõÿñÿþÿ41&+õÿôÿ /,ÅÿÒÿÃÿ½ÿõÿìÿøÿýÿÃÿÍÿÇÿ¿ÿ" vklu+ÌÿÙÿÕÿÌÿ 9:ùÿ ²ÿ½ÿ¬ÿ¦ÿÜÿÐÿ*& &$ ÎÿÚÿ¿ÿ¿ÿÌÿËÿÊÿÉÿðÿåÿH9]`07)$45òÿõÿçÿéÿÍÿÓÿÕÿÐÿ¨ÿ¹ÿ£ÿšÿöÿåÿ!%$2-,/ ñÿþÿ¸ÿ¿ÿãÿÒÿ3( ÁÿÊÿêÿØÿA2SU9? ÅÿÒÿ¸ÿ´ÿ÷ÿêÿ ÜÿèÿÊÿÊÿÜÿÚÿÌÿÒÿ×ÿÍÿ@#¡•xúÿ©ÿ´ÿ½ÿ´ÿ ýÿ@;)ÙÿäÿØÿÑÿþÿ ÛÿçÿÁÿÂÿäÿÚÿ33ðÿóÿB:.8Ùÿìÿ«ÿ¯ÿÐÿÅÿýÿùÿøÿ " òÿýÿÉÿÐÿÆÿÄÿßÿÚÿùÿõÿôÿøÿäÿæÿ÷ÿðÿ#77'ûÿûÿ& ?<27õÿ¶ÿÂÿ“ÿ•ÿ˜ÿ’ÿÎÿ¿ÿ%QMGNdopewars-1.5.12/sounds/19.5degs/punch.wav0000644001565000007070000001053407541421127014766 00000000000000RIFFTWAVEfmt ø*ø*data/€€€€€€€€€‚ƒƒ‚„†ˆˆ‡‡††‚}~ƒ‚~~}~}~|xvusqssprtuuxvplkinutqknrroghkkifikjffhghlonjhegrwqjgkppjozzyxtw€|ˆ‡…‡ˆ‰Šˆ†ˆ—”ŒŒ“”‘Љ‹ˆ€~|xvuqov|ywuvz}ux‚ƒzu{€…‰…ystx||yvslhffs„‰xdhz„zcasxwŒ–†vdILfhhrmaacgz…|y~ycUk‰Ž‰ƒ…„ts†’‰y[>Krz{ŒŸ±³—jaŽ«ª’†£¿¦\]–£DE¬vy ±tg}a^qq_q†„~xyŠž¥‘ŽŸ¯·´»¾¿¾¿¾¿¾¿¾¿¾¿¾¿¾¿¾¿¾¿¾¿¾¿¾¿¿¿¾¿¾¾²šƒr…„Z\‰€bVC>@MPD>????@??????@>?@??@@?@??@???????>?>?>?????@??>????>?????>?>???>??????@???A?@=@?@=FZWI=?>Ig]@????@Q]oyj^^jeVH9f–Ž|{lBQglq_SZy€O;Y‡zN_ZOx™¯¸·½¬œŠhr„~i[[`QBJRMLMG??>??@>?>BEKXcr|ww¦„\z¨¦‹u_rŸ~Wn{zry•Ÿ„cdrcVM@EVN]L>@?>VaD>?>CLM^€b>@?>FJ>@????>@??>DA?@SXC>CF>AP@>@>E[M=A=CUCB?@u|FLAGkX@?A[lL>BbbBUd`gesŠŠ‹Švr…iXmo[Z|¡’zmnˆ†k€ˆxyphmy ”p[pŸ‘}enŠ“›’…}…›ŠnVU|ˆ“~PCl—Š…‡|€{€…w~kk’•€‡Žž³­Ž„–‘‘|„Ÿ‡}’²°}m¢²’Žœ¥£­º·¢†™©š’z’˜ng‡€[pš˜|†pv˜k`Ž•“ª•o}j}y“›—ŸŸ¥º³’›‘~› ™us¤‰}‡†‰Š•˜›Ÿ‡‹‘„‰–|‰‹’€t‘¢tuƒx‹Š†yr€……‚Œ™–‘™m‹”•ƒkP|¢‡wur‰z‘”zvgquPX~¢›vˆ}Œ‘~|lbq{usn}§”oˆ¨«†{…“‘{}Œ‚o†—sm{zšu\n~‹{o™”q¬¥™Ÿ´²®³¥­‰œ­Šk{{‡•“—’°Â¥‰ƒ¦¹ŸŒ•£•wŠ£“……}|†‡…€ˆƒx‰“އ™´´º¿¦§ Œ—š¡©°¹¢—‘Œ¥›z}{“–hgŒ’‰› †­§‡|vh€™Š†“ª¾½À¯¦¦›š£¨šƒx|—ƒ†§±¦¬ µ¥•†x}ynƒŽˆ—Ÿ¡¸¿¿¹­¥…~®©–‚}Š¢zh„¥¡’”žª­‘’µ¾¿»­ ”˜¤¯©¬µ°¤«¿µ‹Œ¢£€†››¦©œ§­“©£‘𒛦¤¤¨¦©›º¿¸ª¬¼À¶˜•Ž¡Ã­~ޤ™¤™„ª»Ÿ…mg޲ºŸ”§ŸŽ§±¥Œ}›“ž“†‘𲳝ª”“£¬©’Œ–¡¢®º®šŸ¦˜ž¡©§–¡©•Œ™‰‘µ£Š’©·ª–Ž–—„° ‡›…’ªŸš“~„˜—‡Œ—Ž{Œ›–Š|vp}xkƒ–•Šx}up„„~{{†‰Š•’•wl‚’Šwu}~‹y]`y~vwjmtjˆwsyp—x‘”ƒ‰‘‰~Šœ{`~†y”xtމxŠ…ŒƒxuŽŽ_Mg„uUg‡†}tz„}…’†ov‰Œ|…€zˆ…‰‰z|ˆŠ{w’™‘r‹˜ƒ~zi”€‹ŽswŒ‡€nt„šŽnc˜ž‘yxº’d~•”Šn{¥˜q}‰‰”’…•©’‰”£°£”–¨µ¦ƒ~šž¢‘‰¡¦’z|–¥¤¥¥•™¸¡ex¨£›“sr vrw‰“~nx’oozŠŽ‡‡…‡›«˜©¦£’¢¢†sr›hfy“šl|†Ž—“Š•‘˜¢¡ž—‡‹¥¤”‡„—›‡Š–”¢œ†“ š ª¦¦¯š€ •ƒ…€xŒžˆ‰ƒŒ”‡‘¡Œy˜¢ƒ‰—{v„uz‹~kmŒ’n]oy‡š…\d‡™]pŠy}lsŒ‹xx‡‡‰y†Ž†‹Œ…Œz‰•€x|x}x…†oas€ƒwqy¤\y—Šzu‚‘„w‚ƒ…‹}}Œzw‰†st…‘›oj…ˆ…ˆyzˆŽw{•˜wtŒ‘‹’‚r‚‡‡…Žˆu{yu’§ˆr{ŽŸ€ˆŽ‹”š†…œª‰† •‡—•€„”†—˜„‡˜Ž|~“ž’™˜’—¥¥ž£§™“¥¡ˆ…’˜†Š—™‘•’ƒ€„ž•‡“—¨Ÿ–££˜Ÿ}ƒ–oŠ ‹~‘š±•n…©¡‹™¯¥•–•–¨§‘¨˜€˜…†•‰€••€„Šxf{‘ŒŒ…~y…”v}˜Š’‰ƒˆ€…ƒ’žƒuƒŒ–”‡‹ž˜‰“¥œ‘¥ªœ¡¢—¢¨–—Ÿš }‘¦–…–•›šŒ–œ‡‡’Ÿ•~}ˆ‘—•‚‡›Š†ˆ›©w—«žvpš‡ƒ€„žnzЇ’x|š‰w–~€•‹ƒ‘ŠŒŠ{…~|}o{ƒpihl~„na{’…‹p`Œš…‰†z‹œ‹yƒ‹„w€‘~o€~’w}~|˜œ…‚‹‰Š‰‹„zŽ ~ŒŒ~“™ˆ‡˜›Ž†‹–™’“•“¤£ˆˆŸ™Ž‘ª§—}{›ªš‰†œœŽŠ™œ…€Šzˆ‘yxŠ„—„m…—yo†ƒx|q€‰{ouŒ‹tnw}€ys~Š‹‰‰ˆ€{†Œ„€‚††Š~hwŽsy~ˆˆqt€ty†vuyq|ˆƒur|€Œ{prx€…{ntz„Œ‚}ƒ€‡…‚ˆ…}‡Œzu~yxŠsu}~…v|yy€~~€xxŠŒ‚~y~u‡…rŠx{Š‚€†t{„{~ˆzly‚tq„un}ƒ}{|~Žql†‘‰{m|—”†|v…“Š€†…‚‰Œ‰‡~†ŒŽŠ„|„…y„„’Œuz˜ ‡|ƒ~ƒ•~„އ€ˆŒ†ƒŠŒ‚}€Œ’ƒx€……‹ŠŽ—‘„‹Žƒ‹Žˆ’t‰•†‚‚€‚„…„}ˆŠ|im†”‡xs{…„€ƒ‡‡‹{І‹ˆ~w“ †yˆŽ†‡Ž†€‰‡”vt”–~“ˆ{Šˆ‹tvŽ‘~wƒ‘yv‡‰zikŒ†xrux~‹…s~…||†Ž{‚…‰Š‘žqqˆŽ‰‰~r€”’…€}…‘Š}‹‘vp“~}…Šˆ†‹ƒy~‡‡~y|‹‰}‰vw–˜„‚‰–’{Ž’z}”‹yƒ‡~‡‡‹‰~†…‰‡|‚‹€ƒ‰€~„‡Ž„€ˆ‹‹…‚ˆ€z‡ˆ€‡‚xyƒŠ~t„Œ}}ŒŒ~†–xx„““‚{†Ž‘Œ{z‰‹„ˆŒ……†ƒ‰’’Š€…‹ƒ‚†ˆ‡ˆ“‰~‡’ˆ…‰‰’ƒq~š˜„„‡…‚‰–‹‰…|„‰‚†„†ˆ€•‹€‰†}Š’voˆ—‡|€~…‰}‹rv’‹‡zt„‘†z}ƒ€{|†‰|„€x†’‡zu{‹Š„xz‘’{}€s€‰ww„‹…~‚‰ƒxƒ”‹xw~…‹†wuƒˆ‚~‚…~{„Œ…|„€|„‰xy…‹„‡†…”…ry•Š~~…ŒŠ‚ƒ‹†{}†‰†„„‹ˆ‚€‚‚~z…•ˆmt’y€ƒˆznŠŸg}—{v‘…y}…‰„‡‘ˆvzŽ}†‡‚†‡}ŒŠ‚…†~‹Š~{…Œx}ƒ†‰„zx~ƒ€…‰}p~—’yt}„sl†”~oz„…€~ƒ€~‚‚ƒ†ƒ€~‰…y{‡…{zƒˆƒzsw‰’mt…‡‚€‚‡ƒ~€„…ƒƒ}„†y{…‡‚‚€{{ƒ†‚xvƒŠ~rx‚‚zx…uy‰Žƒz€…‚~€†„~{‹|v…ˆ|}‰‚z}‡Žv‚‹„‚‡‚{~‚„Љ‚~}„‹‡…„Љzv‚ˆ†ƒ€}‚‰‡ƒ„†ƒ~‡†xzƒŒ†zqu†Žqy……}x|…ˆv}„‚~€„…~„†€€†Šƒwx…Œ†~y~†‚}‚†…|sxˆŒw|‚†ƒ{|††|~‚„†„|y~„„~wx~€€{y|}€~}„txˆ‰~‚€}…‹€}††„‰€Šˆx}Ž~z€…‹…{z€…††„|z„ˆ{†‰}y„‡‡}uŠ~y}…‰ƒ{|ˆ‹}uІ}w|‡Š‚y|ƒ…~~€‚€~€}~‚…ww‚ˆ…x}‰†{|…ˆ„z|‡†}}ƒƒ~ƒ…‚€‚€…‚}‚‡~…ƒ{І~€ƒ~}„Š„‚ƒ€ƒ…~€€‚„{x‚‹…}z|‡†{{‡ƒ~€€~ƒ„|~†ƒ€}††€~~~„‰ƒxxƒ‰„}}ƒ€~ƒ€}~„„}}€‚ƒ‚~}‚…‚€ƒƒ€~‚„ƒ€~~ƒ~{„|{}„ˆwx‚†„€}z~…‡}€…†~|€„…|{‚‰ƒ~†‡~{€ƒ‚€€„ƒ~„„‚€ƒƒ€‚ƒ~„‡„~|„…€ƒ‚|z‡†|}‚€}{€ƒ~ƒ„~|ƒ€€€‚‚‚†…€|~‡‰€|}‚ˆ…}{ˆ†€~„ƒ~€…„}y†…€|‚„~|}„…{z„€€y|…†z|€„‚~~€€~€~€‚€|}€€~|~‚‚~z}ƒ„}x}ƒƒ|{~…„}z~ƒ„‚~{€†„~~€ƒ}}‚€~€‚€~€€}‚}~‚„~}€€€€€~ƒ„~|‚ƒ~~€‚‚€}‚€~~ƒ€€~~‚„€~}}‚€€€||~‚ƒ~||€ƒ}}€€~€€~~€‚~}~€€€}}ƒ€~~‚}}€~€€~~€€€€~€~~€€~}~€€}}€€~€~€~€}€€~~€~€€~}~€€~€~~€~€~€€€~€€~€~€€€~€€~€€~€~€~~€€~~€€€~€~€€€€€~~€€~€~€€~~€€|}€~}~€€~~€€~€€€~€~~~€€~~€~~€~€~€~~~€~€~€~€€€€~€€€€~€€~€€€€~€~€~~€~€~~€€~~~€~€~€~~€€~~€€€~€~~€~~~€dopewars-1.5.12/sounds/19.5degs/jet.wav0000644001565000007070000004237607541421127014444 00000000000000RIFFöDWAVEfmt ø*ø*dataÑD€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~}~~}~~~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€‚‚‚‚‚‚‚€€€€~~~~}}~~~~€€€€€€~~~~}}~~€€€‚‚‚ƒ‚ƒ‚ƒ‚‚€€€€€€~~~~€€€‚‚ƒ‚ƒƒ‚‚€€€~}~}~~}~}~~€€€‚€€‚‚‚‚‚‚‚‚€€€~~€€€€€€€€~~}~}~€‚‚€€€€€€€~~}|{||}}~~€€€‚ƒ„„…†††‡††…†……„ƒ‚‚€€~~~}~}~~€€€€€€~~~}~~€‚‚ƒ‚ƒ‚ƒ‚ƒ‚ƒ„ƒƒ‚€€~}~}}|{{z{{|{|}}|}|{|{||}~€‚ƒ„†‡†‡†……„…„ƒƒ‚ƒ‚‚€€‚‚ƒ„……„ƒƒ‚€~~€€‚‚ƒ„…†††……ƒƒ€~}}}|}|}|}}~~€€‚‚ƒ„ƒ„ƒ„‚}{yxwvvwwy{|}~€ƒƒ……†‡†…„ƒ‚‚‚‚‚€€~~~~~€€‚ƒ„„…†…†…„ƒ‚€€€€‚ƒ„ƒ„…„ƒ„ƒƒ‚‚€€~€€€€€~}~}~~€‚‚‚€€€~€€‚ƒ„…†‡‡†…ƒ‚€~~€€~}~}~~}~}~}~~€~~~}|{||}~€‚ƒ„…„…„ƒ‚~}~}~€ƒ„…„…„„ƒ‚‚€‚‚‚ƒ„„…†‡ˆ‰‰ˆ‰‰Š‰Š‰‰ˆ†…ƒ€~|zyxwxxyzyyz{{|~€€€~~~~}~~}~}~~‚‚ƒ‚‚~~}~€„‡Š’”“’Ї„}{zyyyzyzyxwvuututuvwxz{}~€‚ƒ……†…†…†ˆ‰Š‹Œ‘‘Ї‚|ywvuuvwxyz{|}}~}}~€ƒ„…†‡‡†…†„ƒƒ‚€€~~}~€ƒ‚‚‚€€ƒƒ……†‡‡††…ƒ}|}}|}€‚„…‡ˆ‰ˆ††„„ƒƒ‚€}{zyz{~€‚ƒ…„…„ƒ€~}||{{z{zzyz{z{{||„†ˆ‰ˆˆ‡†…„ƒ‚ƒ„…‡‰Š‹‹Š‰ˆ‡†…„ƒ‚‚‚‚ƒƒ‚‚}zwutrstuwy|}~€‚ƒ…‡‰ŒŒ‹‰†…‚€~}|}|}|}|}~~~~}}|{zyyyyzz|~€‚„†‡‡ˆ‡‡†……„„ƒ„…††‡ˆ‡††„ƒ‚€€€‚ƒ‚ƒ‚€€€€€‚ƒ„……††‡ˆ‰ˆˆ†ƒ~{yxwxz}€ƒ…‡‡ˆ‰‰Š‰Šˆ…‚}zvtrssvx|…ˆ‰Šˆ†ƒ~zxvuwz}„ˆŠ‹Œ‹ŒŽŒ‰†}yvsqpqruy}€‚„„ƒ‚€‚„‡‰‹‹Œ‹Š‡ƒ€|zxwvvuutsrrstwz~ƒ‡ŠŽ“”—˜˜˜—”‹…~xsolkjklpsvy|~‚„…†‡‰‹ŒŽŒ‹ˆ†ƒ‚‚‚‚‚€ƒ…ˆ‹‘’“’ŒŠ‰‡†„}{yxwwvuutuwy|~€€€€€€€~|zyxy{}€‚‚„„……†‡ˆ‡†ˆ‡‡‡‡ˆ‡†…~{wusrrqruy~ƒˆ‘’‘Šˆ„€|xtrpqrtx{ƒ…ˆŠŠŠ‰ˆ‡†„‚€~}|}~€‚†ˆŠŒŽ‘’’‘Œ‹ŠŠŠ‹‹‹Š‡„€|zwvwxz}€€}|{yxwvuvuvwy{}€ƒ…†‡†„{wtrqrswyzzyzzyz{}‚…‰‹ŽŽŒ‹‰†„‚ƒ„‡‹“”•“‘ŽŠˆ†……††‡†„ƒ€}zvsolkjikmprtuwz}†‰Œ‰†„ƒƒ„„††ˆ‡†…„…„…ˆ‹ŒŽ‘ŽŒŠ‡…‚€}{xutrsrsvz}…‡†„‚}{{z{|}}~}|{|}~…‰‹‹Š‡|xuuwz}‚‡Œ‘•—˜™™˜–”‘ˆztnljjloty€‡ŒŒ‰…‚|yvssrrux{}€ƒ‡ŠŒ‹‡„‚€€‚„…†‡‡†…„…„…†ˆŠŽ‹ˆ„‚‚‚ƒƒƒ‚‚‚ƒ…†…„‚zvromnprvyzzwtqmmmpsw{€~„‰Ž“–™š™˜–•“’’“—™œžŸ›—‰‚}xtqpoonmnoqtx|„‰‘“““”“”“’‹…~wpkhffgfgijkmosy‡–›™’‰~tlfbabehmu~†—¡¡ ˜’Œˆ†‡ˆ‹ŽŽŒ‡€xogb^]]`djpv|ƒ‡Š‘”•—˜š›œ›–ˆ€voiikpv‡Ž”—šœŸ¡£¤¢ ž™’Œ†~{zyxupkf_ZVUUWZ_dkrx…‰Š‹Š‰‡†…„†ˆ‰‰Š‹Šˆ…ƒ‚~}{zxvuwy|ˆŽ“—™™—–’‡ƒ{xwxyz||}|{y{|}}~€€‚‚ƒ†ŠŽ“—›œ›˜“Žˆ{vtux|‚‹”œ¡¤¤¢ž–Ž…~yussstvxz|{{zyvsqolihhihilmnpsvx{|‚ƒ„…„…„ƒƒ…ˆ‰Œ’“’‘ŒŽ”˜š™™–‘‰‚|xuuvx{…ŠŒŒ‰†„‚€€{vsojc```_adipuz‚‰Ž’•˜šœœœš˜˜—–“‘ŒŠ†|wrmjjlotx|€ƒƒ„†ˆ‰‹ŽŽŒ‹ŠŠ‡†‡†„‚‚€}{xwwz|{|}€‚ƒ‚€„†ˆŠŒ’”•––•’†}yurstvvwvusonqstv{…ˆ‹‘’”–•‘‹‰ˆ…{xx{{xvuvtqqsvz†–œŸ ¡¢¡ž™“‰„~xsojfcbbfiloppoonlhffint{†Œ’–•”“•”‘‘”“”•——–”“‘‡‚~~€ƒ„…„‚€}zyz{„‰Ž“—˜™˜šš›˜”’‹ƒ}xuqonoppswzz{„†‡ˆ‡ˆ†‚}ywussrsstsqnljhjnrtw{‚ŠŽ‘‘’’ŽŽ‘ŽŽ‹…}wusttux|‚ˆŒŒŠˆˆˆ„{xspruwy|ƒ†……††…„†‰‹ŽŽ‹Š†zwvtstx}€‚†ŠŒŽ‘‘Ž‘‹‹Š‰‹ŽŒ‹Šˆ…xpmmlklmotxyx{‡Š‰‰‹‘ދЋŒŒ‰…ƒ‚}wtrokjijklmprv{…‰Œ”—–——’‹‡…|yyz|{ywurlhipvy|‡Œ‹‹ŒŒŽ’˜¡¦¥££¡—Š…~~||}~{unigfc_]`djqy‚‰”š›–“’“ŠŠ‹‹Š‰Š‹Šˆ…ƒ„†‚|z{{xtsuwyxvuxxvqpswyy}ƒˆ‹‹‡‚}zuux{}€…ŠŽŽŽ“–”ˆ†‡„~{{ywy„‡†ˆŽ’‘Œ†„……‚{wttpnmry‚„ˆ’™š—•“‰ƒ~|}€ƒ„‚ƒˆŽ‰€zyzyvrrsttuy}~ƒ‡‡„ƒ„ƒ‚|€‡ŒŒ‹Œ‘‹‰†„†ŠŠ‡ƒ‚‚{wvxzxtoliiovwtu{ƒ†ˆ‹Œˆƒ‚‚ƒ‚€‚‚~~}|}‚……ƒ†Ž™¢¥¤¤¦¬¯«¡™•“†zqpuzwqqv{}}{xwwtpjfb`ZUOJKQX]`chp{‡”•˜¢®³¯§££¡š“ŽŒˆ„„‰’¡«¯ª¤£¡›Ž„zrg]WV]iv}}~‚–™–‘‘‘‹’–•އ†‰‹†xlhikmoqru}„‹ŽŒ…~zvqjebcbdfhknsxy{|ƒ‹‡ƒ„†ƒ{ytpmmnoruz€„€…‘ކ‚ƒ………‰““’“˜š™”’”—•ŒŒ˜œ›¥¬ª¤¢§©£“‡„„wnkigghmnmnsy|yuqotxyrkijnqv|€|wy‚Ї}uux~~}~ˆ‘™Ÿ ž›™¡Ÿ—‹€yxvrha_cjpvzyyŠ—ž•“”…xqpqrlfdbgo{‡†vw‚™˜…ƒŠŠ„{spv€‡ƒwry„І€}|xz„‹‰~vx††|x{}„†ˆ‡„…–š’Š‰Ž‘ŒŠ‡……‰Œˆ„„†‡‹’œŸ™ŠŽ••Œyxzwpiks}ƒ‚~|ƒŽ˜›—’ŒŽ‘’‡wqpvyxwuropw}|sjhmnmikmjdcjrvrns~ˆ‹ƒ|ƒ“ ¡—ŽŽ””‘“˜ Ÿz…“œ‘€yx~„ƒ€~|{ƒ„‚xqu}ƒwpt‰Œ†„š–Œƒ€€‚†„€zrmou{‚‚€……Œ“—–‰|tx…‘–Žyf^gvtb_eqxyxz„‡‹Ž‡„…‹Ž‡zpsˆ~uy†Œ’—•˜™žŸ¢¥££š••’Žƒuty}zmkt|saW]o~ƒxdY_r Ÿ‘zpw†š¦Ÿ€x  ’Ž•ž—‰‚}€Š‹Š„xnkn|‰†|dY[fkpxyzshht€Žž¢ž’‚}ƒ’œžš†~€Š•š’‡{z‚ˆŒ‰|m`ahqvqjeoˆ†uklv}€ynqvvwsq{‹œ ™‘•œ•“Žƒ}€…ˆŒ‚szƒŠŽzw}Š˜›Žznn|–™Šxjgo‚”“‚xrx…ˆƒ}|yxreeoz„…{‚‘’”ˆ‹’Ž—–šžŽ‚€‚Œ•–Œ‚{qrpq{zz~z}…‡ˆ‚€‚ˆ”˜˜”Šˆ”—š•‹‰Žž›‹{svreXSXaidTB57@QWXVTVV_du”š˜–™£®µµ²­ª§¡£ š—˜™’‘‡„‰‡ˆˆ‹ˆ‹‹‡Œ‡~€}…‚€y{Ž–›œˆvu€˜Ž{mmqty|ulg[fnooknjx‹‚{xmr}…‡‚|†—™zqu€–Šmdk…š£‡pnz–°ª›Œ~ss„¡›vciy‹ž”~odgs‚‘€tqnp{xqw††‡}sv}œŠ‹–‡ƒ‡¡¥—‡ƒ…І|{v{†zt|uv}ysonv{tƒtwzrnt|…ƒ”’•Œ~okr‚ŠŽ|pe]iˆ‰yw{ˆž•‹Žƒ„ƒˆ”˜•†xsou}v|vj{|tƒ}u™”¦™„†ˆŒž—‰“ƒz’Ž„†ƒ‹—¢±­•{mgit}|wurrvz|ª¬©®¢ž‘ynd`ondZF:7@VrhZQB:>Ro~r^bz‰™ª™‡’—±ÂÁ·ª˜‰“¦¯«¨ “’¥žŒ’Š–•¡œŠ‹€„ƒ‘™‡‰nvx~„ysu†yx`JMYby…vzs_Sf‘ŒŽ€kWp–™ˆm_afŒƒodXOcy€omn\\p‡Ž˜«¯§›–›Ž™—˜¯©˜›„|}x’²—…›}—†yƒz£½›ˆŒu_d{¤­š|hWh…‰|ukhjomgapˆ†€~wbcx€ž„}”…pwoa\|Šxxƒhe†Ž…¨·ªŸ”’—€•³•ƒœŒvz……nhƒ’vl…uXglgt‚†}sm„…q‚{fl‚Œ”‰ˆ~wrjƒ¡–˜²“qt‹‘‚¦¬”Ž‚£œ„‘“{u{v|sd|‚h{ufldar“Š~ukeo€”Ž„‚•y™„x•Šf„Ÿ‹o}•|“ž•ª¡‡œ•uru’¦’‰…rQJbyuprt}rvˆžƒn…‰v¡‰šˆms‹}w{wtj~witƒxg—§{fxwcr™„|¨Á’Œ¤Žq|²Ä®¬—lmxx‰‘~nx~hr…eXXTpq{€gW^ƒ™‚“šld|o€”|rifƒ‹u|qo‹ˆ—¹¬¯±†Œ°š‚¢¼•“uQayn…`z{g¡º‰Ž›„}€„™§‹ŠžZh_Qotbo’kqaJ`‚‹€ˆ¤\njSm€x©·™‡†•…¯Í¯ŸÀ¸„{ˆxfr•žŠr{pNW‡“{{‘¢~x¦›‹Œx‡šƒ‹Ÿ’ƒyuoVp‚iqoT?MOP}‡eamZLh‚k~µ§ˆ”‰rs«§{Œ¬„hˆ zl‹{e]\†—Œ¢˜vhrqi{˜‡—„”ˆs†…‹¥¦£µ¤‰™lе©ƒ†¤‘zŽ‹rv›vXœ·xk•Š\t‰o€¤•xˆ€vWf›p~…]Gr•kY|‡yiUm—vm‡vkƒˆx~š´ž|‹yu„”|r†rwloŽx[jyjU_vŽ•ž‡…~zuq“’š¥˜vyr€{qŽªuXˆŒb_ƒ‘ž¦Œ„šƒTdŠš ’—›Ž‚cYqtt ”‚‚š•wqp—ªww–œ©Ž µ•qh}i„¦•­ˆVc…|^q–­™k~Th}\y´¨g^œ—^›”‰TgŽ|ev‹~rs’„egXQYSV„—€}zkJXsNT•—z–²­²¨‡…¿Í„Õ·xz‚Šž™z{›–eYwjR`g\s¡“s¡´sn¡§„¡~“·’ªwvfuwd}³§bhz_T^’›efƒƒ|pp{q—JN‘vHn“|s¡³–ˆ}g`lljŠ‹€Ÿ®ž~mf™¨mh›ª}f}«´‰t‰²©bW‘ ucx• ‡gt™t8[ŠvlqljtƒŒ„„”“li‚»Âtd™£ƒwŠ»»‚¢lwƒxu‡Œsz”Ÿª”Zvžb3\‚qjŽ¡ŸŸxY{ILu~_O€šmišœlU„“VG}¥›žµÅœˆœ ‡hoŠˆ¯°„x‰ “`Ii™™ik›§‘›­¯š‡Ž¡‘‰•th–ˆdz„‹©‘Y\—›;Q{„oLaˆp8b‰zl_cj‹”s\Vndn‚˜–¤ÅÒ¢¡™ˆj—ºÁ—¦®´–“·¯”jŽ„_ZXSTFm“™‚^^HTkzcNckmfo˜¤¡Ž™¨¡zu˜¡šsh†Œˆy|nhg¨¶”^4Anu}Z|cuŒ¦ws…””|”‰¿•”¢Œ‹‘Œt“Ž ‘…“ya`‚“fZ]sƒ›š”htˆ‹„qkhYvšžl|z¥º›Œub€§¨´Œxyq¤¸°–Ve°™„RSUdo}zti€Ž”v?8j„¢•zixjnuxžŸÁÀ«’o~^t]~|ur}p‚vnqoyƒŠ“ƒfREf€Ž‚fpd–•­ ¢»½‚vef‚x¡©§‘o‘—‚q}‘Œ»©º£„oCCq©ÇÙ¶Ÿ–o}|m-b‡ˆr™·ºwwŠ]j¹©“Hd›‹„¡t„µ†‡g„½‹ wW±‹peKZŠysƒ„ºÀŸÕzvhi|bJ`Ž™•¬™|Œ¿±SwhymnMxŽŠp›¿¹l”TQV‘`db“Ç„f[«€šUb3cQjG?lz¬³’“|ŠytFSNĺ‹‘¢˜ÀÆ‹ƒ·Á´£¦…Ž~¢§¢¤–‰‰¥˜¥w|ybªeWq§ay`…fˆ>=yHJo`™xMWQžd>‚SˆŽfB¨´œs§…‰§®‰[T·š¯’Wz}°ˆWd™´ ¤[e‹tpEguX€¬±—ˆ‘¡n|7“tu\pt®¤†¤‰™ÐP¦…Š{[k¤’¹°Ú”•¥£bzh’°„vtNy©WPRs‹}OƒyKmCepynIR²¸¾„mƒ™Åe`>«uŽyŒå¼¾¬y”ˆŠv¡a`a–¾ºeƒj‹HL7`¦¾”^r|}j`ir›’¢wtp¢’µ ´p’žºg]pµ‹‹vpµŸ¬•v¨ Ÿ¼žal0~­s\X.eœ²‘U{]³‡‰…¡^R}‘cƒc^J]ØÓ˜¦75Šª–¸P!Cg¢–iT^jد{’Mnrr€†q{PMnƒ…³`V_ta¢¡Ãv‚mQ§Á‡°Ÿ‰s|„›¹¢Œx<@‰¯¥³ctCg„·œsn¾¥›¥†„|–œµµhp•‚‹€£˜…_—Á–£€€||«v™_F)f¥Xe)|‡hu=iujnh‘r›n|mh”¨‰fsZvƒ’©•œcv\Z¡t¹h„…œª‘›£}j‰– ¤tNj~ÈŽ€~Ti‡yl“bxÄ–š‹}¯¯‹‘u@\V†g_Wqš„ªz–™µÄ—Rqlg„gc‹È–¶Jg¥¨°‹ƒVUyš¼iuM‡}œšŽt\gL±Ä›IPƒ—ŽohV._‰·˜—Wm‡‹¡“äSsomv`…}Cµ¤£—`c^¦Ž”ÊW@jJYŠŠ¢´qQa‰º¤†q•„kŒ}jU{°ºÊz[b•«¥iŽ{w|¡¢ƒmŒ’©» ]™v„…zwu(\“°ƒ|tOv³l“xhal¬uœebd“´”¹„yun®±¡evŠg”˜fpÁ¦£§]lƒƒ§Â²lbNbi|CkdŒp’a@k5}xŒžHccœJUYd†ŠŒ^i;t‡W€Ž¼›«ei”•©ÏΓ‡pc§±›©‡rˆ’ÄÆ ‹v¥Æ¨ƒv ¡j´†€ez`—¸Ÿ•~@dvceˆ6`M–p’g7Fp_qz‡¥J]OHXeuZxr­ \Vy”º’‚t‚‹™†beœ³º¶Œ—v™uŒ“y‡¢š£À²˜vgš¶«¥ŒY]agj“ìšaWhkt¸ Y¥‰a¤’‘6‚xQŽˆ›]…£niv—;^{†–‰Qx‚Hwe¢]Y‚Ž‘‚˜f^I\hŠ””h•—qˆUwƒ ‡škyW‚¡_wÉ£¦|[Œu ä®­œ˜{—frq‘¼’škz´>Žsip›”¨ž„‘:Avb§¨t‰tx}A“f€bŒlŽmL€‹¨¬±bhrS~в‘gb_q§l~¶|†šb¸œ‡“”‹ž¶¡—›’Up…mv¤MŒi~|{„«˜‹„orwi£N~v’|ƒvd[a9L|fa‚]£xbgdfp®‡o­n[ª‡¡Ç‰—¯|•z¦¤an–|‘r~\z~¸”´“‚[{Zcy‰’¥ªŒ€;syi|j}³¿§Ûž„o:Ofƒ“¶²¶Œ‰/hU^Š«²˜Ù›«°€,|~°’±ŽyŸh]nSb\cqyŠ›”ŠFƒb=^†m†‹„€ltSOXkgt~—q–oLqWr†bˆ‘¨…‘J9•pˆ„©’† ›Ÿ–„ƒ¡ª¬tm„ŽÆ‚¨rx ~‡¨k`|†v²‰’y^Z^Š•€ŸšM^Š˜«_rrj˜ƒ˜wukŠwªe¡“TŽpžtƒ•“—{f¡^g‡‘…¥s¢’kƒp…¤Gƒˆu˜™’–np[y±k}˜…vŸd”n›bsuus¤¦r\F±Uh‹]ªy†}“_n¨Qd”eˆ`“Oƒvmnn¦z‡a €†uQ¼afv”t­iv€tg_—\n“ƒ­xl‘ v¤‡Š•u}¤“‡ª€‘Ç«Šµ…e„€{] |Ž_p™‘’¨›hkgkŽŽ’€”ƒ“yŽˆ†—YOzTaŒ:n”£”„Vrd=”tQžŸw™ƒƒx‹¥p~´‹t›®‰a‘g”§§Ç‹“…YKW`x«ˆ¢’u˜bkpw‰}¬¤‰€veu”iw­hK¡H1sZp‘hoZ¤N±^+˜‡;¨z€Å”žlÆweÉh¤…¹~—‰•™d”vr¥†‚„³xpgz{‡³€§Œyx‘MƒqŠ€¥œ”{€gX_Ksb£Yi‰nbv‹i•·…iÛ^‰™tÂQŸ¶–½’}žYŒHQ2tmv¨š€rz‚Ld>‚om‚ž±‹’‹¥cŸednœsƒL¿ws`“¡²c¶pQpRd^‰o¤‘»³ˆÃ„GppPyŸ}«ÒÁ˜Õ>y•H{‚´šª¾ÇŽ•£,tb=tšš”žyc‰gDUlC›wxµf|qpmh€Z’Sy…i|„{a}dG“]G‰„j—wu£‹{¤€©[„ˆx‚•”–«ˆ¦©{Œ§«o—}r‡w¬o—Ÿ´¯‹½—h{|—a’©oŸ‡”Àal¤‰x…nŸl_~];¢UX»€v{ž_mvs~B…TxV­¡€’ƒ|fa‚h_´Wƒ¢M«dƒ?†Qr]ÔRrw¡}m^´o|e}¯Pª—Œwsw|ntn|¼„¦‡–­Wœf^¥z‰„§Àš«œ†ž}a§}sšš™©¦y’¤„‹˜\ƒ‡Š‰w¢€œg†–mm“9v[5zh†d“¢n€w?IT>nf{—ˆ”µk‘M€J}¸w‰›«Ž¡€„‚hl‘Œ©x¥jX’zbжQ¨ }ŠœnÆ¢­‚Óižo˜ÀŒ¥»£Sš„:kde…`±c‘ycrqc†Lzy~G¥^V‘Onwƒ‘m›–’hfCC˜FV“lŠ—·¥•„ zI”^6©0~ ¡¤•Ͻ„—‘\e«CiŽ—¬’°¥D‡^wS¥€«n‚»€|ƒ•noh{na¢‰¢ž} ˆgbOªoyRžª™~º™9”€„•S¶½ƒ`½LtK¡[‚ž†yÁs©wV£A‹CŽŸh±nmw`m“v^…’p”‡˜†˜GŽDufp—k’’|¢”uh–ˆWQ£’[q¥•l†fyo‡b¦}ŒnÇz‰˜x‹t–U‰^²Zt¤†¥~Ä›vv¢U§V{”ˆ˜Z¦}|}‚o…—sŸŽx£’Rž}hsP·ež·~—¢c}›SS¨K†ˆ™¥o”¢|KœUXÅ`U ¡zX¸[ N‹`|ªU„z™”qf«`Y©QwžY–E‘r†‘Q¥a£dk¹Ut£™—}º‘‡{…ksfqwÄ™ªµ•o‰XˆVk‡h…„¨s¤miŽ‘U‘ˆ”Š}¤|„†‰§X“Žm˜…h¢šˆ~ac™g\NbŸl­N‹‰¯Q…|H‚'~vG§b“zŒŒ¯V~“fm¥–ƒ¥‡‡Êkm•~n¤‘¨Œ£‰ c¨„X†‰x}’j¡…“š‰•œ{z’gik\¢¥“‡¬Éu†evzaOo¥š~µ§J¬`siSqo›mdŒnµSwwŠ€^¡_­lr~t˜}yn˜‡›‡Z¯¡whŽv­hˆ^_›}wg¡N’—ƒqzŽ}j Lx³E‡ƒld§zŠÂm–œªXys\šr|—s³‡•™twU„c††sh™™i‚…„Xmwto…Q„c¬•¢~‚‰šd•8‡“w‰f³‡•˜œ‘Œ£‡’¿p†´]¯at¬p¦G©¸—€qÙQžg|y/\‡p§€‹‚†§bd|o›}R’y_¼[jv‹m_ˆŠqc¾€wm_ƒƒ`etc`—dŽSoŸc™eŸrxŸ]`Xx¤qqÀ•ª\«`kE©Ža¯©š—›‘™e…¢‡{r±•ª‡† ‚§“§~u—¨m¥k¡o¤r«zyŒn‡©f~†efŒjtpƒˆt‘m^g{Žqaœ{j©fa ~ˆržkS·M„|„¤mš\¥’g=˜U|WU‡R 2k—M‡ošVŒ©Yc¶?}x&”žxŽ`À¨£ª¦}¦TÈpˆŒw”~Á¢˜p£¼Y˜wx{~™‡‹‘‚¡ŸUj­=‚tnbˆz’²™…¨‡‘lp_ru‚¨Œ|¬x|pkˆqX€®s]’¯smžœiX‹e†tdv~`s†«l¦‰a´r€`S„qV„zrœ{c¡Š°Wn¯™W`¦QzŽw^tŽr‰š z€»wЦŽr]zƒ€€s^´d’~–k†™gÀoIÑd[‚}R•ƒ€yŒÁcŽÒot‚Œ}¨m”€k³¹†~r°ƒ”r©‚†M{°dx}`{q|n sX—~cv˜qyyi|m˜\‡ˆpS§mžZš‹™†}¹sˆgÃq†I£‚po¨œpi²~Œ|ƒz~ex’‘rr–„€®z}[¦o|wWnf€uœˆ€Šr ¤hyS¦’ƒiyµƒ¤¼a€Œ€™vr‡tŠ¡}…‚•WFtpV^sr›hZ©vgt†«GO¯qr”o„‰sp© ­U©³‰±Ÿc¹{„¤†—eÂvz¡‘s{¤Rzt‚u`œi‘]i£Te’o„{P»\›{nˆ…‹‡~xŠ~‹‰cŽ}^—‹y†t¨°z¦„}µ®qh‚R‰„Z…tjš’Ÿ_•Ÿ„v€¨o_’r•E›Za…Z…SD—‹t|X¸mmxq‘~[zŽr}‡Ž|’~Ãd{…‘¥„`¡„­w¬—ŒnŠÕ®}EÇ•–e‰”kK™¬ŸZ^ʃ…žŒ€aPš`kOi”œuŒQ­]r™Qœ’Xp‰˜g‘…†v€i‡‹‹Zv‘e{„£M±y…‘vyš€z‰~„†{‚opZ’Žvf§]†|v€„X¡hB¤~ezMŠ©‰oc¢ty£†‚Œ‹¥–Š›«z¡¦n²‘uxŠŽ«zn j–„ž«js^›£VB¬UG£ih†NXz²7ƒÀc\Îiy‰Z–qžtp¢gš¡~š|v”‹W˜{Š™rlf˜‰‹tr’tˆŽ‘_n¸‡xRŠqqxtpjr’m«E’{bŸ­fwnv¢^s˜¶‹‰~®y‡€v¨g¢‡x›ƒm‰¬ O©‡p¡vXo¥‘b¡xnsŠ ‹SŽ™Bt‘_†tamxR—QR“Š[t˜‡|x†r…€‘Ÿwg°–€|ŒŸf•brx ”‰€¯vž‚ œžrˆŒ—\¡Yq~y”\uŽG‰ws—®…_¾€N»™i„t~kžqYi\’]ƒ€ŽimÅvcjo¥¬dRŸ|q‡…zh¢—n„—mv¤ˆˆ€xsˆw‹‰ou©§cŽMŒ–{Tˆpކ—‹Š’ofÓ¤mf‚s”yp_ž}€t•¦s‹q© n{l‡_·ŠŽwll‚¨†xV•hq”aus~kˆ©|Rª”“b{’ƒ€br¾~lY–u}Žcˆ‰gžÃgT¯†zš”€r†O’•œIgŸƒi’y—zPuŠ’bz‚xr¢€‹E–j‘}g‚‹§uŒŸ›q–X»§«Œ`’…q©…=ª‰`›{‡nŠw_ŠÅFŸšS¶sv^„‚o‰|„fW¦©grVqvtv_‡œ{l†—Š€~ŽŸf‰¤c•xŽ`ƒzxˆÃb{’vt¶y…n¡‰n¬†] ¶i•‚šdf¾ydc™‰ „k€gz¥~…o^Ÿ|x`™ª~lz£dœql“‚qrv”†yU”©„hd¬€zzO£…žgo|€’‹a±}v„x˜…Ь{€—i€~c°¥zR‘¨‰U®Œwdy”¹€gv›q…ˆ€¢eK–‘’<§l\‡†Ÿver{^m}Ц„aŽ‘b‡…˜jnz€¢ibžŠG­p|§œ¤qy‡Š¡°ŒA´”m„W—†š`uƒ l_˜jz›’Y…§cŽ}~Tm®s“O‹dryS¥p†•€‡Žoƒ“j™›v~†–J”°nzqw’¸y…g¡t†¨³‰x™ƒv«•m‰fŽM„‚aQ•n¥iH§i‚Y„zš‹Mƒps†‚€¢†mjz‡–š_r‡®•o{ža”m^©• UЧ‹wˆ±„­E‹¼s{f˜›‹|‰~—`µ`˜¯‚RŒ‹dxjTi“‡u‹ye„“‚–vS¯zvew|`|¡S••]“¬~fË•”a›”‡…tz¢ic˜i„U£ŸƒiT~ˆobl\ŠŠX–Pq•‹z`“›«”ƒ`† {]€pqª‹l€o›{|z·¨rŒ…£n§qƒ¤µ†j´br¢le¤”o’‰cV˜drºD\ Rk™lhiŠys†tY£¥‚_”˜bpŽ‹§|{‘ofŸ‹’T‡‘†‹qhÄm‹i{Œˆš—\Ÿgpµ–~rª…j U‹’zju–„{wj„uŽ”ƒ`‚£˜w‹|m—{hŠ|{c|jI†’l`§¹zlŒbŸ’¥UrŸ›sd|m•[†lnxn}‚‡w“ž^™|i·†–UФ…¤Xb¨t†Žhˆ£sg{ª ‡Zƒ™{ˆjs†x~—„B†«p–g«k…†p—’evšj•§`tŒ|†‰{ŠR|œa”mS•¦Xu“Z‡•|š¨qs»šf‹}Z©¨bk©{Їnf„™ŸˆRtŒTŽmyz†[•~pao©ˆiQ™‘w„L¶sƒQq—¥¤co‚…P¦’Zƒ•°›€Bµˆc¦z‰’“œ—“±„t’¦w›ˆ‰«—u—}rˆo†‘o„qxŠ„x…¤”lk¥†ngw…X‡zsBbet‹u;}miXeŒ‹=w¨^yu~Ÿz‰yºŒb™X¼¤r¡‚œ‹”””“d™„m‘z§•Š^¤oŽ}މt~£ƒo‹œa~…€†ƒ}\†“<‹–^YŠP‚}JuwŒcb›µV\§\rÃ~ƒowˆˆÅ˜Wk¦f™ a©qk††½¦hmt}™jŽs—wƒ¢nXš“}‚}›‚ž‹…tt‹ ‰c•‰d•‡z’^yr™rnt†iršIv½RŠio€¤œ~R•g…“…­uŠ‘ŽŠ„’€}oš—Œf{–ˆd‰~oy–Zs{ž_‚dŽY~‹„qœz™Kº‰|i“—•sl•„{ˆG¯–‚]yup|ˆ„}x€x•}„u†Šq€jˆŽŸšzs‘€x“Y“w“o…‰w‚„€f„Ÿš~‡œs—˜„f“¥xzœshŒ`r‚k‡ycdv•ŸP}”P™‰Y‰vn¦ˆˆbyž{rqš‡‰‰yq–‡|zŒŠŠ€}‚s “q€k‹Š±€juƒk„rzh|¡«}fŠ iu·~oƒ†zœ||k™‰‚‰—a€›dЉvl‘|‘ŠX|nˆst–o|…¢`~Žu~œ†j…o­zl|…]“¢’‚`‰yy¡xˆmr~€¥„{i~{{‚ˆtnpyxªˆyj‚y}’—‚„jŒ’xƒ‡©ku–‰ž~‘{u„a•§—rj‹˜t€}ws€„mЉ—et“p—‰z‹~R«”Žng…t†Š`‰rzp…ž‘r^‘‡o›mކpyv”¡’pso‚|€›z‚dŠŠ…‚^•Šh™|r‘¡¦xp˜{q‡n”}€›—j}€†t|ƒ†u‰v—…wn‰}›Šm‚iŠ…p„]ˆˆŽ‹h~|{˜sŒŽg‰tŸ’”gy•zo—„†q{–‰‰{„}l™…zy}z}”ƒŽ…p‰›zŠiŒmƒ…€‰…•rzŒŒŒe‹hŠu„‘‚nƒrˆumš€v„—€}vs‰Š„š`‚˜zˆ|І‚t€oš˜irynƒ}…g‹‘œ‚lŽrt“stœt‰r”’wsˆ˜{|~~xŠz~‘qy€…}Œ|„sƒ„…Š„€y“‰p†‰yr…{‹€u|‡ssrvŽu‰„tm’‰}~y‚jŒsˆ|”s{}ƒ“y†“q„…†w…}xz|€†z™‡uxœŸ–qw”wŒ™‚‡u‘Œw‡€xuŒ|{Žs‡q‚‹}o‹†q{}Œ‹ƒu‡Ž‚†g{|…zu‚wyw†xk›zl‘Šq~}‡‹ˆw~t›y‡‰~v†’yŠ‹z„…‡€Žƒ„Ÿ‡{ˆ‹‘ƒz†q†wˆˆƒqtŒ}r‚~€k„€|{Œyzy}ŒŸxw|‚iŽ‹xq~…ŽŠq|“}q„Žy|Žˆˆy‚{‚€„ƒˆŽw‰‚}Š|„w†‡‚~ˆ—z|Šzt“Œ€w}|Œyx†nƒŽz~yƒ|‚„ˆ‚„}{~‹€€xŒ|sx~€tx‹…Œp~„ˆx‰„|x†‹ˆŽ€}{ˆ‹yŽkˆ†t‚ˆŒvu“‰wzŽq…–~‰qƒ†‰|†Žpƒ…‡s‹|‚…’ˆ€{~||Šˆ‰yrˆŒ„n~sŒx}…€†Š‚‚~……ƒ„xŠ“u~ƒ{~Œxˆ†€ƒ}ƒ|oz‚†‡vˆ†~}Šyz‡‰~{v„‹…zxxƒ€Š~†o‹†|Љ‚‚}ƒwƒŠ~‡r‹„s|‘Ž€u|Œy‰‡‡~‡ˆ…‚z|ˆ}xˆz}†}…€ƒ||zˆŠ…z}†ŒzŠywŒx‹…~‰„x‰u†x†~{Œz‚ƒ€zˆƒsˆˆ‡{~Œ‡y|Š|ˆƒ~†~…x‡‘‡y{‰†‰~ˆ…‡‰‚€„{‡†ˆ„‰~}‚ˆ€ƒ†}~‚~ƒuƒ…€{{†Žz€†€‰€ƒ‚{ˆŒ€w~†ƒ‡q†{|y†Œsz†}„}|€xŒ…}{†ƒ„†‡}ˆ~Œ‹{„‚ˆ‰‡ˆ{‚‡~…‡‚†„Š…|†‡z…ˆ‚ƒ†…‡„†‚‹x€‚Š‚€ƒ‰~}‡w}‰„‡xzƒ~‚}{}Šv€|‡||ƒ~ˆƒ„‚yˆ€ƒ‡ƒ†yŒ|„|tŒƒ‚|yŠ„†ƒ~‰ƒƒ{‘†|€…ŽŠy…€ƒƒƒ„…y€‰w‰€„ƒz‚ƒ‡~‚z‚ƒz„…‰z|†„„|†ˆyˆ~Šˆ€~ƒˆxˆ}‰‡ƒƒŠ{‚†}‡ˆy†…€~‡ƒ„~ƒˆŠ{~‰w‡‡†x}‰…ˆz~ˆ‚ƒ€ƒ†z„€‚„z„ƒ}ƒ†„|‚€}†Š~„ƒ~‚‰}…~ˆ}‡}‚‚‰€€y‡ƒ‹‚{‰ƒ{ƒ„ƒ‰‚{ƒ„~„„ˆvŒ…ƒ|†ƒ‰…†}‰}{…ˆˆ~{„††}…~…‰{‚~ƒ|…†…|ƒ…yˆ‚|…€|Š„…w…‡~‹„…z„ƒ†y„„„ƒ‰}€‚€„ƒ‚‚ƒƒ‡|ƒ‚€ƒ‚ˆ‰…€ƒ‚€‰†ƒƒ…}ˆ…‚}‚~„|‚ƒ†€ƒ…ƒ€ƒ{‚†‚ƒƒ{€~ƒ†‰|‚…z„††„€€…‚y†††‚€ƒ‡‚ƒ†…€‚‚‚ˆ‡|‚†€‚†‚‚‡‡|‰„€‡„~ƒ|…ƒ†}z†„|ƒ|}‚~ƒƒ‚‚…}~…}‚ƒ‚€„€†„€}‡ƒ‚‰ƒ…‡‚……‚†„„}ƒ„†„~~‡„…|€‚‚„}ƒƒ‡…~ƒˆƒ‚€‰…„ƒ}ƒ‚††‚~‡€…}ƒ„ƒ}~‡ƒ‚~€‚ƒ…€…}ƒ~‚†‚…†‚€„‚ˆz„ƒ|ƒ…†~~„‚€~„„€€…~ƒƒ„€‚†{††ƒ„‚€~…„€€€‚‚„~…„€~„‡ƒ€}††~ƒ~‚†…„€ƒ‚~‡‚‚ƒ‚†…ƒƒ€‡€„€‡…€‚ƒ‚…}„ƒ‚„…ƒ„‚ƒ‰‡‚|†ƒ‚~ƒƒ‚|†€}‚†ƒ~€ƒzƒ}ƒ‚€~‚‚ƒ€ƒ‚†‚„ƒ‚„…€†…„‚ƒƒ…‚~‚ƒˆ…€€‡…‚„…ƒ‚‰‚‡zƒ†|…„€ƒ€„€…~ƒ…‚…~ƒ€‚„€ƒƒ‚„€€‚ƒ~ƒ~€…€~€€ƒ‚€‚‚|‚€…ƒ~‚†„~‚ƒ‚€ƒƒ…‚„…€‚ƒ‚ƒƒƒ„‚ƒ‚ƒ€„‚…€„ƒ‚ˆ…ƒ‚‚~ƒ„‚~…‡‚ƒ„ƒ‚ƒ‚†…€ƒ„‚ƒ„„‚„†}„€€‚€‚‚€‚|…ƒ‚‚„‚…‚€€‚†ƒ‚€‚‚ƒƒ€ƒ€€ƒ‚…€„€€…‚ƒ…€„‚„ƒ…ƒ€€„‚‚ƒ€ƒƒ„€€ƒ~ƒ‚|ƒƒ‚‚„ƒƒ€„ƒ‚‚ƒ}„ƒ„€ƒƒƒ}ƒ„€ƒ€ƒƒƒ€€‚„…‚‚„…‚‚…‚‚‚€‚„„„‚€‚„†‚…‚„‚‚ƒ‚‚„ƒ‚€‚†ƒ‚„~ƒ‚€ƒƒ~„‚‚€„‚‚~ƒ…‚€€ƒ‚„ƒƒ†ƒ€‚‚€ƒ†ƒ€…„‚~ƒƒ‚„„ƒ„‚†‚…€‚ƒ€ƒ€‚‚ƒ„‚€€ƒ‚€ƒ‚„€…‚„}ƒ‚ƒƒ‚„‚‚ƒ‚€…ƒ€ƒ…‚†ƒ„ƒ€„ƒ}ƒƒ€ƒƒ‚€ƒ€ƒ‚…‚ƒ€‚‚‚„„€‚…€‚‚‚ƒ‚‚€‚ƒ‚‚ƒ‚ƒ‚‚‚€…ƒ‚ƒ‚‚ƒ……‚„€„‚ƒ‚‚€ƒ‚‚…‚~„€‚€„€ƒ‚‚‚‚€‚‚ƒ‚€„ƒ‚‚„‚ƒƒ€ƒƒ‚„€„€„‚‚„€ƒ‚ƒ‚„‚‚‚ƒ‚€ƒ‚‚ƒƒ‚ƒ€„€€ƒƒ€‚€‚‚‚ƒ‚‚ƒ‚‚‚€‚€‚€„ƒƒ‚ƒ‚€‚‚ƒ‚‚~ƒƒ€‚ƒ‚‚‚‚‚€€ƒ‚‚‚ƒ‚ƒ‚‚€‚€‚€‚ƒ‚€€‚ƒƒ€‚‚ƒƒ€ƒ‚ƒ€‚€‚ƒ€€ƒ‚ƒ‚‚‚‚ƒ‚‚ƒƒ€„‚‚€ƒ€ƒ€€‚€€€‚‚ƒ€€€ƒ‚‚‚€ƒ‚€‚‚ƒ€‚€ƒ‚€‚‚€€‚€‚€‚€‚€‚‚€‚‚‚€‚€‚‚‚€‚ƒ€‚‚‚‚€‚‚€‚€€‚€‚€€‚‚‚‚‚‚€‚‚‚€€ƒ‚€ƒ€‚€‚€€€€€€‚€‚€€‚€€‚‚‚‚€‚‚€‚€‚‚€‚€€‚€‚€€€€€€€€€€€€€€‚‚€‚‚€€€‚‚€€€€€‚€€€€€€€€‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€dopewars-1.5.12/sounds/19.5degs/README0000644001565000007070000000013707541421126014007 00000000000000The sounds in this directory are provided by Robin Kohli of 19.5degs.com, dopewars-1.5.12/sounds/19.5degs/murmur.wav0000644001565000007070000004101407541421127015175 00000000000000RIFFBWAVEfmt ø*ø*dataàA€€€€€€€€€€€€€€€€€€€€€€~~~}~}~}}}~~}~~~~~~~~~~~~~€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€~~~}}||||{{{{zzzz{{{|}}~~€€‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚€€€€~~~~~~~~~}||||{{{{||}}}}}~~€‚‚‚‚‚‚‚€~}|{{{||}~~~~~€€€€€‚‚ƒƒ„„„„„„„ƒƒ‚€~}||{zzyyzz{||||||}}}}}}~~~~~~~€€€€€‚‚‚ƒƒƒƒƒ„„„„„„„„„„„„ƒƒ~|{yyyyz{{||{{zyxxwwwvvwxxyyz{|}~€‚„„………†††…†……„„„„ƒƒƒƒƒ‚€€~~}|{{zzzzzzzzzz{|}€‚‚ƒ……††…„‚€€~~~~€€€|{zywusqsuvxz|~€‚ƒƒƒƒ‚€€€€~~~€€‚„……†ˆˆˆˆˆˆ‡‡‡‡‡††††‡††…„„‚€~zwtrpnmllkklnoppqrtuwxz|}€‚„†ˆŠŒŽŽŽŒ‹ŠŠ‰ˆ‡……„ƒ~|zxusqqrstvwz|}~€€€~}|{zywwwxyyz{|~€€€‚‚ƒƒ„†‡‡‡‡‡‡†…ƒ‚€~}|{zyxxxxwwwxxxyyz{|~ƒ…‡Š‹Ž‘‘‘‘ŒŠˆ†„‚|zwtrqpoonmmmmmmnoqrsuxz|}~‚‚ƒƒ„„„„„…………………………†††††………„„ƒƒ‚€€~~}}}||||{{zzzyyxwwvvvvvvvwxyz{}~€‚ƒ…†‡ˆ‰‰‰‰‰‰ˆ‡‡…„ƒ‚€~~}{zyxwvvuuvvwxxy{|}€‚ƒƒ„„……††‡‡‡‡‡‡††††…………„ƒ‚‚~}|{{zyyxxxwwwwwwwwwwwxxxxyyzzz{{|}~‚„…††‡‡ˆˆ‰‰ˆ‡ˆˆˆ†………„ƒ‚€}}||{zyyxwwvvvvwwwxzz{|}}~€‚ƒ„„……………†……„ƒ‚~}}||{zyyyyyxxwwwxxxyyz{{|}~€‚‚ƒ„…††‡ˆˆˆˆ‰‰‰‰ˆˆˆˆ‡†……„ƒ‚€~}}|{zyyxwwwwwvvvvvvwxxyz{|}~€€€‚‚ƒƒƒ„……††††††††……„„ƒ‚‚€~}||{zyyxxxxwwwwxxxxyz{||}}~€€‚‚ƒƒƒ„„„„„ƒƒƒƒ‚‚‚‚‚€~}|{zyxxwwwwxxxyyz{{|}~~€‚ƒƒ„…†‡‡ˆˆ‰ŠŠŠ‹‹ŠŠ‰ˆˆ†…„ƒ‚~}{zywvutsrssssstuuvwxyz{}€‚ƒ„…††‡ˆ‰‰ŠŠ‹‹Š‰‰ˆ‡†„ƒ‚€~}|{ywwvvuuuuuuvwxxyyzzz{|}}€‚ƒƒ„……†††††††……„„„ƒ‚€~|{zyxxwwwxxyyyzzz{{|||}~~~~~€€‚ƒƒ„…†‡‡‡‡‡‡††…„„…„ƒƒ‚‚€~}|zywwwwwxxxyzzzz{{{|}}~~€€‚ƒƒ„„………………………………„„ƒƒ‚€~}||{{{zyxxxxxwwxyyz{||}~€‚‚‚‚€€€€~~~}}|}}}|}~~~~~~~~~~~}}}||{|}~~€€€€€€€€€€€€€€€€~~~~}}~~~~~~~~~~€€€€€€€€€‚ƒƒ„„ƒ‚€€~~€€€€~~~}}|}}}}}}}}}}}}}}||}}}}}}~€€ƒ„…†……„„„„„ƒƒƒƒƒ‚}|zyxxxxxxyyzzzzyyzz{{||}~€‚‚ƒƒƒƒƒ‚‚‚‚‚‚‚‚€€~~~}||}}~~~}||{{z{{{{|}~~~~~€€€‚ƒƒƒƒ„ƒƒƒƒ‚‚‚‚‚€€€~}}}~~~~}}~}}}}}|}}~€€€‚‚‚‚‚‚€€~}||||}}|||{{{{{{{|||{{{{zzzzzz{}€‚‚ƒƒ„„„„„„ƒƒ‚€~{yxxwvvvwwxyyzz{|}~€‚ƒ„……††††…††‡‡††………………„„……„ƒ‚€}zwtqonnnnmmmnprtvx{~ƒ…‡ˆ‰‰‰ˆˆ†…„ƒ‚€€€‚ƒƒƒƒƒ„„„„„ƒƒƒƒƒƒƒ‚€~~~€€€€€€€€€€€€~}|{ywurqqrrrrsuwyz{{||||||||||||}}}}~„…‡‰Š‹‹‹ŠŠŠŠ‰‰‰‰Š‰ˆ‡…„„ƒ‚€}{zyyxxxxwvvvwxz{|}‚ƒ„…†‡ˆ‰‰‰ˆ‡…‚{wtrqqrrrrtuwy|ƒ„†‡‡‡‡‡†„ƒ‚€~|zyxvutsssuwz}„‡ŠŒŽ’“””””“’Œˆ„€}zxusrrqqrstuuvxy{|}~~~~~}}|{zz{{zzzzz{|}~€€€€€€€‚‚ƒƒ„„„„…††††…………„‚€}yvsqomllllnqswz}‚…ˆŠŽŽŒŠ‰‰ˆ†„‚€~~€€€~|zyxxxyyyyyyyzz{||}€‚‚‚‚‚€~~~~€‚„…†‡ˆ‰‰‰‰‰ˆˆ‡‡‡‡„|xspligfhjmortwz}ƒ…‡‰ŒŒ‰‡…‚}zxwvvvwyz{|}‚„…†‡‡‡‡‡†……………„‚€~|{yxwwwwxxxxvutttuuwy{~ƒ†ˆ‰ŠŠŠ‹‹‹ŒŒŒŒŠ‰‡†ƒ~zwusqooprtvy}€ƒ„…††…„„………ƒ‚€~}{ywuuuvx{~ƒ†ˆ‰Š‰‰ˆ‡†…„„ƒ€~}}}}}}~~~|zwusrrrrrtwz}‚ƒ„…†‡ˆŠŒŽŽŽŽŒŠ‡„zvromkighikmpsvz~„†ˆŠŒŒŠ‡„€~{yxwwxz{}~€‚ƒ„ƒƒƒƒƒ„„„ƒ‚‚€~}}||{|||{zyxxxxxyyyz|}€‚„…†‡ˆ‰ŠŒŽŽŽŒ‹Š‰‡†„ƒƒ‚€|xtqmkhffgjnqtwz}‚ƒ„„„„…†‡†…ƒ‚‚‚‚‚‚‚‚ƒƒ…†‡ˆˆ‡†ƒ}{yxwwwwxz|}~}}|{|{{zzzyxwvvvwwwy{}€ƒ…ˆŠŒŽŽŽŒ‹‰ˆ‡‡‡‡†…„‚€~|{xtpligfdcdglqvz~‚…†ˆˆˆ‡…„ƒ„„ƒƒƒ„†ˆŠŒŽŽŒŒŠ‡…ƒ€~|zxwvvvwxy{|~~~~|zywvvuuvwxz{}~€‚„…‡ˆŠŒŽŒŠˆ†„ƒ‚‚‚‚€~}|zxvsplheba``bfkqx}‚†ˆŠŠŠ‰‡…ƒ‚‚ƒƒ„…†ˆŠŒŽ‘‹‰‡„~zwutssrsstvy{}~~~|{ywvwyz{|}~€€€ƒ……„„„†‡‡†…†‡‰ŠŠŠ‰‰ˆ…„ƒƒƒ‚~|zzz||{yvqmjihhhkqx€‡‹Šˆ…‚€~~€‚„…††‡ˆ‰Š‰‡…‚€}|ywuttuvy|~€€~|zwvuuuvxy{}€‚ƒ„ƒ‚€}}|}}ƒ„†‡ˆˆˆ‡…ƒ€~|{{{|}ƒ„……„ƒ‚€{vpjgefgjot{‚‰Œˆ„}||}~€‚…†‡†………„„‚~}|}~€‚„…††…ƒ}|zyxwxy{}€€€€‚€~}{yxwwwx{}€ƒ‡ŠŽŽŒŠ‡…‚€~~~€ƒ…†‡ˆ‡…ƒ€}{xvtrmhb_]^`diqy€‡Ž‘‘ˆƒ}ywwxz}€ƒ‡‹Œ‹ŠŠ‰ˆ‡ˆ‡†„ƒ‚‚‚ƒƒƒ€‚‚~{xvsrrrsuwy{~€€~{xvtsrrrtuwz|‚…‡ŠŒ‘Ž‹‰ˆ‡††††‡ŠŒŒŠˆ…ƒ~zwvwwwwvsokihikouz€…ŠŒŒ‰…}zyy{~„ˆŠŒŒ‹ŠŠ‹‹‹Šˆ…ƒ€€~|{yxxxxwwvtqonmmopruwyz{{{{{{{|}€‚„…†‡ˆŠ‹ŒŽŒŠˆ†„‚€€€~}{xvtssstvwxz|}}|zxvvvwz~…‡‰‰‰ˆ‡†…„‚€€€€€}{yyyzzzyyxxxy{|}~€€€€€ƒ„†‡‡†††…„……„„„ƒ‚‚‚‚‚ƒ‚‚‚‚‚‚‚€}{|~€€€ƒƒ~}|}~‚‚€~}}}|||}~}zvttuutqprtwyzzz{{xvuvxyyyyz|}}~€‚…‡ˆˆ‰ŠŠŠ‰ˆ‡†…ƒ‚‚‚€~€‚‚ƒƒƒƒ€~}|{{|}€‚„…†††…„ƒ„„„„ƒ‚€~{ywtplknrtwy}‚ƒ…†‡‡‡…‚€}zxvtsuvxz{~‚…††…„ƒƒƒ„„…„ƒ€~~€‚ƒƒ„„„ƒ‚€~~~€€€€~}}|}~€‚‚}|zywwxyz{{{zzywsommoqsw{„…†††‡ˆˆˆˆ‡…ƒƒ€€‚„†‡†…ƒyrmjhilqv{ƒ…ˆ‰‰ˆ…‚€~}}~€‚ƒ…††‡‰Š‘’’Œ‡ƒ|yyyyzzz{|||{zzzzzz{zywuromllnorv{„ˆŠŠŠ‰ˆ‰‰‹ŒŽŒŠˆ…ƒ€€‚„…†…ƒ€~|{{{|{zwsojgefhkpuzƒ‡‰Š‹‹Š‰ˆ‡………††‡†…ƒ€~}{zyxwwwy{~€‚‚}zvqmkjjknrw|†ŠŒŒ‹‰ˆ†…„‚€|zxwx{~ƒ‡‹ŽŽŒŠ‡…ƒ‚ƒ„…†‡‡‡†„ƒ|xtokihikosy…ŠŒŽŽ‹‰†ƒ~{zyy{}€€€€ƒ„……„‚‚‚‚‚~}|{{{zywvvuuuvwxz|~}}~€€}zvttttuvwy|‚†‰‹Ž‘ŒŠˆ‡…„‚€€‚ƒƒƒ€~{zxuqnljkmorsuw{~ƒ„„„‚}{zzzz|~‚†‰Š‹Œ‹ˆ…ƒ€~|zxwvutuwy|~‚‚‚~zvsqrsuxz|~~~}}|||~€„‡ŠŒŽŽŽŒŠ‰‡…„‚€~|{{|||||zwurqqrstuvutqommnpsw{ƒ…‡‡‡‡††‡ˆˆ‰Š‰ˆ†„ƒ}|zyxxyz{|}|{zyyyyxvtsstuuvvwx{~‚…‡‡††…„ƒƒ„…†ˆŠ‹‹ŒŒ‹Š‰‰ˆ‡††††††„€|xusstwy{}~~|zyxyz|~€‚ƒ„…†‡‡†…„ƒ‚‚ƒ„„ƒƒ‚€}zvrolkklnqtwz|€€~~~~€€‚‚ƒ„…†††‡‡††††††††††…ƒ|xussrstvwyz{||{zz{|~€‚„………„‚€~}||}ƒ…††††…„…†‡‰‹ŒŒŠ‡ƒ€}ywtqonmllkkjijkmpswz}€€€€ƒ…‡Š’’’ŽŽŽ‹‰†‚~zwuttuwyz{{{yxwwxy{|~€‚‚‚‚‚ƒ„……†……„„„ƒƒƒƒ‚€~|{ywuuvx{~€‚‚€~}|{{zzz{zzzzzzzzyxvutssrrssuwz|~€‚‚ƒƒƒƒ„„…††‡ˆˆ‡†…„ƒƒ„„„„„„ƒ‚~|{{zyyz{{|||}~€‚ƒ„„„„„„ƒƒ‚‚‚‚‚‚‚‚ƒƒ‚‚‚‚‚ƒƒƒ‚€}{zzyyyz{{|||{{{{{{{||||}~~€€€€€€~~}}}~€‚‚‚ƒƒƒ‚‚‚€€~}||||}}~€€€€€~}|||}}}}|||}~~}|{{yxxxyyz{{||}~~~~~~~€€‚‚‚‚ƒƒƒƒƒƒƒƒƒƒ„„„……„„ƒƒƒƒƒƒ‚‚€~~}|{{{{{||}~~~~}}|{zxxwvvvvvwyz{|||~€€€‚ƒ„……………„„„„……„ƒ‚€€€€€€€€€€€€€€~~~}}}}}}}}~~€€‚‚‚‚‚‚€€€€~~}}|{yxvsrokihhjlnpsuxz{{zz{|€„‡Š‹ŒŒŒ‹‹‹Š‰‰‹ŽŒŠˆ†…ƒ~~~~}||}}}}|||||}}}~~ƒ„……………†††……„ƒƒƒƒ‚‚€~~}|zywvusrqpopooooqsuvy{}€ƒ„ƒƒ‚€€€€€€‚„†††…„‚€€€€€€€~}|{{|‚ƒ„„…„„‚~zwwzƒ……„ƒƒ„……‚}~€ƒ……ƒ€€€~{yyz{}}zxvvwxxwussvxz|}~€‚ƒ……„„„…‡‰‰‰ˆ††……………„„„ƒƒ‚€€€€€€}{yxwvuuttuxz|}}}}~€€€‚ƒ………„„ƒƒƒƒƒƒ„…†…„‚‚‚€|xvuwz{yurpqsuutssuy}~||~…‡ˆˆˆ‡‡ˆ‡…ƒ€‚„…††…„ƒƒƒ‚€~}}}}~}|{{|||zyyyzz{z{|~€ƒ„„ƒ‚€~~}}||}~€‚„…††…„‚}|||}~~}{zyxvvuuvy{~€‚ƒƒ‚€€‚ƒ„„„…†‡‡††…„„……„‚€~~~}}||||{zzz{|||}~€€€€€€€~}||}~ƒ„†ˆˆ‡‡…„‚€}{zyxwvutuvxxxxyxvspoooqrsttvy|€ƒ…‡‡ˆ‰‹ŽŽŒŠ†‚€€‚ƒƒ‚}|{zzz{|}}}|}‚…††…„ƒƒ„„ƒ‚€€€€€~€‚ƒ…†††††††††…„ƒƒ‚‚€}|{zyyyyxwusrssrqrsuwxy|‚„‡‰ŠŒŽŽŽ‹‰ˆˆ…‚|zxvtrqpqrqrstvwxz|‚ƒ„…†ˆ‰‹‹‹‹ŒŒ‹Š‰ˆ†…„‚€}{zxxxxwwvwxxyzz{||~€‚ƒƒƒƒƒ„…„„ƒ„ƒ‚€|yxxvttvwwwxyz|}ƒ…ˆŒŒŒ‹Šˆ†…‚€}|{zyyz{{||||{zyzzz{|~ƒ…†‡‡ˆˆˆ‡†…„‚€~}|{{||~~|zxwvvuvxz}„†‡ˆˆ‰ˆˆ‡†„ƒ€€€‚ƒ‚€}xtqonmnqtwy}ƒƒ„…††„ƒƒ~{zyxwxyz{}~~}}||||{{|}ƒ…‡ˆˆˆˆ‰‰ˆˆ‡ˆ‡…ƒ‚~|zzywvuutsrqpnmmmmnqtwz}€ƒ‡ŠŒŽ‘’”•–——–•”’‘ŽŒŠ†‚~ysnkfb___achlqtx}„…†ˆ‰‰‡‡…„‚€€€‚…‰ŒŽŽ‹ˆƒ~zuqnlkklnqtwz}‚‚‚‚~}|{{|}‚†ˆ‰Š‹‹Š‰‡„}{xusqonlkklnpruxz|}€‚ƒ…‡ŠŽ’’’‘ŽŒŠˆ‡…ƒ‚€~~~|zxuroljhhhjnrv{‡‹ŽŽ‹ˆ…|zzz{|‚†‰‹Š‡„~{xussstuvyz|}~€€€~}~~€‚ƒƒ‚€~}|||~ƒ…†‡†…„ƒ€|xusqpoooqsvy|~‚„„„ƒ€~}}~ƒ…‡‰‹‘ŽŒ‰†‚}ywusrrsuwy{||{zyxwuttttvwy{}‚ƒ„†‡ˆŠ‹ŒŽŽŽŽŒ‹‰ˆ†„~{yxvtttttvwxy{}}~~~~€‚„‡ˆ‰Š‹‹‹Šˆ…‚~|{zzyxwvvvuuuvwxy{|~€‚‚‚ƒƒ„„„„„„ƒƒƒ„„„…†‡‡‡‡†…ƒ~|zwtrqppqsuwy{}~|zxxyzyyz|‚„‡‰‰Š‹‹‹Š‰ˆ†„ƒ~{vqmjhhijknquz~‚ƒƒƒƒ‚€€€‚„†‰‹‘’’’‘‹ˆ†„‚}{ywurqonnnoprtvwxz{|}~~€‚„……†ˆŠŒŽ’’‘Ž‹‡ƒ~yusrsstvx{‚ƒƒ‚€~|zxtnifefhkou{‡’”••”‘‰†ƒyqkijklmosy€†Š‰‡………ƒ€{wvwy|}~~‚„†‡‡†††††„ƒ}zwtssuvwy{~‚ƒƒ‚‚ƒ„……………‡ˆ‰‰‰‰‰‰Š‰‰‰Š‹Š‰ˆ†„ƒ}xsokgc_\\_chntx~„ŠŽŽŒ‹Š‰†„‚‚‚„†‰‹’”–•”‘Œ‡‚~zvsonnqsvy{|~€€|xspoopqruy|€„‡ˆˆ‡…„~|{{{||}~€‚„‡Š‹‹Šˆ‡…ƒ‚€~}}~~~~~~~~}}{wtqoonooqsuy~‚‚€€€€€€‚„††‡‡ˆ‰Š‹‹Š‰ˆ‡‡‡‡†„ƒ‚€}{zxxwvtrstvwyz{|‚…‡‡‡…ƒ|ywwxz~…‰Ž‹‰…~}|||{zxwwy{‚…‡‰ˆ‡…ƒ{xtqmkjjlnptx}‚†ˆ‰‡…ƒ€}zwtrrsvz}€‚†‰Œ‘‹Š‰‡„€}{yyyyyxxxyz{{zxvuutttuvxyyxwwxy{~ƒ„†ˆ‹ŒŽŽŒŒŽŠ†‚}zyyz{|}~~}}|{{|~€|xspnmmorw}ƒ‰Ž‘’Œ‰†‚|yvutux{}€ƒ†ˆŠŠ‰‡…ƒ‚‚‚€~||}ƒ…††††„€zrlihimpsuvxz{{zzyxwy{}€€€„‰“–––”‹‡„€€€€€}|ywvvwwwvsojgffimqv{‚‰Ž’“‘ˆƒ|ywwwxz}…ˆŠ‹‹ŽŠ‡„‚~{wtrqqsx}ƒ…†…ƒ€}{zxwx{~€‚ƒƒ~~€‚ƒ‚‚€~~~€„ˆ‹ŽŽŒŠˆ…‚}|{|}€‚„…††…„‚|zxuqkfca`bflqx‡‘‘‰‚{vsrrux|‚‚ƒƒ‚€€‚„„„„ƒ‚~}|zy{~‚††…‚|yxyz{{{||{z{{|}~€‚„ƒ‚}|}}~„†‰‹ŽŒŠˆ†„‚€€‚ƒ„……„ƒ{wrmhda`bfmt|‚ˆŽŠ…zwvwy{~ƒ„…„„„„ƒƒƒƒ‚€}zxvwy{}~‚‚~|yxyz}€€‚„……„‚‚„…‡‡†„‚‚‚€~~~€‚„†ˆˆ‰‰‰ˆ†„‚|ywutuvxz{{{zzyywslcZSPQXdr‰”–”‘Œ‡€zvv{‚‰“•“ŒŠ‰ŠŒŽ‰ƒ}yxwy|„†ˆˆ…}zywvuvy~‚††ƒ{z{}€€~~~|yurtx}‚…†ˆ‰‹Ž‹ˆ†„‚~{zz{|~€ƒ…†‡ˆˆ†‚{tkc]Z]ckt|ƒ‡‰‰ˆ…}zxwxyz{}ƒˆŠŠŠ‰ˆ‡‡†„}{yyz{~€‚‚ƒ…†‡ˆ‡†„ƒ‚€~}||{|}€‚€}|zxurpoomkkmrw|‚†Š‹ŒŒ‹ˆ„€}zzz|€„ˆ‹Œˆ„zsmgdcejr{ƒŠ“”’މ†ƒ‚‚ƒ…†ˆŠ‹ŽŒŒŽŽŒˆ…‚€}{ywwwxyz{{{zywurpmllllifeefimqvz~ƒ‡ˆ†‚~yvuwz€†”›žžœ™–”‘Œ‰†„ƒ‚€€‚ƒ„„|umga^]_dks{‚‡‰‰‡„~€‚„……„€~}||}~€‚€€~|xusrrsux{ƒˆŒŽŒ‰…|xuttstvy{|‚„……„ƒ‚‚„‡‹Ž‘’””•”“’Ї„€|xvtsrstuuspkgeehmt|„‹’••“މ„€~~€ƒ…‡†„€{wrnlkjjlnqstuvwxz}€ƒ†ˆŠ‹‹ŒŠ‰‡†††††††††…‚~zvspnlkjkmpsvx{ƒ‡Œ‘“”•••”“’‘’’““““’‘ŽŒŠ‡‚}vohaYRLIHJNT\dlsy}€€€€€€ƒ†Š’”–˜šššš™™—”‹…€{wsqpprux{~€‚‚~}}}€‚„†‡‡‡†††…ƒ‚€~|zxvutsstuwyz{||{zyyyz{}ƒ„†‡ˆˆˆ‡„‚{wspnmmopsuwyz{zxwvwy|„‡‰ŒŽ’’’‘‘‘ŽŒŠˆ†…„ƒ‚€€~{ywusqpppqqqpolklptwyz|~€‚ƒ‚|zz|~‚„†‡ˆ‰‹ŒŒ‹‰‡†‡‡ˆ‰‰‰ŠŒŽŽŒ‰†}xusqpopqsuwxyyyz{}}~~}|zxvtsrsuwy|‚…ˆ‰ˆ‡†„}}}|zxxxxxyyxxwxxyzzzyy{}€‚ƒ…†ˆŠ‹Š‰ˆ‡‡ˆŠŒŽŽŽŽŽŽ‹‰‡…„ƒ|ytpkhfeegiknrwz{{xvsqpprtvxz|}~€ƒ†‡‡†…„‚‚‚‚‚„†ˆ‰‹Œ’”•“’ŽŒŠ‰‰ˆˆ†„~{zywusqmhda`^^_adgkqw|€ƒ„„ƒ€€‚ƒ„…††ˆ‹ŽŒŠ‡†…„ƒ€~}||~€ƒƒ„……„‚|{{}~€€€€‚„‡‰Š‰‡„‚€~{vplighhjkmosx}‚ƒ‚€}|||{zyxwy|~€€€‚‚ƒ„„ƒƒƒ‚ƒ„…†…†‡‡‰Š‹‹ŒŽ‘Ž‹ˆ†„‚€~|zwtpmljihhgghiiijjkklmortwy{~€ƒ„…††…„„„„…†††‡‰ŠŒŽŽŽŒŠ‡…„‚€€€€€€€€~}{yxwutsrqqqpooprsuvwxyzz{{||}~€‚‚„…„……†…………„„ƒ‚‚€€‚ƒƒƒ‚€~}~€‚‚ƒƒƒ„ƒ‚~}}}}}}|}}}}|{zz{{{|}~€€€~|zyxwwwwwxyz{|~‚‚‚ƒ„…†‡‡‰ŠŒŽŽŽŽŒ‹ˆ†ƒ€|yvtrrrssssrrplifddeimqty}‚…ˆŠ‹‹‰ˆ‡††††…„ƒ‚€€€€€€€~}}}}}}}~~~€€‚‚‚ƒƒƒƒƒ‚‚ƒ„„„„ƒ‚€~}|||||||||}~€‚ƒ…†††…††††……„„……„„ƒƒ‚‚‚€{tlfbadhlorv{€„…ƒ€|zz{|}~€‚…ˆŒŽŽŒŒŒ‹‹ˆ†…„„„‚€~~}}|{zyxwwvvvvvvvvvvwxyyz{|~~~}}}~€‚„†‡ˆˆˆˆˆ‡…„ƒ‚‚‚‚ƒƒ‚‚ƒƒƒƒƒ‚~wpjghkosw{€‡ŒŽ‰„|||||{|ƒ‡‰‰‡ƒ‚‚‚€}zyz|}|{yy{}‚‚‚€€€€€}||~€€€~}||~‚„†ˆ‰Š‹‹ŠŠ‰ˆ‡††††††…„„ƒ‚€~{tka[XX[_cfkqx~€~yustwyzz}†Œ’’ŒŽŽ‹ˆ††‡ˆ†ƒ€~~€|{|}}|zxvvvxyyxxy{}€€~~~|zxwxy{}€‚„†‡††………………††‡ˆ‰Š‹Œ‹‰†€yrlihjnquz€†Š‹‰…~|||||}ƒ‡Š‹Šˆ…ƒƒƒƒ‚€~}}~~}|zyyz|||{zz{{{zyxwwwxwvuuwyz{|}~~~~~€‚„†ˆ‹ŽŽŽŒ‹‹‹‹‰†zpf_ZYZ[]`dkqvxvsqooqtwy{…‹ŽŒ‹Š‹‹‹Šˆ‡ˆ‰Š‹ŠŠ‰‰‰Š‹‹Š‰ˆˆˆ‡‡…„ƒ‚€€}{zyyzzyxwtqmkhedcehlpty}…ˆŠ‹‘“••––•”‘‹ƒzrkhhjmpty~ƒ‡ˆ†‚~{zz{}„ˆŠ‹‰‡„ƒ‚‚‚‚‚‚ƒ……„~zvsqnkhgghknrvz|‚ƒƒ„„„„„ƒƒƒƒ‚~{ywvwxz{}‚…ˆ‰‰ŠŒŽ‘“••”‘†xtqqsuy}…ˆˆ‡ƒ~yuqnkighjlnpqrsux{‚„…†ˆ‹‘“”””’’’Œˆ†€|{xvuvttuustutsuwy{~‚ƒ…‡ˆˆˆˆˆˆ‰ŠŠ‹ŒŒ‹‹Œ‹ŠŠ‰‡††…ƒzrjc`]^adgkorvyzxurpqtwz~„ˆ‹Œ‰…€~|yyxwvvwy|€‚ƒ„†ˆ‹Ž‘‘“•––——•”“‘ŽŠ†‚}{yurnljihhgijklnpruwy{~ƒ…‡‡†„~zwuuwz}ƒ†ˆŠ‰…€{xvvwxz|~…ˆŒŽŒŠ‰Š‹‹Šˆ†…„…†‡‡††„‚€€}zwtrqrrstuuvwwxxxyyz{|||||||}~€‚„…†‡‡‡‡‡‡‡‡‡‡ˆˆ†‚|unjijlpswz}€€~{wustvy|ƒ…†…„ƒ€€‚ƒ„…††‡‡ˆˆ‰ŠŠŠŠˆ…ƒ€}{ywwxz}€ƒ„…††††„ƒ‚~}|zywvtsstuwy{{{zz{{|}ƒ‡ŠŒ†~unkjmqvzƒ†ˆ‰‰†ƒ€~||~€ƒ†‰ŠŠ‰‡…ƒ~}}|{{{{{||||}}~€€€€€}zwusrqppqsuwyz{{zxwwwwxz|‚…ˆŠŒŽ‘Œ†~vokjnszƒ……ƒztnifddglrx„†‡†„‚€€€€€€‚ƒ…‡ˆ‰‰ˆ‡†…„ƒ‚€€‚ƒ„†‡ˆˆˆ‡†…………†††„€{vqnlmnpsuy|€ƒ……ƒ€}{{{|}~ƒ…‡‰‹Œ‹ˆƒ|skfcdglqv{‚…‡†„~{z{}…‰‹Œ‹ˆ…~€‚ƒƒƒ„„„‚€}{xwvwz|~€€€~}|{zxwvuuvwxyyz{|~€ƒ„†‰‹ŒŽŽŒ‹ŠŠ‰‰Š‰‰‡…‚€~~~€ƒ„ƒ‚€}xsmheehmsy~ƒ„ƒ}zwuuw{€…ˆ‹ŒŒ‹‰‡†††‡‰ŠŠ‰‡ƒ€|xutuwz}€}{xvtsssuxz}~~~~}}||||||||||}~€‚„†ˆ‰‹‹ŒŒŒ‹‰ˆ‡†…ƒ‚€}{yxwvvvxy{|zwsnkhffgjns{‚ˆŒ‹ˆ„~}}}€‚…ˆŠŠŠ‰ˆˆˆˆ‰‰‰‰ˆˆ‡‡…„‚€~|{{||||{zywwvvwwxy{|~€€€~~~~~€‚„…‡ˆ‰‰‰ˆ‡…„ƒ‚‚‚ƒƒ„†‡‡†„}yvtsssrqonmlmmnpruy|€€€~~}~~€‚„†††…„ƒƒ„„………†††††…„ƒ‚€€€€€€}zxvttuwxyzzzyyyyyzz{{|~€ƒ„…†‡ˆ‰ŠŠŠŠŠ‰ˆ††…„„„„„„„ƒ‚‚€~~}}|{ywusqommoqtwy{}~~€€‚ƒƒ„…†‡‡ˆ‡ˆ‡‡‡†…………„„ƒ€~}|||||||{{{zyyzz{|}€€€~}|{{{{{{{zzz{|}~‚ƒƒ„„„„„ƒ‚€€€€€€~|{yvtrqppprtvy{}€‚‚‚ƒƒƒ„„„„„ƒ‚‚‚ƒ„……†‡‡††……„„ƒ‚‚€~}|{{zzyyxxxyzz{{{{{{|~€ƒ„„„„ƒƒ‚ƒ„…‡‰Š‹Œ‹‰‡…ƒ~}{zxwvuuuuutrqonllkklmprux{~€ƒ…‡‰‹’”••”’Œ‰…‚€}|{{zzzzyxusrrrrrtuuvwxxyyz{}~€ƒ…‡ˆ‰‰ˆ‡†„‚€~~}|{{{{|~€‚„†‡‡ˆ‡†…ƒ‚‚‚‚ƒ„„……„ƒ‚€€€€~|zxvtqpnnoprtvxyz{}~€‚ƒ…†ˆŠ‹ŒŽ‘’’‘Ї„‚€~}|{zxvsqolkjjklnoqsuvwxyz{|~€ƒ„†ˆ‰Š‹‹‹‹‹‹‹‹‹‹‰‡…„ƒ„ƒƒƒ‚€}{zxvtsrqrrstuuvvvwy{~‚…‡ˆˆ‡†„‚€~}}}}||{{{{{{||||}}~~~}||}€‚…ˆŠ‹ŒŒŒŒ‹Š‰ˆ‡…„ƒ‚€~|zxwvvvwxxyz{{||{{{{|}~€‚ƒ…ˆŠŠŠŠ‹‹Œ‹‰†ƒ€}|{zzyxwwvvwxxxwvvuuvwy|~ƒ„……„ƒ‚€~}||||}}}}}}~~~~~}}}~~~~}}~€‚ƒ„„ƒ‚€€~~~~~}{zxxwwwyz{}~‚‚‚‚ƒƒƒ„„„„ƒƒ‚€~}|||}~€‚ƒ„†ˆ‰‹ŒŒ‹‹Šˆ†„ƒ‚€€€€~~}|{zzzyxwvutttuwxz{{{zywutssuwy}€ƒ‡ŠŒŽ‹ˆ†„‚€}|zywwwxy{}ƒ„…††††……„„ƒƒƒƒƒƒƒƒ‚‚€}{zxutsrrqqpqsvxz|}~€‚ƒ„†‡ˆ‰‰‰‰‰ŠŠŠŠ‰‡†„‚}zxusqqqqrtuvvutsstux{ƒ‡ŠŠˆ†„‚€~{xvtttvx{}€‚ƒ„…‡‡ˆˆ‰‰Š‹‹ŒŒŒŒ‹‰ˆ†ƒ€~{ywutrpnkihgedefilptx{~‚…‰Œ‘’””’‹‡ƒ|zyxxyyz{|zwsqommlmpuz€†‹‘““’Œˆ„€~}|{{zyxxwwvvwwyzzyyz{|}ƒ†‰Œ‘’’ŽŒŠ‡„‚€€~|yusqpnmkjjlouz~‚†ŠŽ’””“‘‹‰‡…„ƒƒ„„ƒ‚~}{yvtrrrrpommortvy}€ƒ†ˆŠŠˆ„‚~|zzz{|}~~~ƒ…ˆ‹Ž’““‘Ї„‚‚|xrmhda_^^_`bdinsy~„‡‰Š‰ˆˆ‡††…†‡ˆˆˆˆ‰Š‹ŒŒŒŽŒ‹Š‰‡…ƒ~~~}|{yxvspnlkjjknqsuwz{||||}~€‚ƒ…†‡‡ˆˆ‡†††ˆ‰‹ŒŒ‹‹Šˆ‡‡‡ˆ‰‰‰ˆ‡…ƒ|yurppomllmptx{~€€~~}||}ƒ„„†‰‹Š‰ˆˆ‡„‚€}}~~~}|zxvsqoopqtuvxyyxutsrrsvy}…‰ŒŽ‘ŒŠ‰‡…„ƒ‚‚„………„ƒ‚€}{yxwwxy{||{{zywtrqopqsuwyz|~€‚ƒƒ‚€€ƒ…‰‹ŽŒŠˆ‡††……„…††„ƒ‚‚€}zyxwwvwy{|}~~}}~}|{{|{zzyxwutrqpqstvy}‚‡Š‘‘Šˆ…‚€~~~}|zyyyxwvwyyyz}€€€~~~}}~~}}|zxxxyzzz{~€‚ƒ†ˆˆ‡…„ƒƒ‚‚‚‚‚‚€}||zxwxz|}~€‚ƒ„„„„„ƒ€~~€€‚ƒ„ƒ|ywvvuvxz}€‚…‰ŒŒ‹Šˆ…‚€~||||{{{{{{{{{zyxyz|~€‚ƒƒƒƒ„„ƒƒƒƒƒ‚ƒƒ„„„ƒ}|zywwxyzz{}€‚‚‚~|{z{|}}~~}|zxxxyz{|}~€‚ƒƒ‚€€‚ƒƒ‚}zwtqopsvx{~€‚„…‡ˆˆ†…ƒ€€€~}{zyyz{|~€‚„†ˆ‰ˆ‡††…ƒ‚€€€€€‚ƒ„ƒ|zyxvvvxz|„…†‡‡‡…„ƒ€€€€‚€~|{zzz{}‚„………††…ƒ‚€~}{|}~~}}{ywvuutqpopruwy{~ƒ…†‡‡ˆ‡†„ƒƒ‚|yvuuuvwy{~ƒ…‡ˆˆ‡†………„ƒ‚€€€€~|zywvutsstwz}€ƒ…†††‡ˆ‡††…„ƒ‚‚€~}||zyyz|€‚„…††‡‡†…††…ƒ‚€~}||||{yxxwutstuvxyz}‚‡‰ŠŠŠ‰ˆˆ†ƒ€}|zwvttux{|}~€ƒ„„…†††††…„„ƒ‚‚|zxvtuuuwwwxz{~ƒ„…††‡‡†††……ƒ‚}zxvutuuvwwy{}}~€‚‚‚ƒ„„„…„„ƒ€~{xwurqrrrsvy{}}}}ƒ…ˆŠ‹ŒŒ‹‰‰‡…ƒ‚€}{yyz{{{|}~~€‚‚ƒ‚‚‚‚‚‚}zyxwwxyz|~€‚„…†††††††……†‡‡†„ƒ~|zyxxxyz{}€€€€‚ƒƒƒƒƒƒƒƒ„„‚~{yusqpoprrrrsttttuwyz|}‚„†‡‡†…ƒ|{{|~€‚ƒ„†ˆˆˆ‡‡††„ƒƒƒƒ„ƒ‚}zxvtsrrstvx{}€‚ƒ„„„„………„„…††‡†„„‚~}|{{{|~ƒ…†ˆˆ‡†…„ƒ‚€~~~~}zxusqpppruwz{}~€‚‚ƒ„………††‡‰‰‰ˆ…‚€}zyxxxxz|~€€~||{{|~~~}|{zyyyyz{}ƒ†‡ˆˆ‡‡†…„„ƒ‚€~|zwuttuwy{}~€‚‚‚‚‚€€‚€~|zxvvuuwxz|‚ƒ„ƒƒƒƒ€€€€ƒƒ„…„„ƒ~}}||}~~€‚„………„ƒ‚€~}|||||}}~€€€~~~~~‚…†††…„„‚|zxwwxyz|}€€}|}~~~~}}}~‚‚‚€}zxvuuuuuuuwyz|}~~~~‚ƒƒ‚ƒ‚‚€€€€‚‚‚‚‚‚€}||}}}~€€€€€€€€€‚‚ƒƒƒƒƒ„‚€~~~€€€€€€€€€€‚‚ƒƒƒ‚€€€~~|zyxvutuuvxyyy{|||}}}|}}~€‚ƒ„„ƒ‚€‚‚ƒ„…„ƒ‚‚‚€€€~}||}}||{{zzz{|}~}~~~}}~~€~}}||}€‚‚‚‚‚‚‚ƒƒƒƒ‚€€€€€~||{zyyyyyyyyyyyyz{{}~~€€€‚ƒ„…………†…„…‡‡††‡†…„„ƒ‚‚€~~}||}}~~}|zzzzz{|}}~€€€€~}||}~€€€€€‚‚‚‚€€€€€€€€~|zxvutsstuvvx{|{{|}||||}|||||}||~€‚‚„…††‡‡ˆ‰ˆ‡††…„„ƒƒƒ‚€€~~~~}||{zzz{}}}}~~~|||}~}}}~~~‚‚ƒƒ„…†††††††…………„ƒ‚~|{zzyxxwwvvvvvwyz{zzz{|}}||{{{|||}}~€‚ƒ„……‡ˆˆˆˆˆˆˆ‡†……………„„ƒƒ‚‚‚€}}||{{|}}}~€€€}zwtpmjihhhimrvxy{}‚ƒ„„„ƒƒƒ‚‚‚ƒ„………††††††…„ƒ„„ƒƒƒƒƒƒƒ‚‚€~}}}}}}}~€‚ƒƒƒƒ€€€€~}{yxwwy|‚„„„„ƒƒ„…†††„ƒ‚‚„†‡‡†ƒzwtroljhikry}‚ƒƒ‚ƒ„†‡†‚~zvrppruwxxxwvw{ƒ…†‡‡‡‡‡ˆŠŒŒŠ‰ˆˆˆ‡‡†ƒ€~|zwuutsqpqrtvxyzzyxxz{|}~€‚…ˆ‹ŽŽŒŠ‰ˆ†„€|xvusrpoooqux{}€ƒ†‡‡†…ƒ€~~~}{zxussssstuwy|‚„†ˆ‰Š‹ŒŽŽŒ‹‹Š‹ŒŒŒ‹‹‰‡…ƒ€~|yxvusqomlmoqtwxyz}„†ˆ‰‹‹‹ŠŠˆ†ƒ„†‡†ƒzuqppomlkjjmrw{‚„…„‚‚‚€}{zyxyyzyyyyz{}ƒƒ„……††‡ˆ‰Š‹‹ŠŠŠŒŽŽŒ‰…ƒ‚ƒ…‡†ƒ}vqopswyzwtqopty|~~~}}‚…ˆŠŠŠˆˆ‰ŠŒŒŒŠ‡…„ƒ‚{yvtsrqponorvz}€‚‚„…†††……ƒ‚€}yuqommoprtwy{|~€‚„‡‰Š‹‹‹Š‰†…„…‡‰Š‹‰†„„…‡‰‰†‚}|{{{yvtqpprsuvvvvvxy{{{{z{}€„ˆ‹ŒŒŒ‹Š‰ˆˆ‡ˆˆ†‚}vqliijmqtx}„††…„„ƒƒ~{yvutttux{~‚„†……„ƒ„…††††……„„ƒ„„…‡‰ŠŠŠŠ‰‡……„ƒƒƒ„†ˆˆ‰ˆ†ƒ€}|yvsolkjklmlmorux{~~„„„‚|{|‚…††††…„ƒ‚~|ywvvwz|~€‚‚€}{zzzzyzz{z{{{}~€‚„†‰‹‹Šˆ‡…†‡‰Š‰‡…„„ƒ„……„ƒ‚€€€€€€~|zwuttsrpnkjklmmnoquy}‚ƒ„†ˆŠ‹ŠŠŒŽŽŒ‰‡…†‰ŠŠ†ƒ}{{{{zyyz{|}~~~}}~}||{||||}~€€‚‚‚‚ƒƒ‚€}|zyzz{}~~}|||{{yxvutsstwz}€€~}}‚ƒƒ‚€~~}}||}„………†††‡ˆ‰ˆ‡…ƒ‚‚ƒ„…††………†††…„‚}}|{ywvtsrppppqrrrqrsuvxz||}~~€€‚ƒ…†ˆŠŠŠ‹‹ŒŒŒŒŒŠˆ‡†„ƒ}{{zxwvvvwxyyyyz{|}}}~€‚ƒ…†††‡‡‡‡‡†††††‡‡‡‡‡†„~|zyxwvtrqqqqrrsrqqrrrstvwxz{{|||}‚ƒ„„„ƒ„†ˆˆˆˆ‰‰‰ˆ‡†…ƒ‚€‚ƒ„…„„„„„„„ƒ‚€~}}}}}}}}}~~~~~}|{{{zyyzyxwwwwwxy{||~€‚ƒ„…†‡‡†…„…†………„ƒ€€€€€€€€~|{zzzyyxxyz{|}~‚ƒƒ‚‚‚‚ƒ„…………„ƒ‚€€€€~}{yxwuuutssrrsssstttuwxyz{|}~€‚ƒ„…†ˆˆ‰‰‰‰Š‹‹‹‹‹ŠŠŠŠŠŠ‰ˆ‡††………ƒ‚€}}|{zzzyxxwwwvutrqqqqqqrtuwxz}€‚‚‚ƒƒ„„ƒƒ„……………………„„ƒ‚‚‚‚‚‚‚‚‚‚ƒƒƒƒ‚‚€€€€~~}}}||zyxxwwwwxxxyz|}}~~~€‚‚ƒƒ‚‚€~}|{{zyyyyyxy{||}€€‚ƒ„………††††††‡‡‡††††………„‚€}|zyxwwwwwwwwvvwwxxyz{|}~€‚ƒƒ‚‚‚‚‚‚‚‚‚ƒ„……†…††……††………………„„„ƒƒ‚‚‚€€€~}{zxvtrqppppqrtuvxyyz{{{{|||}~~€‚ƒ„……††††…†……„„ƒƒƒƒ‚‚‚‚‚‚‚‚‚‚‚‚‚‚€€~}|{zxxwwvvwwwwxyz{{|}}~€‚‚ƒƒƒƒƒƒƒƒƒƒƒƒƒƒ‚‚€~~~~€‚ƒƒ„„…„ƒ‚€~~~~~}}}}|||{{zzzzzzzzzzz{{{||}~~€€€€€€‚‚ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ‚€€€€~~}}|{zzyyyxxxxxxyyyzz{{{{{{{{|}}~€‚‚ƒƒƒƒƒƒ„„„„„……………†…„„ƒƒ‚€€~~}}}}}}}}}|{{{{zzzzzzz{{{{|}}~~€‚‚‚‚‚‚ƒƒƒ„„„„„„„„„„„„ƒƒ‚‚‚€~}||}|||||}}}}}}}}|{zzzzyyyyzz{{{|}}}}}~~€€€€€€‚‚‚‚ƒƒƒƒƒƒƒƒƒ‚‚‚‚€€€€€€~~~~~~~~~~~~~}}|||||||}}}~~~~~~~~~~~€€€€€‚‚‚ƒƒƒƒ„„„ƒƒƒƒ‚‚€€€~~~~}}}}}}}}}}|{{{{{{{{{|{||}}}~~}}}~~~~€€‚‚ƒƒƒƒƒƒƒƒƒ‚‚‚‚‚‚€€~~}}}}||{{{{{{{{{{{{|||}}}}}}~~~~~€€‚‚‚ƒƒƒƒƒƒƒƒ‚‚‚‚‚‚€€€~~~~~~}}}}}}}}}}}}}}}}}~~~~~€€€€€€€€~~~}}}}|||||||||}}}}}}~~~~~~~~~~~~€€€€€€€€€€€€€€~~~~~~~~~~~~~~~~~~~~~~~~~~€€€€€€€€~~~~~~~~~~~~~~~~~~~~~~~~dopewars-1.5.12/sounds/19.5degs/Makefile.in0000644001565000007070000002662610355323275015212 00000000000000# Makefile.in generated by automake 1.9.5 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@ target_triplet = @target@ subdir = sounds/19.5degs DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkgdatadir)" pkgdataDATA_INSTALL = $(INSTALL_DATA) DATA = $(pkgdata_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ pkgdata_DATA = \ colt.wav gun.wav losebitch.wav \ murmur.wav run.wav train.wav bye.wav \ die.wav jet.wav message.wav punch.wav shotdown.wav EXTRA_DIST = README $(pkgdata_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sounds/19.5degs/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu sounds/19.5degs/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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \ $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \ rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: 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 $(DATA) installdirs: for dir in "$(DESTDIR)$(pkgdatadir)"; 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-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-pkgdataDATA install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-pkgdataDATA .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-pkgdataDATA \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-info-am uninstall-pkgdataDATA # 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: dopewars-1.5.12/sounds/Makefile.am0000644001565000007070000000011607553010310013711 00000000000000## Process this file with automake to produce Makefile.in SUBDIRS = 19.5degs dopewars-1.5.12/sounds/Makefile.in0000644001565000007070000003660310355323275013747 00000000000000# Makefile.in generated by automake 1.9.5 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@ target_triplet = @target@ subdir = sounds DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ SUBDIRS = 19.5degs all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sounds/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu sounds/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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(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 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am 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: dopewars-1.5.12/TODO0000644001565000007070000000440107725755310011054 00000000000000- Fix errors reported by 'msgfmt -cv foo.po' - User accounts (i.e. players connect with a username and password, so can build up their status over several games, or save and continue games) - Popup to let you know you only have x days left before the end of the game - Better use of screen space in curses client for large xterms etc. - Preserve chat messages at end of game (so they aren't lost when looking at the high score list) ? - Price history graph and/or more sensible price fluctuations - Network installer for Win32 version, so that we don't have to distribute megabytes of DLLs, sounds and translations if the user doesn't want them (or already has them) - Option to let the cops search/fine you rather than shooting at them - Limit rate of server connections to combat DOS attacks / players trying to get a good starting day? - Add support for reading/writing multiple configuration files to GUI client's Options dialog - Startscreen - Track down server memory corruption bug! - Implement server option to buy more than one bitch at a time in the Pub. - Allow customisation of GtkTextView tag colours - Admin of running NT Service servers - GSS_API SOCKS support? - Fix problem with dialogs popping up while menus are open - Increase difficulty of escaping from another player - impose penalty on running (lose drugs, free shot, destination revealed) - Alliances/cartels - several players share cash - Introduce minimum/maximum players options - AI players automatically spawned/killed to "fill the gaps" when humans leave/enter - "Deal" option when meeting players? - Bribe/steal bitches when meeting players (difficulty inv. prop. to number of bitches?) - Problems reported with display of large prices and health - "seems" to be OK now... (i.e. I can't see anything wrong with it!) - Fix GTK+ modal dialog behaviour (mouse grabbing during fighting) - _seems_ to be OK... - Fix bug with players leaving the game during fights (first, must find it) - Metaserver keeps list of game types of each server Cannot reproduce... can you? (- Investigate deadlock during fighting if both players move to "deal") Cannot reproduce... can you? (- Investigate prompt for bitch on every turn after a spy is dispatched) dopewars-1.5.12/aclocal.m40000644001565000007070000007551510355323262012230 00000000000000# generated automatically by aclocal 1.9.5 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.5])]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([acinclude.m4]) dopewars-1.5.12/LICENCE0000644001565000007070000004313207156722202011345 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. dopewars-1.5.12/dopewars.desktop0000644001565000007070000000053310140566624013576 00000000000000[Desktop Entry] Name=dopewars Name[de]=Drogenkrieg Name[pl]=Wojny narkotykowe Comment=dopewars drug dealing game Comment[pl]=Gra polegajÄca na handlowaniu narkotykami Comment[fr]=Jeu de vente de drogue Exec=dopewars Icon=dopewars-weed.png Terminal=false Type=Application Categories=Application;Game;ArcadeGame; Encoding=UTF-8 # vi: encoding=utf-8 dopewars-1.5.12/config.guess0000755001565000007070000012206510355115416012701 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2003-06-17' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 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 0 ;; --version | -v ) echo "$version" ; exit 0 ;; --help | --h* | -h ) echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown ## for Red Hat Linux if test -f /etc/redhat-release ; then VENDOR=redhat ; else VENDOR= ; fi # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit 0 ;; amiga:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; arc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; hp300:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mac68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; macppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme88k:OpenBSD:*:*) echo m88k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvmeppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; pmax:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sgi:OpenBSD:*:*) echo mipseb-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sun3:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; wgrisc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; *:OpenBSD:*:*) echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} exit 0 ;; alpha:OSF1:*:*) if test $UNAME_RELEASE = "V4.0"; then UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` fi # 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 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/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit 0 ;; Alpha*:OpenVMS:*:*) echo alpha-hp-vms exit 0 ;; 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 0 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit 0 ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit 0;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit 0 ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit 0 ;; *:OS/390:*:*) echo i370-ibm-openedition exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit 0;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit 0;; 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 0 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit 0 ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit 0 ;; DRS?6000:UNIX_SV:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7 && exit 0 ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; 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 0 ;; 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 0 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; 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 0 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit 0 ;; # 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 0 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit 0 ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit 0 ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit 0 ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit 0 ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit 0 ;; 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 \ && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ && exit 0 echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit 0 ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit 0 ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit 0 ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit 0 ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit 0 ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit 0 ;; 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 0 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit 0 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit 0 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit 0 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit 0 ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit 0 ;; ????????: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 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit 0 ;; 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 0 ;; *: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 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo rs6000-ibm-aix3.2.5 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 0 ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix exit 0 ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit 0 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit 0 ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit 0 ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit 0 ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit 0 ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit 0 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then # avoid double evaluation of $set_cc_for_build test -n "$CC_FOR_BUILD" || eval $set_cc_for_build if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit 0 ;; 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 && $dummy && exit 0 echo unknown-hitachi-hiuxwe2 exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit 0 ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit 0 ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit 0 ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit 0 ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit 0 ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit 0 ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit 0 ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit 0 ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit 0 ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit 0 ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; 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 0 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; *:UNICOS/mp:*:*) echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; 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 0 ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit 0 ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) # Determine whether the default compiler uses glibc. eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #if __GLIBC__ >= 2 LIBC=gnu #else LIBC= #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit 0 ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit 0 ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit 0 ;; x86:Interix*:[34]*) echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' exit 0 ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit 0 ;; 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 0 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit 0 ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit 0 ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; *:GNU:*:*) echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit 0 ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit 0 ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu exit 0 ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 ;; ppc:Linux:*:*) echo powerpc-${VENDOR:-unknown}-linux-gnu exit 0 ;; ppc64:Linux:*:*) echo powerpc64-${VENDOR:-unknown}-linux-gnu exit 0 ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit 0 ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit 0 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit 0 ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu exit 0 ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; x86_64:Linux:*:*) echo x86_64-${VENDOR:-unknown}-linux-gnu exit 0 ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit 0 ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit 0 ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit 0 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #ifdef __INTEL_COMPILER LIBC=gnu #else LIBC=gnuaout #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 ;; 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 0 ;; 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 0 ;; 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 0 ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit 0 ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit 0 ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit 0 ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit 0 ;; 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 0 ;; i*86:*:5:[78]*) 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 0 ;; 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 0 ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit 0 ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit 0 ;; paragon:*:*:*) echo i860-intel-osf1 exit 0 ;; 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 0 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit 0 ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit 0 ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit 0 ;; M68*:*:R3V[567]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 3[34]??:*: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) 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 0 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4 && exit 0 ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit 0 ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit 0 ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; *: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 0 ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit 0 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit 0 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit 0 ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit 0 ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit 0 ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit 0 ;; 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 0 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit 0 ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit 0 ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit 0 ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit 0 ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit 0 ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit 0 ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Darwin:*:*) case `uname -p` in *86) UNAME_PROCESSOR=i686 ;; powerpc) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit 0 ;; *: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 0 ;; *:QNX:*:4*) echo i386-pc-qnx exit 0 ;; NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit 0 ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit 0 ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit 0 ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit 0 ;; *: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 0 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit 0 ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit 0 ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit 0 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit 0 ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit 0 ;; *:ITS:*:*) echo pdp10-unknown-its exit 0 ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit 0 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; c34*) echo c34-convex-bsd exit 0 ;; c38*) echo c38-convex-bsd exit 0 ;; c4*) echo c4-convex-bsd exit 0 ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: dopewars-1.5.12/po/0000777001565000007070000000000010355323337011060 500000000000000dopewars-1.5.12/po/de.gmo0000644001565000007070000017122010355323336012072 00000000000000Þ•ÙäѬ-ð<”ñ<?†=HÆ=">2>5B>5x>®>¾>Ø>&ì>$?'8?'`?ˆ?¥?¿?×?÷?@(@F@`@u@‰@@°@ Ä@ Ñ@Û@ä@+A/A=LAŠA£A´AÊAáAüA B B $B .B8BABTB hBsB‰BB!°BÒBãB%C(CHC]CtCC ¬CÍCèCDD/DBD`D ~D/ŒD¼D"ÃDæDíDöDþDEEEE&E 5E BENEkE|EE¤E ¶EÄEÖEåEõE FF,F=F QF[FbFiFpFwF €F#¡FÅF(ÎF"÷F;GVGpG †G“G¢G-§GÕGìG HH 3H+?H+kH—H²HBÒH!I#7I [I|I0”I$ÅIêI þI J J'J ,J6JJJSJJ[J¦J$7L\LeLkLtLxL LL%¥LËLÐLîLM% M5FM|MšM(¸M(áM) N)4N^N*{N´¦N#[OO$˜O½O ÂOÌO ÕO âO,îOPJ#PnPwP P ‹P­˜P*FQqQ!‘Q ³QÔQìQÿQ;R:wR²R<ÉR,S3S8S1WS‰S$S/ÂSKòS1>TpT$‹T°TÌTÜT ìTùTÿT*U(.UWUoU)ƒU­U ²U"¼UßU#èU VV0VLVTV jV<vV+³VßVäV éVóVW&WCWIWcWkW&W¦W¬WÊWAáW#X+X-4XbX"X¢XÂXÝXãXGY?IYE‰Y2ÏYZZ6Z=ZUZZZkZZ‰Z£ZªZ ÁZÌZ&ÓZúZ[ 4[ @[J[ Y[d[z[‘[ ¨[É[Ú[ ë[0 \/=\Am\¯\!Í\%ï\0]3F]+z]¦],¹]0æ]*^/B^,r^.Ÿ^Î^å^ __'_F_V_)f_0_Á_(Ø_'`/)` Y`z`”`¯`Ä`Ý`ñ`÷`û` a.aLaaa!va$˜a'½a(åab,b34b hb rb4}b²bÇb!Üb'þb(&cOcmc.Œc»c7Àcøcüc,d.d?d[dud‡d˜d®d¿dÔdðde e8e+Re~e”e¯eÎeÒeÙeâe ÷ef™f™­f)Ggqg€g)Ÿg&Égðg÷gh$.h'Sh{h›h³h)Ìh"öh i%i5i/Ui…i‹i“i—iši&µi,Üi" j ,j$7j\j djnj uj=‚j Àj Íj%Ùj"ÿj"k*k'Jk0rk£kÁkÙkòkl9'm7am2™mOÌmn$,nQn Vn,bn!n±n)¸nânónùn o"o*@oko ~oŠo‘o šo¤oªo±o5ÍopAp\p bpnpwp@•pÖpÜp#ópq)q .q8qGq^q,cq-q¾q Åq.Ñqr r+rBr\rl{rjèr$Ss(xs*¡s!Ìs"îs/t.At/pt< t;Ýt4u:Nu6‰u6Àu(÷u4 v%Uv.{v2ªv7Ývw w%w=w Cw Qw]wpw w w ›w©w)¯w#Ùw(ýw'&xNx,mxšx,¹x æx1y(9y,byy£yµy-¼y"êy" z*0z[z tz•zL²z%ÿz0%{0V{ ‡{(¨{Ñ{;í{;)|1e|(—|*À|)ë|6}L}4ê}~0~ M~X~0o~! ~"Â~å~,þ~L+MxLÆ€)€E€ b€ƒ€†€ –€&¢€,É€"ö€W6Ž*ÈЀà-a‚‚)—‚@Á‚ ƒ#ƒ(ƒCƒ]ƒxƒ/Šƒºƒ)׃ „!„/1„)a„‹„(©„Ò„$Û„/….0…)_…%‰…$¯…Ô…:ñ…,†2†(5†@^†XŸ†'ø†4 ‡ U‡)v‡ ‡¾‡"‡å‡%÷‡7ˆ,Uˆ ‚ˆ£ˆ,¿ˆ/숉.<‰ k‰vy‰ ð‰Fþ‰FEŠ5ŒŠŠ ÞŠêŠ ‹‹(3‹(\‹…‹*”‹¿‹Ý‹ð‹-Œ=ŒUŒ@pŒ9±Œ*ëŒ1 HV^fnu ~‰’™ ¦¬°´ ¹ÃÊ äñ,ö%#ŽIŽ*eŽŽ°Ž$ÏŽ#ôŽ(%Agz,™"Æ"é$ 1DJP1XŠŽ“œ¥¬ µ9Áû ‘H(‘q‘†‘‹‘‘‘™‘°‘´‘ ¹‘ Å‘GÓ‘ ’)’*?’j’ {’†’–’ ¥’³’ Å’5Ó’F “P“Y“h“p“;y“…µ”!;•]•-|•ª•:½•;ø•4–F–"c–)†–0°–.á–+—<—Y—!p—#’—¶—Ηç—˜˜.˜F˜[˜p˜ „˜ ˜ ™˜£˜*Á˜ì˜8 ™D™_™q™Œ™¤™Á™ Ñ™ Þ™ é™ ô™ ÿ™ šš 6šBšZšrš&ƒšªš"½š(àš$ ›.›!J›l›‰›!©›Ë›å›œœ8œ#Nœrœ‘œ9 œÚœ(àœ   ' 2 <F O\s …!’´Í æóžž0ž@žPžlž†žŸž·ž ÒžÝžåž íž øž Ÿ/Ÿ-CŸ qŸ){Ÿ&¥ŸFÌŸ '+ S  c q 0v § !Ä æ ÷  ¡"¡;¡W¡ p¡E‘¡#ס-û¡ )¢J¢.e¢+”¢À¢ Ö¢á¢å¢£ ££ %£/£J7£»‚£3>¥ r¥¥…¥ Ž¥ ˜¥¤¥·¥&Í¥ô¥ù¥¦/¦/I¦Fy¦%À¦$æ¦) §)5§*_§*Ч$µ§1Ú§¿ ¨+̨ø¨,©C© K© X© d© q©%}©£©Iª©ô© ü© ª ªÌ!ªBîª1«*P«1{«­«ë'Ø«?¬@¬G`¬¨¬?¼¬5ü¬ 2­(=­Tf­»­BÔ­U®Vm®,Ä®ñ®(¯09¯j¯y¯‰¯™¯Ÿ¯"£¯'Ư'°A° J°-X° †°2“°ư ΰLذ %±0±P±<e±&¢±ɱ бÚ±é±ü±)²F²cM²±²À²-Õ²³+ ³6³DN³ “³ ³/¨³#س&ü³"#´F´c´6k´Q¢´Gô´<<µNyµȵ"Ûµþµ¶¶"¶8¶ N¶JX¶ £¶®¶ŶÔ¶&Û¶··:· Q·]· t·‚·Ÿ·³·&ηõ·¸!¸H=¸/†¸?¶¸!ö¸$¹0=¹2n¹¡¹.º¹é¹/ü¹0,º"]º2€º:³º-/»O»X»$a» †» “».¡»;л- ¼$:¼$_¼„¼¼»¼мî¼½&½ >½J½O½ c½.m½œ½²½"Ƚ'ë½)¾&=¾Jd¾ ¯¾M¹¾ ¿ ¿4¿S¿i¿"¿)¢¿&Ì¿Jó¿>À4]À’À2™ÀÌÀÐÀ&ÕÀüÀÁ"Á4ÁEÁVÁ eÁsÁ‰Á¢Á ¶ÁÄÁÞÁñÁ 'Â"5ÂXÂ\ cÂo …Â’ÂÈ­ÂÅvÃ"<Ä_Ä"wÄ&šÄ'ÁÄéÄðÄ Å*&Å)QÅ{ŔűÅ%ËÅñÅÆ"Æ#6Æ;ZÆ–Æ œÆªÆ®Æ±Æ)ÏÆ/ùÆ!)Ç KÇ(VÇ Ç Ç›Ç ¢Ç@­ÇîÇ È/ÈJÈiÈqÈ,ŠÈ3·ÈëÈÉÉ!3É0UÉ<†Ê1ÃÊ4õÊM*ËxËˆË¢Ë §Ë(´Ë!ÝËÿËÌÌ4Ì:ÌLÌ hÌ1‰Ì»Ì ÊÌÕÌÜÌâÌñÌ úÌÍ>ÍUÍgpÍØÍ ÞÍêÍ üÍIÎgÎmÎ(ƒÎ¬Î ÂÎÌÎÛÎîÎÏ Ï++ÏWÏ ^Ï8jÏ£Ï «Ï4¹ÏîÏ0 ÐJ;ÐJ†Ð'ÑÐùÐÑ'Ñ ;Ñ\ÑzÑ—Ñ"´Ñ&×Ñ.þÑ,-Ò2ZÒ6ÒÄÒ*ÚÒ%Ó,+Ó*XÓ:ƒÓ¾Ó ÄÓÎÓéÓïÓ ÔÔ0Ô CÔ MÔ [Ô iÔ,sÔ1 Ô)ÒÔ'üÔ.$Õ0SÕ!„Õ7¦ÕÞÕ-ùÕ-'Ö,UÖ‚ÖšÖ®Ö7·ÖïÖ×+.×Z×:mר×MÄ× Ø03ØIdØ(®Ø!רùØFÙH[Ù+¤Ù2ÐÙ2ÚD6Ú1{Ú¶­Ú;dÛ Û»ÛÛÛâÛ4Ü+7Ü#c܇Ü/ÜCÍÜDÝGVÝ žÝ7¨Ý!àÝ$Þ'Þ,Þ<Þ-KÞ3yÞ%­ÞÓÞ@éÞ*ß0;ßlßtߊ„ß+à;àCà_[à/»àëàðà á#á?á#Qá$uášá·á/Ìá"üá!â&Aâ?hâ¨â.°âBßâB"ã2eã3˜ã3Ìãä.äJäOä6Rä2‰äB¼ä%ÿä7%å]å({å¤åÂåÅåàå$ôå;æ/Uæ!…æ§æ'Âæ0êæç87ç pçw~ç öçDèEHè.Žè½èÚèöèé .é-Oé.}é¬é/Áé)ñéê$6ê7[ê%“ê#¹ê?Ýê?ë0]ë;ŽëÊëÙë âë ðë ûë ì ì ì +ì9ìBìIìRìXì\ì dìpì€ìœì¬ì-°ì&Þìí+"í Níoí%í$µí)Úí"î'î;î-[î#‰î#­î%Ñî÷îïïï=$ïbï kïvïïˆïï˜ïB§ïêïúïHð]ðrðxð ð‰ð£ð©ð°ðÅð@Öðñ (ñ6ñNñbñrññ—ñ°ñËñ4àñEò[ò dò rò€òÒ)}H: ÇŸ®jì@-Ь†©Í€¹·ÊÙ‰1¼%3ޱ<õˆÄw¶cbÈ;Y ›* ýaõBµ×#J'‹˜ô! G¶ƒdHTO”³ú‡ÑÔCs|{žAº× ÷Ê í(z¬¯Ág¾’ⵈÌ<’âM8¯É^§ZŒ%N ¦¢ó• €ò»x¿r+v(À< «&G\—gp™Ž¹Ãß^²”û>ˆiç,ù‚ƒ¤l„[qQtÔÅ×Â0åXg2A&Oë@¸sÌÚbró!£ªOИБwàñ+ÎmS«Rx·©hq]Í¥‹±Ôÿ–ø9¸9)$·u”¥RÑT{°E­ÀÅÄk‚B/nË2Â5k l“8=RÕ¿¤Kzð´£ïW•¿ÙXŽS©™ï!º¦ä…Ö²K¯C É=7ÀÛ'Wê¨qc‡Ϙ Š®£:JÜâcÿË ?Z°­þM¾ÐŒV0üA>ë´X¬îÛ~,f'P›ÇjrUUNÎs2/½Í3oú¸ª®jų̂L4¤VýJ\i`ÖyIv6huL/1?­²I`Ø)ÈÇä9=T N.U;—‰™`—¢¡šéÃɶZÞMÆi‰-&•(Ÿžl[7‘çÖ>Ïø"Bæ$Ü æ7[+ž.3G«dãöôz¨…¹ü¼#e]n“ƒØWL|tI5_þÈF÷?ão}4eìÞ4„ 8D5 „b‡µ»ð-n¦ñwÝÊÆ$–Ñ#³íS…6_»fŠšˆ{à]yÎá|m¾PvÝDÙ"Õ*Hu@¥Ó‹½ÆÒ~ \dŸ´ §Yy}1¡Òh:Y½Ó6P^Ú‚êVº§›öù*áEèQ¼Dšf¡ÂÄòk°mE~épÓ–,"ŒÅ€’KFÏ0³‘±Õ†Áa“eß.ªFåpÁxoaœ;ØQ蜜_tîC % For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) Are you sure? You find %P on the body! You loot the body!% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/GTK Stats: Guns/%Tde%/LoanShark window title/%Tde%/Location to jet to/%tde%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(Dead)(Enter a blank username to cancel)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Attack penalty relative to a playerAuthenticating with SOCKS serverAuthentication RequiredAuthentication for LocalName with the metaserverAuthentication required for realm %sAvailable space: %dBSDTPLGFJQBSLBad metaserver reply "%s"BankBank %17PBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot get metaserver detailsCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash %17PCash: %PCentral ParkChange NameChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Congratulations! You made the high scores!Connected to SOCKS server %s...Connection aborted due to failureConnection closed by remote hostConnection established Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolD O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt %17PDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s:%u (%s)Failed to contact nameserverFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth %3dHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf TRUE, use SOCKS for metaserver communicationIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Location of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLudesMDAMaintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-MetaserverMetaserver name to report/get server details to/fromMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of a proxy for metaserver communicationName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!OpiumOptionsPCPPSPanic! You can't get away!Password for HTTP Basic authenticationPassword for HTTP Basic proxy authenticationPassword for SOCKS5 authenticationPassword: Path of the script on the metaserverPay allPay back:PeyotePlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort for communicating with the proxy serverPort for metaserver communicationPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedProxy Authentication RequiredProxy authentication required for realm %sPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesRival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication required (enter a blank username to cancel)STGCNSaturday Night SpecialSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Could not connect to metaserver (%s)Status: Waiting for user inputTRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unix prompt. This will display a help screen, listing the available options.UnknownUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUnknown metaserver error code %dUpUp since : %sUser name: Username for HTTP Basic authenticationUsername for HTTP Basic proxy authenticationUsername for SOCKS5 authenticationUsers currently logged on:- Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy authenticationUsing name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public Licence Waiting for connect to metaserver at %s:%u...WarningWasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!WeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initialisedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licencedopewars serverdopewars server terminating.dopewars server version %s ready and waiting for connections on port %d.dopewars version %s drugdrugsescapedgot connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe pubwas shotProject-Id-Version: dopewars-1.5.3 Report-Msgid-Bugs-To: POT-Creation-Date: 2005-12-30 13:30-0800 PO-Revision-Date: 2001-04-08 15:48+0100 Last-Translator: Eric Steiner Language-Team: German MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Für Informationen über Kommando Optionen, gib 'dopewars -h' in deiner UNIX-shell ein. Die Hilfe Übersicht wird dir dann angezeigt. L>iste Server des Metaserver auf,möchtest Du das Spiel B>eenden oder möchtest Du als E>inzelspieler spielen B>edröhn dich S>chicke Spion zu einem anderem Dealer (kosten: %P) V>erpfeife ein anderen Dealer an die Cops (kosten: %P) Bist Du sicher? Du findest %P in der Leiche!Du plünderst die verdammte Leiche!% Treffer Wiederstandsfähigkeit der Huren% Treffer Wiederstandsfähigkeit jedes Polizisten% Treffer Wiederstandsfähigkeit jedes Deputies% Treffer Wiederstandsfähigkeit der Spieler%/BankName Fenstertitel/%Tde%/Kampf: Huren/%d %tde%/Derzeitiger Aufenthaltsort/%tde%/GTK Waffenladen Fenstertitel/%Tde%/GTK Stats: Huren/%Tde%/GTK Stats: Waffen/%Tde%/Kredithai Fenstertitel/%Tde%/Reiseziel/%tde%/Spion: Drogen/%Tde...%/Spion: Waffen/%Tde...%/Stats: Drogen/%Tde%/Stats: Waffen/%Tde%Tde %3d Platz %6d%Tde dabei%Tde hier%d von %d%s - %s - verfolgt dich Mann!%s und %d %tde - %s - verfolgen dich Mann!%s trifft ein mit %d %tde, %s!%s hat deine %tde angenommen !^Kontaktiere deinen Spion.%s ist geflohen nach %tde!%s ist abgehauen!%s hat das Spiel verlassen%s verlässt das Spiel. %s hat deine %tde abgelehnt!%s trifft Dich!%s ist "%s" %s ist %P %s ist %d %s ist %s %s ist { %s betritt das Spiel!%s betritt das Spiel. %s getötet %s verlässt den Server!%s spioniert nun bei %s%s erschießt %s.%s schießt auf %s und tötet eine %tde!%s schießt auf %s.%s schießt auf %s... und verfehlt!%s schießt auf dich und tötet eine %tde!%s schießt auf dich... und verfehlt!%s spion bei %s: VERWEIGERT%s steht rum und kriegts voll ab.%s verpfeifft %s: VERWEIGERT%s hat %s bei den Cops verraten%s versucht erfolglos zu fliehen.%s ist nun bekannt als %s%s ist nun bekannt als %s.%s: VERWEIGERT Reise zu %s%s: Spion angeboten durch %s%s: Verpfiffen von %s%s: Angebot war im Interesse von %s%s: Verrat von %s erledigt OK.%s[%d] ist %s %s^%s ist anwesend!^Willst Du Angreifen, oder Ausweichen?(Tot)(Benutzername für Abbrechen leer lassen)(Links)(R.I.P.), W>egwerfen, K>ämpfen, A>ktion, R>eisen, L>iste, V>erkaufen, S>prechen, F>lüstern, oder B>eenden? 38er Spezial/Aktionen/_Lese Spionagereport.../Aktionen/_Spionieren.../Aktionen/_Verpfeifen.../Spiel/Sound/Spiel/_Abbrechen.../Spiel/_Neu.../Spiel/_Einstellungen.../Spiel/_Ende.../Hilfe/_Über.../Anzeigen/des _Inventars.../Anzeigen/der _Spieler.../Anzeigen/der _Punkte.../Mitteilung/An _Alle.../Mitteilung/An _Spieler.../_Aktionen/_Spiel/_Hilfe/_Anzeigen/_Mitteilung<- _VerkaufenEin Tag ohne Drogen ist so dunkel wie die NachtSelbst ein trainierter Affe könnte das besserA:AngriffKI Spieler wurde getötet. Beende normal. KI Spieler wurde vom Server geworfen. KI Spieler gestartet; erstelle Verbindung zu Server %s auf port %d ...KI Spieler beendet OK. Willst du das aktuelle Spiel abbrechen?Spiel AbbrechenÜber DopewarsAcidSüchtige reißen dir %tde förmlich aus den HändenAdresse wird bereits benutztAdressenfamilie nicht unterstütztAdmin Befehl: %sAdmin Verbindung geschlossenAgent SchmidtStartkapital der SpielerAnfangsschulden der SpielerStehst du auf irgendwas?Willst Du wirklich schon gehen? Bist Du sicher? (Alles %tde oder %tde getragenes %tde geht verloren!)Frage SOCKS für Verbindung zu %s...Angriffsstrafe im Verhältnis zu einem SpielerAuthentifiziere bei SOCKS ServerAuthentifizierung benötigtAuthentifizierung für LocalName mit MetaServerAuthentifzierung wird für Realm %s benötigtVerfügbarer Platz: %dEVWSFLAKRBEVGFalsche Metaserverantwort "%s"KontoKonto %16PBank ist in %s Konto: %PBarettaDieses Spiel basiert auf dem alten Drug Wars Game von John E. Dell und istDrogenkrieg basiert auf John E. Dell's Spiel 'Drug Wars'. Das Spiel simuliert einen imaginären Drogenmarkt, mit allen Dingen die man so gerne macht, wie zum Beispiel: Einkaufen, Verkaufen und versuchen nicht von der Polizei erwischt zu werden. Als erstes sollte man seine Schulden beim Kredithai begleichen. Danach ist es das Ziel soviel Geld wie möglich zu verdienen und natürlich am Leben zu bleiben. Man hat dafür _nur_ einen Monat Zeit. Für die Fehlersuche hilfreiche Nachrichten erzeugenEric SteinerBronxBrooklynEinkaufenKaufen %tdeWieviel Einkaufen?Kaufe %d %tde für %P Kaufe eine %tde für %P im Waffenladen VLBEIhr wollt Drogendealer sein?Preis kann extrem fallenPreis kann extrem steigenKann nicht auf Port %u (%s) starten. Breche ab.Kann keine Sicherheitskopie (%s) der Bestenlistendatei (%s) erstellen.Kann PID Datei nicht erstellen %s: %sBekomme keine Details des MetaserverKann SIGHUP nicht installieren, breche abKann SIGINT nicht installieren, breche abKann SIGTERM nicht installieren, breche abKann SIGUSR1 nicht installieren, breche abKann pipe handler nicht installierenKann nicht am Netzwerksockeln horchen. Breche ab.Kann Bestenliste %s nicht öffnen. (%s) Bitte prüfe nach ob Du überhaupt die Rechte für die Datei hast oder spezifiziere ein alternative 'Bestenlisten' Datei mit der -f kommandozeilen option.Kann Bestenlistendatei nicht öffnen %s: %s.Kann Netzwerk nicht erreichenKann nicht kämpfen - Keine Waffen verfügbar!BargeldBargeld %14PBargeld: %PCentral ParkÄndere NameWähle einen Auftrag für deine %tde...KokainKolumbianischer Frachter abgefangen. Weedpreise haben Tiefpunkt erreicht.Befehl:KommentarKommentar: %sConey IslandEinstellungen können nur interaktiv geändert werden wenn keine Spieler eingeloggt sind. Warte bis alle Spieler ausgeloggt sind oder entferne sie mit dem push oder kill Kommando und versuche es dannnochmalFantastisch! Du hast Dir einen Platz auf der Bestenliste verdient!Verbinde zu SOCKS Server %s...Verbindung wegen eines Fehlers abgebrochenVerbindung wurde durch remote Rechner geschlossenVerbindung erstellt. Verbindung abgelehntVerbindung durch Remote Rechner beendetVerbindung zum Server verloren - wechsle in Einzelspieler-ModusVerbindung zu Server verloren! Verbindung zum Server unterbrochen! Kehre zurück in Einzelspieler-ModusKonstruktive KritikKonstruktive Kritk Andrea Elliot-Smith Pete WinnKontrolliert die Anzahl der erzeugten Log NachrichtenPolizistenCops können keine anderen Cops angreifenDie Polizei hat %tde-Lieferung an der Grenze abgepasst. Preise schießen in die Höhe.Fehlerhafte Bestenliste!Geldbetrag den eine Hure verlangt damit sie demFeind nachspioniertGeldbetrag den eine Hure verlangt um die Polizei auf einen Feind aufmerksam zu machenKann keine Verbindung zu dopewars server (%s) herstellen KI Spieler unnormal beendet.Kann lokale Konfigurationsdatei nicht findenKann Datei nicht öffnen %s: %sKann den Multiplayer-Modus nicht startenVerbreite die Wahrheit! Bush ist ein Schimpanse!WährungssymbolD O P E W A R SH>andeln %tde, HRKSEEAVTäglicher Zins Satz ihres KreditesTäglicher Zins Satz ihres BankguthabensSchaden jeder WaffeOtto's Haus der WaffenTag des Monats an dem das Spiel startetSchuldenSchulden %13P%P Schulden an den Kredithai zurück gezahlt. Schulden: %PVerteidigungsstrafe im Verhältnis zu einem SpielerLöschenEinzahlenTeiler der für den Drogenpreis benutzt wird wenn dieser besonders billig istWillst Du Willst Du Rennen, oder Fighten?Willst Du wegrennen?Möchtest Du E>inzahlen, A>bheben, oder die Bank V>erlassen? Weiß Mami dass du mit Drogen handelst?RunterWegwerfenWegwerfen %tdeWieviel Wegwerfen?Drogen Handel und NachforschungDrogen Handel und Nachforschung Dan WolfDrogenDrogen können Deine Freunde sein .. wenn du sonst keine hast ...ach da ist ja auch noch der AlkoholV:VerschwindenDeutsche ÜbersetzungDeutsche Übersetzung Eric SteinerFehlerFehler: Kann die Bestenliste %s nicht lesenExzessives Spiel TestenExessive Testspielen Katherine Holt Caroline MooreK:KämpfenK>ämpfen, Konnte nicht zu Metaserver verbinden %s:%u (%s)Kann mit Metaserver nicht verbindenKann Dienst handler nicht registrierenKann NT Dienst Status nicht setzenKann NT Dienst nicht startenKämpfenDateiname in welche die Logs geschrieben werden sollenNach deinem Tip haben die Cops %s gefunden, Leider, konnte %d entkommen mit %tde.Nach deinem Tip haben die Cops %s gefunden, er wurde leider erschossen.Für Informationen über die Startparameter gib dopewars -h anFormat String der für teure Drogen mit 50%iger Wahrscheinlichkeit benutzt wirdSpiellänge (Runde)Spielzeit ist um. Verlasse Spiel. GhettoWaffenladen ist in%s WaffenWaffen nachgeladen...B E S T E N L I S T EHaschischWas Gott durch Berge trennt, soll der Mensch durch Tunnel nicht verbinden!GesundheitGesundheit %3dGesundheit: %dHeroinHey Kleiner, die %tde Preise von hier:Hey Kleiner, wie heißt Du? Hey Kleiner, wie heißt Du? B E S T E N L I S T ERechnernameRechner nicht gefundenRechnername: Wieviel möchtest Du kaufen? Und wieviel davon? Wieviel willste verkaufen?Wieviel Geld möchtest Du zurückzahlen?Wieviel Moneten?Ich bin ein Walross!Ich glaube nicht an Ronald ReaganMich überkommt das unbeschreibliche Verlangen meine Haare blau zu färbenWillst du eine Schokoladenzigarette mein Junge?Ist es nicht wundervoll was man heutzutage mit Düften anstellt?I hab versucht ein Hippie zu seinWeißte, ich war nicht immer ne Frau.Darf ich dir diesen hochgestylten Pudel andrehn?Ich möchte wetten das du interessante Träume hast.Ich bin .... dein Vater!Ikons und Grafiken Ocelot MantisIcons und GrafikenWenn TRUE Währungssymbol dem Preis voranstellenWenn TRUE minimiert der Server in der TaskleisteTRUE = Server läuft im HintergrundTRUE = Socks für Metaserver Kommunikation benutzenLeer lassen wenn kein Benutzername für SOCKS4 benutzt wirdIndex in array %s muss zwischen 1 und %d seinInterner Fehler %dInterner Metaserver Fehler "%s"InventarInventarThor liebt dich mehr als Du glaubst.Reise zu OrtReise => %tdeReise von %tde mit %P Bargeld und %P Schulden Trau dich NEIN zu sagen .. naja vielleicht .. ok was solls!Bringe Thor ein Opfer, häute einen PolizistenListe der Lieder die Du hören kannstListe der Dinge die du machen kannstListe der U-Bahn AnsagenZeige S>pieler oder P>unkte? Kredithai ist in %s Aufenthaltsort des KredithaisAufenthaltsort der BankAufenthaltsort des WaffenladensAufenthaltsort des PubsMedikamenteMDMAPflege PID Datei %sManhattanMaxKlients (%d) erreicht - verwerfe VerbindungMaximale DrogenanzahlMaximaler NormalpreisMaximal Standard Preis jeder DrogeMaximale Anzahl der TCP/IP VerbindungenMaximale Anzahl der begleitenden DeputiesMaximal Anzahl der Drogen an jedem OrtMaximaler Geldbetrag den eine Hure verlangt um angeheuert werden zu könnenNachrichtNachricht die angezeigt wird wenn diese Droge besonders billig erhältlich istNachricht:-MetaServerMetaserver Name um Server Details zu senden/erhaltenMinimale DrogenanzahlMinimaler NormalpreisMindest Standard Preis jeder DrogeMinimale Anzahl der begleitenden DeputiesMindest Anzahl der Drogen an jedem OrtMinimaler Geldbetrag den eine Hure verlangt um angeheuert werden zu könnenMonat in dem das Spiel startetMultiplikationsfaktor bei extrem hohen DrogenpreisenN:NeinN>ächster ; V>orheriger ; W>ähle diesen Server... NVWNameProxyname für Metaserver KommunikationName der PolizistenName der DeputiesName des DeputiesName jeder DrogeName jeder WaffeNamen der OrteName der BankName des WaffenladensName der Highscore DateiName des KredithaisName des PubsVerbinde zu Server [Name]DNS Fehler code %dNetzwerkadresse für den ServerNetzwerkfehler code %dNetzwerk-PortNetzwerksubsysten ist nicht bereitNeuNeu %sNeues SpielNeue Admin verbindungNeuer Name: Keine Polizei oder Waffen!Es ist kein curses-Klient verfügbar - Du musst das binary mit der Option "--enable-curses-client" mit dem Programm "configure" neu kompilieren oder Du benutzt den GTK+-Klient falls er verfügbar ist. Es ist kein GTK+-Klient verfügbar - Du musst das binary mit der Option "--enable-gui-client" mit dem Programm "configure" neu kompilieren oder Du benutzt den curses-Klient falls er verfügbar ist. Tja, Du bist alleine auf der Welt!Kein solcher Benutzer! Du bist ganz allein auf der Welt! Anzahl der Spielrunden (0 = unendlich)Sekundenanzahl für Erwiedern des FeuersAnzahlAnzahl der Drogen im SpielAnzahl der Waffen im SpielAnzahl der Waffen die jeder Polizist trägtAnzahl der Waffen die jeder Deputie trägtAnzahl der Orte im SpielAnzahl der spielbaren LiederAnzahl der U-Bahn AnsagenAnzahl der Dinge die du machen kannstAnzahl der Polizisten im SpielHauptmann SteinerHauptmann SchleiferOh, du musst aus Kalifornien kommenEiner deiner %tde hat für %s gearbeitet.^%s, der Verräter !OpiumEinstellungenPCPSPOh Gott! Du kommst nicht weg!Passwort für HTTP Basis AuthentifizierungPasswort für HTTP Basis Proxy AuthentifizierungPasswort SOCKS5 AuthentifizierungPasswort: Pfad des CGI-Skriptes auf dem MetaServerBezahle allesZurückzahlen:PeyoteSpiel TestSpieltests Phil Davis Owen WalshMöchtest Du nochmal spielen? Spieler ListeSpieler entfernt, Timeout bei VerbindungsaufbauSpieler entfernt, Idle TimeoutSpielerSpieler kämpfen bereits!Spieler sind bereits in verschieden Kämpfen!Spieler werden nach Ablauf dieser Sekunden getrenntEingeloggte Mitspieler -+>Spieler im Spiel:- Spieler: %d (maximal %d)Spieler: -unbekannt- (maximal %d)Bitte wähle einen Spieler aus den Du ausspionieren möchtest. Deine %tde wird dann dem anderen Spieler ihre Dienste anbieten, und wenn sie erfolgreich ist, kannst du Dir die Statistik deines Kontrahenten im "Spion Report" Menu anschauen Aber Vorsicht %tde wird dich verlassen und %tde oder %tde mitnehmen.Bitte trage den Hostname und Port des Dopewars servers ein:-Bitten warten... Baue Verbindung zu Server auf...Bitte warten... Erstelle Verbindung zu Metaserver...Polizeihunde verfolgen dich für %d block! Du hast ein wenig %tde weggeworfen!Polizei PresenzPolizeipräsenz (Orte) (%)PortPort : %d Port für die Kommunikation mit dem ProxyPort für MetaServer KommunikationPort: Bevorzugter ServerNameDrück mal 'ne Taste...PreisPreis jeder WaffeProtokoll nicht unterstütztProxy Authentifizierung benötigtProxy Authentifzierung wird für Realm %s benötigtPub ist in %s Drücke %s QueensFrageVerlasse SpielR:RennenR>ennen, ZufallsereignisseKleiner, ich werde dich töten. Es ist ja nur zu deinem besten.Entferne Drogen ReferenzenAlter, gerade haben Drogen Dealer ne Apotheke geplündert und verschneiden den Stoff nun ziemlich billigRugerU - B A H NS>tehen bleiben, SOCKS Authentifizierung benötigtSOCKS Authentifizierung benötigt (Benutzername für Abbrechen leer lassen)SVBKNSamstag Nacht SpezialRundenabstand in Sekunden für KI SpielerSound Datei auswählenVerkaufenVerkaufen %tdeWieviel Verkaufen?Verkaufe %d %tde in %P SendenSende update an Metaserver...Sende Erinnerungsnachricht an Metaserver...ServerServer : %sServer Beschreibung, die an den Metaserver gemeldet wirdShroomsEinzelspielerIch denk ich besuch dieses Jahr mal wieder AmsterdamSockeltyp nicht unterstütztMein Sohn, du brauchst mal nen neuen HaarschnittSorry, aber hier dürfen max. %d %s spielen.^Bitte versuchs später nochmal.Sorry, aber hier dürfen max. %d %s spielen.^Bitte versuchs später nochmal.Taste für Auflistung vorhandener DrogenSound Datei SPIEL ENDESound Datei SPIELSTARTSound Datei TREFFERSound Datei MISSLUNGENDER SCHUSSSound Datei ANKUNFT NEUER ORTSound Datei SPIELER BEITRITTSound Datei SPIELER AUSSTIEGSound Datei PRIVATE CHAT NACHRICHTSound Datei ÖFFENTLICHE CHAT NACHRICHTSound Datei ERFOLGREICHE FLUCHT eines SpielersSound Datei ERFOLGLOSE FLUCHT eines SpielersSound Datei wenn feindl. Hure/Deputy getötet wurdeSound Datei wenn anderer Spieler oder Cop getötet wirdSound Datei NACHLADENSound Datei wenn eigene Hure getötet wurdeSound Datei wenn Spieler getötet wirdSound Datei ERFOLGREICHE FLUCHT des SpielersSound Datei ERFOLGLOSE FLUCHT des SpielersSounds Robin Kohli, 19.5degs.comPlatzPlatz %6dPlatzverbrauch jeder WaffeSpeedSpioniere anderen Spieler ausSpion berichtetSpion berichtet %sStarte neues SpielStartgeldStartschuldenStaten IslandStatistikStatus: Frage SOCKS um zu %s zu verbinden...Status: Versuche Verbindung zu %s herzustellen...Status: Authentifizieren mit SOCKS serverStatus: Verbinde mit SOCKS server %s...Status: Kann keine Verbindung zu %s herstellenStatus: Kann auf Metaserver (%s) nicht zugreifenStatus: Warte auf Benutzereingabe"TRUE" = Lokaler Server meldet sich beim MetaServer an.Wenn TRUE Sounds aktiviertWenn TRUE Wert der gekauften Drogen speichernTRUE wenn diese Droge extrem billig sein darfTRUE wenn diese Droge extrem teuer sein darfRede mit allen SpielernRede mit Spieler(n)Sprich: Temporärer DNS Fehler - Versuchen sie es später nochmalDer Marrakesch Express ist da!Der Papst war mal Jude, weißte?Das Kommando zum Starten Ihres Web BrowsersVerbindungstimeoutDie Cops haben dich gesehen als du %tde wegwerfen wolltestDas Währungssymbol (z.B. $)Zuerst solltest du beim örtlichen Kredithai deine Schulden begleichen. DanachDer Rechnername des SOCKS ServerDie Lady neben Dir in der U-Bahn spricht,^"%s"%sDer Markt wird mit billigem selbst hergestelltem Acid geradezu überflutetDas Netzwerksubsystem ist fehlgeschlagenDie Port Adresse des SOCKS ServerDer Server wurde beendet. Verbindung zu Server unterbrochen! Kehre zurück in Einzelspieler-ModusVerbindung zum Server unterbrochen! Kehre zum Einzelspieler-Modus zurückDie Version des SOCKS Protokolls (4 oder 5)Ein Bänker spricht: "Soviel Geld haben Sie nicht."Ein Bänker spricht: "Soviel Geld haben Sie nicht."Es gibt kein befriedigenderes Gefühl als im Geld zu schwimmen nicht?Denkste Du bist hart genug um mit mir zu handeln?Dieses Programm wurde ohne Netzwerkunterstützung kompiliert und kann dadurch nicht als KI Spieler eingesetzt werden. Neu kompilieren und --enable-networking bei ./configure angebenSekundenanzahl um Verbindungen herzustellen oder zu beendenGib der Polizei einen TippZu Spät - %s hat sich verpisst!MantelFehler beim Öffnen der Datei %sAusführen der Configdatei %s in Zeile %d abgebrochenFehler: Kann die Bestenliste %s nicht lesenKann Bestenliste %s nicht schreibenUnkonstruktive KritikUnkonstruktive Kritk James MatthewsLeider benutzt schon jemand anders "deinen" Namen. Bitte ändere IhnLeider benutzt schon jemand anders "deinen" Namen, ändere Ihn bitte.deinem Unix Prompt ein. Dies listet dir alle verfügbaren Parameter auf.UnbekanntUnbekanntes Kommando - versuch mal "help" für Hilfe... Unbekannte Nachricht: %s:%c:%s:%sUnbekannter Metaserver Fehlercode %dHochOnline seit: %sBenutzername: Benutzername für HTTP Basis AuthentifizierungBenutzername für HTTP Basis Proxy AuthentifizierungBenutzername SOCKS5 AuthentifizierungEingelogte Spieler:- Benutzen Metaserver.Proxy Daten zur HTTP Proxy AuthentifizierungBenutze Name %s Gültiger Name, aber kein DNS Datensatz vorhandenVersionVersion : %sVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net Dopewars wurde unter der GNU General Public Licence veröffentlicht. Warte auf Verbindung zu Metaserver %s:%u...WarnungGibs Aids keine Chance.Wir benutzen ohne hin nur 20% unseres Gehirns, darum dröhnen wir uns auch die restlichen 80% zuWir werden die Sieger im Krieg der Drogen sein.WeedWas willst Du wegwerfen? Was möchtest Du kaufen? Was möchtest Du verkaufen? Wohin, Kleiner ? Wen möchtest Du etwas zuflüstern ? Über wen möchtest Du mehr erfahren? Wen möchtest Du los werden? Willst Du E>inkaufenWillst Du E>inkaufen, V>erkaufen, oder G>ehen? Öffne V>erbindug zu einem Server, WinSock wurde nicht initialisiertWinSock Version wird nicht unterstütztGewinner nehmen keine Drogen .... solange sie eben keine nehmenAbhebenWie soll eine einzelne Hure bezeichnet werden?Wie soll eine einzelne oder gleichwertige Droge bezeichnet werden?Wie soll eine einzelne oder gleichwertige Waffe bezeichnet werden?Wie sollen 2 oder mehrere Huren bezeichnet werden?Wie sollen 2 oder mehrere Drogen bezeichnet werden?Wie sollen 2 oder mehrere Waffen bezeichnet werden?Keine Macht den Drogen. ;)Morgens ein Joint, und der Tag ist dein FreundJ:JaJNYN^Willst du dem Doktor %P bezahlen um Dich zu heilen?YN^Hey Kumpel! Ich trage %tde für %P. Ya oder NeinYN^Irgendwas riecht hier gut!^Sieht gut aus! Willst Du es rauchen?YN^Willst Du eine %tde für %P kaufen?YN^Möchtest Du einen größeren Trenchcoat für %P kaufen?YN^Möchtest Du %tde besuchen?YN^^Willst Du eine %tde für %P anheuern?Jahr in dem das Spiel startenDuZur Zeit trägst Du %d %tdeDu kannst %d kaufenDu kannst %d kaufen, und %d tragen. Du kannst kein Geld für die folgenden Drogen kriegen %tde :Tja, besser spielen dann gibs auch nen Eintrag.Du hast keine %tde zum verkaufen!Du hast nix zum verkaufen!Du hast nicht genug Kohle für die %tde!Du hast nicht genug Platz um die %tde zu tragen!Soviel Kohle hast Du nicht!Du findest %d %tde bei einem toten Penner in der U-Bahn!Du entkommst!Du hast den wildesten Trip deines Lebens. Und dann bist du gestorben, weil Dein Gehirn es nicht mehr ausghalten hat. ;)Du hast %d. Du wurdest vom Server geworfen. Kehre in Einzelspieler-Modus zurück.Du wurdest vom Server geworfen. Kehre zum Einzelspieler-Modus zurück.wie möglichst scheffelst und am Leben bleibst.Du hörst jemanden %s spielenDu schießt, und triffst %s!Du triffst %s und tötest %tde!Du triffst und tötest %sDu siehst aus wie ein Erdferkel!Du triffst einen Freund! Er gibt dir %d %tde.Du triffst einen Freund! Du gibst ihm %d %tde.Du triffst %s nicht!Sie müssen einen positiven Geldbetrag eingeben!Du bleibst stehen und spielst ZielscheibePlötzlich hörst du auf %s.Du wurdest in der U-Bahn ausgeraubt!Du brauchst mehr %tde Platz um noch was zu tragen %tde!Du hauchst dein Leben aus! Game over.Deine Zeit als Dealer ist vorbei...Deine Ma hat aus deinem %tde Brownies gemacht! Die waren super!Dein Spion der für %s arbeitete wurde aufgedeckt!^Der Spion %s!Zzzzz... Handelst du mit Schokoriegeln oder was?^ (Zumindest kam es dir so vor als hätte Sie das gesagt)_Antiker Modus_Angriff_Einkaufen ->_Abbrechen_Schließen_Verbinde_Dealen %Tde_Wegwerfen <-_Verschwinden_Kämpfen_Hilfe_Reisen!_Nein_OK_Rennen_Spion (%P)_Stehen bleiben_Starte Einzelspieler Spiel_Verpfeife (%P)_Ja`Acapulco Gold` von Riders of the Purple Sage`Are you Experienced` von Jimi Hendrix`Cheeba Cheeba` von Tone Loc`Comin` in to Los Angeles` von Arlo Guthrie`Eight Miles High` von den Byrds`Itchycoo Park` von Small Faces`Kicks` von Paul Revere & den Raiders`Late in the Evening` von Paul Simon`Legalize It` von Mojo Nixon & Skid Roper`Legend of a Mind` von Moody Blues`Light Up` von Styx`Mexico` von Jefferson Airplane`One toke over the line` von Brewer & Shipley`The Smokeout` von Shel Silverstein`White Punks on Dope` von den Tubes`White Rabbit` von Jefferson Airplanebis an die Zähne bewaffnetfür %PHureHurenDrogen zu kaufen und zu verkaufen und den Cops zu entwischen!PolizistPolizistenerwischtDeputiesDeputydopewarsDrogenkrieg AIDrugwars wurde unter der GNU General Public Licence veröffentlichtDopewars ServerDer Server wurde beendet.dopewars server version %s klar und wartet auf verbindungen auf port %d.dopewars version %s DrogeDrogenentkommenbekommt Verbindung von %sWaffeWaffendein Bier zu trinkenschwer bewaffneteine Simulation eines imaginären Drogen Marktes. Das Ziel ist esleicht bewaffnetgut bewaffnetoder K>ontaktiere Spionoder tue N>ichts ? oder B>eenden? kaum bewaffnetdeine Bong zu rauchendeine Zigarre zu rauchendeine Zigarette zu rauchenden Joint zu rauchenstrftime() Format String um den Spiel Zug anzuzeigensolltest du dir in der Szene einen Namen machen indem du soviel Geld die Bankden Kredithaiden Irish Pubwurde getroffendopewars-1.5.12/po/dopewars.pot0000644001565000007070000027205510355323332013352 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "" #: src/dopewars.c:195 msgid "the Bank" msgstr "" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "" #: src/dopewars.c:196 msgid "the pub" msgstr "" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "" #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "" #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "" #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "" #: src/dopewars.c:493 msgid "Name of each location" msgstr "" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "" #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "" #: src/dopewars.c:717 msgid "cop" msgstr "" #: src/dopewars.c:717 msgid "cops" msgstr "" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr "" #: src/dopewars.c:723 msgid ".38 Special" msgstr "" #: src/dopewars.c:724 msgid "Ruger" msgstr "" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "" #: src/dopewars.c:733 msgid "Cocaine" msgstr "" #: src/dopewars.c:734 msgid "Hashish" msgstr "" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "" #: src/dopewars.c:736 msgid "Heroin" msgstr "" #: src/dopewars.c:737 msgid "Ludes" msgstr "" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" #: src/dopewars.c:739 msgid "MDA" msgstr "" #: src/dopewars.c:740 msgid "Opium" msgstr "" #: src/dopewars.c:741 msgid "PCP" msgstr "" #: src/dopewars.c:742 msgid "Peyote" msgstr "" #: src/dopewars.c:743 msgid "Shrooms" msgstr "" #: src/dopewars.c:744 msgid "Speed" msgstr "" #: src/dopewars.c:745 msgid "Weed" msgstr "" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "" #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "" #: src/dopewars.c:755 msgid "Ghetto" msgstr "" #: src/dopewars.c:756 msgid "Central Park" msgstr "" #: src/dopewars.c:757 msgid "Manhattan" msgstr "" #: src/dopewars.c:758 msgid "Coney Island" msgstr "" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "" #: src/dopewars.c:760 msgid "Queens" msgstr "" #: src/dopewars.c:761 msgid "Staten Island" msgstr "" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "" #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "" #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "" #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "" #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "" #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "" #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "" #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "" #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "" #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "" #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "" #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "" #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "" #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "" #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "" #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "" #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "" #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "" #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "" #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "" #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "" #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2210 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" #: src/dopewars.c:2619 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" #: src/dopewars.c:2655 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" #: src/dopewars.c:2983 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "" #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "" #: src/curses_client/curses_client.c:297 #, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr "" #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "" #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "" #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "" #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "" #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "" #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "" #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "" #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "" #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "" #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "" #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "" #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "" #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "" #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "" #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr "" #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "" #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr "" #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "" #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "" #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "" #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "" #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "" #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "" #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "" #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "" #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "" #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "" #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr "" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr "" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr "" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr "" #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "" #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "" #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr "" #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "" #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "" #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "" #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "" #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "" #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "" #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "" #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "" #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "" #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "" #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "" #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "" #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "" #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "" #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "" #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "" #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr "" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr "" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr "" #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr "" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr "" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr "" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr "" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr "" #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "" #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "" #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "" #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "" #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "" #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "" #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "" #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "" #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "" #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "" #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "" #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "" #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "" #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "" #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "" #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "" #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "" #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "" #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "" #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "" #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "" #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "" #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "" #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "" #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1352 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "" #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "" #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "" #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "" #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "" #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "" #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "" #: src/serverside.c:73 msgid "defected" msgstr "" #: src/serverside.c:73 msgid "was shot" msgstr "" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:121 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "" #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "" #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "" #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "" #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "" #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1280 msgid "New admin connection" msgstr "" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1728 msgid "Command:" msgstr "" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "" #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "" #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "" #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "" #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "" #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "" #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "" #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "" #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "" #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "" #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "" #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "" #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "" #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "" #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:160 msgid "WinSock version not supported" msgstr "" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "" #: src/error.c:162 msgid "Address already in use" msgstr "" #: src/error.c:163 msgid "Cannot reach the network" msgstr "" #: src/error.c:164 msgid "The connection timed out" msgstr "" #: src/error.c:165 msgid "Out of file descriptors" msgstr "" #: src/error.c:166 msgid "Out of buffer space" msgstr "" #: src/error.c:167 msgid "Operation not supported" msgstr "" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "" #: src/error.c:169 msgid "Connection reset by remote host" msgstr "" #: src/error.c:170 msgid "Connection refused" msgstr "" #: src/error.c:171 msgid "Address family not supported" msgstr "" #: src/error.c:172 msgid "Protocol not supported" msgstr "" #: src/error.c:173 msgid "Socket type not supported" msgstr "" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "" #: src/message.c:1167 msgid "Do you run?" msgstr "" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "" #: src/message.c:1369 msgid "pitifully armed" msgstr "" #: src/message.c:1370 msgid "lightly armed" msgstr "" #: src/message.c:1371 msgid "moderately well armed" msgstr "" #: src/message.c:1372 msgid "heavily armed" msgstr "" #: src/message.c:1372 msgid "armed to the teeth" msgstr "" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "" #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "" #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "" #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "" #: src/message.c:1410 #, c-format msgid "%s has got away to %tde!" msgstr "" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "" #: src/message.c:1416 msgid "You got away!" msgstr "" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "" #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "" #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "" #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "" #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "" #: src/message.c:1469 msgid " You find %P on the body!" msgstr "" #: src/message.c:1471 msgid " You loot the body!" msgstr "" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "" #: src/network.c:447 msgid "403: forbidden" msgstr "" #: src/network.c:450 msgid "404: page not found" msgstr "" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "" #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "" #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "" #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" dopewars-1.5.12/po/nn.po0000644001565000007070000037367410355323334011770 00000000000000# translation of nn_new.po to Norsk nynorsk # translation of nn.po to Norsk nynorsk # Norwegian Nynorsk translation for dopewars. Might work with version 1.5.6. # Copyright (C) 2002 Ã…smund Skjæveland # # # # %t-kodar: # # ue - ubunden eintal # be - bunden eintal # uf - ubunden fleirtal # bf - bunden fleirtal # First author: Ã…smund Skjæveland , 2002. # Ã…smund Skjæveland , 2003. # # msgid "" msgstr "" "Project-Id-Version: nn_new\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: 2003-08-31 22:58+0200\n" "Last-Translator: Ã…smund Skjæveland \n" "Language-Team: Norsk nynorsk \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "hore_ue_hore_be_hora" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "horer_uf_horer_bf_horene" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "vÃ¥pen_ue_vÃ¥pen_be_vÃ¥penet" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "pistolar_uf_pistolar_bf_pistolane" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "dop_ue_dop_be_dopet" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "dop_uf_dop_bf_dopa" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "%d-%m/%Y" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "LÃ¥nehaien" #: src/dopewars.c:195 msgid "the Bank" msgstr "Banken" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "Vidar's VÃ¥pen" #: src/dopewars.c:196 msgid "the pub" msgstr "puben" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Nettverksport Ã¥ kopla til" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Namn pÃ¥ poengfila" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Namn pÃ¥ tenaren du vil kopla deg til" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Tenaren si velkomsthelsing for dagen" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Netverkadressa tenaren skal lytta pÃ¥" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "TRUE viss ein SOCKS-tenar skal brukast i nettverket" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "TRUE viss numerisk brukar-ID skal brukast for SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Viss ikkje blank, brukarnamnet som skal brukast til SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "Vertsnamnet pÃ¥ SOCKS-tenaren" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "Portnummeret pÃ¥ SOCKS-tenaren" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "Versjonen av SOCKS-protokollen du vil bruka (4 eller 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Brukarnamn for SOCKS5-autentisering" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Passord for SOCKS5-autentisering" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "TRUE viss tenaren skal rapportera til ein metatenar" #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "Metatenar Ã¥ rapportera til/fÃ¥ tenar-detaljar frÃ¥" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "Port for metatenar-kommunikasjon" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "Namn pÃ¥ ein proxy for metatenar-kommunikasjon" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "Port for Ã¥ kommunisera med metatenaren" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "Bane til skriptet pÃ¥ metatenaren" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "Føretrukke vertsnamn pÃ¥ tenarmaskinen din" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "Autentisering for LocalName med metatenaren" #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "Tenarskildring, rapportert til metatenaren" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "Viss TRUE, bruk SOCKS til metatenar-kommunikasjon" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "Brukarnamn for HTTP Basic-autentisering" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "Passord for HTTP Basic-autentisering" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "Brukarnamn for HTTP Basic proxy-autentisering" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "Passord for HTTP Basic proxy-autentisering" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Viss TRUE, vil tenaren minimera til systemtrauet" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "Viss TRUE, sÃ¥ vil tenaren køyra i bakgrunnen" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "Kommandoen som startar nettlesaren din" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "Tal pÃ¥ rundar i spelet (viss 0 vil spelet aldri slutta)" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "Dagen i mÃ¥naden som spelet startar pÃ¥" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "MÃ¥naden spelet startar i" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "Ã…ret spelet startar i" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "Valutasymbolet (t.d. $)" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "Viss TRUE, gÃ¥r valutasymbolet framfor prisane" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "Fil som loggmeldingar skal skrivast til" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "Kontrollerer talet pÃ¥ loggmeldingar som blir laga" #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "strftime()-format-streng for logg-tidsmerker" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "Tilfeldige hendingar er rensa" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "TRUE viss verdien av det kjøpte dopet skal hugsast" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "Vér ordrik nÃ¥r oppsettfila blir lest" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "Tal pÃ¥ stader i spelet" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "Tal pÃ¥ typar politimenn i spelet" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "Tal pÃ¥ vÃ¥pen i spelet" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "Tal pÃ¥ sortar dop i spelet" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "Staden LÃ¥nehaien held til" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "Staden banken held til" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "Staden vÃ¥penbutikken held til" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "Staden puben held til" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "Dagleg rente pÃ¥ gjelda til lÃ¥nehaien" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "Dagleg rente pÃ¥ innskotet i banken" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "Namnet pÃ¥ lÃ¥nehaien" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "Namnet pÃ¥ banken" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "Namnet pÃ¥ vÃ¥penforretningen" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "Namnet pÃ¥ puben" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "SANN for Ã¥ slÃ¥ pÃ¥ lyd" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "Lyd som blir spelt nÃ¥r eit skot treff" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "Lyd som blir spelt nÃ¥r eit skot bommar" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "Lyd som blir spelt nÃ¥r vÃ¥pna blir lada" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "Lyd som blir spelt nÃ¥r ei fientleg hore eller betjent blir drepen" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "Lyd som blir spelt nÃ¥r ei av horene dine blir drepen" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "" "Lyd som blir spelt nÃ¥r ein annan spelar eller ei politimann blir drepen" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "Lyd som blir spelt nÃ¥r du blir drepen" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "Lyd som blir spelt nÃ¥r ein spelar ikkje klarer Ã¥ koma seg unna" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "Lyd som blir spelt nÃ¥r du ikkje klarer Ã¥ koma deg unna" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "Lyd som blir spelt nÃ¥r ein spelar klarer Ã¥ koma seg unna" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "Lyd som blir spelt nÃ¥r du klarer Ã¥ koma deg unna" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "Lyd som blir spelt nÃ¥r du kjem til ein ny stad" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "Lyd som blir spelt nÃ¥r du sender ei offentleg melding" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "Lyd som blir spelt nÃ¥r du sender ei privat melding" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "Lyd som blir spelt nÃ¥r ein annan blir med i spelet" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "Lyd som blir spelt nÃ¥r ein spelar gÃ¥r ut av spelet" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "Lyd som blir spelt i byrjinga av spelet" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "Lyd som blir spelt i slutten av spelet" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "Sorteringsnøkkel for lista over det tilgjengelege dopet" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "Tal pÃ¥ sekund du har pÃ¥ deg til Ã¥ skyta tilbake" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "Spelarar blir kopla frÃ¥ etter sÃ¥ mange sekund" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "Tida i sekund for Ã¥ kopla til eller bryta samband" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "Maksimalt tal pÃ¥ TCP/IP-sambandar" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "Sekund mellom rundane for AI-spelarar" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "Kor mykje pengar kvar spelar startar med" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "Kor mykje gjeld kvar spelar startar med" #: src/dopewars.c:493 msgid "Name of each location" msgstr "Namn pÃ¥ kvar stad" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "Politinærleik pÃ¥ kvar stad (%)" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "Minste tal pÃ¥ dopsortar pÃ¥ kvar plass" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "Største tal pÃ¥ dopsortar pÃ¥ kvar plass" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "% motstand mot skot for kvar spelar" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "% motstand mot skot for kvar hore" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "Namn pÃ¥ kvar politimann" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "Namn pÃ¥ kvar politimann sin betjent" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "Namn pÃ¥ kvar politimann sine betjentar" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "% motstand mot skot for kvar purk" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "% motstand mot skot for kvar politibetjent" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "Ã…taks-handikap relativt til ein spelar" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "Forsvars-handikap relativt til ein spelar" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "Minste tal pÃ¥ politibetjentar" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "Største tal pÃ¥ politibetjentar" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "Null-basert indeks pÃ¥ vÃ¥penet politiet er væpna med" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "Tal pÃ¥ vÃ¥pen kvar politimann har" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "Tal pÃ¥ vÃ¥pen kvar politibetjent har" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "Namn pÃ¥ kvart dop" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "Minste vanlege pris pÃ¥ kvart dop" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "Største vanlege pris pÃ¥ kvart dop" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "TRUE viss dette dopet kan vera ekstra billeg" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "TRUE viss dette dopet kan vera ekstra dyrt" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "Melding som skal visast nÃ¥r dette dopet er ekstra billeg" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Formatstreng brukt for dyrt dop 50% av tida" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "Tal som prisen pÃ¥ dopet skal delast pÃ¥ nÃ¥r det er ekstra billeg" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "Tal som prisen pÃ¥ dopet skal gangast med nÃ¥r det er ekstra dyrt" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "Namn pÃ¥ kvart vÃ¥pen" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "Prisen pÃ¥ kvart vÃ¥pen" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "Plassen kvart vÃ¥pen tek" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "Skaden kvart vÃ¥pen gjer" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "Ord for ei einskild «hore»" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "Ord for to eller fleire «horer»" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "Ord for eit einskild vÃ¥pen eller tilsvarande" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "Ord for to eller fleire vÃ¥pen" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "Ord for eit einskild narkotikum eller tilsvarande" #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "Ord for to eller fleire slag dop" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "strftime() formatstreng for Ã¥ visa tida i spelet" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "Prisen for at ei hore skal spionera pÃ¥ fienden" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "Prisen for at ei hore skal tipsa politiet om ein fiende" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "Minstepris for Ã¥ tilsetja ei hore" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "Høgaste pris for Ã¥ tilsetja ei hore" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "Liste over ting du høyrer pÃ¥ T-banen" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "Tal pÃ¥ ting som blir sagt pÃ¥ T-banen" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "Liste over songar du kan høyra bli spelt" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "Tal pÃ¥ sogar som spelar" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "Liste over ting du kan stoppa for Ã¥ gjera" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "Tal pÃ¥ ting du kan stoppa for Ã¥ gjera" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` av Jimi Hendrix" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` av Tone Loc" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Comin' in to Los Angeles` av Arlo Guthrie" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Commercial` av Spanky and Our Gang" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "`Late in the Evening` av Paul Simon" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "`Light Up` av Styx" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` av Jefferson Airplane" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`One toke over the line` av Brewer & Shipley" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "`The Smokeout` av Shel Silverstein" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` av Jefferson Airplane" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "`Itchycoo Park` av Small Faces" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` av the Tubes" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Legend of a Mind` av the Moody Blues" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "`Eight Miles High` av the Byrds" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Acapulco Gold` av Riders of the Purple Sage" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Kicks` av Paul Revere & the Raiders" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "Nixon-opptaka" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalize It` av Mojo Nixon & Skid Roper" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "tar ein øl" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "røyker ei bønne" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "røyker ein sigar" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "røyker ein bong" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "røyker ein sigarett" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "Politimeister Bastian" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "betjent" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "betjentar" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "Lensmann Peder" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "Agent Smith" #: src/dopewars.c:717 msgid "cop" msgstr "politimann" #: src/dopewars.c:717 msgid "cops" msgstr "politimenn" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr "Beretta" #: src/dopewars.c:723 msgid ".38 Special" msgstr ".38 Spesial" #: src/dopewars.c:724 msgid "Ruger" msgstr "Ruger" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "Sprettert" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "Syre" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "Marknaden er oversvømt med billeg heimelaga syre!" #: src/dopewars.c:733 msgid "Cocaine" msgstr "Kokain" #: src/dopewars.c:734 msgid "Hashish" msgstr "Hasj" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "Marrakesh-ekspressen er her!" #: src/dopewars.c:736 msgid "Heroin" msgstr "Heroin" #: src/dopewars.c:737 msgid "Ludes" msgstr "Hypparar" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "Andre pusharar plyndra eit apotek og sel billege hypparar!" #: src/dopewars.c:739 msgid "MDA" msgstr "MDA" #: src/dopewars.c:740 msgid "Opium" msgstr "Opium" #: src/dopewars.c:741 msgid "PCP" msgstr "PCP" #: src/dopewars.c:742 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:743 msgid "Shrooms" msgstr "Flein" #: src/dopewars.c:744 msgid "Speed" msgstr "Speed" #: src/dopewars.c:745 msgid "Weed" msgstr "Jazztobakk" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Columbiansk lasteskip lurte kystvakta! Jazztobakkprisen stuper!" #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "Grünerløkka" #: src/dopewars.c:755 msgid "Ghetto" msgstr "Tøyen" #: src/dopewars.c:756 msgid "Central Park" msgstr "Majorstuen" #: src/dopewars.c:757 msgid "Manhattan" msgstr "Karl Johan" #: src/dopewars.c:758 msgid "Coney Island" msgstr "Sagene" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "Oslo S" #: src/dopewars.c:760 msgid "Queens" msgstr "Bjølsen" #: src/dopewars.c:761 msgid "Staten Island" msgstr "Frogner" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Politiet gjorde eit kjempebeslag av %tde! Prisane er skyhøge!" #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Narkomane kjøper %tde til avsindige prisar!" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "Ville det ikkje vore festleg viss alle plutseleg kvekkte samtidig?" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "Paven var jøde ein gong, veit du." #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "Eg er sikker pÃ¥ at du har nokon ordentleg interessante draumar." #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "Eg trur eg skal reisa til Amsterdam i Ã¥r" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "Guten min, du treng ein gul hÃ¥rklipp." #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Eg synest det er fantastisk kva dei fÃ¥r til med røykjelse no til dags." #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "Eg har ikkje vore kvinne heile livet, veit du" #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "Veit mora di at du sel dop?" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "Er du høg pÃ¥ noko?" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "Ã…, du mÃ¥ vera frÃ¥ California" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "Eg var hippie sjølv ein gong i tida" #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "Det er ingenting som Ã¥ ha mykje pengar" #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "Du ser ut som eit beltedyr!" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "Eg trur ikkje pÃ¥ Ronald Reagan" #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "Ha mot! Bush er ein nuddel!" #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "Har eg ikkje sett deg pÃ¥ fjernsynet?" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "Eg synest hemorroidereklamar er ordentleg flotte!" #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "Me vinn krigen mot narkotika!" #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "Ein dag utan dop er som ei natt" #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" "Me bruker berre 20% av hjernane vÃ¥re, sÃ¥ kvifor ikkje øydeleggja resten" #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "Eg samlar inn pengar til Zomibiar for Kristus" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "Eg vil gjerne selja deg ein etande puddel" #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "Vinnarar dopar seg ikkje... viss ikkje dei gjer det" #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "Kverk ein purk for Jesus!" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "Eg er kvalrossen!" #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "Jesus elskar deg meir enn du veit" #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "Eg har slik ei voldsom lyst til Ã¥ farga hÃ¥ret mitt blÃ¥tt" #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Var ikkje Jane Fonda fantastisk i Barbarella" #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Berre sei nei! Eller, kanskje... ok, faen heller!" #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "Vil du ha ein seigmann?" #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "Dopet kan vera vennen din!" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "Kan ikkje tolka oppsettfila %s, linje %d" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "Klarte ikkje Ã¥ opna fila %s" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "Oppsettet kan berre endrast interaktivt nÃ¥r ingen spelarar\n" " er logga pÃ¥. Vent til alle spelarane har logga av, eller\n" "fjern dei med dytt- eller-drep-kommandoane, og prøv igjen." #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "Indeks til %s array burde vore mellom 1 og %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "%s er %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "%s er %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "%s er %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "%s er «%s»\n" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] er %s\n" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "%s er { " #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s kan ikkje vera mindre enn %d - ignorerer!" #: src/dopewars.c:2210 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "%s kan ikkje vera større enn %d - ignorerer!" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Forandra storleiken pÃ¥ strukturlista til %d element\n" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "Venta ein boolsk verdi (ein av 0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "Kr. " #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "Currency.Prefix=TRUE" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=FIL bruk lydmodul «FIL»\n" " " #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u fil bruk lydmodul «fil»\n" "\t " #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "(%s tilgjengeleg)\n" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "dopewars versjon %s\n" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Bruk: dopewars [VAL]...\n" "Dop-pushe-spel tufta pÃ¥ «Drug Wars» av John E. Dell\n" " -b, --no-color, «svart-kvitt» - mao. ikkje bruk fine fargar\n" " --no-colour (fargar blir normalt brukt viss mogleg)\n" " -n, --single-player vér kjedeleg og ikkje kopla til nokon\n" " tilgjengelege dopewars-vertar\n" " (mao. ein-spelar-modus)\n" " -a, --antique «antikk» dopewars - gjer spelet sÃ¥ likt den\n" " opprinnelege versjonen som rÃ¥d er\n" " (utan nettverksspel)\n" " -f, --scorefile=FIL sei kva for ei fil som skal brukast som " "poengtavle\n" " (normalt blir %s/dopewars.sco brukt)\n" " -o, --hostname=ADR sei kva for ein vertmaskin som skal koplast til\n" " for fleirspelar-modus\n" " -s, --public-server køyr i vertsmodus (merk: sjÃ¥ -A-opsjonen for Ã¥\n" " stilla inn tenaren nÃ¥r han er i gang)\n" " -S, --private-server køyr ein «privat» tenar (ikkje sei ifrÃ¥ til\n" " metatenaren)\n" " -p, --port=PORT nettverksporten som skal brukast (normalt: 7902)\n" " -g, --config-file=FIL bane til ei oppsettfil for dopewars\n" " denne fila blir lest med ein gong -g-opsjonen\n" " blir lest\n" " -r, --pidfile=FIL bruk denne pid-fila nÃ¥r tenaren køyrer\n" " -l, --logfile=FIL skriv logg til denne fila\n" " -A, --admin kopla til ein lokalt køyrande tenar for\n" " administrasjon\n" " -c, --ai-player skap og køyr ein datastyrt spelar\n" " -w, --windowed-client tving bruk av grafisk klient (GTK+ eller Win32)\n" " -t, --text-client tving bruk av tekstklient (curses)\n" " (standard er Ã¥ bruka ein grafisk klient nÃ¥r\n" " mogleg)\n" " -P, --player=NAMN Sett namnet pÃ¥ spelaren\n" " -C, --convert=FIL konverter ei poengfil i gamalt format til det\n" " nye formatet\n" #: src/dopewars.c:2619 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help vis denne hjelpeteksten\n" " -v, --version vis versjonsinformasjon og avslutt\n" "\n" "dopewars er Copyright (C) Ben Webb 1998-2005, og er tilgjengeleg under GNU " "GPL\n" "Rapportér feil til forfattaren pÃ¥ ben@bellatrix.pcl.ac.uk\n" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Bruk: dopewars [VAL]...\n" "Dop-pushe-spel tufta pÃ¥ «Drug Wars» av John E. Dell\n" " -b «svart-kvitt» - mao. ikkje bruk fine fargar\n" " (fargar blir normalt brukt viss terminalen støttar det)\n" " -n vér kjedeleg og ikkje kopla til nokon tilgjengelege\n" " dopewars-vertar (mao. ein-spelar-modus)\n" " -a, «antikk» dopewars - gjer spelet sÃ¥ likt den\n" " opprinnelege versjonen som rÃ¥d er (utan nettverksspel)\n" " -f fil sei kva for ei fil som skal brukast som poengtavle\n" " (normalt blir %s/dopewars.sco brukt)\n" " -o adr sei kva for ein vertmaskin som skal koplast til\n" " for fleirspelar-modus\n" " -s køyr i vertsmodus (merk: sjÃ¥ -A-opsjonen for Ã¥\n" " stilla inn tenaren nÃ¥r han er i gang)\n" " -S køyr ein «privat» tenar (ikkje sei ifrÃ¥ til metatenaren)\n" " -p port nettverksporten som skal brukast (normalt: 7902)\n" " -g fil bane til ei oppsettfil for dopewars\n" " denne fila blir lest med ein gong -g-opsjonen blir lest\n" " -r fil bruk denne pid-fila nÃ¥r tenaren køyrer\n" " -l fil skriv logg til denne fila\n" " -c skap og køyr ein datastyrt spelar\n" " -w tving bruk av grafisk klient (GTK+ eller Win32)\n" " -t tving bruk av tekstklient (curses)\n" " (standard er Ã¥ bruka ein grafisk klient nÃ¥r mogleg)\n" " -P namn Sett namnet pÃ¥ spelaren\n" " -C fil konverter ei poengfil i gamalt format til det nye formatet\n" " -A kopla til ein lokalt køyrande tenar for administrasjon\n" #: src/dopewars.c:2655 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, vis denne hjelpeteksten\n" " -v, vis versjonsinformasjon og avslutt\n" "\n" "dopewars er Copyright (C) Ben Webb 1998-2005, og er tilgjengeleg under GNU " "GPL\n" "Rapportér feil til forfattaren pÃ¥ ben@bellatrix.pcl.ac.uk\n" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Curses-klient er ikkje tilgjengeleg. Kompilér opp binærfila\n" "pÃ¥ nytt, med valet --enable-curses-client til configure,\n" "eller bruk ein grafisk klient (viss tilgjengeleg) i staden.\n" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Ingen grafisk klient tilgjengeleg. Kompilér opp\n" "binærfila pÃ¥ nytt, med valet --enable-gui-client til\n" "configure, eller bruk tekstmodus-klienten (viss\n" "tilgjengeleg) i staden.\n" #: src/dopewars.c:2983 #, fuzzy msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Denne binærfila har blitt kompilert utan støtte for nettverk,\n" "og kan ikkje køyra som tenar. Kompilér pÃ¥ nytt, og gi valet\n" "--enable-networking til configure-skriptet.\n" #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Denne binærfila har blitt kompilert utan støtte for nettverk,\n" "og kan ikkje køyra som tenar. Kompilér pÃ¥ nytt, og gi valet\n" "--enable-networking til configure-skriptet.\n" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "Engelsk omsetjing Ben Webb" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "dopewars er tufta pÃ¥ Drug Wars av John E. Dell, og er ei simulering" #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "av ein oppdikta narkotikamarknad. Skap rikdomen din ved Ã¥ kjøpa" #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "og selja narkotika. Ikkje lat politiet ta deg!" #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "Det fyrste du mÃ¥ gjera er Ã¥ betala gjelda di til lÃ¥nehaien." #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" "Etter det, er mÃ¥let ditt Ã¥ tena sÃ¥ mykje pengar som rÃ¥d (og halda deg i " "live)!" #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "Du har ein mÃ¥nad i speletid pÃ¥ Ã¥ skapa formuen din." #: src/curses_client/curses_client.c:297 #, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "Versjon %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr "dopewars er tilgjengeleg under GNU General Public Licence" #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "Ikon og grafikk Ocelot Mantis" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Lydar Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "Dopsal og research Dan Wolf " #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Speltesting Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Grundig speltesting Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Konstruktiv kritikk Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "Ukonstruktiv kritikk James Matthews" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "For informasjon om kommandolinevala, skriv dopewars -h pÃ¥" #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "Unix-kommandolina. Det viser ein hjelpetekst med dei tilgjengelege vala." #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Skriv vertsnamnet og porten pÃ¥ ein dopewars-tenar:" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "Vertsnamn:" #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "Port:" #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "Vent litt... prøver Ã¥ kontakta metatenar..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "Tenar : %s" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "Port : %d" #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "Versjon : %s" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Spelarar: -ukjent- (maksimum %d)" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "Spelarar: %d (maksimum %d)" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "Oppe sidan : %s" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "Kommentar: %s" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "N>este tenar: F>ørre tenar: V>el denne tenaren" #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "NFV" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Kopla til SOCKS-tenar %s..." #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "Autentiserer mot SOCKS-tenar" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Ber SOCKS om samband til %s..." #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "Treng proxy-autentisering for omrÃ¥de %s" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "Treng autentisering for omrÃ¥de %s\tc " #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "(Skriv eit blankt brukarnamn for Ã¥ avbryta)" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "Brukarnamn:" #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "Passord:" #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "Treng SOCKS-autentisering (skriv eit blankt brukarnamn for Ã¥ avbryta)" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "Vent litt... prøver Ã¥ kopla til dopewars-tenar..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "Kan ikkje henta metatenar-detaljar" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "Kunne ikkje starta fleirspelar dopewars" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "Vil du K>opla til ein bestemt dopewars-tenar" #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr " L>ista tenarane pÃ¥ metatenaren, og velga ein" #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " A>vslutta (du kan starta ein tenar med «dopewars -s»)" #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr " eller S>pela Ã¥leine? " #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "KLAS" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "Kor til, kompis? " #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "%/Liste over stader/%tde" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Du kan ikkje fÃ¥ nokon pengar for desse %tbf:" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "Kva vil du kasta? " #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "Kor mange vil du kasta? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "Kva vil du kjøpa? " #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "Kva vil du selja? " #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Du har rÃ¥d til %d, og kan béra %d. " #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "Kor mange vil du kjøpa? " #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "Du har %d. " #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "Kor mange vil du selja? " #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Vel eit ærend Ã¥ gje ei av %tbf dine ..." #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr " S>pionér pÃ¥ ein annan pushar (pris: %P)" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " T>ipsa politiet om ein annan pushar (pris: %P)" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr " H>a seg vekk" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "eller K>ontakta spionane dine og fÃ¥ rapportar" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr "eller I>ngenting?" #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "STHKI" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "Kven vil du spionera pÃ¥?" #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "Kven vil du tipsa purken om?" #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr "Er du sikker?" #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "JN" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "Er du viss pÃ¥ at du vil avslutta? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "Nytt namn:" #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Du har blitt dytta av tenaren. Byter til einspelar-modus." #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "Tenaren har stengt. Byter til einspelar-modus." #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "%s blir med i spelet!" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "%s har forlatt spelet." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "%s er no kjend som %s." #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "T - B A N E" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "%/Staden du er no/%tde" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Diverre er det alt nokon som brukar «ditt» namn. Vér snill og byt det." #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "P O E N G L I S T E" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "Du har ikkje noko %tde Ã¥ selja!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "Du har ikkje noko Ã¥ selja!" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Du treng fleire %tde for Ã¥ bera meir %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Du har ikkje nok plass til Ã¥ bera det %tde!" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Du har ikkje nok pengar til Ã¥ kjøpa det %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Vil du K>jøpa, S>elja eller G>Ã¥?" #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "KSG" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "Kor mykje pengar vil du betala tilbake?" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "Du har ikkje sÃ¥ mykje pengar!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Vil du S>etja inn pengar, T>a ut pengar, eller G>Ã¥?" #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "STG" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "Kor mykje pengar?" #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "Du har ikkje sÃ¥ mykje i banken." #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "J:Ja" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "N:Nei" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "S:Spring" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "K:Kjemp" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "A:Angrip" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "U:UnngÃ¥" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "Trykk ein tast..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "Meldingar (-/+ rullar opp/ned)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "Status" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "Pengar %15P" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "%-19Tde%3d" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "Helse %3d" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "Bank %17P" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "Gjeld %16P" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "Plass %6d" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d plass %6d" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "Frakk" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "%Tde" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d @ %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "%/Stats: VÃ¥pen/%Tde" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "Spionrapportar for %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Spion: Dop/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "%/Spion: VÃ¥pen/%Tde..." #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "Ingen andre spelarar er logga pÃ¥ no." #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "Spelarar som er logga pÃ¥:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Hei du. Her kostar %tbe:" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "%c. %-10tde %8P" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Kan ikkje installera SIGWINCH-avbrotshandsamar!" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "Namnet ditt:" #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "Vil du K>jøpa" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr ", S>elja" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr ", H>iva" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr ", sN>akka med alle, snakka med E>in" #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr ", sjÃ¥ L>ister" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr ", G>je oppdrag" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr ", kJ>empa" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr ", R>eisa" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr ", eller A>vslutta? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "Vil du " #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "K>jempa, " #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "V>enta, " #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "R>ømma, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "S>elja %tuf, " #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "eller A>vslutta?" #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "Mista sambandet til tenaren! GÃ¥r tilbake til einspelar-modus." #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "KSHNELGJRA" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "SRKVA" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "Lista opp kva? S>pelarar eller P>oeng? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "SP" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "Kven vil du snakka privat med? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "Snakk: " #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "Spela igjen? " #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "/_Spel" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "/Spel/_Nytt ..." #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "/Spel/_Gje opp" #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "/Game/_Innstillingar" #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "/Spel/SlÃ¥ pÃ¥ _lyd" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "/Spel/_Avslutt" #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "/_Snakk" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "/Snakk/Til _alle ..." #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "/Snakk/Til _spelar ..." #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "/_Lister" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "/Lister/_Spelarar..." #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "/Lister/_Poeng..." #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "/Lister/_Eignelutar..." #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "/_Oppdrag" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "/Oppdrag/_Spioner ..." #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "/Oppdrag/_Tips politiet ..." #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "/Oppdrag/_Hent spionrapportar ..." #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "/_Hjelp" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "/Hjelp/_Om ..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "Ã…tvaring" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "Feil" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "Melding" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "Gje opp denne runden?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "Avslutt spelet" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "Start nytt spel" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "Gje opp dette spelet" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "Eignelutar" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "Mista sambandet til tenaren - byter til einspelar-modus" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" "Du har blitt dytta av tenaren.\n" "Byter til einspelar-modus." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" "Tenaren har avslutta.\n" "Byter til einspelar-modus." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "Reiser til %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Spark hore menyval/S_park %tue..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "_Spioner (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "_Tips (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "Poengtavle" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "Poengtavlefila er øydelagt!" #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "Kjemp" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "_Sel %tuf" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "_Kjemp" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "_Vent" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "_Røm" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Kamp: Horer/%d %tuf" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "(Ute av spelet)" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "(Daud)" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "Helse: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "Du" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "%/GTK Status: VÃ¥pen/%Tuf" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Horer/%Tuf" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "Narkotika" #: src/gui_client/gtk_client.c:1352 msgid "%/Inventory gun name/%tde" msgstr "VÃ¥pen" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "Reis til plass:" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "%/Plass Ã¥ reisa til/%tde" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "for %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "No har du pÃ¥ deg %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "Ledig plass: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "Du har rÃ¥d til %d" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "Kjøp" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "Sel" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "Hiv" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "%tuf" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "Kjøpa kor mange?" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "Selja kor mange?" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "Hiva kor mange?" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "Kjøpa %tuf" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "Selja %tuf" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "Hiva %tuf" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "_Ja" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "_Nei" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "_Angrip" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "_Dukk unna" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "SpørsmÃ¥l" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "Plass" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "Kontantar" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "Gjeld" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "Bank" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "Helse" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "_Reis!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "Engelsk omsetjing" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "Ben Webb" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "Ikon og grafikk" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "Lydar" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "Dopsal og research" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "Speltesting" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "Grundig speltesting" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "Konstruktiv kritikk" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "Ukonstruktiv kritikk" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "Om Dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "dopewars er tufta pÃ¥ Drug Wars av John E. Dell, og er ei simulering\n" "av ein oppdikta narkotikamarknad. I dopewars mÃ¥ du kjøpa, selja\n" "og koma unna politiet.\n" "\n" "Det fyrste du mÃ¥ gjera er Ã¥ betala gjelda di til lÃ¥nehaien.\n" "Etter det, er mÃ¥let ditt Ã¥ tena sÃ¥ mykje pengar som rÃ¥d (og halda deg i \n" "live)!\n" "Du har ein mÃ¥nad i speletid pÃ¥ Ã¥ skapa formuen din.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars er tilgjengeleg under GNU General Public Licence\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "For informasjon om kommandolinevala, skriv dopewars -h pÃ¥\n" "unix-kommandolinja. Det viser ein hjelpetekst med dei tilgjengelege vala.\n" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "Lokal dokumentasjon i HTML-format" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "%/LÃ¥nehai vindagustittel/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "%/Banknamn vindaugstittel/%Tde" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "Du mÃ¥ skriva inn ei positiv mengde pengar!" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "Du har ikkje sÃ¥ mykje pengar i banken." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "Kontantar: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "Gjeld: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "Bank: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "Betal tilbake:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "Sett inn" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "Ta ut" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "Betal alt" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "Spelarliste" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "Snakk med spelar(ar)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "Snakk med alle spelarane" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "Melding:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "Send" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "Spionér pÃ¥ spelar" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Vel ein spelar du vil spionera pÃ¥. %Tbe di vil sÃ¥\n" "tilby tenestane sine til spelarane, og viss ho lukkast,\n" "vil du kunna sjÃ¥ den spelaren sin status med\n" "«Hent spionrapportar»-menyen. Hugs at %tbe vil forlata\n" "deg, sÃ¥ %tuf eller %tuf som ho har pÃ¥ seg kan gÃ¥ tapt!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "Tips politiet" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Vel spelaren du vil tipsa politiet om. %Tbe di vil hjelpa politiet\n" "med Ã¥ angripa den spelaren, og sÃ¥ rapportera tilbake til deg.\n" "Hugs at %tbe bil forlata deg ei kort stund, sÃ¥ %tuf eller %tuf\n" "ho har pÃ¥ seg kan gÃ¥ tapt!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Spark hore dialog-tittel/Spark %tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Er du sikker? (%Tuf eller %tuf denne\n" "%tbe har pÃ¥ seg kan gÃ¥ tapt!)" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "Namn" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "Pris" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "Mengde" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "_Kjøp ->" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "<- _Sel" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "_Hiv <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "%Tuf her" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "%Tuf du har" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "Byt namn" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Diverre, nokon andre bruker «ditt» namn. Ver snill og byt det:-" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK VÃ¥penforretning-tittel/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "Spionrapportar" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "Ny %s" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "Vel lydfil" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "Ny" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "Slett" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "Opp" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "Ned" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "Politinærvær" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "Minste tal pÃ¥ ulike slag narkotika" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "Største tal pÃ¥ ulike slag narkotika" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "Minste vanlege pris" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "Største vanlege pris" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "Kan vera ekstra billeg" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "Billeg-streng" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "Kan vera ekstra dyrt" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "Plass kravd" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "Skade" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "Namn pÃ¥ ein betjent" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "Namn pÃ¥ fleire betjentar" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "Minste tal pÃ¥ politibetjentar" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "Største tal pÃ¥ politibetjentar" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "Pansring av politiet" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "Pansring av lensmannsbetjentane" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "Innstillingar" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "Fjern narkotika-referansar" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "Unicode oppsettfil" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "Spellengde (rundar)" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "Startkapital" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "Startgjeld" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "Valutasymbol" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "Symbol stÃ¥r før prisen" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "Namn pÃ¥ ei hore" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "Namn pÃ¥ fleire horer" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "Nettlesar" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "Ã…lmennt" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "Stader" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "Dyrt streng 1" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "Dyrt streng 2" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "Dop" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "VÃ¥pen" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "Politi" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "Tenaren rapporterer til metatenaren" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "Minimer til systemtrauet" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "Metatenar vertsnamn" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "Port" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "Vertsnamn pÃ¥ vevproxy" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "Sti til skript" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "Kommentar" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "Velkomstmelding" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "Tenar" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "Lydnamn" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "Skildring" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "Lydfil" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "Bla gjennom..." #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "Spel" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "Du kan ikkje starta spelet utan Ã¥ velja eit namn!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "Nytt spel" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "Status: Ventar pÃ¥ brukaren" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Sambandet vart stengd av nettverksverten." #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "Status: Kunne ikkje kopla til metatenaren (%s)" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Kunne ikkje kopla til (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Freistar Ã¥ kopla til %s..." #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "Ukjend" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "%d av %d" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Status: Kopla til SOCKS-tenar %s..." #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "Status: Autentiserer mot SOCKS-tenar" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Ber SOCKS om samband til %s..." #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "Status: Hentar informasjon frÃ¥ metatenaren..." #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "Versjon" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "Spelarar" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "Namnet ditt:" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "Vertsnamn" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "_Kopla til" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "Ein spelar" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "_Gamaldags modus" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "_Start spel for ein spelar" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "Metatenar" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "Treng mellomtenar-autentisering" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "Treng autentisering" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "MÃ¥ ha SOCKS-autentisering" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "_OK" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "_Steng" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "_Avbryt" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "_Frisk opp" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "_Hjelp" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "# Dette er oppstartsloggen for dopewars. Her kjem\n" "# nyttige meldingar frÃ¥ tolkinga av\n" "# oppsettfilene og slikt.\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "dopewars-tenar" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "Datastyrt dopewars-spelar" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "slapp unna" #: src/serverside.c:73 msgid "defected" msgstr "hoppa av" #: src/serverside.c:73 msgid "was shot" msgstr "vart skoten" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AD" #. Help on various general server commands #: src/serverside.c:121 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "dopewars-tenar versjon %s kommandoar og innstillingar\n" "\n" "help Viser denne hjelpeteksten\n" "list Viser alle spelarane som er logga pÃ¥\n" "push Ber spelaren høfleg om Ã¥ logga av\n" "kill Bryt sambandet til spelaren utan varsel\n" "msg: Send ei melding til alle spelarane\n" "save Lagrar det gjeldande oppsettet til den\n" " gjevne fila\n" "quit Stopp tenaren ordentleg, etter Ã¥ ha sagt \n" " ifrÃ¥ til alle spelarane\n" "= Set den gjevne variabelen til den gjevne verdien\n" " viser verdien av den gjevne variabelen\n" "[x].= Set den gjevne variabelen i den gjevne lista,\n" " indeks x, til den gjevne verdien\n" "[x]. Viser verdien til den gjevne listevariabelen\n" "\n" "Lovlege variablar er lista under:-\n" "\n" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "Kunne ikkje kopla til metatenaren pÃ¥ %s:%u (%s)" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "" "Bruker MetaServer.Proxy.User og MetaServer.Proxy.Password til HTTP " "mellomtenar-autentisering" #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" "Kan ikkje autentisera med HTTP-mellomtenar: Set MetaServer.Proxy.User og " "MetaServer.Proxy.Password-variablane til dei rette verdiane." #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" "Bruker MetaServer.Auth.User og MetaServer.Auth.Password til HTTP-" "autentisering" #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" "Kan ikkje autentisera med HTTP-tenaren: Set MetaServer.Auth.User og " "MetaServer.Auth.Password-variablane til dei rette verdiane." #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "Bruker Socks.Auth.User og Socks.Auth.Password til SOCKS5-autentisering" #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "Prøver for ofte Ã¥ kopla til metatenaren - venter pÃ¥ neste tidsavbrot" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "Ventar pÃ¥ tilkopling til metatenaren pÃ¥ %s:%u..." #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" "Det ser ut til at du bruker ein svært gamal (versjon 1.4.x)-klient.^Dette " "vil truleg fungera, men mange av dei nye eigenskapane til^dopewars vil ikkje " "vera støtta. Hent den nyaste versjonen frÃ¥^dopewars-vevsida, http://dopewars." "sourceforge.net/." #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" "Ã…tvaring: Klienten din er for gamal til Ã¥ støtta alle^ eigenskapane ved " "denne tenaren. For den fulle^ «opplevinga» bør du henta den siste versjonen " "av ^ dopewars frÃ¥ vevsida: http://dopewars.sourceforge.net/" #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "Gjekk over MaxClients (%d) - bryt sambandet" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Denne tenaren har ei grense pÃ¥ 1 spelar, og denne grensa har blitt nÃ¥dd. " "^Prøv att seinare." #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Denne tenaren har ei grense pÃ¥ %d spelarar, og denne grensa har blitt^nÃ¥dd. " "Prøv att seinare." #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "%s kallar seg no for %s" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "Pushetida di er ute." #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: NEKTA reise til %s" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "%s spionerer no pÃ¥ %s" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s spionéra pÃ¥ %s: NEKTA" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s tipsa politiet om %s" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s tysta pÃ¥ %s: NEKTA" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Ukjend melding: %s:%c:%s:%s" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "Bruker pid-fil %s" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Kan ikkje laga pid-fil %s: %s" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "Kan ikkje laga (lytte-)sokkel (%s) til tenaren. Avbryt." #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "Kan ikkje kopla til port %u (%s). Bryt av." #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "Kan ikkje lytta til nettverkssokkel. Avbryt." #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "dopewars-tenar versjon %s er klar og ventar pÃ¥ samband pÃ¥ port %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Kan ikkje installera SIGUSR1-avbrotshandsamar!" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Kan ikkje installera SIGHUP-avbrotshandsamar!" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "Kan ikkje installera SIGINT-avbrotshandsamar!" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Kan ikkje installera SIGTERM-avbrotshandsamar!" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "Kan ikkje installera røyr-handsamar!" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "Oppsettfil lagra OK som %s\n" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "Brukarar logga pÃ¥:-\n" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "Ingen brukarar er logga pÃ¥ no.\n" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "Dyttar %s\n" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "Ingen slik brukar!\n" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "%s drepen\n" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "Ukjend kommando - prøv «help» for hjelp\n" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "Vart kopla til frÃ¥ %s" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "dopewars-tenaren avsluttar." #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "%s forlét tenaren!" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" "Kunne ikkje laga unix domenesokkel til admin-samband - sjekk skriveløyva pÃ¥ /" "tmp!" #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "dopewars-tenar versjon %s er klar til Ã¥ ta imot admin-kommandoar, prøv " "«help» for Ã¥ fÃ¥ hjelp" #: src/serverside.c:1280 msgid "New admin connection" msgstr "Nytt admin-samband" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "Admin-kommando: %s" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "Admin-samband stengt" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "Klarte ikkje Ã¥ setja NT teneste-status" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "Kunne ikkje posta tenestevarselsmelding" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "Kunne ikkje registrera tenestehandsamar" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "Klarte ikkje Ã¥ starta NT-teneste" #: src/serverside.c:1728 msgid "Command:" msgstr "Kommando:" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "Feil ved lesing av poeng frÃ¥ %s." #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "Den gamle poengfila %s har blitt konvertert til det nye\n" "formatet. Ein kopi av den gamle fila har fÃ¥tt namnet %s.\n" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "Kan ikkje laga kopi (%s) av\n" "poengtavlefila %s." #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "Kan ikkje opna poengtavlefila %s: %s." #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Kan ikkje opna poengtavlefila %s.\n" "(%s.) Du mÃ¥ anten vera sikker pÃ¥ at du har løyve\n" "til Ã¥ bruka denne fila, eller spesifisera ei\n" "anna poengtavlefil med kommandolineopsjonen -f." #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s ser ikkje ut til Ã¥ vera ei gyldig\n" "poengtavlefil. Sjekk om fila er i orden. Viss det er ei\n" "poengtavlefil frÃ¥ ein gamal versjon av dopewars, mÃ¥ du\n" "fyrst konvertera henne til det nye formatet ved Ã¥ køyra\n" "«dopewars -C %s» frÃ¥ kommandolina." #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Noko vart feil under lesinga av oppsettfila. Det kan gjera at nokon\n" "av innstillingane ikkje vil virka som venta. SjÃ¥ pÃ¥ loggfila\n" "«dopewars-log.txt» for fleire detaljar." #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Noko vart feil under lesinga av oppsettfila. Det kan gjera at nokon\n" "av innstillingane ikkje vil virka som venta. SjÃ¥ pÃ¥ meldingane pÃ¥\n" "standard-ut for fleire detaljar." #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "Kan ikkje lesa poengtavlefila %s" #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "Gratulerar! Du kom pÃ¥ poengtavla!" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "Du kom ikkje ein gong pÃ¥ poengtavla..." #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "Kan ikkje skriva til poengtavlefila %s" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "(Kvil i fred.)" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Tips frÃ¥ %s" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Fekk tilbod om spion frÃ¥ %s" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Ei av %tbf dine spionerte for %s. ^Spionen %s!" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Spionen din hjÃ¥ %s har blitt oppdaga!^Spionen %s!" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "Dama attmed deg pÃ¥ t-banen sa^ «%s»%s" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (i det minste er det det du -trur- ho sa)" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "Du høyrer nokon som speler %s" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Vil du vitja %tde?" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Vil du hyra ei %tue for %P?" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s er alt her!^Vil du gÃ¥ til Angrep, eller Stikka av?" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "Ingen politi eller vÃ¥pen!" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "Politi kan ikkje gÃ¥ til Ã¥tak pÃ¥ andre politi!" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "Spelarane er allereie i ein kamp!" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "Spelarane er alt i kvar sine kampar!" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "Kan ikkje starta kamp - har ingen vÃ¥pen!" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "Du er daud! Spelet er slutt." #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: Tips frÃ¥ %s avslutta OK." #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Ut frÃ¥ tipset ditt gjekk politiet mot %s, som vart skoten og drepen!" #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Ut frÃ¥ tipset ditt rykka politiet ut mot %s, som kom seg unna med %d %tde." #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^vil du betala %P til ein doktor for Ã¥ lappa deg saman?" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "Du vart rana pÃ¥ t-banen!" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Du møter ein venn! Han gjev deg %d %tde." #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Du møter ein venn, og gjev han %d %tde." #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "Luka vekk eit RandomOffer" #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Politihundar jagar deg %d kvartal! Du mista litt %tde. Det er hardt, mann." #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Du finn %d %tde pÃ¥ ein daud kar pÃ¥ t-banen!" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "Mora di laga sjokoladekjeks med litt av %tbe. Dei var kjempegode!" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Det er litt jazztobakk som luktar ugraskverk her.^Det ser bra ut! Vil du " "røyka det?" #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "Du stoppa for Ã¥ %s." #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Vil du kjøpa ein større frakk for %P?" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^Hei du! Eg kan hjelpa deg Ã¥ bera %tde for berre %P. Ja eller nei?" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Vil du kjøpa ein %tue for %P?" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: Tilbodet var pÃ¥ vegne av %s" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s har godteke %tbe di! Bruk G-knappen for Ã¥ kontakta spionen din." #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Du hallusinerte i tre dagar pÃ¥ den villaste trippen du kunne^ forestilla " "deg! SÃ¥ døydde du fordi hjernen din smuldra opp!" #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "For seint. %s har nett gÃ¥tt." #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "%s har avvist di %tde!" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "Politiet ser at du kastar %tde!" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "Sender oppdateringar til metatenaren" #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "Sender pÃ¥minningsmelding til metatenaren..." #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "Spelaren fjerna: Han/ho var ikkje aktiv" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "Spelaren fjerna pga. tidsavbrot i sambandet" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "(Feilen kan ikkje visast i UTF-8)" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "Sambandet vart avbrote pga. fullt buffer" #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "Intern feilkode %d" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "WinSock har ikkje starta opp ordentleg" #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "Nettverk-delsystemet er ikkje klart" #: src/error.c:160 msgid "WinSock version not supported" msgstr "WinSock-versjonen er ikkje støtta" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "Nettverks-delsystemet mislukkast" #: src/error.c:162 msgid "Address already in use" msgstr "Adressa er i bruk" #: src/error.c:163 msgid "Cannot reach the network" msgstr "Kan ikkje nÃ¥ nettverket" #: src/error.c:164 msgid "The connection timed out" msgstr "Sambandet vart tidsutkopla." #: src/error.c:165 msgid "Out of file descriptors" msgstr "Tom for filskildrarar" #: src/error.c:166 msgid "Out of buffer space" msgstr "Tom for bufferplass" #: src/error.c:167 msgid "Operation not supported" msgstr "Operasjonen er ikkje støtta" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "Sambandet vart avbrote pÃ¥ grunn av feil." #: src/error.c:169 msgid "Connection reset by remote host" msgstr "Sambandet vart stengd av nettverksverten." #: src/error.c:170 msgid "Connection refused" msgstr "Samband nekta" #: src/error.c:171 msgid "Address family not supported" msgstr "Adressefamilien er ikkje støtta" #: src/error.c:172 msgid "Protocol not supported" msgstr "Protokollen er ikkje støtta" #: src/error.c:173 msgid "Socket type not supported" msgstr "Sokkeltypen er ikkje støtta" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "Fann ikkje verten" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "Mellombels feil med namnetenaren -- prøv att seinare" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "Fekk ikkje kontakt med namnetenaren" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "Gyldig namn, men det er ingen DNS-data tilgjengeleg" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "Nettverksfeil kode %d" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "Namnetenarfeil kode %d" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Intern metatenar-feil «%s»" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Feil metatenar-svar «%s»" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "Ukjend metatenar-feilkode %d" #: src/message.c:1167 msgid "Do you run?" msgstr "Stikk du av?" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "Stikk du av, eller slÃ¥st du?" #: src/message.c:1369 msgid "pitifully armed" msgstr "Latterleg dÃ¥rleg væpna" #: src/message.c:1370 msgid "lightly armed" msgstr "lett væpna" #: src/message.c:1371 msgid "moderately well armed" msgstr "godt væpna" #: src/message.c:1372 msgid "heavily armed" msgstr "tungt væpna" #: src/message.c:1372 msgid "armed to the teeth" msgstr "væpna til tennene" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - spring etter deg!" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s og %d %tuf - %s - spring etter deg!" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s kjem hit med %d %tuf, %s!" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "%s stÃ¥r og tek imot" #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "Du stÃ¥r der som ein annan tulling." #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "%s prøver Ã¥ rømma, men fÃ¥r det ikkje til." #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "Panikk! Du kjem deg ikkje vekk!" #: src/message.c:1410 #, c-format msgid "%s has got away to %tde!" msgstr "%s har rømt til %tde!" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "%s kom seg unna!" #: src/message.c:1416 msgid "You got away!" msgstr "Du kom deg unna!" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "VÃ¥pna lada..." #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s skyt pÃ¥ %s... og bommar!" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s skyt pÃ¥ deg... og bommar!" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "Du bomma pÃ¥ %s!" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "%s drep %s." #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s skyt pÃ¥ %s og drep ei %tue!" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "%s skyt pÃ¥ %s." #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s kverka deg, mann! Søren ogsÃ¥!" #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s skyt pÃ¥ deg... og drep ei %tue!" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "%s treff deg, mann!" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "Du drap %s!" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Du traff %s, og drap ei %tue!" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "Du traff %s!" #: src/message.c:1469 msgid " You find %P on the body!" msgstr " Du finn %P pÃ¥ liket!" #: src/message.c:1471 msgid " You loot the body!" msgstr "Du plyndrar liket!" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "Kan ikkje starta opp WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "SOCKS server generell feil" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "Samband nekta av SOCKS-regelsett" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "SOCKS: Kan ikkje nÃ¥ nettverket" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "SOCKS: Kan ikkje nÃ¥ verten" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "Samband nekta" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "SOCKS: TTL gjekk ut" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "SOCKS: Kommandoen er ikkje støtta" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Adressetypen er ikkje støtta" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "SOCKS-tenar avviste alle tilbudte metodar" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "Ukjend SOCKS-adressetype returnert" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "SOCKS-autentiserer feila" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "SOCKS-autentisering avbroten av brukar" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Førespurnad vart avvist eller feila" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: AvslÃ¥tt - kan ikkje kontakta identd" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: AvslÃ¥tt - identd rapporterer ein annan brukaridentitet" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "Ukjend SOCKS svarkode" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "Ukjend SOCKS svar-versjon-kode" #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "Ukjend SOCKS tenarversjon" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "SOCKS feilkode %d" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "For mange forsøk" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "Ugyldig auth meldingshovud: %s" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "Ugyldig omdirigeringsmelding: %s" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "Ugyldig HTTP statusline: %s" #: src/network.c:447 msgid "403: forbidden" msgstr "403: Forbode" #: src/network.c:450 msgid "404: page not found" msgstr "404: Fann ikkje sida" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "401: HTTP-autentisering feila" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "407: HTTP-mellomvert-autentisering feila" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "Ugyldig omdirigeringsmelding frÃ¥ tenaren" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "Ukjend HTTP-feil %d" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "%d: Omdirigeringsfeil" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "%d: HTTP klientfeil" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "%d: HTTP tenarfeil" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "Prøver Ã¥ kopla til lokal dopewars-tenar via\n" "Unix-domenesokkel %s\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Samband oppretta. Bruk Ctrl-D for Ã¥ stenga tilkoplinga.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "Kunne ikkje finna ei lokal oppsettfil Ã¥ skriva til" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "Kunne ikkje opna file %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Kunne ikkje kopla til dopewars-tenar\n" "(%s)\n" "Den datastyrte spelaren avsluttar." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Samband oppretta\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Kopla til SOCKS-tenar %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Autentiserer med SOCKS-tenar\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Ber SOCKS om samband til %s...\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Bruker Socks.Auth.User og Socks.Auth.Password til SOCKS5-autentisering\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Datastyrt spelar starta. Prøver Ã¥ kopla til tenaren pÃ¥ %s:%d." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Datastyrt spelar avslutta OK.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Sambandet vart brote!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Bruker namnet %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Spelarar i denne runden:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s blir med i runden.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s har gÃ¥tt ut av spelet.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Reiser til %tde med %P i kontantar og %P i gjeld\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Datastyrt spelar vart drepen. Avsluttar normalt.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Speletida er ute. Avsluttar spelet.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Datastyrt spelar vart dytta av tenaren.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Tenaren har avslutta.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Sel %d %tde for %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Kjøper %d %tde for %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Kjøper ein %tde for %P pÃ¥ vÃ¥penbutikken\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Gjeld pÃ¥ %P vart betalt til lÃ¥nehaien\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "LÃ¥nehaien er pÃ¥ %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "VÃ¥penforretninga er pÃ¥ %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Puben er pÃ¥ %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "Banken er pÃ¥ %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Og de kallar drykk dopseljarar?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Ein trent apekatt kunne gjort det betre." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Trur du du er tøff nok til Ã¥ takla slike som meg?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Sel du snop, eller kva?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Eg blir vel nøydd til Ã¥ skyta deg til ditt eige beste." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Denne binærfila har blitt kompilert utan nettverksstøtte, og kan dermed " "ikkje fungera som ein nettverksspelar.\n" "Kompiler pÃ¥ nytt med opsjonen --enable-networking til configure." #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Ugyldig modul «%s» vald.\n" "(%s tilgjengeleg, brukar «%s» no.)" dopewars-1.5.12/po/es.gmo0000644001565000007070000025335110355323337012120 00000000000000Þ•Zì¼5¸G”¹G?NHHŽH"×HúH5 I5@I.vIN¥IôIJJˆ2J»J&½J$äJ' K'1K YK dK pK|KKªKÄKÜKüKL-LKLcL#}L$¡LÆLÛLïLMM *M 7MAMQMZMcMyMM¢M«M+ÊMöM(NÜTOT`T tT~T…TŒT“TšTºTÉT%ÝTU U#-UQUZU(]U"†U;©UåUÿU V"V1V-6VdV{V˜VªV ÂV+ÎV+úV&WAWBaW!¤W"ÆW#éWJ X XX!yX›X0³X$äX Y Y(Y,Y@Y ZY{YŒY ‘Y›Y¯Y¸YJÀY Z$œ[Á[Ê[Ð[ Ù[ã[ç[ ð[þ[%\:\?\]\t\%\5µ\ë\6 ]@]^](~](§])Ð])ú]*$^O^*l^´—^#L_p_$‰_®_ ³_½_ Æ_ Ó_ ß_,ì_`J!`l`u` }` ‰`­–`"Da*ga’a ²a!Óa õa"b%9b_b;wb³bÆb;æb"c:>cyc<c,Íc úcd d1)d[d$od/”dKÄd1eBeV]e$´eÙeõeff *f7f=f*Af(lf•fœf´f)Èfòf ÷f"g$g#-gQgXg `g ng0zg«g³g Ég<Õg+h>hCh HhRhah&{h¢h¨hÂhÊh&Þhi iº)i»äi j³jÆjAÝjk'k-0k^k+{k"§kÊkêkl lG)l?qlE±l2÷l*m>m^mfmmm…mŠm›m±m¹mÓmÚm ñmüm&n*nGn dn pnzn ‰n”nªnÁn Ønùn o o0u!Su$uu'šu(Âuëu v3v EvOv nvyv4vÂvÚvòvw!w'>w(fww­w.Ìwûw7x8x«H†«Ï«*Þ« ¬¬-!¬O¬»W¬)­@=­ ~­ Ÿ­«­¾­íÞ­ø­®/%®U®)r® œ®!ª®/Ì®)ü®&¯(D¯m¯$v¯/›¯.˯)ú¯%$°$J°o°:Œ°ǰͰ(а@ù°X:±'“±4»± ð±)²;²Y²â]²"@³c³%u³7›³5Ó³, ´ 6´W´,s´/ ´д.ð´ µv-µ ¤µF²µFùµ5@¶v¶ ’¶ž¶½¶̶(ç¶(·9·*H·s·‘·¤·-÷ñ· ¸@$¸9e¸4Ÿ¸*Ô¸1ÿ¸ 1¹ ;¹I¹Q¹Y¹a¹h¹ q¹|¹…¹Œ¹“¹™¹Ÿ¹£¹§¹°¹ µ¹¿¹ƹ à¹í¹,ò¹%ºEº*aº#Œº°ºк$ïº#»(8»%a»‡»š»,¹»"æ»" ¼$,¼Q¼d¼j¼p¼1x¼ª¼®¼³¼¼¼ż̼ Õ¼9á¼½+½UH½HžÀHçÀ0ÁEÁJÁPÁ3XÁŒÁ£Á§Á ¬Á ¸ÁGÆÁ ÂÂ*2Â] nÂy‰ ˜Â¦Â ¸Â5ÆÂ+üÂF(ÃoÃxÇ×ßÃZ¨Ã°ÅK´ÅFÆ&GÆnÆ5Æ5ÃÆ:ùÆV4NjǛǻǗÑÇiÈ(kÈ+”È,ÀÈ+íÈ É $É 0É<É%MÉsÉ“É «ÉÌÉäÉ'ýÉ%Ê=Ê6VÊ8ÊÆÊÞÊõÊË&Ë<Ë KËUËeËnËwË’Ë®ËÇËÐË+ïËÌ'6Ìì^ÌDKÍͰÍËÍâÍúÍÎ $Î 0Î :Î DÎNÎWÎlÎ …ΓΩΠ½Î#ËÎïÎÏ$ÏBÏ]Ï|Ï!”϶Ï%ÒÏ'øÏ Ð=Ð[ÐrÐÐ!£Ð!ÅÐ çÐ+õÐ!Ñ 2Ñ9<Ñ'vўѧѰѹÑÈÑÙÑ ìÑ öÑ'Ò (Ò 5Ò.AÒpÒ„Ò™Ò¯ÒÌÒåÒùÒ ÓÓ6ÓLÓeÓ€Ó žÓ¨Ó°Ó¸ÓÁÓ%ÊÓðÓÿÓ2Ô LÔ4WÔ$ŒÔ±ÔºÔ9½Ô6÷ÔK.Õ(zÕ£Õ¼ÕÓÕæÕ5êÕ Ö#<Ö`Ö"|Ö ŸÖ2«Ö3ÞÖ×"'×NJ×&™×'À×,è×\Ø%rØ%˜Ø¾Ø2ר) Ù4Ù KÙVÙ'ZÙ*‚Ù6­ÙäÙþÙ ÚÚ $Ú .ÚH:Ú²ƒÚ36ÜjÜs܆ÜÜ­Ü µÜÂÜÚÜ'òÜÝ#ÝCÝbÝ3ÝW³Ý' ÞI3Þ2}Þ&°Þ7×Þ7ß8Gß8€ß9¹ß,óß2 àÝSà81ájáE†áÌá Óáßáöáâ %â12âdâFlâ³â ºâÅâÔâÒïâ=Âã=ä!>ä"`ä(ƒä(¬ä*ÕäVåWå9vå°å$ÃåEèå).æEXæžæ<µæ5òæ(ç:ç*@çLkç,¸ç.åçJèT_èL´è'éx)é1¢éCÔéê*ê@êPê_êeê1iê.›êÊêÏê íê&øêë %ë0ë Oë-Yë‡ëŽë—ë ­ë=¹ë÷ëìì3%ì!Yì{ìì ‡ì’ì%¨ì<Îì íPícíjí'í§í<­íÛêíØÆî Ÿï ¬ï¹ïAÔï ð $ð6.ð4eð=šð/Øð4ñ&=ñ dñ3pñH¤ñIíñE7ò>}ò¼ò,Üò ó!ó3óJóPódó|ó%ƒó©ó¯ó ÆóÐó+Øóô"ô <ôIô]ôtôŠô›ô³ô Ëôìô'ýô-%õ;Sõ3õ1ÃõNõõ(Dö4mö,¢öHÏö+÷D÷4V÷9‹÷.Å÷<ô÷@1ø1rø¤ø#¿ø%ãøG ù Qù \ù5gù ù «ù,¶ù>ãù-"ú$Pú'uú&ú0Äúõú û)û?ûSûkû}û „û‘û™û¶ûÔûMðû>ü(Yü‚ü"—ü"ºü'Ýü%ý#+ýOý<Wý ”ý*žý ÉýÖýEîý"4þWþ*rþþ"²þ'Õþ%ýþ##ÿGÿ1fÿ˜ÿCÿáÿåÿ9ìÿ&'=#e‰ž²ÇÚð"3*Hs†%•'»-ã('Hpv  ®½²Õ³ˆ6<s!Œ;®)ê8)T2~± Î(ï($A&f ¡¯7Ê''$Ot}€,œ9É' +!8 Zemtz=‹ÉÛBî,1  ^ %h .Ž B½ & ' D $^ ƒ Ÿ 7º Eò @8 _y Ù $ì  -%/SƒŒ¥¾ÅÙ%ð/F Yg|…• ž!¨.Ê!ù/KK— Ÿ ©´,ÓKi …5¦%Ü6U=q3¯&ã $*JY6i ¾ ÅÑè60>o x5…#»"ß & G1c€•}”´0Æ1÷9)?c6£=Ú?DXD=âT MuJÃ5;D5€8¶Oï?Q8Y’ š¦ ÂÎà"ú3 CQ o1y)«-Õ,(08Y@’&Óú>9R3Œ#À8ä1.O~›»EÃ1 A; ,} $ª Ï %ï I!›_!#û!<"/\"Œ"-¬"Ú"5ö"<,#-i#$—#$¼# á#G$¬J$©÷$D¡%æ%#û% &)&„©&!.'AP'7’'9Ê'(,(?G(C‡(#Ë(Oï( ?)K),e)(’)4»)%ð)2* I*,j*—*ž*ĺ*Ø1X:3l:@ :.á:;Q';my;Kç;J3<~<6“<Ê<Ò<5â< =ç$=( >A5>0w> ¨>²> Ç>Ñ>å>û>?$.?S?&l?“?#¤?9È?.@1@+Q@}@+ƒ@*¯@)Ú@-A,2A+_A8‹AÄAØAÝA1àA?B]RB"°B3ÓBC( CIChCùnChD…D8¢D:ÛD5E?LE!ŒE®E2ÌE2ÿE2F7JF‚FšF *G:5G:pG7«GãG úGH%HO6H3†H0ºHëH6I7ISIiI0‚I$³I#ØIFüI>CJI‚J.ÌJ4ûJ 0K :KHK PK \KfK vK ‚K KšK K¨K¯K·K»K ÄKÏK ×KäKíK LL(L%HLnLŠL&¨LÏLêL- M18MjM%‚M&¨MÏM$îM(N"ƒx:6}¸‡Lƒ}ÿ/BPI¾UÖPþjÎ;íWˆ7zwcþЂ êOÙõ6Hz<€ú•SÒ(n°”M¹ ¸,ÒwL YL y…¬è86­(˜áå5ž#"ÂÞeŸ&œ ©K@a!òZ]ï-ä¢ y½«&|*uT àk2‰»ÚpDÀ?d„þZÏ’S2‘Vš7 ~ÔO«BGUË6Kã§4 Üé[bm¸v~ “ð)‹D#Î=2[p%ó´=ÚŸJ<’ê Êx×)¤ì‰aIŸ.ø#!J·:ù)Ê`¯ì&ÁGrØsVt£š°¶!»Æýal>|\³–ß_#khûHR-c <ŒÖ-tcÙ¿º/IÄúÄ74ˆxYn×µ€»<kùÌG¦ÉÉÁº…ûvÁ_T4úÔ'§™¨Ì+±  j;–eÓüFQ-³ø‘±¥\¹æUÞÑötç‹WÆîëØnQ‘X$©ãZ„®>œ€4ÿH %Ç [ÙáØE(ÕIÜ3ñF3`âzN—”Ñ2£iXƒ æÃèg_Žo"¬®m÷ È'DooHFÓ§ÎTüýËÚ&NÍ›\¡{1¼1¿¤ÀLÅãëQ½í1‡q;ô%àB¯5ÇvÐ¥¡Ðö´Œ'(žæ²ò=ç‡A ö*A“3¶XÈ{¢?VíŠå;1†hSµõ ÛU]@žâ`!RÖ@é±0ä°¨ÈÒÏ|ðqñ$¹R„BÝ WMD…?¼ g²3ài¼ô "ðKb+Xïùåª5îŠM>À¥Sfh^yý¨ ª,ä@G› bÛ}8Y•9OÍVŒ–.©]ŠÛ,,¢¦)Žî$œ7R:˜”«ÿ软f‰PïlÕŽáC‚~r¤0+Q ÞÝ·—"Ô9s­u†¦dY/³PNêÕJ?­0÷ÃeÜlžëJʆ%ºñ´¬ÂE‚Mó'¾™g²*˜W¿mEE8¶* For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. $% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-19Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/GTK Stats: Guns/%Tde%/LoanShark window title/%Tde%/Location display/%tde%/Location to jet to/%tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%c. %-10tde %8P%d of %d%d. %tde%d: HTTP client error%d: HTTP server error%d: redirect error%m-%d-%Y%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Enter a blank username to cancel)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk401: HTTP authentication failed403: forbidden404: page not found407: HTTP proxy authentication failed<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAuthenticating with SOCKS serverAuthenticating with SOCKS server Authentication RequiredAuthentication for LocalName with the metaserverAuthentication required for realm %sAvailable space: %dBSDTPLGFJQBSLBad auth header: %sBad metaserver reply "%s"Bad redirect message from serverBad redirect: %sBankBank %17PBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBrowse...BuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot create server (listening) socket (%s) Aborting.Cannot get metaserver detailsCannot initialise WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash %17PCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armourCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not set up Unix domain socket for admin connections - check permissions on /tmp!Could not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolCurrency.Prefix=TRUED O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt %17PDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armourDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s:%u (%s)Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth %3dHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf TRUE, use SOCKS for metaserver communicationIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid HTTP status line: %sInvalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaserverMetaserver hostnameMetaserver name to report/get server details to/fromMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of a proxy for metaserver communicationName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of tries exceededNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for HTTP Basic authenticationPassword for HTTP Basic proxy authenticationPassword for SOCKS5 authenticationPassword: Path of the script on the metaserverPay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort for communicating with the proxy serverPort for metaserver communicationPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedProxy Authentication RequiredProxy authentication required for realm %sPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication cancelled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSanitized away a RandomOfferSaturday Night SpecialScript pathSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSound nameSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Could not connect to metaserver (%s)Status: Obtaining server information from metaserver...Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and MetaServer.Proxy.Password variablesUnable to authenticate with HTTP server; please set MetaServer.Auth.User and MetaServer.Auth.Password variablesUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown HTTP error %dUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUnknown metaserver error code %dUpUp since : %sUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colours (by default colours are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colours --no-colour (by default colours are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format User name: Username for HTTP Basic authenticationUsername for HTTP Basic proxy authenticationUsername for SOCKS5 authenticationUsers currently logged on:- Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP authenticationUsing MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy authenticationUsing Socks.Auth.User and Socks.Auth.Password for SOCKS5 authenticationUsing Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sWaiting for connect to metaserver at %s:%u...WarningWarning: your client is too old to support all of this^server's features. For the full "experience", get^the latest version of dopewars from the^website, http://dopewars.sourceforge.net/.Wasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeb proxy hostnameWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initialisedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou appear to be using an extremely old (version 1.4.x) client.^While this will probably work, many of the newer features^will be unsupported. Get the latest version from the^dopewars website, http://dopewars.sourceforge.net/.You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Refresh_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licencedopewars serverdopewars server terminating.dopewars server version %s commands and settings help Displays this help screen list Lists all players logged on push Politely asks the named player to leave kill Abruptly breaks the connection with the named player msg: Send message to all players save Save current configuration to the named file quit Gracefully quit, after notifying all players = Sets the named variable to the given value Displays the value of the named variable [x].= Sets the named variable in the given list, index x, to the given value [x]. Displays the value of the named list variable Valid variables are listed below:- dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: es Report-Msgid-Bugs-To: POT-Creation-Date: 2005-12-30 13:30-0800 PO-Revision-Date: 2003-12-10 09:29+0100 Last-Translator: Quique Language-Team: Castilian aka Spanish MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.2 Para obtener información sobre las opciones en la línea de órdenes, escriba dopewars -h en su terminal Unix. Esto mostrará una pantalla de ayuda con las opciones disponibles. L>istar los servidores que hay en el metaservidor, y elegir uno S>alir (puede iniciar un servidor tecleando «dopewars -s») o J>ugar en modo 1 jugador? I>rse a consumir sus drogas E>spiar a otro traficante (precio: %P) D>elatar a la policía otro traficante (precio: %P) -u fichero usar módulo de sonido "fichero" -u, --plugin=FICHERO usar módulo de sonido "FICHERO" ¿Está seguro? ¡Le encuentra %P en el cuerpo! ¡Le roba al cadaver!Éste es el registro de arranque de dopewars, que contiene todos los mensajes de información resultantes de procesar el fichero de configuración, etc. $% de resistencia a disparos de cada puta% de resistencia a disparos de cada policía% de resistencia a disparos de cada ayudante% de resistencia a disparos de cada jugador%-18Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d a %P%/Título de la ventana del banco/%Tde%/Enfrentamiento: Putas/%d %tde%/Ubicación actual/%tde%/GTK Ventana de la armería/%Tde%/GTK Stats: Putas/%Tde%/Estado GTK: Armas/%Tde%/Título de la ventana del usurero/%Tde%/Location display/%tde%/Lugar al que irse/%tde%/Título del diálogo Echar a una puta/Echar a una %Tde%/Elemento de menú echar a una puta/E_char a una %Tde...%/Espía: Drogas/%Tde...%/Espía: Armas/%Tde...%/Situación: Drogas/%Tde%/Situación: Armas/%Tde%Tde %5d Espacio %4d%Tde que tiene%Tde aquí%c. %-10tde %8P%d de %d%d. %tde%d: error del cliente HTTP%d: error del servidor HTTP%d: error de redirección%d-%m-%Y¡%s - %s - le está dando caza!¡%s y %d %tde - %s - le están persiguiendo!¡%s llega con %d %tde, %s!%s no puede ser menor de %d - se ignora%s no parece ser un fichero de puntuaciones válido - por favor, compruébelo. Si es un fichero de puntuaciones de una versión antigua de dopewars, conviértala al nuevo formato ejecutando la orden «dopewars -C %s» en la línea de órdenes.¡%s ha aceptado su %tde!^Use la tecla G para contactar con su espía.¡%s ha conseguido escapar %tal!¡%s ha conseguido escapar!%s ha dejado el juego.%s ha dejado el juego. ¡%s ha rechazado su %tde!¡%s le ha dado!%s es "%s" %s es %P %s es %d %s es %s %s es { ¡%s se une al juego!%s se une a la partida. %s asesinado ¡%s deja el servidor!%s espía ahora a %s%s mata a %s.%s dispara a %s ¡y mata a una %tde!%s dispara a %s.%s dispara a %s... ¡y falla!%s le dispara... ¡y mata a una %tde!%s le dispara... ¡y falla!espionaje de %s a %s: DENEGADO%s se levanta y lo cogeDelación de %s sobre %s: DENEGADO%s delató a la policía a %s%s intenta huir, pero no lo consigue.¡%s le ha alcanzado! Descanse en paz...%s es ahora conocido como %s%s es ahora conocido como %s.%s: DENEGADO irse a %s%s: Oferta de espionaje de %s%s: Delación de %s%s: la oferta era en nombre de %s%s: la delación de %s acabó bien.%s[%d] es %s %s^¡%s ya está aquí!^¿Quiere Atacar o Huir?(%s disponible) (Muertas)(Introduzca un nombre de usuario en blanco para cancelar)(No se puede mostrar el error en UTF-8)(Quedan)(R.I.P.), T>irar, E>nfrentarse, M>andar recado, I>r a otro sitio, L>istar, V>ender, H>ablar a todos, hablar a un J>ugador, o S>alir? Kalashnikov/Recados/_Obtener información de las espías.../Recados/_Espiar.../Recados/_Delatar.../Juego/Activar_sonido/Juego/_Abandonar partida.../Juego/_Nueva partida.../Juego/_Opciones.../Juego/_Salir.../Ayuda/_Acerca de.../Listar/_Inventario.../Listar/_Jugadores.../Listar/_Puntuaciones.../Hablar/_Hablar a todos.../Hablar/Hablar al _Jugador.../_Recados/_Juego/_Ayuda/_Listar/_Hablar401: la autenticación HTTP ha fallado403: prohibido404: página no encontrada407: la autenticación con el proxy HTTP ha fallado<- _Vender¿Se imagina como sería la vida si no hubiera drogas?Un mono amaestrado lo haría mejor...A:AtacarAHJugador automático asesinado. Cerrando de manera normal. El jugador automático ha sido expulsado del servidor. Iniciado el jugador automático; intentando conectarse al servidor en %s:%d.Jugador automático suicidado con éxito. ¿Abandonar esta partida?Abandonar esta partidaAcerca de DopewarsLSD¡Los adictos están comprando %tde a precios absurdos!La dirección ya está en usoFamilia de direcciones no soportadaOrden de administración: %sConexión de administración cerradaJefe WiggumCantidad de dinero con la que empieza cada jugadorImporte de la deuda con la que empieza cada jugador¿Está drogado o qué?¿Está seguro de que quiere salir? ¿Está seguro? (Perderá todas las %tde y %tde que le esté guardando esta %tde!)Pidiendo SOCKS para conectarse a %s...Pidiendo SOCKS para conectarse a %s... Penalización de ataque relativa a un jugadorIntentos para conectarse al metaservidor demasiado frecuentes - esperando al siguiente turnoAutenticando contra el servidor SOCKSAutenticándose con el servidor SOCKS Se precisa autenticaciónAutenticación del nombre local con el metaservidorSe requiere autenticación para la zona %sEspacio disponible: %dCVTHJLMEISCVICabecera de autenticación no válida: %sRespuesta del metaservidor incorrecta «%s»Mensaje de redirección no válido recibido del servidorRedirección no válida: %sBancoBanco %16PEl banco está en %s Banco: %P.38 SpecialBasado en el juego Drug Wars de John E. Dell, dopewars es una simulaciónBasado en el juego Drug Wars de John E. Dell, dopewars es una simulación de un mercado de la droga imaginario. Dopewars es un juego para toda la familia que consiste en la compraventa de droga y en intentar evitar a la policía. Lo primero que tiene que hacer es saldar la deuda con su usurero. Después, su objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!) Tiene un mes de tiempo de juego para amasar su fortuna. Ser prolijo al procesar el fichero de configuraciónBen WebbLa Paz_al_a La PazEl Gancho_al_al GanchoInspeccionar...ComprarComprar %tde¿Cuánto quiere comprar?Comprando %d %tde a %P Comprando un %tde por %P en la armería CLSJ¿Y usted se hace llamar traficante?Puede ser especialmente barataPuede ser especialmente caraNo se puede conectar al puerto %u (%s). Cancelando.No se ha podido crear la copia de respaldo (%s) del fichero de máximas puntuaciones %s.No se puede crear el fichero pid %s: %sNo se puede crear el socket (%s) (a la escucha) del servidor. Cancelando.No se pueden obtener los detalles del metaservidor¡No se puede inicializar WinSock (%s)!¡No se puede instalar el gestor de interrupción SIGHUP!¡No se puede instalar el gestor de interrupción SIGINT!¡No se puede instalar el gestor de interrupción SIGTERM!¡No se puede instalar el gestor de interrupción SIGUSR1!¡No se puede instalar el gestor de interrupción SIGWINCH!¡No se puede instalar el gestor de tuberías!No se puede escuchar el socket de red. Cancelando.No se puede abrir el fichero de máximas puntuaciones %s. (%s.) Asegúrese de que tiene permisos para acceder a este fichero o directorio, o bien indique otro fichero de puntuaciones con la opción -f en la línea de órdenes.No se ha podido abrir el fichero de puntuaciones %s: %s.No se puede alcanzar la redNo se puede empezar el enfrentamiento - ¡no hay ningún arma que usar!DineroDinero %15PDinero en efectivo: %PParque Bruil_al_al Parque BruilCambiar nombreFrase barataElija un recado que encargar a una de sus %tde...CocaínaHa llegado la cosecha. ¡El precio de la marihuana está por los suelos!Orden:ComentarioComentario: %sDelicias_al_a las DeliciasLa configuración sólo se puede cambiar interactivamente cuando no hay ningún jugador conectado. Espere a que se desconecten todos los jugadores, o elimínelos con las órdenes echar o matar, e inténtelo otra vez.El fichero de configuración se ha guardado con éxito como %s ¡Enhorabuena! ¡Ha conseguido una de las máximas puntuaciones!Conectado al servidor SOCKS %s...Conectado al servidor SOCKS %s... La conexión se ha roto debido a un falloConexión cerrada por el servidor remoto.Conexión rechazada por las reglas de SOCKSSe ha roto la conexión debido a que se ha llenado la memoria intermedia (full buffer).Se ha establecido la conexión Conexión establecida. Use Ctrl-D para cerrar la sesión. Conexión rechazadaConexión rota por el servidor remotoSe ha perdido la conexión con el servidor - pasando al modo 1 jugador¡Se ha roto la conexión con el servidor! Se ha perdido la conexión con el servidor. Pasando al modo 1 jugador.Críticas constructivasCríticas constructivas Andrea Elliot-Smith Pete WinnControla el número de mensajes de registro producidosBlindaje del poliPolis¡Los polis no pueden atacar a otros polis!¡Los polis han hecho una gran redada de %tde! ¡Los precios son exorbitantes!El fichero de puntuaciones está corrupto :-(Coste de enviar a una puta a espiar al enemigoCoste de enviar a una puta a dar información sobre el enemigo a la policíaNo se ha podido conectar al servidor dopewars (%s) El jugador automático se suicida.No se ha podido determinar el fichero de configuración local en que escribirNo se ha podido abrir el fichero %s: %sNo se ha podido establecer el socket de dominio Unix para conexiones de administración - compruebe los permisos en /tmp.No se puede iniciar dopewars en modo multijugador¡Ánimo! El imperio estadounidense caerá como cayó el imperio romanoSímbolo de dineroCurrency.Prefix=FALSED O P E W A R SV>ender %tde, LECVSIOSTasa de interés diaria de la deuda con el usureroTipo de interés diario de su saldo en el bancoDañoDaño ocasionado por cada armala armeríaDía del mes en el que empieza el juegoDeudaDeuda %16PDeuda de %P pagada al usurero Deuda: %PPenalización de defensa relativa a un jugadorBorrarIngresarBlindaje del ayudanteDescripciónDivisor del precio de la droga cuando es especialmente barata¿Quiere ¿Huye o se enfrenta?¿Echa a correr?¿Quiere I>ngresar dinero, O>btener dinero o S>alir?¿Su madre sabe que es un camello?AbajoTirarTirar %tde¿Cuánto quiere tirar?Compraventa de drogas e investigaciónCompraventa de drogas e investigación Dan Wolf DrogasDe la piel para dentro usted es su único soberano. ¡Y las drogas son sus amigas!H:HuirTraducción al inglésTraducción al inglés Ben WebbErrorNo se ha podido leer la tabla de puntuaciones del fichero %sSe han encontrado errores al leer el fichero de configuración. Como resultado, puede que algunas preferencias no funcionen de la manera esperada. Puede mirar los mensajes en la salida estándar para conocer más detalles.Se han encontrado errores al leer el fichero de configuración. Como resultado, algunas preferencias podrían no funcionar de la manera esperada. Puede consultar el fichero «dopewars-log.txt» para conocer los detalles.Frase cara 1Frase cara 2Testeo intensivo del juegoTesteo intensivo del juego Katherine Holt Caroline MooreE:EnfrentarseL>uchar, No se ha podido conectar al metaservidor en %s:%u (%s)No se ha podido contactar con el servidor de nombresNo se ha podido enviar el mensaje de notificación de servicioNo se ha podido registrar el gestor de servicioNo se ha podido establecer el estado del Servicio NTNo se ha podido iniciar el Servicio NTEnfrentarseFichero en el que escribir los mensajes de registroSiguiendo su delación , la policía va a por %s, que escapa con %d %tde. Siguiendo su delación, la policía va a por %s, ¡le disparan y es abatido!Para conocer las opciones en la línea de órdenes, escriba dopewars -hLínea utilizada para drogas que sean caras el 50% de las vecesDuración de la partida (turnos)Se ha agotado el tiempo de juego. Saliendo. GeneralBarrio Oliver_al_al Barrio OliverLa armería está en %s ArmasArmas recargadas...P U N T U A C I O N E SHachísUsted sale en la televisión, ¿verdad?SaludSalud %3dSalud: %dHeroínaEh, oiga. Los precios de las %tde aquí son:Eh oiga, ¿cuál es su _nombre?Eh oiga, ¿cómo se llama? PuntuacionesNombre del servidorServidor no encontradoNombre del servidor: ¿Cuánto quiere? ¿Cuántas quiere tirar? ¿Cuánto quiere vender? ¿Cuánto dinero quiere devolver? ¿Cuánto dinero? Soy Carlos Jesús, y vengo de Raticulín.No puedo más, me voy a la cama. ¿Me acompaña?No somos más que un montón de átomos moviéndose en la nada.Los anuncios de compresas hacen que desee ser mujerPero ¿por qué llevas gafas de sol si es de noche?Hmmm... ¡qué almuerzo! Mi madre me ha preparado unas galletas de... chocolate.Yo no he sido siempre una mujer, ¿sabes?Le vendo una cámara de fotos nueva a mitad de precioApuesto a que tiene sueños superinteresantes`Cuestionemos la autoridad; pensemos por nosotros mismos` dijo Tim LearyIconos y gráficos Ocelot MantisIconos y gráficosSi TRUE, el símbolo de dinero va antes que el precioSi TRUE, el servidor se minimiza a la bandeja del sistemaSi TRUE, el servidor funciona en segundo planoSi TRUE, usar SOCKS para la comunicación con el metaservidorSi no se deja en blanco, el nombre de usuario a usar para SOCKS4El índice en la cadena %s debe estar entre 1 y %dCódigo de error interno %dError interno del metaservidor «%s»Línea de estado de HTTP no válida: %sSeleccionado módulo «%s» no válido. (%s disponible, ahora usando «%s».)InventarioInventarioEspero que no le importe, pero voy a rezar por usted.Ir al barrio:Yendo %talYendo %tal con %P en efectivo y %P de deuda Si le ofrecen droga, diga "no", que somos muchos y queda poca.¡Mi cuerpo es mío y en él meto lo que quiero!Lista de canciones que se oyen tocarLista de cosas que puede dejar de hacerLista de cosas que se oyen en el metro¿Qué lista quiere? ¿J>ugadores o P>untuaciones? El usurero está en %s Documentación local en HTML Ubicación del usureroUbicación del bancoUbicación de la armeríaUbicación del barSitiosBarbitúricosÉxtasisMOTD (mensaje de bienvenida)Manteniendo el fichero pid %sZona pija_al_a la Zona pijaAlcanzado el número máximo de clientes (MaxClients %d) - cerrando la conexiónNúmero máximo de ayudantesNúmero máximo de distintos tipo de drogaMáximo precio normalPrecio máximo normal de cada drogaNúmero máximo de conexiones TCP/IPNúmero máximo de ayudantes acompañantesMáximo número de drogas en cada lugarPrecio máximo de contratar una putaMensajeMensaje a mostrar cuando esta droga sea especialmente barataMensaje:-Mensajes (-/+ desplaza hacia arriba/abajo)MetaservidorNombre del metaservidorNombre del metaservidor al que informar o del que obtener informaciónMinimizar a la bandeja del sistemaNúmero mínimo de ayudantesNúmero mínimo de distintas clases de drogaMínimo precio normalPrecio mínimo normal de cada drogaNúmero mínimo de ayudantes acompañantesNúmero mínimo de drogas en cada sitioPrecio mínimo de contratar una putaMes en el que empieza el juegoMultiplicador para las drogas especialmente carasN:NoS>iguiente servidor: A>nterior servidor; E>scoger este servidor... SAENombreNombre del proxy para la comunicación con el metaservidorNombre de cada policíaNombre de los ayudantes de cada policíaNombre del ayudante de cada policíaNombre de cada drogaNombre de cada armaNombre de cada lugarNombre de una putaNombre de un ayudanteNombre de varias putasNombre de varios ayudantesNombre del bancoNombre de la armeríaNombre del fichero de máximas puntuacionesNombre del usureroNombre del barNombre del servidor al que conectarseError del servidor de nombres código %dDirección de red del servidor al que escucharError de red código %dPuerto de red al que conectarseEl subsistema de red no está preparado.NuevoNuevo %sNueva partidaNueva conexión de administraciónNuevo nombre: ¡No hay armas ni polis!El cliente curses no está disponible - vuelva a construir el binario pasando la opción --enable-curses-client a configure, o use una versión gráfica (si es posible) es su lugar. El cliente gráfico no está disponible - vuelva a construir el binario pasando la opción --enable-gui-client a configure, o use el cliente curses (si está disponible) en su lugar. ¡No hay ningún otro jugador conectado en este momento!¡No existe ese usuario! No hay ningún usuario conectado. Número de rondas de juego (si es 0, el juego nunca termina)Número de segundos para devolver disparosNúmeroNúmero de drogas en el juegoNúmero de armas en el juegoNúmero de pistolas que porta cada policíaNúmero de pistolas con las que carga cada ayudanteNúmero de sitios en el juegoNúmero de canciones que se tocanNúmero de cosas que se dicen en el metroNúmero de cosas que puede dejar de hacerSe ha excedido el número de intentosNúmero de tipos de policía en el juegoComisario RomeralesAgente MatuteAh, usted debe ser gallegoUna de sus %tde estaba espiando para %s. ^¡La espía %s!Operación no soportadaOpioOpcionesYa no queda memoria intermedia (buffer)Ya no quedan descriptores de ficheroKetaminaJP¡Pánico! ¡No puede escapar!Contraseña para la autenticación HTTP básicaContraseña para la autenticación HTTP básica con el proxyContraseña para la autenticación SOCKS5Contraseña: Ruta del guión en el metaservidorPagar todoSaldar:PeyoteJugarTesteo del juegoTesteo del juego Phil Davis Owen Walsh¿Jugar otra vez? Lista de jugadoresJugador eliminado debido a que se agotó el tiempo para la conexiónJugador eliminado: demasiado tiempo inactivoJugadores¡Los jugadores ya están en una pelea!¡Los jugadores ya están en sus propias peleas!Los jugadores son desconectados después de este número de segundosJugadores conectados en este momento:-Jugadores en esta partida:- Jugadores: %d (máximo %d)Jugadores: -desconocido- (máximo %d)Por favor, elija al jugador al quiere espiar. Su %tde ofrecerá sus servicios a ese jugador, y si tiene éxito, podrá ver la situación del jugador con el menú "Obtener informes de las espías" Recuerde que la %tde se va, así que puede perder todas las %tde o %tde que le esté guardando.Por favor, elija al jugador al que quiere delatar a la policía. Su %tde ayudará a los policías a atacar a ese jugador, y le informará del resultado cuando se encuentren. Recuerde que la %tde se va a ir temporalmente, así que puede perder todas las %tde o %tde que le esté guardando.Introduzca el nombre y puerto de un servidor dopewars:-Por favor, espere... intentando contactar con el servidor dopewars...Por favor, espere... intentando contactar con el metaservidor...¡Los perros de la policía le persiguen durante %d minutos! ¡Pierde algo de %tde! Maldita sea...Presencia policialPresencia policial en cada sitio (%)PuertoPuerto : %dPuerto para comunicarse con el servidor proxyPuerto para la comunicación con el metaservidorPuerto: El nombre de su servidorPulse cualquier tecla...PrecioPrecio de cada armaProtocolo no soportadoSe precisa autenticación con el ProxySe requiere autenticación proxy para la zona %sEl bar está en %s Echando a %s Torrero_al_a TorreroPreguntaSalir del juegoC:CorrerC>orrer, Se limpian los eventos aleatoriosVoy a tener que dispararle por su propio bien.Eliminar las referencias a drogasEstructura lista redimensionada a %d elementos ¡Alguien ha atracado en una farmacia y está vendiendo barbitúricos baratos!Colt 45M E T R OE>sperar, Se precisa autenticación SOCKSAutenticación SOCKS cancelada por el usuarioError de autenticación SOCKSSe requiere autenticación SOCKS (nombre de usuario en blanco para cancelar)Código de error de SOCKS %dError general del servidor SOCKSEl servidor SOCKS rechazó todos los métodos ofrecidosSOCKS: Tipo de dirección no soportadoSOCKS: Orden no soportadaSOCKS: Conexión rechazadaSOCKS: No se llega al servidorSOCKS: No se llega a la redSOCKS: Rechazada - identd informa de diferentes ID de usuarioSOCKS: Rechazada - no se ha podido contactar identdSOCKS: Solicitud rechazada o sin éxitoSOCKS: se agotó el tiempoEDICNPasando de una oferta aleatoriaSmith & WessonRuta del scriptSegundos entre los turnos de los jugadores automáticosSeleccionar fichero de sonidoVenderVender %tde¿Cuánto quiere vender?Vendiendo %d %tde a %P EnviarEnviando actualizaciones pendientes al metaservidor...Enviando mensaje recordatorio al metaservidor...ServidorServidor: %sDescripción del servidor, que se pasa al metaservidorEl servidor informa al metaservidorMensaje de bienvenida del servidorHongos alucinógenos1 jugadorCreo que voy a ir a Amsterdam este añoTipo de socket no soportadoChico, deberías teñirte el pelo de color amarilloDisculpe, pero este servidor tiene un límite de %d jugadores, que ya ha sido alcanzado. ^Pruebe a conectarte de nuevo más tarde.Disculpe, pero este servidor tiene un límite de 1 jugador, que ya ha sido alcanzado. ^Pruebe más tarde a conectarte de nuevo.Orden de las drogas disponiblesFichero de sonidoFichero de sonido reproducido al acabar el juegoFichero de sonido reproducido al empezar el juegoFichero de sonido que suena cuando un disparo hace blancoFichero de sonido que suena cuando un disparo yerra su objetivoFichero de sonido que suena al llegar a un nuevo sitioFichero de sonido que suena cuando se une un jugador al juegoFichero de sonido que suena cuando un jugador abandona el juegoSonido que se oye cuando un jugador envía un mensaje privado al chatSonido que se oye cuando un jugador envía un mensaje público al chatFichero de sonido reproducido cuando un jugador logra escaparFichero de sonido reproducido cuando un jugador intenta escapar, pero no lo consigueFichero de sonido que suena cuando se mata a un ayudante o a una puta enemigaFichero de sonido reproducido cuando se mata a otro jugador o a un policíaFichero de sonido que suena cuando se recarga un armaFichero de sonido reproducido cuando muere una de sus putasFichero de sonido reproducido cuando le matan a ustedFichero de sonido reproducido cuando usted logra escaparFichero de sonido reproducido cuando usted intenta escapar, pero no lo consigueNombre del sonidoSonidosSonidos Robin Kohli, 19.5degs.comEspacioEspacio %4dEspacio que ocupa cada armaAnfetaminasEspiar al jugadorInformación de las espíasInformación sobre %s de las espíasEmpezar nueva partidaCapital inicialDeuda inicialCasco viejo_al_al Casco ViejoSituaciónSituación: Pidiendo SOCKS para conectarse a %s...Situación: Intentando contactar con %s...Situación: Autenticando contra servidor SOCKSSituación: Conectado al servidor SOCKS %s...Situación: No se ha podido conectar (%s)Situación: No se ha podido conectar al metaservidor (%s)Situación: Obtener información de servidores del metaservidor...Situación: Esperando datos del usuarioSímbolo antes del precioTRUE si se debe usar un servidor SOCKS para la conexión de redTRUE si se deben usar ID de usuario numéricos para SOCKS4TRUE si el servidor debe informar a un metaservidorTRUE si se debe habilitar el sonidoTRUE si se debe guardar el valor de las drogas compradasTRUE si esta droga puede ser especialmente barataTRUE si esta droga puede ser especiamente caraHablar a todos los jugadoresHablar al jugador (o jugadores)Decir: Error temporal con el nombre del servidor - pruebe de nuevo más tarde¡Ha llegado un cargamento de hachís de Marruecos!De todo lo que he perdido, lo que más echo de menos es la cabeza.La orden usada para iniciar su navegador webLa conexión excedió el tiempo límite¡La policía le ve tirando %tde!El símbolo de dinero (por ejemplo, $)Lo primero que tiene que hacer es saldar la deuda con su usurero. DespuésEl fichero %s de la tabla de puntuaciones se ha convertido al nuevo formato. Se ha creado una copia de respaldo del fichero antiguo, que se ha llamado %s. El nombre del servidor SOCKS a usarLa señorita que está junto a usted en el metro dice:^ «%s»%s¡El mercado está inundado de LSD casero barato!El subsistema de red ha falladoEl número de puerto del servidor SOCKS a usarEl servidor se ha apagado. El servidor se ha apagado. Pasando al modo 1 jugador.El servidor se ha desconectado. Pasando al módulo 1 jugador.La versión del protocolo SOCKS a usar (4 o 5)No tiene tanto dinero en el banco...No tiene tanto dinero en el banco...Poderoso caballero es Don Dinero¿Cree que es lo suficientemente duro como para manejar a gente como yo?Este binario se ha compilado sin soporte de red, y por tanto no puede actuar como un jugador automático. Recompile pasando la opción --enable-networking al script configureEste binario se ha compilado sin soporte de red, y por tanto no se puede ejecutar en modo servidor. Recompile pasando la opción --enable-networking al script configure. Tiempo en segundos para que las conexiones sean establecidas o rotasDelatar a la policíaDemasiado tarde. %s se acaba de ir.GabardinaNo se ha podido autenticar con proxy HTTP; por favor, establezca las variablesMetaServer.Proxy.User y MetaServer.Proxy.PasswordNo se ha podido autenticar con el servidor HTTP; por favor, establezca las variables MetaServer.Auth.User y MetaServer.Auth.PasswordNo es posible abrir el fichero %sNo se ha podido procesar el fichero de configuración %s, línea %dNo se puede leer el fichero de máximas puntuaciones %s.No se ha podido escribir en el fichero de puntuaciones %sCríticas destructivasCríticas destructivas James MatthewsDesgraciadamente ya hay alguien usando «su» nombre. Elija otro.Desgraciadamente ya hay otro jugador usando «su» nombre. Elija otroFichero de configuración de Unicodeen su terminal. Se mostrará una pantalla de ayuda con las opciones disponibles.DesconocidoError HTTP desconocido %dDevuelto tipo de dirección SOCKS desconocidoCódigo de respuesta de SOCKS desconocidaCódigo de respuesta de versión de SOCKS desconocida.Versión de servidor SOCKS desconocidaOrden desconocida - use «help» para obtener ayuda Mensaje desconocido: %s:%c:%s:%sError del metaservidor desconocido código %dArribaEn funcionamiento desde: %sSintaxis: dopewars [OPCIÓN]... Juego de tráfico de drogas basado en "Drug Wars" de John E. Dell -b "black and white" - o sea, en blanco y negro (por omisión se usan colores, si se puede) -n ser aburrido y no conectarse a ninguno de los servidores dopewars disponibles (modo 1 jugador) -a dopewars "antiguo" dopewars - parecerse a la versión original cuanto sea posible (no hay red) -f FICHERO indicar que fichero usar como tabla de puntuaciones (por omisión se usa %s/dopewars.sco) -o DIRE especificar un nombre de servidor en el que se puede encontrar un servidor para dopewars multiusuario -s ejecutar en modo servidor (nota: lea la opción -A para configurar un servidor que ya está en funcionamiento) -S ejecutar un servidor "privado" (no avisar al metaservidor) -p PUERTO indicar el puerto de red a usar (por omisión: 7902) -g FICHERO indicar la ruta de un fichero de configuración de dopewars este fichero se lee inmediatamente cuando se encuentra la opción -g -r FICHERO mantener el fichero pid "FICHERO" mientras se ejecuta el servidor -l FICHERO escribir la información del registro en "FICHERO" -c crear y ejecutar un jugador automático -w obligar al uso de un cliente gráfico (GTK+ o Win32) -t obligar al uso de un cliente en modo texto (curses) (por omisión se usa un cliente gráfico si es posible) -P nombre establecer el nombre del jugador a "nombre" -C FICHERO convertir un fichero de puntuaciones en el "formato antiguo" al nuevo formato -A conectarse a un servidor ejecutándose localmente para administración Sintaxis: dopewars [OPCIÓN]... Juego de tráfico de drogas basado en "Drug Wars" de John E. Dell -b, --no-color, "black and white" - o sea, en blanco y negro --no-colour (por omisión se usan colores, si se puede) -n, --single-player ser aburrido y no conectarse a ninguno de los servidores dopewars disponibles (modo 1 jugador) -a, --antique dopewars "antiguo" dopewars - parecerse a la versión original cuanto sea posible (sin red) -f, --scorefile=FICHERO indicar que fichero usar como tabla de puntuaciones (por omisión se usa %s/dopewars.sco) -o, --hostname=DIRE especificar un nombre de servidor en el que se puede encontrar un servidor para dopewars multiusuario -s, --public-server ejecutar en modo servidor (nota: lea la opción -A para configurar un servidor ya en funcionamiento) -S, --private-server ejecutar un servidor "privado" (no avisar al metaservidor) -p, --port=PUERTO indicar el puerto de red a usar (por omisión: 7902) -g, --config-file=FICHERO indicar la ruta de un fichero de configuración de dopewars este fichero se lee inmediatamente cuando se encuentra la opción -g -r, --pidfile=FICHERO mantener el fichero pid "FICHERO" mientras se ejecuta el servidor -l, --logfile=FICHERO escribir la información del registroen "FICHERO" -A, --admin conectarse a un servidor ejecutándose localmente para administración -c, --ai-player crear y ejecutar un jugador automático -w, --windowed-client obligar al uso de un cliente gráfico (GTK+ o Win32) -t, --text-client obligar al uso de un cliente en modo texto (curses) (por omisión se intenta usar un cliente gráfico -P, --player=NOMBRE establecer el nombre del jugador como "NOMBRE" -C, --convert=FICHERO convertir un fichero de puntuaciones en el "formato antiguo" al nuevo formato Nombre de usuario: Nombre de usuario para la autenticación HTTP básicaNombre de usuario para la autenticación HTTP básica con el proxyNombre de usuario para la autenticación SOCKS5Usuarios conectados:- Usando MetaServer.Auth.User y MetaServer.Auth.Password para la autenticación HTTPUsando metaservidor. Proxy. Usuario y metaservidor. Proxy. Contraseña para la autenticación con el proxy HTTPUsando Socks.Auth.Usuario y Socks.Auth.Contraseña para autenticación SOCKS5Usando Socks.Auth.User y Socks.Auth.Password para la autenticación SOCKS5 Usando el nombre %s Nombre válido, pero ahora no tiene ningún registro DNSVersiónVersión : %sEsperando para conectarse al metaservidor en %s:%u...AdvertenciaAdvertencia: su cliente es demasiado viejo para soportar todas las^ funcionalidades de este servidor. Para «vivir la experiencia» completa,^ consiga la última versión de dopewars del servidor web,^ http://dopewars.sourceforge.net/.¿No le encanta la música del noticiario?En las hamburgueserías usan carne de rata. Por eso la dan picada.¿Sabe que tiene los ojos muy enrojecidos, joven?NavegadorNombre del proxy webMarihuana¿Qué quiere tirar? ¿Qué quiere comprar? ¿Qué quiere vender? ¿Dónde quiere ir, caballero? ¿Con quién quiere hablar en privado?¿A quién quiere espiar? ¿A quién quiere delatar a la policía? ¿Quiere C>omprar¿Quiere C>omprar, V>ender o I>rse? ¿Quiere... C>onectarte a un servidor dopewars determinadoWinSock no ha sido inicializado correctamente.Versión de WinSock no soportadaLos triunfadores no usan drogas... salvo...SacarPalabra usada para designar una sola "puta"Palabra usada para designar una sola drogaPalabra usada para designar una sola armaPalabra usada para designar dos o más "putas"Palabra usada para designar dos o más drogasPalabra usada para designar dos o más armasLa telepatía existe. ¿No siente la energía del universo?¡Vivamos al límite!S:SíSNYN^¿Quiere pagar %P a un médico para que le cure?YN^¡Eh, oiga! Le ayudo a llevar sus %tde por sólo %P. ¿Sí o no?YN^¡Aquí hay algo de marihuana que huele a herbicida!^¡Tiene buen aspecto! ^¿Quiere fumarla? YN^¿Quiere comprar un %tde por %P?YN^¿Quiere comprar una gabardina más grande por %P?YN^¿Quiere visitar %tal?YN^^¿Quiere contratar a una %tde por %P?Año en el que empieza el juegoUstedParece que está usando un cliente tremendamente viejo (versión 1.4.x)^ Aunque posiblemente funcione, muchas de las nuevas funcionalidades^ no estarán soportadas. Obtenga la última versión del sitio web de dopewars,^ http://dopewars.sourceforge.net/.Ahora lleva %d dosis de %tdeTiene dinero para comprar %dTiene dinero para comprar %d, y espacio para llevar %d. No puede conseguir ni una moneda por estas %tde que lleva:¡No puede empezar la partida sin dar un nombre antes!Ni siquiera ha conseguido entrar en la tabla de puntuaciones...¡No tiene ningún %tde que vender!¡No tiene ninguna que vender!¡No tiene suficiente dinero para comprar ese %tde!¡No tiene suficiente espacio para llevar ese %tde!¡No tiene tanto dinero!Encuentra %d %tde en un cadáver abandonado en el metro!¡Ha conseguido escapar!¡Estuvo alucinando durante tres días en el viaje más salvaje que haya imaginado nunca!^Y entonces se murió debido a que su cerebro se derritió.Tiene %d. Ha sido expulsado del servidor. Pasando al modo 1 jugador.Ha sido expulsado del servidor. Pasando al modo 1 jugador.Tiene un mes de tiempo de juego para amasar su fortuna.Oye a alguien poner %s¡Le da a %s!Le da a %s, y mata a un %tde!¡Ha matado a %s!Sólo usamos el 10% de nuestro cerebro. ¡Destruyamos con drogas el 90% sobrante!¡Se encuentra con un amigo! Le da a usted %d %tde.¡Se encuentra con un amigo! Usted le da %d %tde.¡No le ha dado a %s!¡Tiene que introducir una cantidad positiva de dinero!Se queda ahí como un tonto.Se ha parado para %s.¡Le atracan en el metro!¡Necesita más %tde para que le guarden más %tde!Está criando malvas. Sayonara, baby.Se acabó su tiempo para traficar...¡Su mamacita ha hecho galletas con algo de su %tde! ¡Estaban geniales!¡Su espía trabajando con %s ha sido descubierta!^¡La espía %s!Índice basado en cero de la pistola con la que están armados los policíasZzzzz... ¿está traficando con caramelos o qué?^ (al menos, eso es lo que *piensa* que ha dicho)_%c. %tde_Modo antiguo_Atacar_Comprar ->_CancelarCerrar _Ventana_Conectarse¡A _traficar!_Tirar <-_Huir_Luchar_Ayuda¡_Irse!_No_Aceptar_Refrescar_Correr_Espiar (%P)_Esperar_Empezar partida para 1 jugador_Delatar (%P)_Sí`Julie's In The Drug Squad` de The Clash`Are you Experienced` de Jimi Hendrix`Cheeba Cheeba` de Tone Loc`Polipuestón` de King Putreak`Alternativa platino` de Habeas Corpus`Drug Me` de Dead Kennedys`Street Lobotomy` de Body Count`Tengo un spiz amarillo` de Manolo Kabezabolo`Mineros locos (Armas pal pueblo)` de Def Con Dos`Legalización` de Ska-P`I Love You Mary Jane` de Sonic Youth`Todo por la napia` de Siniestro Total`Mexico` de Jefferson Airplane`I want to get high` de Cypress Hill`Needle And The Spoon` de Lynyrd Skynyrd`White Punks on Dope` de the Tubes`White Rabbit` de Jefferson Airplanearmados hasta los dientesa %Pputaputasfamilia que consiste en ganar dinero con la compraventa (y eludir a la policía).polipolisdesertóayudantesayudantedopewarsJugador automático de dopewarsdopewars está publicado bajo la GNU General Public Licenceservidor dopewarscerrando el servidor dopewars.ordenes y preferencias del servidor dopewars versión %s help Muestra esta pantalla de ayuda list Lista todos los jugadores conectados push Le pide educadamente al jugador nombrado que se vaya kill Rompe repentinamente la conexión con el jugador nombrado msg: Envía un mensaje a todos los jugadores save Guardar la configuración actual en el fichero nombrado quit Salir elegantemente, tras avisar a todos los jugadores = Establece la variable nombrada al valor dado Muestra el valor de la variable nombrada [x].= Establece la variable nombrada en la lista dada, index x, al valor proporcionado [x]. Muestra el valor de la variable de la lista nombrada Las variables válidas son:- servidor dopewars versión %s preparado y esperando conexiones por el puerto %d.el servidor de dopewars versión %s está listo para recibir órdenes de administración; use «help» para obtener ayudadopewars versión %s drogadrogasse escapóSe esperaba un valor booleano (uno de 0, FALSE, 1, TRUE)recibida una conexión de %sarmaarmastomar una cervezamuy armadosde un mercado de la droga imaginario. Dopewars es un juego para toda lapoco armadosarmadoso C>ontactar con sus espias y recibir las informacioneso N>o mandar ningún encargo o S>alir? armados de penafumar un Djarumfumar un purofumar un cigarrillofumar un porrocadena de formato strftime() para mostrar la ronda del juegoformato de la cadena strftime() para las marcas de tiemposu objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!)el bancoel usurero_al_al usurerolas grabaciones del CESIDel barfue disparadadopewars-1.5.12/po/Makefile.in.in0000644001565000007070000001213407367356160013460 00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995-1997, 2000, 2001 by Ulrich Drepper # # This file file be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. PACKAGE = @PACKAGE@ VERSION = @VERSION@ # These two variables depend on the location of this directory. subdir = po top_builddir = .. SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac` CC = @CC@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ MSGMERGE = msgmerge DEFS = @DEFS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ INCLUDES = -I.. -I$(top_srcdir)/intl COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) POFILES = @POFILES@ GMOFILES = @GMOFILES@ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \ $(POFILES) $(GMOFILES) POTFILES = \ CATALOGS = @CATALOGS@ .SUFFIXES: .SUFFIXES: .c .o .po .pox .gmo .mo .c.o: $(COMPILE) $< .po.pox: $(MAKE) $(PACKAGE).pot $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) --statistics -o $$file $< all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: # Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. $(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ --add-comments --keyword=_ --keyword=N_ \ --files-from=$(srcdir)/POTFILES.in \ && test ! -f $(PACKAGE).po \ || ( rm -f $(srcdir)/$(PACKAGE).pot \ && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ else \ : ; \ fi install-data-no: all install-data-yes: all $(mkinstalldirs) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $(DESTDIR)$$dir; \ if test -r $$cat; then \ $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ echo "installing $(srcdir)/$$cat as" \ "$(DESTDIR)$$dir/$(PACKAGE).mo"; \ fi; \ done # Define this as empty until I found a useful application. installcheck: uninstall: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \ done if test "$(PACKAGE)" = "gettext"; then \ rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ else \ : ; \ fi check: all dvi info tags TAGS ID: mostlyclean: rm -f core core.* *.pox $(PACKAGE).po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: $(DISTFILES) dists="$(DISTFILES)"; \ for file in $$dists; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ cp -p $$dir/$$file $(distdir); \ done update-po: Makefile $(MAKE) $(PACKAGE).pot if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \ cd $(srcdir); \ catalogs='$(GMOFILES)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\.gmo$$//'`; \ echo "$$lang:"; \ if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \ mv -f $$lang.new.po $$lang.po; \ else \ echo "msgmerge for $$cat failed!"; \ rm -f $$lang.new.po; \ fi; \ done $(MAKE) update-gmo update-gmo: Makefile $(GMOFILES) @: Makefile: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dopewars-1.5.12/po/es_ES.gmo0000644001565000007070000025630010355323337012504 00000000000000Þ•^ ü5øG”ùG?ŽHHÎH"I:I5JI5€IضIöJ.†KNµKLL.LˆBLËL&ÍL$ôL'M'AM iM tM €MŒMMºMÔMìM N&N=N[NsN#N$±NÖNëNÿNO&O :O GOQOaOjOsO‰OŸO²O»O+ÚOP(#PÜLP=)QgQ€Q‘Q§Q¾QÙQ ëQ ÷Q R RRR1R ERPRfRzR!R¯RÀR%ßRS%S:SQSlS ‰S ªSËSæSTT-T@T^T |T/ŠTºTÊT"ÑT$ôTU U)U1U:UBUIUQUYU hU uUUžU¯UÃU×U éU÷U VV(Vé!Oé"qé(”é(½é*æéVêhê9‡êÁê$ÔêEùê)?ëEië¯ë<Æë5ì9ìMì.UìL„ì,Ñì.þìG-íTuíLÊí'îx?î1¸î?êî*ï<ïRï bïpïvï1zï.¬ïÛïàï þï& ð0ð 5ð?ð^ð-gð•ðœð¥ð »ð=Çð ññ&ñ57ñ#mñ‘ñ—ñ ñ¨ñ%¿ñ<åñ"òP)òzòò'–ò¾ò<ÄòÜóÙÞó ¸ô ÅôÒôAíô /õ =õ6Gõ4~õ=³õ/ñõ4!ö&Vö }ö3‰öF½öF÷EK÷>‘÷Ð÷,ð÷ø!%øGø^ødøxøø–ø´øºø ÑøÛø*ãøù+ù EùRùfù}ù“ù¥ù¾ù!×ùùù' ú-2ú;`úOœú1ìúNû(mû)–û-Àû<îû++üWü1iü9›ü.Õü<ý@Aý1‚ý´ý#Ïý%óýGþ aþ lþ2wþ ªþ ¸þ,Ãþ<ðþ--ÿ![ÿ(}ÿ#¦ÿ1Êÿüÿ0FZr„ ‹˜ ½ÛM÷E(`‰"ž"Á'ä% #2V<^ ›*¥ ÐÝEõ";^*y¤"¹'Ü%#*N1mŸC¤èì9ó-$A f‡œ°ÅØî 1*Fq„%“'¹-á&'Fnt } ‹¬»²Õ³ˆ6< s !Œ ;® )ê   8 &T 2{ ®  Ë (ì ) $? #d ˆ  œ ª 7à û   ' $H m v y ,– 9à 'ý  % "2  U ` h o u =† Ä Ö Bé ,, Y%c.‰B¸&û"?$Y~7¹Eñ@7dxÝ$ð -)/W‡©ÂÉÝ%ô/J ]k€‰™ ¢!¬.Î!ý/OOŸ § ±¼,ÛK%q 5®%ä $>]=y3·&ë,2Ra6q¨Æ Ì×î6 0Du ~5‹#Á"å 5P#l~‘±0Ã1ô9&?`6 =×?DUDš=ßTPrJÃ5;D2€6³Kê6 H 8P ‰  ‘  ¹ ¿ Ñ "ë !$! 4!B! `!1j!)œ!-Æ!,ô!(!"8J"@ƒ"&Ä"ë">#9C#3}##±#8Õ#1$.@$o$Œ$¬$E´$ú$A%,[%$ˆ%­%%Ë%Jñ%›<&#Ø&8ü&I5''-Ÿ'Í'5é'<(-\('Š('²(Ú(Jñ(¬<)©é)D“*Ø*#ì* +~+ƒ™+!,A?,7,9¹,ó,, -?6-Cv-#º-OÞ- ..:.,T.(.4ª.%ß.2/ 8/,Y/†//Ä©/Ùn6H?3\?@?.Ñ?@Q@mi@K×@J#AnA6ƒAºAÂACÒAB5˜B ÎBåÚB(ÀCAéC0+D \DfD{DD–D¬DÁD%ÝDE'EEE,WE:„E.¿EîE+F:F+@F*lF)—F-ÁF,ïF+G9HG‚GšGŸG2¢G>ÕGYH#nH4’HÇH)áH I*Iø-I&JDJ8bJ9›J6ÕJ@ K"MKpK3K3ÃK÷K=LML–fL ýL; M;EM8MºM ÒMàMNLN+_N,‹N¸N7ÎNO#O:O1SO%…O%«OBÑO>PFSP/šP5ÊP Q QQ Q ,Q6Q FQRQ bQlQrQzQQ’Q–Q ŸQªQ ²Q¿QÈQèQ÷Q(ûQ%$RJRfR&„R«RÆR-æR1SFS%^S&„S«S$ÊS(ïS"T$;T`TzTT„TMŠTØTßTçT ïTùTU U:*UeUwU¦–UK=Ys‰YýYZZ Z8)ZbZ~ZƒZ‰Z šZG¦Z îZûZ7[;[ X[c[s[ ‚[[¤[<³[9ð[D*\o\x\‘\«\ ²\Õ<ø÷ÏËQœáÍ û¹™y”äÈîM•C}É2ßÙ ÓEÆ—H-C¥ÏE?P£lúþ¬÷ŠëE;¹h>s^r’;Ó9›ãÅk`tΰ40w&ý1$`éuöÈf@…z<8º‰N…ƒ3DRKÂWØTl Ð=ïYŠ9|ye=Ô„ìQÛ÷: J|>‚ü—WÔ,p²–Q» º0ÖyP[N{‡®ê:8!¯*šãç7ÇÀ%$Äàg¡(ž «MBc#ô\_ñ1æ¤{Á­*~.wV"âm6‹½ÜrFÂAf†\Ñ”U4“ Xœ; €ØS­DKWÍ8Oç©6Þí]do¼x€ •’ò-ßF%Ò?4]r'õ¶AÞ¡L>‘”ì¢ÌzÙ+¦î‹cK¡0ú'%N¹<û+Îb±ð(ÅItÚuXv¥œ²¸#¿Èÿcn@~^µ˜áa%mjýJT/e‘>ŽØ/veÛü‘1MÆþÆ96 Šz]pÛ·‚½@mûÐI¨ËËü‡ÿxÃaV6üÖ)©›ªÎ-³¢l ˜gÕþJS/µü“ ³Ÿ§^»êWŸâÓøvëYÊðí#ŸÜpS“Z(«å\’†°!@ž‚8J")É]ÝãÚI*×KÞ5óH7bæ|R™–Õ4!¥k\… èÇìiaq$®°oùÊ+HqqLH׃©ÐV ÍÜ(PÏ^£}5·À3Á¦ÂNÇåíS¿ï3‰s=ö'äD±7ÉxÒ§£Òú¸Ž)* è´ô?é‰E ø,C•5ºZÊ}¤AZñŒé?3ˆjU· ù ÝY_D äb#TÚBë³2貪ÌÔÑ~ôsó&½V†Fß [OF‡A¾¢i´5âk¾ö&òMd/Zóýç¬7ðŒOBħUhj`{ÿª ¬.æBI"dÝX:[—;QÑXŽ˜0« _Œ¶  ..¤¨+ò&ž9T<š–­ê¿±h‹Rñƒn×åG„€t¦2-U àá»™$Ö=u¯wˆ¨f[1µRPîÙL C"¯2ùÅgàn ïL̈'¾õ!¶®ÄG„Oõ)À›i´,šYÁoGG:¸, For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -h display this help information -v output version information and exit dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -h, --help display this help information -v, --version output version information and exit dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. $% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-19Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/GTK Stats: Guns/%Tde%/LoanShark window title/%Tde%/Location display/%tde%/Location to jet to/%tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%c. %-10tde %8P%d of %d%d. %tde%d: HTTP client error%d: HTTP server error%d: redirect error%m-%d-%Y%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Enter a blank username to cancel)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk401: HTTP authentication failed403: forbidden404: page not found407: HTTP proxy authentication failed<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAuthenticating with SOCKS serverAuthenticating with SOCKS server Authentication RequiredAuthentication for LocalName with the metaserverAuthentication required for realm %sAvailable space: %dBSDTPLGFJQBSLBad auth header: %sBad metaserver reply "%s"Bad redirect message from serverBad redirect: %sBankBank %17PBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBrowse...BuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot create server (listening) socket (%s) Aborting.Cannot get metaserver detailsCannot initialise WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash %17PCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armourCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not set up Unix domain socket for admin connections - check permissions on /tmp!Could not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolCurrency.Prefix=TRUED O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt %17PDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armourDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s:%u (%s)Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth %3dHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf TRUE, use SOCKS for metaserver communicationIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid HTTP status line: %sInvalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaserverMetaserver hostnameMetaserver name to report/get server details to/fromMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of a proxy for metaserver communicationName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of tries exceededNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for HTTP Basic authenticationPassword for HTTP Basic proxy authenticationPassword for SOCKS5 authenticationPassword: Path of the script on the metaserverPay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort for communicating with the proxy serverPort for metaserver communicationPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedProxy Authentication RequiredProxy authentication required for realm %sPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication cancelled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSanitized away a RandomOfferSaturday Night SpecialScript pathSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSound nameSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Could not connect to metaserver (%s)Status: Obtaining server information from metaserver...Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and MetaServer.Proxy.Password variablesUnable to authenticate with HTTP server; please set MetaServer.Auth.User and MetaServer.Auth.Password variablesUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown HTTP error %dUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUnknown metaserver error code %dUpUp since : %sUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colours (by default colours are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colours --no-colour (by default colours are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format User name: Username for HTTP Basic authenticationUsername for HTTP Basic proxy authenticationUsername for SOCKS5 authenticationUsers currently logged on:- Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP authenticationUsing MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy authenticationUsing Socks.Auth.User and Socks.Auth.Password for SOCKS5 authenticationUsing Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public Licence Waiting for connect to metaserver at %s:%u...WarningWarning: your client is too old to support all of this^server's features. For the full "experience", get^the latest version of dopewars from the^website, http://dopewars.sourceforge.net/.Wasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeb proxy hostnameWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initialisedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou appear to be using an extremely old (version 1.4.x) client.^While this will probably work, many of the newer features^will be unsupported. Get the latest version from the^dopewars website, http://dopewars.sourceforge.net/.You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Refresh_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licencedopewars serverdopewars server terminating.dopewars server version %s commands and settings help Displays this help screen list Lists all players logged on push Politely asks the named player to leave kill Abruptly breaks the connection with the named player msg: Send message to all players save Save current configuration to the named file quit Gracefully quit, after notifying all players = Sets the named variable to the given value Displays the value of the named variable [x].= Sets the named variable in the given list, index x, to the given value [x]. Displays the value of the named list variable Valid variables are listed below:- dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: es_ES Report-Msgid-Bugs-To: POT-Creation-Date: 2005-12-30 13:30-0800 PO-Revision-Date: 2003-12-10 09:48+0100 Last-Translator: Quique Language-Team: Castilian aka Spanish MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.2 Para obtener información sobre las opciones en la línea de órdenes, escribe dopewars -h en tu terminal Unix. Esto mostrará una pantalla de ayuda con las opciones disponibles. L>istar los servidores que hay en el metaservidor, y elegir uno S>alir (puedes iniciar un servidor tecleando «dopewars -s») o J>ugar en modo 1 jugador? I>rse a tomar por culo E>spiar a otro camello (precio: %P) S>oplarse a la bofia de otro camello (precio: %P) -h mostrar esta información de ayuda -v mostrar información sobre la versión y salir dopewars es Copyright (C) Ben Webb 1998-2005, y está publicado bajo la GNU GPL Informa de fallos al autor escribiendo a benwebb@users.sf.net -h, --help mostrar esta información de ayuda -v, --version mostrar información sobre la versión y salir dopewars es Copyright (C) Ben Webb 1998-2005, y está publicado bajo la GNU GPL Informa de fallos al autor escribiendo a benwebb@users.sf.net -u fichero usar módulo de sonido "fichero" -u, --plugin=FICHERO usar módulo de sonido "FICHERO" ¿Estás seguro? ¡Te encuentras %P en el cuerpo! ¡Le robas al cadaver!Éste es el registro de arranque de dopewars, que contiene todos los mensajes de información resultantes de procesar el fichero de configuración, etc. ¤% de resistencia a disparos de cada puta% de resistencia a disparos de cada poli% de resistencia a disparos de cada ayudante% de resistencia a disparos de cada jugador%-18Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d a %P%/Título de la ventana del banco/%Tde%/Enfrentamiento: Putas/%d %tde%/Ubicación actual/%tde%/GTK Ventana de la armería/%Tde%/GTK Stats: Putas/%Tde%/Estado GTK: Armas/%Tde%/Título de la ventana del usurero/%Tde%/Location display/%tde%/Lugar al que pirarse/%tde%/Título del diálogo Echar a una puta/Echar a una %Tde%/Elemento de menú echar a una puta/E_char a una %Tde...%/Espía: Drogas/%Tde...%/Espía: Armas/%Tde...%/Situación: Drogas/%Tde%/Situación: Armas/%Tde%Tde %5d Espacio %4d%Tde que tienes%Tde aquí%c. %-10tde %8P%d de %d%d. %tde%d: error del cliente HTTP%d: error del servidor HTTP%d: error de redirección%d-%m-%Y¡%s - %s - te está dando caza, colega!¡%s y %d %tde - %s - te están persiguiendo, colega!¡%s llega con %d %tde, %s!%s no puede ser menor de %d - se ignora%s no parece ser un fichero de puntuaciones válido - por favor, compruébalo. Si es un fichero de puntuaciones de una versión antigua de dopewars, conviértela al nuevo formato ejecutando la orden «dopewars -C %s» en la línea de órdenes.¡%s ha aceptado tu %tde!^Usa la tecla G para contactar con tu espía.¡%s ha conseguido escapar %tal!¡%s ha conseguido escapar!%s ha dejado el juego.%s ha dejado el juego. ¡%s ha rechazado tu %tde!¡%s te ha dado, co!%s es "%s" %s es %P %s es %d %s es %s %s es { ¡%s se une al juego!%s se une a la partida. %s asesinado ¡%s deja el servidor!%s espía ahora a %s%s mata a %s.%s dispara a %s ¡y mata a una %tde!%s dispara a %s.%s dispara a %s... ¡y falla!%s te dispara... ¡y se carga a una %tde!%s te dispara... ¡y falla!espionaje de %s a %s: DENEGADO%s se levanta y lo cogeChivatazo de %s sobre %s: DENEGADO%s se chivó a la poli de %s%s intenta huir, pero no lo consigue.¡%s se te ha picado, tío! Descansa en paz...%s es ahora conocido como %s%s es ahora conocido como %s.%s: DENEGADO largarse a %s%s: Oferta de espionaje de %s%s: Chivatazo de %s%s: la oferta era en nombre de %s%s: el chivatazo de %s acabó bien.%s[%d] es %s %s^¡%s ya está aquí!^¿Quieres Atacar o Huir?(%s disponible) (Muertas)(Introduce un nombre de usuario en blanco para cancelar(No se puede mostrar el error en UTF-8)(Quedan)(R.I.P.), T>irar, E>nfrentarte, M>andar recado, D>arte el piro, L>istar, P>ulir, H>ablar a todos, hablar a un J>ugador, o S>alir? Kalashnikov/Recados/_Obtener información de las espías.../Recados/_Espiar.../Recados/_Chivarse a la policía.../Juego/Habilitar _sonido/Juego/_Abandonar partida.../Juego/_Nueva partida.../Juego/_Opciones.../Juego/_Salir.../Ayuda/_Acerca de.../Listar/_Inventario.../Listar/_Jugadores.../Listar/_Puntuaciones.../Hablar/_Hablar a todos.../Hablar/Hablar al _Jugador.../_Recados/_Juego/_Ayuda/_Listar/_Hablar401: la autenticación HTTP ha fallado403: prohibido404: página no encontrada407: la autenticación con el proxy HTTP ha fallado<- _Pulir¿Te imaginas como sería la vida si no hubiera drogas?Un mono amaestrado lo haría mejor...A:AtacarAHJugador automático asesinado. Cerrando de manera normal. El jugador automático ha sido expulsado del servidor. Iniciado el jugador automático; intentando conectarse al servidor en %s:%d.Jugador automático suicidado con éxito. ¿Abandonar esta partida?Abandonar esta partidaAcerca de DopewarsTripis¡Los yonquis están comprando %tde a precios absurdos!La dirección ya está en usoFamilia de direcciones no soportadaOrden de administración: %sConexión de administración cerradaJefe BiggumCantidad de dinero con la que empieza cada jugadorImporte de la deuda con la que empieza cada jugador¿Te has metido algo?¿Estás seguro de que quieres salir? ¿Estás seguro? (Perderás todas las %tde y %tde que te esté guardando esta %tde!)Pidiendo SOCKS para conectarse a %s...Pidiendo SOCKS para conectarse a %s... Penalización de ataque relativa a un jugadorIntentos para conectarse al metaservidor demasiado frecuentes - esperando al siguiente turnoAutenticando contra el servidor SOCKSAutenticándose con el servidor SOCKS Se precisa autenticaciónAutenticación del nombre local con el metaservidorSe requiere autenticación para la zona %sEspacio disponible: %dCPTHJLMEDSCPDCabecera de autenticación no válida: %sRespuesta del metaservidor incorrecta «%s»Mensaje de redirección no válido recibido del servidorRedirección no válida: %sBancoBanco %16PEl banco está en %s Banco: %P.38 SpecialBasado en el juego Drug Wars de John E. Dell, dopewars es una simulaciónBasado en el juego Drug Wars de John E. Dell, dopewars es una simulación de un mercado de la droga imaginario. Dopewars es un juego para toda la familia que consiste en la compraventa de droga y en intentar evitar a la policía. Lo primero que tienes que hacer es saldar la deuda con tu usurero. Después, tu objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!) Tienes un mes de tiempo de juego para amasar tu fortuna. Ser prolijo al procesar el fichero de configuraciónBen WebbLa Paz_al_a La PazEl Gancho_al_al GanchoInspeccionar...ComprarComprar %tde¿Cuánto quieres comprar?Comprando %d %tde a %P Comprando un %tde por %P en la armería CLSJ¿Y tú te haces llamar camello?Puede ser especialmente barataPuede ser especialmente caraNo se puede conectar al puerto %u (%s). Cancelando.No se ha podido crear la copia de respaldo(%s) del fichero de máximas puntuaciones %s.No se puede crear el fichero pid %s: %sNo se puede crear el socket (%s) (a la escucha) del servidor. Cancelando.No se pueden obtener los detalles del metaservidor¡No se puede inicializar WinSock (%s)!¡No se puede instalar el gestor de interrupción SIGHUP!¡No se puede instalar el gestor de interrupción SIGINT!¡No se puede instalar el gestor de interrupción SIGTERM!¡No se puede instalar el gestor de interrupción SIGUSR1!¡No se puede instalar el gestor de interrupción SIGWINCH!¡No se puede instalar el gestor de tuberías!No se puede escuchar el socket de red. Cancelando.No se puede abrir el fichero de máximas puntuaciones %s. (%s.) Asegúrate de que tienes permisos para acceder a este fichero o directorio, o bien indica otro fichero de puntuaciones con la opción -f en la línea de órdenes.No se ha podido abrir el fichero de puntuaciones %s: %s.No se puede alcanzar la redNo se puede empezar el enfrentamiento - ¡no hay ningún arma que usar!PastaPasta %16PPasta en efectivo: %PParque Bruil_al_al Parque BruilCambiar nombreFrase barataElige un recado que encargar a una de tus %tde...FarlopaHa llegado la cosecha. ¡El precio de la marihuana está por los suelos!Orden:ComentarioComentario: %sDelicias_al_a las DeliciasLa configuración sólo se puede cambiar interactivamente cuando no hay ningún jugador conectado. Espera a que se desconecten todos los jugadores, o elimínalos con las órdenes echar o matar, e inténtalo otra vez.El fichero de configuración se ha guardado con éxito como %s ¡Enhorabuena! ¡Has conseguido una de las máximas puntuaciones!Conectado al servidor SOCKS %s...Conectado al servidor SOCKS %s... La conexión se ha roto debido a un falloConexión cerrada por el servidor remoto.Conexión rechazada por las reglas de SOCKSSe ha roto la conexión debido a que se ha llenado la memoria intermedia (full buffer).Se ha establecido la conexión Conexión establecida. Usa Ctrl-D para cerrar la sesión. Conexión rechazadaConexión rota por el servidor remotoSe ha perdido la conexión con el servidor - pasando al modo 1 jugador¡Se ha roto la conexión con el servidor! Se ha perdido la conexión con el servidor. Pasando al modo 1 jugador.Críticas constructivasCríticas constructivas Andrea Elliot-Smith Pete WinnControla el número de mensajes de registro producidosBlindaje del maderoMaderos¡Los maderos no pueden atacar a otros maderos!¡La pestañí ha hecho una gran redada de %tde! ¡Los precios son exorbitantes!El fichero de puntuaciones está corrupto :-(Coste de enviar a una puta a espiar al enemigoCoste de enviar a una puta a dar información sobre el enemigo a la poliNo se ha podido conectar al servidor dopewars (%s) El jugador automático se suicida.No se ha podido determinar el fichero de configuración local en que escribirNo se ha podido abrir el fichero %s: %sNo se ha podido establecer el socket de dominio Unix para conexiones de administración - comprueba los permisos en /tmp.No se puede iniciar dopewars en modo multijugadorEl PP es lo más rancio y retrógrado que ha parido madre. ¿O no?Símbolo de dineroCurrency.Prefix=FALSED O P E W A R SP>ulir %tde, PCLESISLTasa de interés diaria de la deuda con el usureroTipo de interés diario de tu saldo en el bancoDañoDaño ocasionado por cada armala armeríaDía del mes en el que empieza el juegoPufoPufo %17PDeuda de %P pagada al usurero Pufo: %PPenalización de defensa relativa a un jugadorBorrarIngresarBlindaje del ayudanteDescripciónDivisor del precio de la droga cuando es especialmente barata¿Quieres ¿Huyes o te enfrentas?¿Echas a correr?¿Quieres I>ngresar dinero, S>acar dinero o L>argarte?¿Tu madre sabe que eres un camello?AbajoTirarTirar %tde¿Cuánto quieres tirar?Compraventa de drogas e investigaciónCompraventa de drogas e investigación Dan Wolf DrogasDe la piel para dentro usted es su único soberano. ¡Y las drogas son sus amigas!H:HuirTraducción al inglésTraducción al inglés Ben WebbErrorNo se ha podido leer la tabla de puntuaciones del fichero %sSe han encontrado errores al leer el fichero de configuración. Como resultado, puede que algunas preferencias no funcionen de la manera esperada. Puedes mirar los mensajes en la salida estándar para conocer más detalles.Se han encontrado errores al leer el fichero de configuración. Como resultado, algunas preferencias podrían no funcionar de la manera esperada. Puedes consultar el fichero «dopewars-log.txt» para conocer los detalles.Frase cara 1Frase cara 2Testeo intensivo del juegoTesteo intensivo del juego Katherine Holt Caroline MooreE:EnfrentarseL>uchar, No se ha podido conectar al metaservidor en %s:%u (%s)No se ha podido contactar con el servidor de nombresNo se ha podido enviar el mensaje de notificación de servicioNo se ha podido registrar el gestor de servicioNo se ha podido establecer el estado del Servicio NTNo se ha podido iniciar el Servicio NTEnfrentarseFichero en el que escribir los mensajes de registroSiguiendo tu chivatazo, la pasma va a por %s, que escapa con %d %tde. Siguiendo tu chivatazo, la bofia va a por %s, ¡le disparan y la palma!Para conocer las opciones en la línea de órdenes, escribe dopewars -hLínea utilizada para drogas que sean caras el 50% de las vecesDuración de la partida (turnos)Se ha agotado el tiempo de juego. Saliendo. GeneralBarrio Oliver_al_al Barrio OliverLa armería está en %s ArmasArmas recargadas...P U N T U A C I O N E SCostoTú sales en la tele, ¿verdad?SaludSalud %3dSalud: %dCaballoEh, tío. Los precios de las %tde aquí son:Eh tío, ¿cuál es tu _nombre?Eh tío, ¿cómo te llamas? PuntuacionesNombre del servidorServidor no encontradoNombre del servidor: ¿Cuánto quieres? ¿Cuántas quieres tirar? ¿Cuánto quieres vender? ¿Cuánto dinero quieres devolver? ¿Cuánto dinero? Soy Carlos Jesús, y vengo de Raticulín.Estoy hecha polvo, me voy a la cama. ¿Vienes?No somos más que un montón de átomos moviéndose en la nada.Los anuncios de compresas usan la regla de la reina: la sangre siempre es azul.Pero ¿por qué llevas gafas de sol si es de noche?Hmmm... ¡qué almuerzo! Mi madre me ha preparado unas galletas de... chocolate.Yo no he sido siempre una mujer, ¿sabes?Te vendo una chupa de cuero por 30 euros.Apuesto a que tienes sueños superinteresantes`Cuestiona la autoridad; piensa por ti mismo` dijo Tim LearyIconos y gráficos Ocelot MantisIconos y gráficosSi TRUE, el símbolo de dinero va antes del precioSi TRUE, el servidor se minimiza a la bandeja del sistemaSi TRUE, el servidor funciona en segundo planoSi TRUE, usar SOCKS para la comunicación con el metaservidorSi no se deja en blanco, el nombre de usuario a usar para SOCKS4El índice en la cadena %s debe estar entre 1 y %dCódigo de error interno %dError interno del metaservidor «%s»Línea de estado de HTTP no válida: %sSeleccionado módulo «%s» no válido. (%s disponible, ahora usando «%s».)InventarioInventarioEspero que no te importe, pero voy a rezar por ti.Ir al barrio:Yendo %talYendo %tal con %P en efectivo y %P de deuda Si te ofrecen droga, di "no", que somos muchos y queda poca.¡Mi cuerpo es mío y en él meto lo que quiero!Lista de canciones que oyes tocarLista de cosas que puedes dejar de hacerLista de cosas que oyes en el metro¿Qué lista quieres? ¿J>ugadores o P>untuaciones? El usurero está en %s Documentación local en HTML Ubicación del usureroUbicación del bancoUbicación de la armeríaUbicación del barSitiosBarbitúricosPirulosMOTD (mensaje de bienvenida)Manteniendo el fichero pid %sZona pija_al_a la Zona pijaAlcanzado el número máximo de clientes (MaxClients %d) - cerrando la conexiónNúmero máximo de ayudantesNúmero máximo de distintos tipo de drogaMáximo precio normalPrecio máximo normal de cada drogaNúmero máximo de conexiones TCP/IPNúmero máximo de ayudantes acompañantesMáximo número de drogas en cada lugarPrecio máximo de contratar una putaMensajeMensaje a mostrar cuando esta droga sea especialmente barataMensaje:-Mensajes (-/+ desplaza hacia arriba/abajo)MetaservidorNombre del metaservidorNombre del metaservidor al que informar o del que obtener informaciónMinimizar a la bandeja del sistemaNúmero mínimo de ayudantesNúmero mínimo de distintas clases de drogaMínimo precio normalPrecio mínimo normal de cada drogaNúmero mínimo de ayudantes acompañantesNúmero mínimo de drogas en cada sitioPrecio mínimo de contratar una putaMes en el que empieza el juegoMultiplicador para las drogas especialmente carasN:NoS>iguiente servidor: A>nterior servidor; E>scoger este servidor... SAENombreNombre del proxy para la comunicación con el metaservidorNombre de cada poliNombre de los ayudantes de cada poliNombre del ayudante de cada poliNombre de cada drogaNombre de cada armaNombre de cada lugarNombre de una putaNombre de un ayudanteNombre de varias putasNombre de varios ayudantesNombre del bancoNombre de la armeríaNombre del fichero de máximas puntuacionesNombre del usureroNombre del barNombre del servidor al que conectarseError del servidor de nombres código %dDirección de red del servidor al que escucharError de red código %dPuerto de red al que conectarseEl subsistema de red no está preparado.NuevoNuevo %sNueva partidaNueva conexión de administraciónNuevo nombre: ¡No hay armas ni maderos!El cliente curses no está disponible - vuelve a construir el binario pasando la opción --enable-curses-client a configure, o usa una versión gráfica (si es posible) es su lugar. El cliente gráfico no está disponible - vuelve a construir el binario pasando la opción --enable-gui-client a configure, o usa el cliente curses (si está disponible) en su lugar. ¡No hay ningún otro jugador conectado en este momento!¡No existe ese usuario! No hay ningún usuario conectado. Número de rondas de juego (si es 0, el juego nunca termina)Número de segundos para devolver disparosNúmeroNúmero de drogas en el juegoNúmero de armas en el juegoNúmero de pistolas que porta cada poliNúmero de pistolas con las que carga cada ayudanteNúmero de sitios en el juegoNúmero de canciones que se tocanNúmero de cosas que se dicen en el metroNúmero de cosas que puedes dejar de hacerSe ha excedido el número de intentosNúmero de tipos de poli en el juegoComisario RomeralesAgente MatuteAh, tú debes ser gallegoUna de tus %tde estaba espiando para %s. ^¡La espía %s!Operación no soportadaOpioOpcionesYa no queda memoria intermedia (buffer)Ya no quedan descriptores de ficheroKetaminaJP¡Pánico! ¡No puedes escapar!Contraseña para la autenticación HTTP básicaContraseña para la autenticación HTTP básica con el proxyContraseña para la autenticación SOCKS5Contraseña: Ruta del script en el metaservidorPagar todoSaldar:PeyoteJugarTesteo del juegoTesteo del juego Phil Davis Owen Walsh¿Jugar otra vez? Lista de jugadoresJugador eliminado debido a que se agotó el tiempo para la conexiónJugador eliminado: demasiado tiempo inactivoJugadores¡Los jugadores ya están en una pelea!¡Los jugadores ya están en sus propias peleas!Los jugadores son desconectados después de este número de segundosJugadores conectados en este momento:-Jugadores en esta partida:- Jugadores: %d (máximo %d)Jugadores: -desconocido- (máximo %d)Por favor, elige al jugador al quieres espiar. Tu %tde ofrecerá sus servicios a ese jugador, y si tiene éxito, podrás ver la situación del jugador con el menú "Obtener informes de las espías" Recuerda que la %tde se va, así que puedes perder todas las %tde o %tde que te esté guardando.Por favor, elige al jugador del que quieres chivarte a la pasma. Tu %tde ayudará a los maderos a atacar a ese jugador, y te informará del resultado cuando os encontreis. Recuerda que la %tde se va a ir temporalmente, así que puedes perder todas las %tde o %tde que te esté guardando.Introduce el nombre y puerto de un servidor doperwars:-Por favor, espera... intentando contactar con el servidor dopewars...Por favor, espera... intentando contactar con el metaservidor...¡Los perros de la bofia te persiguen durante %d manzanas! ¡Pierdes algo de %tde! Vaya mierda, macho.Presencia policialPresencia policial en cada sitio (%)PuertoPuerto : %dPuerto para comunicarse con el servidor proxyPuerto para la comunicación con el metaservidorPuerto: El nombre de tu servidorPulsa cualquier tecla...PrecioPrecio de cada armaProtocolo no soportadoSe precisa autenticación con el ProxySe requiere autenticación proxy para la zona %sEl bar está en %s Echando a %s Torrero_al_a TorreroPreguntaSalir del juegoC:CorrerC>orrer, Se limpian los eventos aleatoriosVoy a tener que dispararte por tu propio bien.Eliminar las referencias a drogasEstructura lista redimensionada a %d elementos ¡Alguien ha dado un palo en una farmacia y está vendiendo barbitúricos baratos!Colt 45M E T R OE>sperar, Se precisa autenticación SOCKSAutenticación SOCKS cancelada por el usuarioError de autenticación SOCKSSe requiere autenticación SOCKS (nombre de usuario en blanco para cancelar)Código de error de SOCKS %dError general del servidor SOCKSEl servidor SOCKS rechazó todos los métodos ofrecidosSOCKS: Tipo de dirección no soportadoSOCKS: Orden no soportadaSOCKS: Conexión rechazadaSOCKS: No se llega al servidorSOCKS: No se llega a la redSOCKS: Rechazada - identd informa de diferentes ID de usuarioSOCKS: Rechazada - no se ha podido contactar identdSOCKS: Solicitud rechazada o sin éxitoSOCKS: se agotó el tiempoESICNPasando de una oferta aleatoriaSmith & WessonRuta del scriptSegundos entre los turnos de los jugadores automáticosSeleccionar fichero de sonidoPulirPulir %tde¿Cuánto quieres pulir?Vendiendo %d %tde a %P EnviarEnviando actualizaciones pendientes al metaservidor...Enviando mensaje recordatorio al metaservidor...ServidorServidor: %sDescripción del servidor, que se pasa al metaservidorEl servidor informa al metaservidorMensaje de bienvenida del servidorMonguis1 jugadorEste verano no sé si bajar al moro o irme a AmsterdamTipo de socket no soportadoTío, tienes que hacerte una cresta.Lo siento, pero este servidor tiene un límite de %d jugadores, que ya ha sido alcanzado. ^Prueba a conectarte de nuevo más tarde.Lo siento, pero este servidor tiene un límite de 1 jugador, que ya ha sido alcanzado. ^Prueba más tarde a conectarte de nuevo.Orden de las drogas disponiblesFichero de sonidoFichero de sonido reproducido al acabar el juegoFichero de sonido reproducido al empezar el juegoFichero de sonido que suena cuando un disparo hace blancoFichero de sonido que suena cuando un disparo yerra su objetivoFichero de sonido que suena al llegar a un nuevo sitioFichero de sonido que suena cuando se une un jugador al juegoFichero de sonido que suena cuando un jugador abandona el juegoSonido que se oye cuando un jugador envía un mensaje privado al chatSonido que se oye cuando un jugador envía un mensaje público al chatFichero de sonido reproducido cuando un jugador logra escaparFichero de sonido reproducido cuando un jugador intenta escapar, pero no lo consigueFichero de sonido a reproducir cuando se mata a un ayudante o a una puta enemigaFichero de sonido reproducido cuando se mata a otro jugador o a un policíaFichero de sonido que suena cuando se recarga un armaFichero de sonido reproducido cuando muere una de tus putasFichero de sonido reproducido cuando te matan a tiFichero de sonido reproducido cuando tú logras escaparFichero de sonido reproducido cuando intentas escapar, pero no lo consiguesNombre del sonidoSonidosSonidos Robin Kohli, 19.5degs.comEspacioEspacio %4dEspacio que ocupa cada armaSpeedEspiar al jugadorInformación de las espíasInformación sobre %s de las espíasEmpezar nueva partidaCapital inicialDeuda inicialCasco viejo_al_al Casco ViejoSituaciónSituación: Pidiendo SOCKS para conectarse a %s...Situación: Intentando contactar con %s...Situación: Autenticando contra servidor SOCKSSituación: Conectado al servidor SOCKS %s...Situación: No se ha podido conectar (%s)Situación: No se ha podido conectar al metaservidor (%s)Situación: Obtener información de servidores del metaservidor...Situación: Esperando input del usuarioSímbolo antes del precioTRUE si se debe usar un servidor SOCKS para la conexión de redTRUE si se deben usar ID de usuario numéricos para SOCKS4TRUE si el servidor debe informar a un metaservidorTRUE si se debe habilitar el sonidoTRUE si se debe guardar el valor de las drogas compradasTRUE si esta droga puede ser especialmente barataTRUE si esta droga puede ser especiamente caraHablar a todos los jugadoresHablar al jugador (o jugadores)Decir: Error temporal con el nombre del servidor - prueba de nuevo más tarde¡Alguien se ha bajado al moro!De todo lo que he perdido, lo que más echo de menos es la cabeza.La orden usada para iniciar tu navegador webLa conexión excedió el tiempo límite¡La bofia te ve tirando %tde!El símbolo de dinero (por ejemplo, $)Lo primero que tienes que hacer es saldar la deuda con tu usurero. DespuésEl fichero %s de la tabla de puntuaciones se ha convertido al nuevo formato. Se ha creado una copia de respaldo del fichero antiguo, que se ha llamado %s. El nombre del servidor SOCKS a usarLa chavala que está junto a ti en el metro dice:^ «%s»%s¡El mercado está inundado de tripis baratos recién llegados de Amsterdam!El subsistema de red ha falladoEl número de puerto del servidor SOCKS a usarEl servidor se ha apagado. El servidor se ha apagado. Pasando al modo 1 jugador.El servidor se ha desconectado. Pasando al módulo 1 jugador.La versión del protocolo SOCKS a usar (4 o 5)No tienes tantos dineros en el banco...No tienes tantos dineros en el banco...Con dinero, chufletes.¿Crees que eres lo suficientemente duro como para manejar a tipos como yo?Este binario se ha compilado sin soporte de red, y por tanto no puede actuar como un jugador automático. Recompila pasando la opción --enable-networking al script configureEste binario se ha compilado sin soporte de red, y por tanto no se puede ejecutar en modo servidor. Recompila pasando la opción --enable-networking al script configure. Tiempo en segundos para que las conexiones sean establecidas o rotasChivarse a la pasmaDemasiado tarde. %s se acaba de ir.GabardinaNo se ha podido autenticar con proxy HTTP; por favor, establece las variablesMetaServer.Proxy.User y MetaServer.Proxy.PasswordNo se ha podido autenticar con el servidor HTTP; por favor, establece las variables MetaServer.Auth.User y MetaServer.Auth.PasswordNo es posible abrir el fichero %sNo se ha podido procesar el fichero de configuración %s, línea %dNo se puede leer el fichero de máximas puntuaciones %s.No se ha podido escribir en el fichero de puntuaciones %sCríticas destructivasCríticas destructivas James MatthewsDesgraciadamente ya hay alguien usando «tu» nombre. Elige otro.Desgraciadamente ya hay otro jugador usando «tu» nombre. Elije otroFichero de configuración de Unicodeen tu terminal. Se mostrará una pantalla de ayuda con las opciones disponibles.DesconocidoError HTTP desconocido %dDevuelto tipo de dirección SOCKS desconocidoCódigo de respuesta de SOCKS desconocidaCódigo de respuesta de versión de SOCKS desconocida.Versión de servidor SOCKS desconocidaOrden desconocida - usa «help» para obtener ayuda Mensaje desconocido: %s:%c:%s:%sError del metaservidor desconocido código %dArribaEn funcionamiento desde: %sSintaxis: dopewars [OPCIÓN]... Juego de tráfico de drogas basado en "Drug Wars" de John E. Dell -b "black and white" - o sea, en blanco y negro (por omisión se usan colores, si se puede) -n ser aburrido y no conectarse a ninguno de los servidores dopewars disponibles (modo 1 jugador) -a dopewars "antiguo" dopewars - parecerse a la versión original cuanto sea posible (no hay red) -f FICHERO indicar que fichero usar como tabla de puntuaciones (por omisión se usa %s/dopewars.sco) -o DIRE especificar un nombre de servidor en el que se puede encontrar un servidor para dopewars multiusuario -s ejecutar en modo servidor (nota: lea la opción -A para configurar un servidor que ya está en funcionamiento) -S ejecutar un servidor "privado" (no avisar al metaservidor) -p PUERTO indicar el puerto de red a usar (por omisión: 7902) -g FICHERO indicar la ruta de un fichero de configuración de dopewars este fichero se lee inmediatamente cuando se encuentra la opción -g -r FICHERO mantener el fichero pid "FICHERO" mientras se ejecuta el servidor -l FICHERO escribir la información del registro en "FICHERO" -c crear y ejecutar un jugador automático -w obligar al uso de un cliente gráfico (GTK+ o Win32) -t obligar al uso de un cliente en modo texto (curses) (por omisión se usa un cliente gráfico si es posible) -P nombre establecer el nombre del jugador a "nombre" -C FICHERO convertir un fichero de puntuaciones en el "formato antiguo" al nuevo formato -A conectarse a un servidor ejecutándose localmente para administración Sintaxis: dopewars [OPCIÓN]... Juego de tráfico de drogas basado en "Drug Wars" de John E. Dell -b, --no-color, "black and white" - o sea, en blanco y negro --no-colour (por omisión se usan colores, si se puede) -n, --single-player ser aburrido y no conectarse a ninguno de los servidores dopewars disponibles (modo 1 jugador) -a, --antique dopewars "antiguo" dopewars - parecerse a la versión original cuanto sea posible (sin red) -f, --scorefile=FICHERO indicar que fichero usar como tabla de puntuaciones (por omisión se usa %s/dopewars.sco) -o, --hostname=DIRE especificar un nombre de servidor en el que se puede encontrar un servidor para dopewars multiusuario -s, --public-server ejecutar en modo servidor (nota: lee la opción -A para configurar un servidor ya en funcionamiento) -S, --private-server ejecutar un servidor "privado" (no avisar al metaservidor) -p, --port=PUERTO indicar el puerto de red a usar (por omisión: 7902) -g, --config-file=FICHERO indicar la ruta de un fichero de configuración de dopewars este fichero se lee inmediatamente cuando se encuentra la opción -g -r, --pidfile=FICHERO mantener el fichero pid "FICHERO" mientras se ejecuta el servidor -l, --logfile=FICHERO escribir la información del registro en "FICHERO" -A, --admin conectarse a un servidor ejecutándose localmente para administración -c, --ai-player crear y ejecutar un jugador automático -w, --windowed-client obligar al uso de un cliente gráfico (GTK+ o Win32) -t, --text-client obligar al uso de un cliente en modo texto (curses) (por omisión se intenta usar un cliente gráfico -P, --player=NOMBRE establecer el nombre del jugador como "NOMBRE" -C, --convert=FICHERO convertir un fichero de puntuaciones en el "formato antiguo" al nuevo formato Nombre de usuario: Nombre de usuario para la autenticación HTTP básicaNombre de usuario para la autenticación HTTP básica con el proxyNombre de usuario para la autenticación SOCKS5Usuarios conectados:- Usando MetaServer.Auth.User y MetaServer.Auth.Password para la autenticación HTTPUsando metaservidor. Proxy. Usuario y metaservidor. Proxy. Contraseña para la autenticación con el proxy HTTPUsando Socks.Auth.Usuario y Socks.Auth.Contraseña para autenticación SOCKS5Usando Socks.Auth.User y Socks.Auth.Password para la autenticación SOCKS5 Usando el nombre %s Nombre válido, pero ahora no tiene ningún registro DNSVersiónVersión : %sVersion %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersión %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars está publicado bajo la GNU General Public Licence Esperando para conectarse al metaservidor en %s:%u...AdvertenciaAdvertencia: tu cliente es demasiado viejo para soportar todas las^ funcionalidades de este servidor. Para «vivir la experiencia» completa,^ obtén la última versión de dopewars del servidor web,^ http://dopewars.sourceforge.net/.¿No te encanta la música del telediario?En las hamburgueserías usan carne de rata. Por eso la dan picada.¿Sabe que tiene los ojos muy enrojecidos, joven?NavegadorNombre del proxy webMaría¿Qué quieres tirar? ¿Qué quieres pillar? ¿Qué quieres pulir? ¿Dónde quieres ir, colega? ¿Con quién quieres hablar en privado?¿A quién quieres espiar? ¿De quién quieres chivarte a la pasma? ¿Quieres C>omprar¿Quieres C>omprar, P>ulir o D>arte el piro? ¿Quieres... C>onectarte a un servidor dopewars determinadoWinSock no ha sido inicializado correctamente.Versión de WinSock no soportadaLos triunfadores no usan drogas... salvo...SacarPalabra usada para designar una sola "puta"Palabra usada para designar una sola drogaPalabra usada para designar una sola armaPalabra usada para designar dos o más "putas"Palabra usada para designar dos o más drogasPalabra usada para designar dos o más armasLa telepatía existe. ¿No sientes la energía del universo?¡Vivamos al límite, co!S:SíSNYN^¿Quieres pagar %P a un médico para que te cure?YN^¡Eh, tío! Te ayudo a llevar tus %tde por sólo %P. ¿Sí o no?YN^¡Aquí hay algo de maría que huele a herbicida!^¡Tiene buena pinta! ^¿Quieres fumarla? YN^¿Quieres comprar un %tde por %P?YN^¿Quieres comprar una gabardina más grande por %P?YN^¿Quieres visitar %tal?YN^^¿Quieres contratar a una %tde por %P?Año en el que empieza el juegoTúParece que estás usando un cliente tremendamente viejo (versión 1.4.x)^ Aunque posiblemente funcione, muchas de las nuevas funcionalidades^ no estarán soportadas. Obtén la última versión del sitio web de dopewars,^ http://dopewars.sourceforge.net/.Ahora llevas %d dosis de %tdeTienes dinero para comprar %dTienes pasta para comprar %d, y espacio para llevar %d. No puedes conseguir ni un pavo por estas %tde que llevas:¡No puedes empezar la partida sin dar un nombre antes!Ni siquiera has conseguido entrar en la tabla de puntuaciones...¡No tienes ningún %tde que vender!¡No tienes ninguna que vender!¡No tienes suficientes pelas para comprar ese %tde!¡No tienes suficiente espacio para llevar ese %tde!¡No tienes tanta pasta!Encuentras %d %tde en el cuerpo de un tío tirado en el metro!¡Has conseguido escapar!¡Estuviste flipando durante tres días en el cuelgue más salvaje que hayas imaginado nunca!^Y entonces la palmaste debido a que tu cerebro se derritió.Tienes %d. Has sido expulsado del servidor. Pasando al modo 1 jugador.Has sido expulsado del servidor. Pasando al modo 1 jugador.Tienes un mes de tiempo de juego para amasar tu fortuna.Oyes a alguien poner %s¡Le das a %s!Le das a %s, y matas a un %tde!¡Has matado a %s!Sólo usamos el 10% de nuestro cerebro. ¡Destruye con drogas el 90% sobrante!¡Te encuentras con un amigo! Te da %d %tde.¡Te encuentras con un amigo! Le das %d %tde.¡No le has dado a %s!¡Tienes que introducir una cantidad positiva de dinero!Te quedas ahí como un tonto.Te has parado para %s.¡Te atracan en el metro!¡Necesitas más %tde para que te guarden más %tde!Estás criando malvas. Sayonara, baby.Se acabó tu tiempo para trapichear...¡Tu mami ha hecho galletas con algo de tu %tde! ¡Estaban geniales!¡Tu espía trabajando con %s ha sido descubierta!^¡La espía %s!Índice basado en cero de la pistola con la que están armados los polisZzzzz... ¿estás traficando con caramelos o qué?^ (al menos, eso es lo que *piensas* que ha dicho)_%c. %tde_Modo antiguo_Atacar_Comprar ->_CancelarCerrar _Ventana_Conectarse¡A _Trapichear!_Tirar <-_Huir_Luchar_Ayuda¡_Darse el piro!_No_Aceptar_Refrescar_Correr_Espiar (%P)_Esperar_Empezar partida para 1 jugador_Chivarse (%P)_Sí`Julie's In The Drug Squad` de The Clash`Are you Experienced` de Jimi Hendrix`Cheeba Cheeba` de Tone Loc`Polipuestón` de King Putreak`Alternativa platino` de Habeas Corpus`Drug Me` de Dead Kennedys`Street Lobotomy` de Body Count`Tengo un spiz amarillo` de Manolo Kabezabolo`Mineros locos (Armas pal pueblo)` de Def Con Dos`Legalización` de Ska-P`I Love You Mary Jane` de Sonic Youth`Todo por la napia` de Siniestro Total`Mexico` de Jefferson Airplane`I want to get high` de Cypress Hill`Needle And The Spoon` de Lynyrd Skynyrd`White Punks on Dope` de the Tubes`White Rabbit` de Jefferson Airplanearmados hasta los dientesa %Pputaputasfamilia que consiste en ganar dinero con la compraventa (y eludir a la poli).maderomaderosdesertóayudantesayudantedopewarsJugador automático de dopewarsdopewars está publicado bajo la GNU General Public Licenceservidor dopewarscerrando el servidor dopewars.ordenes y preferencias del servidor dopewars versión %s help Muestra esta pantalla de ayuda list Lista todos los jugadores conectados push Le pide educadamente al jugador nombrado que se vaya kill Rompe repentinamente la conexión con el jugador nombrado msg: Envía un mensaje a todos los jugadores save Guardar la configuración actual en el fichero nombrado quit Salir elegantemente, tras avisar a todos los jugadores = Establece la variable nombrada al valor dado Muestra el valor de la variable nombrada [x].= Establece la variable nombrada en la lista dada, index x, al valor proporcionado [x]. Muestra el valor de la variable de la lista nombrada Las variables válidas son:- servidor dopewars versión %s listo y esperando conexiones por el puerto %d.el servidor de dopewars versión %s está listo para recibir órdenes de administración; usa «help» para obtener ayudadopewars versión %s drogadrogasse escapóSe esperaba un valor booleano (uno de 0, FALSE, 1, TRUE)recibida una conexión de %sarmaarmastomar un cervezamuy armadosde un mercado de la droga imaginario. Dopewars es un juego para toda lapoco armadosarmadoso C>ontactar con tus espias y recibir las informacioneso N>o mandar ningún encargo o S>alir? armados de penafumar un chinofumar un purofumar un cigarrillofumar un porrocadena de formato strftime() para mostrar el turno del juegoformato de la cadena strftime() para las marcas de tiempotu objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!)el bancoel usurero_al_al usurerolas grabaciones del CESIDel barfue disparadadopewars-1.5.12/po/pt_BR.gmo0000644001565000007070000014154410355323337012517 00000000000000Þ•L|Ü$(1”)1?¾1Hþ1"G2j25z25°2æ2ö23$3A3a3{3’3#°3$Ô3ù3 4 4 44 A4K4T4+s4Ÿ4=¼4ú4 5!585S5 e5 q5 {5 …55˜5«5 ¿5Ê5à5ô5!6)6:6%Y66Ÿ6´6Ë6æ6 7 $7E7`7|7‘7§7º7Ø7 ö7/848;8B8K8S8\8d8k8s8{8 Š8 —8£8À8Ñ8å8ù8 99+9:9J9^9p99’9 ¦9°9·9¾9Å9Ì9 Õ9#ö9:(#:"L:;o:«:Å: Û:è:÷:-ü: *;+6;+b;Ž;©;BÉ;# <00<a< u<€<„< ‰<“<§<°<J¸<=$”>¹>¿>È>Ì> Õ>ã>%ù>?$?B?(`?(‰?)²?)Ü?*@1@´N@$A(A -A7A @A MA,YA†AJŽAÙA áA íA­úA*¨BÓB;ëB'C:CC~C<•CÒC×C1öC$(D/MDK}D$ÉDîD E E'E-E*1E(\E…EE±E ¶E"ÀEãE#ìEF0FIFQF gF<sF+°FÜF áFëFúF&G;GAG[GcGiG‡GAžGàGèGñGG÷G??HEH2ÅHøHII7I[ G[Q[W[^[5z[&°[A×[\ \+\4\:\W\#n\’\ —\¡\°\Ç\Ì\ Ó\.ß\] ]+$]P]lo]jÜ]$G^l^ r^|^”^ š^ ¨^´^Ç^ Ö^ä^#ê^_-_,L_1y_(«_,Ô_``'`".`"Q`Lt`0Á`0ò`#a;?a;{a(·a*àa) b65blb4 c?cPc mc!xc"šc½c,ÖcLdMPdLžd)ëde%eBeQeYeCie€­e.f)6f@`f ¡fÂfÇfâfüfg/)gYg)vg  g!®g/Ðg(h)h$2h/Wh.‡h)¶h%àh$i+i:Hiƒi‰i@ŒiXÍi'&j4Nj ƒj)¤jÎj"Òjõj%k7-k5ek,›k Èkék,l/2lbl.‚l ±lv¿l 6mFDmF‹m5Òmn $n0nOn^n(yn(¢nËnÚnøn o-*oXopo@‹o9Ìo4p*;p1fp ˜p¦p®p¶p¾pÅp ÎpÙpâpépðpöpüpqq qqq 4qAq,Fq%sq™q*µq#àqr$r$Cr#hr(Œr%µrÛrîr, s":s"]s$€s¥s¸s¾sÄs1Ìsþstttt t9)tHct¬t±t·t¿tÖtÚt ßt ëtGùt AuOu*euu ¡u¬u¼u ËuÙu ëuFùu@vOv_vgvLpv½wA[x@x+Þx y6y7Ny†yšy²y&Èy&ïyz1z!Lz*nz+™zÅzázüz{ !{+{$4{/Y{‰{=£{ á{ë{ü{ |#| =|H|Q|Z|c|k|~| ‘|›|°| Ç|Ó|ó|}&}D}`}{}Š}§}Æ}$ã}~#"~F~^~z~‹~~ ½~'Ê~ò~ú~ $ * 7A S `.mœ´Êßð ÿ €€-€D€Z€q€‡€ ¢€®€µ€½€Æ€ ΀Ù€+ù€%..%]@ƒÄá÷‚‚1‚ O‚.\‚,‹‚#¸‚ Ü‚Rý‚'Pƒ3xƒ¬ƒ ƒ̓у ׃⃠úƒ„L „¤Y„7þ…6†<†E† M†Z†r†*Œ†·†%¼†+â†8‡8G‡9€‡9º‡:ô‡*/ˆ¼Zˆ6‰N‰ W‰ e‰ r‰ ‰2Љ½‰Eʼn ŠŠ %Š»2Š.@3‹ t‹D•‹Ú‹>î‹ -Œ+7Œ5cŒ(™Œ4ÂŒ[÷Œ2S†­¾Ä!Èꎎ/Ž 6ŽBŽ _Ž'jŽ ’Ž4œŽ ÑŽÜŽ ñŽ=ýŽ0;l s–(´Ýä  .@CXœ¤­H³>üI;‘9…‘)¿‘é‘ð‘’’%,’R’Y’p’’–’«’)³’Ý’û’“ +“8“G“!b“„“*ž“ɓۓì“< ”2I”>|”»”)Ø”•5 •;V•(’• »•$Æ•ë•û•1 –1<–n–'‹–,³–*à–) —5—N—d—y—–—¬—´—¸— Ò—.Ü—! ˜ -˜(N˜%w˜$˜˜:˘ ™ ™;™![™(}™%¦™$Ì™=ñ™/š;5šqšušzšš!¯šÑšäšöš ››-›J›Y›h›‡›£›¨› ­› ·›¡Ã›žeœ,1"K0n'ŸÇÎçÿž3ž-Lž$zž Ÿž«ž»ž7ÛžŸŸŸ"Ÿ&BŸ iŸtŸ„Ÿ ‹Ÿ?™ŸÙŸëŸ)þŸ2(  [ e #‚ 2¦ Ù ø ¡#-¡8Q¡ Š¢A—£4Ù£0¤Q?¤"‘¤´¤ º¤,Ȥõ¤2û¤.¥J¥P¥c¥ |¥Š¥‘¥ 𥧥 °¥!º¥EÜ¥4"¦TW¦¬¦ ²¦¼¦ͦÓ¦ð¦&§.§ 5§A§X§q§x§ §5§ ŧϧ,á§1¨v@¨s·¨9+©e© l©w©“©™©ª©Ä©ä© ù© ª!ª&6ª%]ª5ƒª9¹ª4óª2(«[«x«Ž«•«&µ«MÜ«/*¬-Z¬ˆ¬=¡¬@߬% ­%F­#l­B­ªÓ­;~®º®ήè®.ï®4¯S¯0k¯Cœ¯Dà¯N%°2t°§°º°Ù°ë° ò°B±|C±À±/ƱQö±)H²r²z²“²­²Ʋ-Ù²³5³U³&g³2޳/Á³ñ³/ù³=)´<g´1¤´0Ö´/µ7µ4WµŒµ’µK•µJáµ(,¶-U¶!ƒ¶+¥¶Ѷ'ض·*·9@·9z·=´·%ò· ¸:9¸9t¸ ®¸,ϸ ü¸}¹ †¹@”¹CÕ¹?ºYºwº"ˆº«ººº,Ùº/»6» H»i»}»=›»Ù»ø»@¼:X¼=“¼/Ѽ5½ 7½D½ L½ X½b½ j½t½ ƒ½޽—½ž½¦½«½°½´½¼½ ˽Ù½õ½¾- ¾&7¾^¾,{¾&¨¾ Ͼð¾%¿$6¿[¿&y¿ ¿´¿-Ô¿$À#'À%KÀqÀ†ÀŒÀ‘À1—ÀÉÀ ÒÀ ÜÀ æÀðÀùÀ6ÁD9Á~Á„Á‹Á “Á¡Á¦Á¬Á½ÁJÐÁ Â(Â/?Âo †Â‘¤´ÂÅÂÖÂJçÂ2Ã;ÃMà VÃiß@p¤ÖXÞ:9ú'ý|‹Ø”r@*Z ç"¨%Uj傽5䩎…:ãÃì$[š=ÊtÍ'F-ä31®!nI<ÌêÀï ‚Hl)íB…VÇòü‡(I7v,•»ß5(8nˆ4ÄÉš¸ÌÔ©‹?·¼¬>„¥á]*r3MSÅx+cVgïTž[ª9¼†GW~O¦ºbK ”LºW]Å¡ã˜~ “?ÑJ%gü й¨:ð¶Ý}DûþŸÈvÏñŠýmó÷J*Uc5ÎlÕEÁ`øÞ’±ª#°Øá"PuþõAM¢xK²Æ×h»z“´-Á`Óœ_‘Ê!•ke;—¿¶R¾&Cÿ=6 ­bËêŒ{£«–/à‰pEy_óùN ˧h\d> ³1´  y¥zs)½o¢ EZG2+^ë,}ÒܦÓòè;±9¬ œ€q0GŒ3I·Y0e)ð™ŸOsÃÏÕFÐìÉë ÎÑÇ¡«Æ NC!>Qàq6m¾.jB4LtAô{ÈâAd$ÛµR’DÖ†¯˜2ƒÒ- §²è(o;Úö³kHÜ<®ú.›$f–ù^ÛKÝçåûí\Y8#HD1Ä/æø¿¹õ?8ö€‡Ž2÷Bô/ÿ'é„J‰w îwÚéP­ 74£µÀ ¯Fi.CæuXÐ<ñî=+ÂÙ6ƒa,"&Q¤ÍâÔž™¸ %| f0LS7a×ÙT›@°#ˆ‘—& For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) Are you sure? You find %P on the body! You loot the body!%/BankName window title/%Tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/GTK Stats: Guns/%Tde%/LoanShark window title/%Tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%d of %d%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s has accepted your %tde!^Use the G key to contact your spy.%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(Dead)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Agent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Attack penalty relative to a playerAuthentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBankBank %17PBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBronxBrooklynBuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Cannot create pid file %s: %sCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot start fight - no guns to use!CashCash %17PCash: %PCentral ParkChange NameChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Congratulations! You made the high scores!Connection established Connection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not start multiplayer dopewarsCourage! Bush is a noodle!D O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamage done by each gunDan's House of GunsDebtDebt %17PDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDepositDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeErrorError reading scores from %s.Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, FightFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame time is up. Leaving game. GhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth %3dHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIndex into %s array should be between 1 and %dInventoryJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Location of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLudesMDAMaintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-MetaserverMetaserver name to report/get server details to/fromMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toNetwork port to connect toNewNew %sNew GameNew name: No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!OpiumPCPPSPanic! You can't get away!Path of the script on the metaserverPay allPay back:PeyotePlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presence at each location (%)PortPort : %dPort for metaserver communicationPort: Preferred hostname of your server machinePress any key...PricePrice of each gunPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Resized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, STGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSellSell %tdeSell how many?Selling %d %tde at %P SendServerServer : %sServer description, reported to the metaserverShroomsSingle playerSo I think I'm going to Amsterdam this yearSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStaten IslandStatsStatus: Attempting to contact %s...Status: Could not connect (%s)Status: Waiting for user inputTRUE if server should report to a metaserverTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: The Marrakesh Express has arrived!The Pope was once Jewish, you knowThe first thing you need to do is pay off your debt to the Loan Shark. AfterThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unix prompt. This will display a help screen, listing the available options.Unknown command - try "help" for help... Up since : %sUsers currently logged on:- Using name %s VersionVersion : %sVersion %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public Licence WarningWasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!WeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?YouYou are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars is released under the GNU General Public Licencedopewars server version %s ready and waiting for connections on port %d.drugdrugsescapedgot connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointthat, your goal is to make as much money as possible (and stay alive)!the Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars-1.5.3 Report-Msgid-Bugs-To: POT-Creation-Date: 2005-12-30 13:30-0800 PO-Revision-Date: 2001-04-08 15:55+0100 Last-Translator: Bruno Lopes Language-Team: Portuguese/Brazil MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Para informações sobre opções de linha de comando, digite dopewars -h no seu prompt Unix. Isto irá mostrar a tela de ajuda, listando as opções disponíveis. L>istar os servidor no servidor meta, e selecionar um S>air (onde você pode iniciar um servidor digitando ou J>ogar com apenas um jogador ? D>espedir E>spionar um outro traficante (custo: %P) A>trair policiais para outro traficante (custo: %P) Você tem certeza? Você achou %P no corpo! Você roubou o corpo!%/Título da janela do NomeDoBanco/%Tde%/Título da janela da LojaDeArmas/%Tde%/Estatísticas: Putas/%Tde%/Estatísticas: Armas/%Tde%/Título da janela do agiota/%Tde%/Despedir puta dialog title/Despedir %Tde%/Despedir puta menu item/_Despedir %Tde...%/Estatísticas: Drogas/%Tde%/Estatísticas: Armas/%Tde%Tde %3d Espaço %6d%Tde carregados%Tde aqui%d de %d%s - %s - está te perseguindo, cara!%s e %d %tde - %s - estão te perseguindo, cara!%s chega com %d %tde, %s!%s aceitou seu %tde!^Use a tecla G para contactar seu espião.%s fugiu!%s saiu do jogo.%s sai do jogo. %s rejeitou seu %tde!%s acertou você, carinha!%s é "%s" %s é %P %s é %d %s é %s %s é { %s entrou no jogo!%s entra no jogo. %s morto %s saiu do servidor!%s agora espionando %s%s mata %s.%s atira em %s e mata uma %tde!%s atira em %s.%s atira em %s... e erra!%s atirou em você... e matou uma %tde!%s atira em você... e erra!%s espionando %s: RECUSADO%s fica e pega%s atração para %s: RECUSADO%s atraiu os policiais para %s%s tenta escapar, mas falha.%s acabou com você, cara! Que merda!%s será conhecido como %s%s agora vai ser conhecido como %s.%s: RECUSADO ir para %s%s: espião oferecido por %s%s: Atrair de %s%s: oferta foi %s%s: atração de %s terminada OK.%s[%d] é %s %s^%s está aqui!^Você Ataca, ou Evacua?(Morto)(Saiu)(R.I.P.), L>argar, L>utar, D>ar, I>r, J>ogadores, V>ender, F>alar, P>agear, ou S>air? .38 Especial/Trabalhos/_Pegar informações de espionagem.../Trabalhos/_Espionar.../Trabalhos/_Atrair.../Jogo/_Habilitar som/Jogo/_Abandonar/Jogo/_Novo.../Jogo/_Opções/Jogo/_Sair.../Ajuda/_Sobre.../Listar/_Inventário.../Listar/_Jogadores.../Listar/_Pontuações.../Falar/Para _Todos.../Falar/Para um _Jogador.../_Trabalhos/_Jogo/_Ajuda/_Listar/_Falar<- _VenderUm dia sem droga é como a noiteUm macaco treinado pode até fazer melhor...A:AtacarJogador com IA morto. Terminando normalmente. Jogador com IA retirado do servidor. Jogador com IA iniciado; tentando contactar servidor em %s:%d...Jogador com IA terminado OK Abandonar jogo atual?Abandonar jogoSobre o dopewarsÁcidoViciados estão comprando %tde a preços ridículos!Agente SmithQuantidade de dinheiro que cada jogador começaQuantidade de débito que cada jogador começaVocê está doidão ou coisa parecida?Você tem certeza que quer sair? Você tem certeza? (Qualquer %tde ou %tde carregado por esta %tde vai ser perdido!)Valor relativo de ataque para o jogadorAutentificação para o NomeLocal com o servidor metaEspaço disponível: %dCVLFPJDLISCVSBancoBanco %16PBanco localizado em %s Banco: %PBarettaBaseado no velho jogo Drug Wars de John E. Dell, dopewars é uma simulação deBaseado no velho jogo Drug Wars de John E. Dell, dopewars é uma simulação de um mercado de drogas imaginário. dopewars é um jogo americano onde se pode comprar, vender, e tentar se safar dos policiais! A primeira coisa que você irá precisar fazer é pagar seu débito com o agiota. Depois disso, seu objetivo é ganhar o máximo de dinheiro possível (e ficar vivo)! Você tem um mês de tempo de jogo para fazer sua fortuna. Mostrar mensagens processando o arquivo de configuraçãoBronxBrooklynComprarComprar %tdeComprar que quantidade?Comprando %d %tde por %P Comprando um %tde por %P na loja de armas CLSJVocês se acham traficantes de drogas?Não foi possível criar o arquivo pid %s: %sNão foi possível instalar o sinal de interrupção SIGHUP!Não foi possível instalar o sinal de interrupção SIGINT!Não foi possível instalar o sinal de interrupção SIGTERM!Não foi possível instalar o sinal de interrupção SIGUSR1!Não foi possível instalar o sinal de interrupção SIGWINCH!Não foi possível instalar o sinal de pipe!Não foi possível abrir o arquivo de pontuação %s. (%s) Veja se você tem permissões para acessar este arquivo e diretório, ou especifique um arquivo de pontuação alternativo com a opção -f.Não é possível começar briga - nenhuma arma para usar!DinheiroDinheiro %13PDinheiro: %PCentral ParkMudar NomeEscolha um trabalho para dar a uma de suas %tde...CocaínaColombianos enganaram a Guarda Costeira! Preços de maconha abaixaram!ComentárioComentário: %sConey IslandConfiguração pode ser somente mudada interativamente quando nenhum jogador está logado. Espere por todos os jogadores saírem, ou remove eles com os comandos push ou kill, e tente de novo.Parabéns! Você entrou nas melhores pontuações!Conexão estabelecida Conexão com o servidor perdida - mudando para modo de um jogadorConexão com o servidor perdida! Conexão com o servidor perdida! Revertendo para o modo de um jogadorCrítica ConstrutivaCrítica Construtiva Andrea Elliot-Smith Pete WinnpoliciaisPoliciais não podem atacar outros policiaisPoliciais apreenderam %tde! Preços estão super altos!Custo para as putas espionarem o inimigoCusto para as putas atraírem os policiais ao inimigoNão foi possível conectar no servidor dopewars (%s) Jogador com IA terminado abnormalmente.Não foi possível iniciar o dopewars em multiplayerCoragem! Bush é um zé!D O P E W A R ST>raficar %tde, TCLFSDRSJuros diários na dívida do agiotaJuros diários em sua poupançaDano de cada armaCasa de Armas do DanDébitoDébito %15PDébito de %P pago ao agiota Débito: %PValor relativo de defesa para o jogadorDepositarDivisor para os preços da droga especialmente barataVocê quer Você corre, ou luta?Você corre?Você quer D>epositar dinheiro, R>etirar dinheiro, ou S>air ? Sua mãe sabe que você é um traficante de drogas?LargarLargar %tdeLargar que quantidade?Tráfico de Drogas e PesquisasTráfico de Drogas e Pesquisas Dan WolfdrogasDrogas podem ser suas amigas!E:EvacuarErroNão foi possível ler o arquivo de pontuação %sExtensivo Teste de JogoTestes Extensivos de Jogo Katherine Holt Caroline MooreL:LutarL>utar, LutarSeguindo suas pistas, os policiais cercara %s, que escapou com %d %tde. Seguindo suas pistas, os policiais cercaram %s, que foi morto!Para informações de opções da linha de comando, digite dopewars -h no seuFormato da string usada para drogas caras em 50% do tempoTempo de jogo esgotando. Saindo do jogo. GhettoLoja de armas localizada em %s armasArmas recarregadas...M E L H O R E S P O N T U A Ç Õ E SHaxixeEu já não te vi na TV?Pontos de vidaPontos de vida %3d(Pontos de vida: %d)HeroínaEi carinha, os preços de %tde aqui estão:Ei carinha, qual o seu _nome?Ei carinha, qual seu nome? Melhores PontuaçõesNome do hostNome do Host: Quantos você vai comprar? Que quantidade você quer largar? Quantos você vai vender? Quanto dinheiro você quer pagar de volta? Quanto dinheiro? Eu sou o walrus!Eu não acredito no Ronal ReaganEu sinto uma vontade incontável de pintar meu cabelo de azulEu acho comerciais de hemorróida realmente doidos!Eu acho maravilhoso o que estão fazendo com incenso estes diasEu mesmo costumava ser hippeI eu não fui sempre uma mulher, você sabeEu queria te mandar um poodleEu aposto que você tem sonhos realmente interessantesEu estou solicitando contribuições para os Zumbis de CristoÍndice da array %s deve ser entre 1 e %dInventárioJesus ama você mais do que você sabeIr para o localIndo para %tdeIndo para %tde com %P de dinheiro e %P de débito Apenas diga Não... bem, talvez... ok, que diabos!Mate um policial por Cristo!Lista de sons ao qual você ouve tocandoLista de coisas que você pode parar de fazerLista de coisas ao qual você ouve no metrôListar o que? J>ogadores ou P>ontuações? Agiota localizado em %s Localização do agiotaLocalização do bancoLocalização da loja de armasLocalização do bordelEcstasyMDAMantendo o arquivo pid %sManhattanMaxClientes (%d) excedido - cancelando conexãoPreço máximo normal de cada drogaNúmero máximo de conexões TCP/IPNúmero máximo de ajudantes acompanhantesNúmero máximo de drogas em cada localPreço máximo para contratar uma putaMensagemMensagem mostrada quando esta droga é especialmente barataMensagem:-Servidor MetaNome do servidor meta para reportar os detalhes do servidorPreço mínimo normal de cada drogaNúmero mínimo de ajudantes acompanhantesNúmero mínimo de drogas em cada localPreço mínimo para contratar uma putaMultiplicador para para os preços da droga especialmente caraN:NãoP>róximo servidor; A>nterior; S>elecionar este servidor... PASNomeNome de cada policialNome dos ajudantes do policialNome de cada ajudante do policialNome de cada drogaNome de cada armaNome de cada localNome do bancoNome da loja de armasNome do arquivo de pontuaçãoNome do agiotaNome do bordelNome do servidor para conectarPorta de rede para conectarNovoNovoNovo JogoNovo nome: Cliente curses não disponível - reconstrua o binário passando a opção --enable-curses-client para configurar, ou use o cliente gráfico (se disponível) no lugar! Nenhum cliente GTK+ disponível - reconstrua o binário passando a opção --enable-gui-client para configurar, ou use o cliente curses (se disponível) no lugar! Nenhum outro jogador está atualmente logado!Este usuário não existe! Nenhum usuário atualmente logado! No. de turnos do jogo (se 0, o jogo nunca acaba)Número de segundos em para revidar tiroNúmeroNúmero de drogas no jogoNúmero de armas no jogoQuantidade de locais no jogoNúmero de sons tocandoNúmero de falas no metrôNúmero de coisas que você pode parar de fazerNúmero de tipos de policiais no jogoOficial BobOficial HardassAh, você deve ser da CalifórniaUm de suas %tde estava espionando para %s.^O espião %s!ÓpioPCPJPPânico! Você não consegue escapar!Caminho do script CGI no servidor metaPagar tudoPagar de volta:PeyoteTeste de JogoTeste de Jogo Phil Davis Owen WalshJogar novamente? Lista de jogadoresJogador removido por expiração da conexãoJogador removido por ter ficado muito tempo paradoJogadoresJogadores já estão brigando!Jogadores estão em lutas separadas!Jogadores são desconectados depois destes segundosJogadores atualmente logados:-Jogadores neste jogo:- Jogadores: %d (máximo de %d)Jogadores: -unknown- (máximo de %d)Por favor escolha o jogador para espionar. Sua %tde irá então oferecer seus serviços para o jogador, e se conseguido, você poderá ver as estatísticas do jogador com o menu "Obter Informações de Espionagem". Lembre-se que a %tde irá deixar você, então qualquer %tde ou %tde que ela está carregandoirá ser perdido!Por favor escolha o jogador para os policiais serem atraídos. Sua %tde irá ajudar os policiais atacar este jogador, e então reportar de volta para você. Lembre-se que a %tde irá deixar você temporariamente, então todo %tde ou %tde que ela está carregando será perdido!Por favor entre com o nome do host e porta do servidor dopewars:-Aguarde... tentando contactar o servidor dopewars...Aguarde... tentando contactar o servidor meta...Cães policiais caçam você por %d blocos! Você largou algum %tde! Que droga, cara!Polícia presente em cada local (%)PortaPorta : %dPorta para a comunicação com o servidor metaPortaNome do host preferido para a sua máquina servidorPressione qualquer tecla...PreçoPreço de cada armaBordel localizado em %s Retirando %s QueensPerguntaSair do JogoC:CorrerC>orrer, Eventos aleatórios são censuradosDroga eu vou ter que simplesmente atirar em você pro seu próprio bem.Estrutura de lista redimensionada para %d elementos Comerciantes de drogas rivais roubaram uma farmácia e estão vendendo ecstasy barato!RugerM E T R ÔF>icar paradão, EADCNSanitized away a RandomOfferSaturday Night SpecialSegundos entre turnos dos jogadores IAVenderVender %tdeVender que quantidade?Vendendo %d %tde por %P MandarServidorServidor : %sDescrição do servidor, reportado para o servidor metaCogumelosApenas um jogadorEntão eu acho que vou para Amsterdã este anoFilho, você precisa de um corte de cabelo amareloDesculpe, mas este servidor tem um limite de %d jogadores, ao qual foi alcançado. Por favor tente conectar mais tarde.Desculpe, mas este servidor tem um limite de 1 jogador, ao qual foi alcançado. Por favor tente conectar mais tarde.Teclas de ordenação para a listagem de drogas disponíveisEspaçoEspaço %6dEspaço tomado por cada armaSpeedEspionar JogadorInformações de EspionagemInformações de espionagem de %sIniciar um novo jogoStaten IslandEstatísticasStatus: Tentando contacatar %s...Status: Não foi possível conectar (%s)Status: Esperando por algo do usuárioNão-zero se o servidor deve reportar ao servidor metaNão-zero se o valor das drogas compradas devem ser salvosNão-zero se esta droga pode ser especialmente barataNão-zero se esta droga pode ser especialmente caraFalar com todos os jogadoresFalar com jogador(es)Fale: O Expresso de Marrakesh chegou!O Papa já foi judeu uma vez, você sabeA primeira coisa que você irá precisar fazer é pagar seu débito com o agiota.A moça próxima a você no metrô lhe diz,^ "%s"%sO mercado está cheio de ácido caseiro barato!O servidor foi acabado. O servidor foi terminado. Revertendo para modo de um jogador.O servidor foi terminado. Revertendo para modo de jogador único.Não há todo este dinheiro no banco...Não há todo este dinheiro no banco...Não há nada como ter muito dinheiroAcham que vocês são duros o bastante para lidar com gente como eu?Este binário foi compilado sem suporte a rede, e por iss não se pode atuar como um jogador com IA. Recompile passando a opção --enable-networking para o script configure.Tempo em segundos para conexões a serem feitas ou quebradasAtrair os PoliciaisMuito tarde - %s já saiu!CasacoNão foi possível ler o arquivo de pontuação %sNão foi possível escrever no arquivo de pontuação %sCrítica não construtivaCrítica não construtiva James MatthewsInfelizmente, alguém já está usando o "seu" nome. Por favor mude-o.Infelizmente, alguém já está usando o "seu" nome. Por favor mude-o:-prompt Unix. Isto irá mostrar a tela de ajudam listando as opções disponíveis.Comando desconhecido - tente "help" para ajuda... Rodando desde : %sUsuários atualmente logados:- Usando o nome %s VersãoVersão : %sVersão %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersão %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars está lançado sob a GNU General Public Licence AvisoJane Fonda não estava maravilhosa em BarbarellaNós usamos apenas 20% de nossos cérebros, então porque não estragar os outros 80%Nós estamos ganhando a guerra das drogas!MaconhaO que você quer largar? O que você quer comprar? O que você quer vender? Para onde, cara ? Quem você quer pagear (falar privadamente) ? Quem você quer espiar? Para quem você quer que os policiais sejam atraídos? Você irá C>omprarVocê irá C>omprar, V>ender, ou S>air? Você irá... C>onectar em um diferente host e portaVencedores não usam drogas... ao menos que usemRetirarPalavra usada para denominar uma simples "puta"Palavra usada para denominar uma simples droga ou equivalentePalavra usada para detominar uma simples arma ou equivalentePalavra usada para denominar duas ou mais "putas"Palavra usada para denominar duas ou mais drogasPalavra usada para denominar duas ou mais armasVocê gostaria de um doce, bebê?Não seria engraçado se todos tivessem de uma vez só?S:SimSNYN^Ei carinha! Eu posso ajudar você carregar %tde por meros %P. Sim ou não?YN^Tem uma maconha aqui que cheira muito bem!^Parece bom! Você irá fumar? YN^Você gostaria de comprar %tde por %P?YN^Você gostaria de comprar um colete por %P?YN^Você gostaria de visitar %tde?YN^^Você gostaria de contratar %tde por %P?(Você)Você está atualmente carregando %d %tdeVocê pode comprar %dVocê pode comprar %d, e pode carregar %d. Você não pode ganhar nenhum dinheiro pelo seguinte %tde :Você não pode iniciar um jogo antes de dar a ele um nome!Você nem conseguiu entrar na tabela de melhores pontuações...Você não tem nenhum %tde para vender!Você não tem nenhum para vender!Você não tem dinheiro suficiente para comprar aquele %tde!Você não tem espaço suficiente para carregar aquele %tde!Você não tem todo esse dinheiro!Você acha %d %tde em um cara morto no metrô!Você fugiu!Você alucionou por três dias na viagem mais louca que você jamais imaginou!^Então você morreu porque seu cérebro desintegrou!Você tem %d. Você foi tirado do servidor. Revertendo para modo de um jogador.Você foi tirado do servidor. Revertendo para modo de jogador único.vivo)! Você tem um mês de tempo de jogo para fazer sua fortuna.Você escuta alguém tocando %sVocê acertou %s!Você acertou %s, e matou uma %tde!Você matou %s!Você tá parecendo um aardvark!Você encontrou um amigo! Ele lhe dá %d %tde.Você encontrou um amigo! Você dá a ele %d %tde.Você errou em %s!Você fica parado como um panaca.Você parou para %s.Você foi massacrado no metrô!Você irá precisar de mais %tde para carregar ainda mais %tde!Você está morto! Jogo acabado.Seu tempo de tráfico acabou...Sua mamãe fez comida com algumas de suas %tde! Ela estava ótima!Seu espião trabalhando com %s foi descobrido!^O espião %s!Índice baseado-em-zero da arma que os policiais estão armadosZzzzz... vocês estão traficando doces ou o que?^ (ao menos, você -pensa- que foi o que ela disse)Modo _Antigo_Atacar_Comprar ->_Cancelar_Fechar_Conectar_Traficar %Tde_Largar <-_Evacuar_Lutar_Ajudar_Ir!_Não_OK_Correr_Espionar (%P)_Ficar parado_Iniciar jogo de um jogador_Subornar (%P)_Sim`Acapulco Gold` por Riders of the Purple Sage`Are you Experienced` por Jimi Hendrix`Cheeba Cheeba` por Tome Loc`Comin` in to Los Angeless` por Arlo Guthrie`Comemrcial` por Spanky e Nossa Gangue`Eight Miles High` por the Byrds`Itchycoo Park` por Small Faces`Kicks` por Paul Revere & the Raiders`Late in the Evening` por Paul Simon`Legalize Já` por Planet Hemp`Legend of a Mind` por the Moody Blues`Light Up` por Styx`Mexico` por Jefferson Airplane`One toke over the line` por Brewer & Shipley`The Smokeout` por Shell Silverstein`White Punks on Dope` por the Tubes`White Rabbit` por Jefferson Airplanearmado até os dentesem %Pputaputascomprar, vender, e tentar se safar dos policiais!policialpoliciaisderrotadoajudantesajudantedopewarsdopewars está lançado sob a GNU General Public Licenceservidor dopewars versão %s pronto e esperando conexões na porta %d.drogadrogasescapouconexão de %sarmaarmastome uma cervejapesadamente armadoum mercado de drogas imaginário. dopewars é um jogo americano onde se podepouco armadomoderamente bem armadoou C>ontactar suas espiãs e receber informaçõesou N>enhum trabalho ? ou S>air? muito pouco armadofumar um Djarumfumar um charutofumar um cigarrofumar um baseadoDepois disso, seu objetivo é ganhar o máximo de dinheiro possível (e ficaro agiotaas fitas de Nixono bordellevou um tirodopewars-1.5.12/po/ChangeLog0000644001565000007070000000023507366605037012556 000000000000002001-10-26 gettextize * Makefile.in.in: Upgrade to gettext-0.10.38. * cat-id-tbl.c: Remove file. * stamp-cat-id: Remove file. dopewars-1.5.12/po/fr_CA.po0000644001565000007070000040254210355323334012312 00000000000000# François Marier , 2004. # # msgid "" msgstr "" "Project-Id-Version: dopewars 1.5.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: 2004-10-29 19:55-0400\n" "Last-Translator: François Marier \n" "Language-Team: French\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "pute" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "putes" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "gun" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "guns" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "drogue" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "drogues" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "%d-%m-%Y" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "le prêteur à gages" #: src/dopewars.c:195 msgid "the Bank" msgstr "la Caisse populaire" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "le marchand d'armes" #: src/dopewars.c:196 msgid "the pub" msgstr "le bar" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Port réseau auquel se connecter" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nom du fichier des scores" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nom du serveur auquel se connecter" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Message de bienvenue du serveur pour aujourd'hui" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Adresse réseau du serveur" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "VRAI si un serveur SOCKS est nécessaire pour la connexion réseau" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "VRAI si un numéro d'identification est nécessaire pour SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Si non-vide, le nom d'utilisateur à utiliser pour SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "Le nom d'hôte d'un serveur SOCKS à utiliser" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "Le numéro de port d'un serveur SOCKS à utiliser" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "La version du protocole SOCKS à utiliser (4 ou 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Nom d'utilisateur pour l'authentification SOCKS5" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Mot de passe pour l'authentification SOCKS5" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "VRAI si le serveur doit se rapporter à un méta-serveur" #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "Nom du méta-serveur auquel envoyer/recevoir les détails du serveur" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "Port du serveur de méta-communication" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "Nom d'un serveur proxy de méta-communication" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "Port par lequel communiquer avec le serveur proxy" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "Chemin d'accès au script CGI sur le méta-serveur" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "Le nom de votre machine serveur" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "Authentification du nom local avec le metaserveur " #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "Description du serveur, rapportée au méta-serveur" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "Si VRAI, utiliser SOCKS pour les méta-communications" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "Nom d'utilisateur pour l'authentification HTTP de base" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "Mot de passe pour l'authentification HTTP de base" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "Nom d'utilisateur pour l'authentification proxy HTTP de base" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "Mot de passe pour l'authentification proxy HTTP de base" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Si VRAI, le serveur est réduit dans le System Tray" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "Si VRAI, le serveur roule en arrière-plan" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "La commande utilisée pour lancer votre fureteur" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "Nombre de tours de jeu (avec 0, le jeu ne se termine jamais)" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "Jour du mois durant lequel la partie débute" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "Mois durant lequel la partie débute" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "Année durant laquelle la partie débute" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "Le symbôle monétaire (example: $)" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "Si VRAI, le symbôle monétaire précède les prix" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "Fichier dans lequel écrire le journal" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "Contrôle le nombre de messages dans le journal" #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "Chaîne de formattage strftime() pour les dates dans le journal" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "Les éléments aléatioires sont nettoyés" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "VRAI si la valeur de la drogue achetée doit être sauvegardée" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "Soyez verbose en lisant le fichier de configuration" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "Nombre de lieux dans le jeu" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "Nombre de types de policiers dans le jeu" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "Nombre de guns dans le jeu" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "Nombre de drogues dans le jeu" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "Emplacement du prêteur à gages" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "Emplacement de la banque" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "Emplacement du marchand d'armes" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "Emplacement du bar" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "Taux d'intérêt quotidien sur l'emprunt avec le prêteur à gages" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "Taux d'intérêt quotidien du compte de banque" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "Nom du prêteur à gages" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "Nom de la banque" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "Nom du marchand d'armes" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "Nom du bar" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "VRAI pour activer les sons" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "Son d'une balle qui atteint sa cible" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "Son d'une balle qui rate sa cible" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "Son d'un gun qui est rechargé" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "Son accompagnant la mort d'une pute ou d'un adjoint ennemi" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "Son accompagnant la more d'une de vos putes" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "Son accompagnant la mort d'un autre joueur ou d'un policier" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "Son accompagnant votre propre mort" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "Son d'un joueur qui tente de s'échapper mais qui rate" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "Son accompagnant votre fuite ratée" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "Son d'un joueur qui s'échappe avec succès" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "Son accompagnant votre fuite réussie" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "Son d'arrivée dans un nouvel endroit" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "Son d'un message publique envoyé par un joueur" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "Son d'un message privé envoyé par un joueur" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "Son à faire jouer lorsqu'un joueur se joint à la partie" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "Son à faire jouer lorsqu'un joueur quitte la partie" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "Son de début de la partie" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "Son de fin de la partie" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "Touche de tri pour la liste des drogues disponibles" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "Nombre de secondes après quoi on peut répliquer" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "Les joueurs sont déconnectés après ce nombre de secondes" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "Temps en secondes pour que les connexions soient établies ou brisées" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "Nombre maximum de connexions TCP/IP" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "" "Nombre de secondes entre les tours des joueurs contrôlés par l'ordinateur" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "Argent de départ de chaque joueur" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "Montant des dettes en débutant la partie" #: src/dopewars.c:493 msgid "Name of each location" msgstr "Nom de chaque endroit" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "Présence policiaire à chaque endroit (%)" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "Nombre minimum de drogues à chaque endroit" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "Nombre maximum de drogues à chaque endroit" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "% de résistance aux coups de gun de chaque joueur" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "% de résistance aux coups de gun de chaque pute" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "Nom de chaque policier" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "Nom de chaque adjoint" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "Nom de chaque adjoint" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "% de résistance aux coups de gun de chaque policier" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "% de résistance aux coups de gun de chaque adjoint" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "Pénalité d'attaque relative à un joueur" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "Penalité de défense relative à un joueur" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "Nombre minimum d'adjoints accompagnant un policier" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "Nombre maximum d'adjoints accompagnant un policier" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "Numéro du gun que les policiers utilisent" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "Nombre de guns que chaque policier possède" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "Nombre de guns que chaque adjoint possède" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "Nom de chaque drogue" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "Prix normal minimal de chaque drogue" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "Prix normal maximum de chaque drogue" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "VRAI si cette drogue peut être offerte à prix très bas" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "VRAI si cette drogue peut être offerte à prix exhorbitants" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "Message affiché si cette drogue est offerte à prix très bas" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "" "Chaîne de formattage utilisée pour les drogues dispendieuses la moitié du " "temps" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "" "Diviseur sur le prix des drogues lorsqu'elle sont offertes à prix très bas" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "" "Multiplicateur pour les drogues lorsqu'elles sont offertes à prix " "exhorbitants" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "Nom de chaque type de gun" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "Prix de chaque type de gun" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "Espace utilisé par chaque gun" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "Dommage infligé par chaque gun" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "Mot utilisé pour décrire une \"pute\"" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "Mot utilisé pour décrire deux \"putes\" ou plus" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "Mot utilisé pour décrire une arme" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "Mot utilisé pour décrire deux armes ou plus" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "Mot utilisé pour décrire une drogue " #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "Mot utilisé pour décrire deux drogues ou plus" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "Chaîne de formattage strftime() pour l'affichage du tour" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "Coût pour envoyer une pute espionner le pusher ennemi" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Coût pour envoyer une pute donner des informations sur l'ennemi à la police" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "Prix minimum pour employer une pute" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "Prix maximum pour employer une pute" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "Liste des choses que vous entendez dans le métro" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "Nombre de choses que vous entendez dans le métro" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "Liste des chansons que vous pouvez entendre de loin" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "Nombre de chansons" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "Liste des choses que vous pouvez arrêter de faire" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "Nombre de choses que vous pouvez arrêter de faire" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`La petite grenouille` par André Guitar" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Bonjour la police` par Rock et Belles Oreilles" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Le p'tit pinson` par Normand L'Amour" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Le monde est à pleurer` par Jean Leloup" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "`Rape Me` par Richard Cheese" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "`Libérez-nous des Libéraux` par Loco Locass" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "`Quelle sorte de plotte c'est ça` par D-Natural" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`Slap My Bitch Up` par Prodigy" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Porn` par Blue Jam" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`Ventolin` par Aphex Twin" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "`Treat Me Mean, I Need The Reputation` par Xploding Plastix" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "`Sod Off` par Björk" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`P'tit change` par Groovy Aardvark" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "`Hawaïenne` par Les Trois Accords" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Strangers on a Train` par Lovage" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Snake in the Garden` par Ramasutra" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "`Ass Itch` par Korn" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Get Down Make Love` par Nine Inch Nails" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "boire une bière" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "fumer du weed" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "fumer un cigare" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "fumer du hash" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "fumer une smoke" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "Inspecteur Gadget" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "adjoint" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "adjoints" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "Maurice la grosse police" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "Sergent Bigras" #: src/dopewars.c:717 msgid "cop" msgstr "boeuf" #: src/dopewars.c:717 msgid "cops" msgstr "boeufs" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr "Baretta" #: src/dopewars.c:723 msgid ".38 Special" msgstr ".38 Modifié" #: src/dopewars.c:724 msgid "Ruger" msgstr "Ruger" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "Spécial du samedi soir" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "Acide" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "Le marché est saturé de buvards" #: src/dopewars.c:733 msgid "Cocaine" msgstr "Cocaïne" #: src/dopewars.c:734 msgid "Hashish" msgstr "Hash" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "Le Marrakesh Express est arrivé!" #: src/dopewars.c:736 msgid "Heroin" msgstr "Héroïne" #: src/dopewars.c:737 msgid "Ludes" msgstr "Colle" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "Les pushers rivaux ont dévalisé une quincaillerie et vendent de la colle pas " "chère" #: src/dopewars.c:739 msgid "MDA" msgstr "Ecstasy" #: src/dopewars.c:740 msgid "Opium" msgstr "Opium" #: src/dopewars.c:741 msgid "PCP" msgstr "PCP" #: src/dopewars.c:742 msgid "Peyote" msgstr "Péyote" #: src/dopewars.c:743 msgid "Shrooms" msgstr "Mush" #: src/dopewars.c:744 msgid "Speed" msgstr "Speed" #: src/dopewars.c:745 msgid "Weed" msgstr "Pot" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "" "Les récoltes des serres hydroponiques dépassent les attentes, c'est le temps " "de fumer!" #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "Laval" #: src/dopewars.c:755 msgid "Ghetto" msgstr "Plateau Mont-Royal" #: src/dopewars.c:756 msgid "Central Park" msgstr "Parc Lafontaine" #: src/dopewars.c:757 msgid "Manhattan" msgstr "Centre-ville" #: src/dopewars.c:758 msgid "Coney Island" msgstr "Île Sainte-Hélène" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "Vieux-Port" #: src/dopewars.c:760 msgid "Queens" msgstr "Westmount" #: src/dopewars.c:761 msgid "Staten Island" msgstr "Notre-Dame-de-Grâce" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Les boeufs ont mis la main sur un gros stock de dope (%tde) !" #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Les accros achètent de la dope (%tde) à des prix de fou!" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "" "Pète pis répète sont en bateau, pète tombe à l'eau, qui est-ce qu'il reste " "dans le bateau?" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "Tsé, le pape a déjà été juif" #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "Chu sûre que tu fais des rêves très intéressants" #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "Je pense que je vais aller à Vancouver cette année" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "Vas te faire couper les cheveux le pouilleux!" #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Ça t'arrive tu de conduire la nuit avec des lunettes fumées ?" #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "J'ai pas toujours été une femme tsé" #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "Est-ce que ta mère sait que tu vends de la dope ?" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "T'es tu gelé là ?" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "Toi, tu dois venir de Vancouver ?" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "Ta mère vient de faire des bons gâteaux avec un peu de ton Hash." #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "Ya rien comme avoir full de cash" #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "Sauvez des arbres, torchez-vous avec un lapin !" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "Bon chu trop décriss, j'm'en vas me coucher." #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "" "Les terroristes dirigent la maison blanche depuis les dernières élections." #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "C'est vous que j'ai vu à la télé ?" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "Savais-tu que l'américain moyen a une seule testicule ?" #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "Vous avez les yeux rouges, jeune homme." #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "Un jour sans dope, c'est la nuit." #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" "On utilise 20% de nos cerveaux, alors pourquoi ne pas en détruire 80% ?" #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "" "« Le seul moyen de se délivrer de la tentation, c'est d'y céder. » a dit " "Oscar Wilde" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "C'est à vous l'éléphant rose là-haut ?" #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "" "Les vainqueurs ne se droguent pas... à moins qu'ils prennent de la drogue" #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "Tue une police pour le petit Jésus!" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "Je suis une crevette!" #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "Jésus t'aime beaucoup plus que tu ne le sauras jamais" #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "Je sens un désir incontrôlable de teindre mes cheveux bleus" #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "" "Dans mon temps, il n'y avait pas de distributrices de balounes dans les " "toilettes maintenant?" #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Dis-lui non, tout simplement... ouin, peut-être... ah pis d'la marde!" #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "La télépathie existe ! Check les vibrations." #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "La drogue est votre amie !" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "Impossible de lire le fichier de configuration %s (ligne %d)" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "Impossible d'ouvrir le fichier %s" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "La configuration ne peut seulement être modifiée que lorsqu'aucun\n" "joueur n'est connecté. Attendez que tous les joueurs se déconnectent\n" "ou éjecter-les avec la commande push ou kill et essayer à nouveau." #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "L'index dans %s doit être entre 1 et %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "%s est %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "%s est %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "%s est %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "%s est \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] est %s\n" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "%s est { " #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s ne peut pas être moins de %d" #: src/dopewars.c:2210 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "%s ne peut pas être moins de %d!" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Liste de structure redimentionée à %d éléments\n" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "valeur booléenne attendue (0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "$" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "Currency.Prefix=FALSE" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=FICHIER utiliser le plugin de son \"FICHIER\"\n" " " #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u fichier utiliser le plugin de son \"fichier\"\n" "\t " #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "(%s disponible)\n" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "dopewars version %s\n" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Jeu de vente de drogue basé sur \"Drug Wars\" de John E. Dell\n" " -b, --no-color, \"noir et blanc\" - n'utilise pas les couleurs\n" " --no-colour (par défaut, les couleurs sont utilisées\n" " si le terminal les supporte)\n" " -n, --single-player ne pas se connecter aux autres serveurs dopewars\n" " (i.e. mode joueur unique)\n" " -a, --antique \"antique\" dopewars - rester proche de la version\n" " originale (cette option désactive les\n" " possibilités réseau)\n" " -f, --scorefile=FILE spécifier un fichier a utiliser pour la table des\n" " meilleurs scores (par défaut, %s/dopewars.sco " "est\n" " utilisé)\n" " -o, --hostname=ADDR spécifier une addresse où le serveur peut être\n" " trouvé (e.g. nowhere.com)\n" " -s, --public-server lancer en mode serveur (note: pour un serveur\n" " non-interactif, simplement lancer: \n" " dopewars -s < /dev/null >> logfile & )\n" " -S, --private-server lancer un serveur privé (i.e. ne pas contacter le \n" " méta-serveur)\n" " -p, --port=PORT spécifie le port réseau à utiliser (défault: 7902)\n" " -g, --config-file=FILE spécifie le chemin d'accès au fichier de \n" " configuration. Ce fichier est lu immédiatement \n" " quand l'option -g est rencontrée\n" " -r, --pidfile=FILE maintenir un fichier pid \"file\" pendant que le \n" " serveur tourne\n" " -l, --logfile=FILE écrit l'information du journal dans le fichier\n" " -A, --admin se connecter au serveur local pour " "l'administration\n" " -c, --ai-player crée et lance une intelligence artificielle\n" " (adversaire contrôlé par l'ordinateur)\n" " -w, --windowed-client force le lancement en mode graphique \n" " (GTK+ ou Win32)\n" " -t, --text-client force le lancement en mode texte (par défaut, le\n" " client graphique est lancé si possible)\n" " -C, --convert=FILE convertir un vieux fichier de scores au nouveau \n" " format\n" #: src/dopewars.c:2619 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help affiche cet écran d'aide\n" " -v, --version affiche la version et quitte\n" "\n" "dopewars est un Copyright (C) Ben Webb 1998-2005, et est distribué sous la " "GNU GPL\n" "Envoyer les bugs à l'auteur : benwebb@users.sf.net\n" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Jeu de vente de drogue. Basé sur \"Drug Wars\" de John E. Dell\n" " -b \"noir et blanc\" - n'utilise pas les jolies couleurs\n" " (par défaut, les couleurs sont utilisées si le terminal les\n" " supporte)\n" " -n ne pas se connecter aux autres serveurs dopewars\n" " (i.e. mode joueur unique)\n" " -a \"antique\" dopewars - rester proche de la version originale\n" " (cette option désactive les possibilités réseau)\n" " -f file spécifie un fichier a utiliser pour la table des high scores\n" " (par défaut, %s/dopewars.sco est utilisé)\n" " -o addr spécifie une addresse où le serveur peut être trouvé\n" " (e.g. nowhere.com)\n" " -s lance en mode serveur (note: pour un serveur non-interactif, \n" " simplement lancer: dopewars -s < /dev/null >> logfile & )\n" " -S lance un serveur privé (i.e. ne pas contacter le méta-serveur)\n" " -p port spécifie le port réseau à utiliser (défault: 7902)\n" " -g file spécifie le chemin d'accès au fichier de configuration. Ce\n" " fichier est lu immédiatement quand l'option -g est rencontrée\n" " -r file maintient un fichier pid \"file\" pendant que le serveur tourne\n" " -l file écrit l'information du journal dans le fichier \"file\"\n" " -c crée et lance une intelligence artificielle (adversaire \n" " contrôlé par l'ordinateur)\n" " -w force le lancement en mode graphique (GTK+ ou Win32)\n" " -t force le lancement en mode texte\n" " (par défaut, le client graphique est lancé si possible)\n" "-P nom change le nom du joueur -C file convertit un vieux fichier de " "scores au nouveau format\n" " -A se connecte au serveur local pour l'administration\n" #: src/dopewars.c:2655 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h affiche cet écran d'aide\n" " -v affiche la version et quitte\n" "\n" "dopewars est un Copyright (C) Ben Webb 1998-2005, et distribué sous GNU GPL\n" "Envoyer les bugs à l'auteur : benwebb@users.sf.net\n" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Pas de client curses disponible - recompiler le programme en utilisant\n" "--enable-curses-client comme configuration, ou utiliser un client\n" "graphique (si disponible) à la place!\n" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Pas de client graphique disponible - recompiler le programme en utilisant\n" "--enable-gui-client comme configuration, ou utiliser un client\n" "curses à la place!\n" #: src/dopewars.c:2983 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Ce programme a été compilé sans le support réseau et ne peut donc pas\n" "fonctionner en mode serveur. Recompilez avec l'option --enable-networking\n" "dans le script configure.\n" #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Ce programme a été compilé sans le support réseau et ne peut donc pas\n" "fonctionner en mode serveur. Recompilez avec l'option --enable-networking\n" "dans le script configure.\n" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "Traduction québécoise François Marier" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Basé sur le jeu Drug Wars par John E. Dell, dopewars est une simulation d'un" #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "marché de la drogue imaginaire. Dopewars est un jeu qui comprend" #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "acheter, vendre et essayer d'éviter les polices!" #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "La première chose à faire est de rembourser votre dette au prêteur. Après," #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" "votre but est de faire le plus d'argent possible (tout en restant vivant)!" #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "Vous avez un mois pour faire fortune." #: src/curses_client/curses_client.c:297 #, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "Version·%-8s·Copyright·(C)·1998-2005··Ben·Webb·benwebb@users.sf.net" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr "dopewars est distribué sous la license GNU GPL." #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "Icônes et graphiques Ocelot Mantis" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Effets sonores Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "Vente de drogue et recherche Dan Wolf" #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testeurs Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testeurs maniaques Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Critiques constructives Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "Critiques non-consctructives James Matthews" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "" "Pour afficher l'aide sur les options disponible sur la ligne de commande," #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "tapez dopewars -h sur votre prompt UNIX." #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Merci d'entrer le nom de l'hôte et le port du serveur:-" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "Nom: " #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "Port: " #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "Patientez... tentative de contacter le méta-serveur..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "Serveur: %s" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "Port : %d" #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "Version :%s" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Joueurs: -inconnu- (maximum %d)" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "Joueurs: %d (maximum %d)" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "En ligne depuis : %s" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "Commentaire: %s" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "S>erveur suivant; P>récedent; C>hoisir ce serveur..." #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "SPC" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Connextion au serveur SOCKS %s..." #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "Authentification avec le serveur SOCKS" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Demande de connexion SOCKS avec %s..." #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "Authentification proxy requise pour le domaine %s" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "Authentification requise pour le domaine %s" #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "(Entrez un nom d'utilisateur vide pour annuler)" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "Nom d'utilisateur: " #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "Mot de passe: " #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "Authentification SOCKS requise (entrez un nom vide pour annuler)" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "Patientez... tentative de contacter le serveur dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "Impossible d'obtenir les détails du méta-serveur" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "Ne peux pas démarrer dopewars en mode multi-joueurs" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "Voulez-vous... C>onnecter à un hôte/port différent" #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr " L>iste des serveurs sur le méta, et en sélectionner un" #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "" " Q>uitter (vous pouvez alors démarrer un server " "en tapant \"dopewars -s\")" #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr " ou J>ouer en solo ? " #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "CLQJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "Où ça, man ? " #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "%/Affichage de l'endroit/%tde" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Tu peux pas te faire de cash avec ce que tu transportes %tde :" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "Qu'est-ce que tu veux crisser à terre? " #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "Combien d'unités veux-tu crisser à terre? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "Qu'est-ce que tu veux acheter? " #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "Qu'est-ce que tu veux vendre? " #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Tu peux en acheter %d, et en transporter %d. " #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "Combien que t'en prends ?" #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "T'as %d. " #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "Combien que tu en vends? " #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Choisir une job à donner à une de tes %tde..." #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr " E>spionner un autre pusher (cout: %P)" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " D>onner un autre pusher aux boeufs (cout: %P)" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr " A>ller se faire foutre" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "ou C>ontacter vos espions et recevoir leur rapports" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr "ou P>as de job ? " #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "EDACP" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "Qui c'est que tu veux espionner ?" #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "Qui c'est que tu veux donner aux flics ?" #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr " Es-tu certain? " #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "ON" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "Êtes-vous sur de vouloir quitter? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "Nouveau nom: " #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Vous avez ete flushé du serveur. Mode solo." #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "Le serveur est mort. Mode solo" #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "%s joint la partie!" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "%s a quitté la partie." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "%s est maintenant %s." #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "M É T R O" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "%/Endroit présent/%tde" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Malheureusement, quelqu'un d'autre utilise déjà ton nom. Change-le " #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "M E I L L E U R S S C O R E S" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "T'as pas de %tde à vendre!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "T'en n'as pas à vendre!" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Tu as besoin de plus de %tde pour transporter plus de %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "T'as pas assez d'espace pour transporter: %tde" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "T'as pas assez de cash pour acheter: %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Veux tu A>cheter, V>endre, ou P>artir?" #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "AVP" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "Combien de cash tu rends ?" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "T'as pas assez de cash!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "" "Tu veux D>époser de l'argent, R>etirer de l'argents, ou S>acrer ton camp ?" #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "DRS" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "Combien d'argent?" #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "Ya pas autant d'argent dans la banque..." #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "O:Oui" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "N:Non" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "D:écrisser" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "S:Se battre" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "A:Attaquer" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "S:Se sauver" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "Pèse sur une touche..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "Messages (-/+ avancer/reculer)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "Statistiques" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "Cash %17P" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "%-19Tde%3d" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "Santé %3d" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "Banque %15P" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "Dette %15P" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "Espace %6d" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Espace %6d" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "Manteau" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "%/Stats: Drogues/%Tde" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d @ %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "%/Stats: Guns/%Tde" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "Rapports des espions pour %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Espion: Drogues/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "%/Espion: Guns/%Tde..." #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "Aucun autre joueur est en ligne en ce moment!" #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "Joueurs en ligne:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Heille man, les prix du %tde sont la:" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "%c. %-10tde %8P" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Ne peux pas installer le handleur d'interruptions SIGWINCH!" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "Heille man, comment tu t'appelles ? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "A>cheter" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr ", V>endre" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr ", L>aisser tomber" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr ", P>lacotter, R>éveiller" #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr ", L>ister" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr ", D>onner" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr ", C>ombattre" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr ", S>'en aller ailleurs" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr ", ou Q>uitter? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "Tu " #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "C>ombattre, " #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "R>ester sur place, " #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "T>e sauver, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "V>endre des %tde, " #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "ou Q>uitter? " #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "La connection au serveur est perdue. Change en mode Solo" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "AVLPRLDCSQ" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "VTCRQ" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "Lister quoi? J>oueurs ou S>cores? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "JS" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "À qui que tu veux parler en privé ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "Parler: " #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "Jouer à nouveau? " #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "/_Jeu" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "/Jeu/_Nouveau..." #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "/Jeu/_Abandonner..." #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "/Jeu/_Options..." #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "/Jeu/Activer les _sons" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "/Jeu/_Quitter" #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "/_Parler" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "/Parler/Avec _tout le monde..." #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "/Parler/Avec un _joueur..." #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "/_Liste" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "/Liste/_Joueurs..." #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "/Liste/_Scores..." #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "/Liste/_Inventaire..." #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "/_Tâches" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "/Tâches/_Espionner..." #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "/Tâches/_Rapporter un joueur à la police..." #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "/Tâches/R_apports des espions..." #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "/_Aide" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "/Aide/_À propos..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "Attention" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "Erreur" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "Message" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "Abandonner cette partie ?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "Quitter la partie" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "Commencer une nouvelle partie" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "Abandonner la partie" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "Inventaire" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "Connexion au serveur perdue - Mode solo" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "Vous avez été expulsé(e) du serveur. Mode solo." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "Le serveur est mort. Mode solo" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "S'en aller vers %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Sack Bitch menu item/_Renvoyer une pute..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "_Espionner (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "_Rapporter un joueur à la police (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "Meilleurs scores" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "Le fichier des meilleurs scores est corrompu!" #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "Se battre" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "_Vendre de la dope" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "_Combattre" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "_Rester sur place" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "_Décrisser" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Combat: Putes/%d %tde" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "(Restant/es)" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "(Mort/es)" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "Santé: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "Toi" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "%/GTK Stats: Guns/%Tde" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Putes/%Tde" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "%/Inventaire nom de la drogue/%tde" #: src/gui_client/gtk_client.c:1352 msgid "%/Inventory gun name/%tde" msgstr "%/Inventaire nom du gun/%tde" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "Se déplacer à un autre endroit" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "Endroit vers où se déplacer" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "à %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "Tu transportes en ce moment %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "Espace disponible: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "Tu peux acheter %d" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "Acheter" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "Vendre" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "Laisser tomber" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "%/Vendre nom de la drogue/%tde" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "En acheter combien ?" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "En vendre combien ?" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "En laisser tomber combien ?" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "Acheter %tde" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "Vendre %tde" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "Laisser tomber %tde" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "_Oui" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "_Non" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "_Attaquer" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "_S'enfuir" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "Question" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "Espace" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "Cash" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "Dette" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "Banque" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "Santé" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "_Décrisser!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "Dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "Traduction québécoise" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "François Marier" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "Icônes et graphiques" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "Effets sonores" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "Vente de drogue et recherche" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "Testeurs de jeu" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "Testeurs maniaques du jeu" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "Critique constructive" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "Critique non-constructive" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "À propos de dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Basé sur le jeu de John E. Dell -Drug Wars- , dopewars est une simulation\n" "d'un marché de la drogue imaginaire. DopeWars est un jeu qui vous permet\n" "d'acheter ou vendre de la drogue et essayer d'éviter les polices!\n" "\n" "La première chose à faire est de rembourser le prêteur à gages.\n" "Ensuite, votre but est de faire le maximum d'argent (et de rester en vie!)\n" "Vous avez un mois de temps de jeu pour faire fortune.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars est distribué sous la licence GNU GPL\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Pour afficher l'aide sur les options disponible sur la ligne de commande,\n" "tapez dopewars -h sur votre prompt UNIX.\n" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "Documentation HTML locale" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "%/Prêteur window title/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "%/Banque window title/%Tde" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "Vous devez entrer un montant positif!" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "Il n'y a pas autant d'argent dans la banque..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "Argent: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "Dettes: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "Banque: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "Rembourser:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "Déposer" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "Retirer" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "Tout payer" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "Liste des joueurs" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "Parler au(x) joueur(s)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "Parler à tous les joueurs" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "Message:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "Envoyer" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "Espionner le joueur" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Merci de choisir le joueur a espionner. Votre %tde va\n" "ensuite offrir ses services aux joueur, et si elle a du\n" "succes, vous aurez ensuite acces aux stats du joueur avec\n" "le menu \"Rapport des Espions\". La %tde va partir, donc\n" "toutes les %tde ou %tde qu'elle porte seront peut etre perdus!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "Rapporter un joueur à la police" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Choisir le joueur à rapporter à la police. Votre %tde va aider les boeufs\n" "à attaquer ce joueur, puis venir vous faire son rapport quand vous la\n" "rencontrerez. Rappellez-vous que la %tde vous quittera temporairement,\n" "donc tout ce qu'elle porte (%tde ou %tde) pourra être perdu!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Renvoyer une pute dialog title/Renvoyer %Tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Es-tu certain de ce que tu fais ? (Tous les %tde et les\n" "%tde transportés par cette %tde vont être perdus!)" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "Nom" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "Prix" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "Quantité" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "_Acheter ->" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "<- _Vendre" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "_Laisser tomber <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "%Tde en vente/demande ici" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "%Tde transporté(e)s" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "Changer de nom" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "" "Malheureusement, quelqu'un d'autre utilise déjà ton nom.Merci de le changer:-" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Marchand d'armes window title/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "Rapports des espions" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "Nouveau" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "Sélectionner le fichier de son" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "Nouveau" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "Supprimer" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "Haut" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "Bas" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "Présence policière" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "Nombre minimum de drogues" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "Nombre maximum de drogues" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "Prix normal minimum" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "Prix normal maximum" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "Peut être extrêmement bon marché" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "Expression \"bon marché\"" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "Peut être extrêmement chère" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "Espace d'inventaire" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "Dégât" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "Nom d'un adjoint" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "Nom de plusieurs adjoints" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "Nombre minimum d'adjoints" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "Nombre maximum d'adjoints" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "Armure d'un policier" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "Armure d'un adjoint" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "Options" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "Enlève les références à la drogue" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "Fichier de configuration Unicode" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "Nombre de tours dans une partie" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "Argent de départ" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "Dette de départ" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "Symbole monétaire" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "Le symbole monétaire précède les prix" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "Nom d'une pute" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "Nom de plusieurs putes" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "Fureteur" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "Général" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "Endroits" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "Expresion \"dispendieux\" 1" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "Expresion \"dispendieux\" 2" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "Drogues" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "Guns" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "Policiers" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "Le serveur se rapporte au méta-serveur" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "Minimiser dans le System Tray" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "Nom du méta-serveur" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "Port" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "Nom du proxy Web" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "Chemin du script" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "Commentaire" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "Message du jour" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "Serveur" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "Nom du son" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "Description" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "Fichier de son" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "Parcourir..." #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "Jouer" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "Impossible de débuter une partie sans se nommer!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "Nouvelle partie" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "Status: En attente de l'utilisateur" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Connexion terminée par l'autre partie" #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "Status: Ne peut pas se connecter au méta-serveur (%s)" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Ne peut pas se connecter (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: En train de contacter %s..." #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "Inconnu" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Status: Connecté au serveur SOCKS %s..." #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "Status: En cours d'authentification avec le serveur SOCKS" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Status: En train de demander à SOCKS d'établir la connexion avec %s..." #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "" "Status: Obtention de l'information du serveur à partir du méta-serveur..." #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "Version" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "Joueurs" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "Heille man, c'est quoi ton _nom?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "Nom de l'hôte" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "_Connecter" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "Mode solo" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "Mode _antique" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "_Débuter la partie en mode solo" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "Méta-serveur" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "Authentification proxy nécessaire" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "Authentification nécessaire" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "Authentification SOCKS nécessaire" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "_OK" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "_Fermer" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "_Annuler" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "_Rafraîchir" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "A_ide" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "# Ceci est le journal de démarrage de dopewars. Il contient\n" "# les messages d'information résultant de la lecture du\n" "# fichier de configuration et autre...\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "Serveur dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "IA dopewars" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "enfui" #: src/serverside.c:73 msgid "defected" msgstr "passé à l'ennemi" #: src/serverside.c:73 msgid "was shot" msgstr "tué" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AS" #. Help on various general server commands #: src/serverside.c:121 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "Serveur dopewars version %s, commandes et configuration\n" "\n" "help Affiche l'aide\n" "list Lister les joueurs connectés\n" "push Demander poliment à un joueur de partir\n" "kill Éjecter avec force le joueur donné\n" "msg: Envoyer un message à tous les joueurs\n" "save: Enregistrer la configuration dans le fichier\n" "quit Quitter après avoir averti tout le monde.\n" "= Assigne une valeur à une variable\n" " Affiche la valeur de la variable donnée\n" "[x].= Assigne la variable dans la liste donnée à\n" " à la position x, à la valeur donnée.\n" "[x]. Affiche la valeur de la variable donnée\n" " dans la liste\n" "\n" "Les variables acceptées sont:-\n" "\n" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "Impossible de se connecter au méta-serveur à %s:%u (%s)" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "" "Utilisation de MetaServer.Proxy.User et MetaServer.Proxy.Password " "pourl'authentification HTTP proxy." #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" "Impossible de s'identifier avec le proxy HTTP. Veuillez configurer les " "variables MetaServer.Proxy.User et MetaServer.Proxy.Password." #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" "Utilisation de MetaServer.Auth.User et MetaServer.Auth.Password " "pourl'authentification HTTP ." #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" "Impossible de s'identifier avec le serveur HTTP. Veuillez configurer les " "variables MetaServer.Auth.User et MetaServer.Auth.Password." #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "" "Utilisation de Socks.Auth.User et Socks.Auth.Password pour " "l'authentification SOCKS5." #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "Connexion au méta-serveur trop fréquente, attente du prochain timeout" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "En attente de la connexion au méta-serveur à %s:%u..." #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" "Vous semblez utiliser une très vieille version (1.4.x) du jeu. Cette " "versionrisque de fonctionner, mais plusieurs des nouvelles fonctionalités ne " "serontpas supportées. Obtenez la dernière version sur le site web de " "Dopewars: http://dopewars.sourceforge.net/" #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" "Votre version de Dopewars est trop vieille pour supporter les " "fonctionalitésde ce serveur. Pour une meilleure expérience, obtenez la " "dernière versionsur le site web de Dopewars: http://dopewars.sourceforge.net/" #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "Nombre maximum de clients (%d) dépassé - annulation de la connexion" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Désolé, ce serveur a une limite d'un seul joueur et cette limite a été " "^atteinte. Merci de réessayer plus tard." #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Désolé, ce serveur a une limite de %d joueurs et cette limite a été " "^atteinte. Merci de réessayer plus tard." #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "%s est maintenant connu sous le nom de %s" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "Votre temps de dealage est terminé" #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: déplacement vers %s INTERDIT" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "%s espionne %s" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "Tentative d'espionnage de %s sur %s: REFUSÉE" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s a rapporté %s à la police" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "Le rapportage par %s de %s à la police: REFUSÉ" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Message inconnu: %s:%c:%s:%s" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "Maintenance du pid file %s" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Impossible de créer le fichier pid %s: %s" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "Impossible de créer un socket d'écoute (%s) pour le serveur" #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "Impossible de s'attacher au port %u (%s)" #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "Impossible de lire sur le socket réseau" #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "Serveur dopewars version %s attendant les connexions sur le port %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Impossible d'installer le handleur d'interruptions SIGUSR1!" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Impossible d'installer le handleur d'interruptions SIGHUP!" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "Impossible d'installer le handleur d'interruptions SIGINT!" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Impossible d'installer le handleur d'interruptions SIGTERM!" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "Impossible d'installer le handleur de pipeline!" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "Fichier de configuration enregistré comme %s\n" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "Utilisateurs en ligne:-\n" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "Aucun utilisateur en ligne!\n" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "Intimidation de %s\n" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "Cet utilisateur n'existe pas.\n" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "%s tué\n" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "Commande inconnue - essayez \"help\" pour l'aide...\n" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "connexion reçu de %s" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "Serveur dopewars en train de terminer." #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "%s quittes le serveur!" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" "Impossible d'installer le socket de domaine UNIX pour les " "connexionsadministratives - vérifiez les permissions sur /tmp!" #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "Serveur dopewars version %s en attente de commandes d'administration.Essayez " "\"help\" pour l'aide." #: src/serverside.c:1280 msgid "New admin connection" msgstr "Nouvelle connexion administrative" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "Command administrative" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "Connexion administrative terminée" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "Impossible d'obtenir le status du service NT" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "Impossible d'envoyer un message de notification du service" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "Impossible d'installer un handleur de service" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "Impossible de démarrer le service NT" #: src/serverside.c:1728 msgid "Command:" msgstr "Commande:" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "Impossible de lire le fichier des meilleurs scores: %s" #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "Le fichier des scores (%s) a été converti au nouveau format.\n" "Une copie de l'ancien fichier a été créée: %s.\n" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "Impossible de créer une copie (%s) du\n" "fichier des scores: %s" #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "Impossible d'ouvrir le fichier des meilleurs scores (%s): %s." #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Ne peut pas ouvrir le fichier des meilleurs scores %s. (%s)\n" "Vérifiez que vous avez les permissions pour accéder ce fichier ou " "répertoire\n" "ou specifiez un autre fichier et chemin d'accès avec la commande -f." #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s n'a pas l'air d'être un fichier de\n" "scores valide. S'il s'agit d'un fichier de scores d'une version\n" "précédente de dopewars, veuillez tout d'abord le convertir au\n" "nouveau format en utilisant la commande:\n" " dopewars -C %s" #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Erreurs lors de la lecture du fichier de configuration. Certaines\n" "préférences pourraient ne pas fonctionner correctement. Voir le\n" "fichier \"dopewars-log.txt\" pour plus de détails." #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Erreurs lors de la lecture du fichier de configuration. Certaines\n" "préférences pourraient ne pas fonctionner correctement. Portez attention\n" "aux messages figurant sur la sortie standard pour plus de détails." #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "Impossible de lire le fichier des high scores %s" #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "Félicitations! Vous êtes dans les meilleurs scores!" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "T'as même pas réussi à être dans les scores!" #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "Impossible d'écrire le fichier des meilleurs scores %s" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "(Repose en Paix)" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Indice de %s" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Espion offert par %s" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Une de tes %tde était un espion pour %s.^L'espion %s!" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Votre espion travaillant pour %s a été découvert!^L'espion %s!" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "La madame à côté de toi dans le métro te dit,^ \"%s\"%s" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (du moins, tu -penses- que c'est ça qu'elle a dit)" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "Tu entends quelqu'un jouer %s" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Veux-tu visiter %tde?" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Veux-tu engager une %tde pour %P?" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s est déjà là!^Tu Attaque, or t'Evade?" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "Pas de boeufs ou de guns" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "Les boeufs ne peuvent pas attaquer d'autres boeufs!" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "Les joueurs sont déjà en train de se battre!" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "Les joueurs sont déjà dans des batailles séparées!" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "Ne peut pas commencer la bataille - pas de gun à utiliser!" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "Tu viens de crever man!" #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: indice par %s finit OK." #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Suivant votre indice, les boeufs ont pogné %s, qui est mort par balle!" #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Suivant votre indice, les boeufs ont attaqué %s, qui s'est échappé avec %d %" "tde. " #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^Vas-tu payer le docteur %P pour te ramancher?" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "Tu t'es fait pété la gueule dans le métro!" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "T'as rencontré un chum, il t'a donné %d %tde." #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "T'as rencontré ton meilleur chum pis tu lui a donné %d %tde." #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "Tu nettoies une offre aléatoire." #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Les chiens de police te courent après sur %d blocs! T'as échappé: %tde! " #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "T'as trouvé %d %tde sur un gars mort dans le métro!" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "" "Ta mère a fait des gâteaux avec un peu de %tde! Y'étaient vraiment bons!" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Il y a une sorte d'herbe qui sent bizarre ici!^Ça a l'air bon! Veux-tu la " "fumer?" #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "Tu t'arretes pour %s." #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Veux-tu acheter un manteau plus gros %P?" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" "YN^Heille man! J'pourrais t'aider à transporter tes %tde pour un petit %P. " "Qu'est-ce que t'en dis ?" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Veux-tu acheter un %tde pour %P?" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: l'offre etait au nom de %s" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s a accepté votre %tde!^Tape G pour contacter ton espion." #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "T'as halluciné pendant trois jours dans le trip le plus hot que t'aurais " "^jamais pu imaginer! Ensuite t'es mort parce que ton cerveau s'est " "désintégré!" #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "Trop tard - %s vient juste de partir!" #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "%s a rejeté votre %tde!" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "Les boeufs t'ont vu jeter ton stock!" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "Envoi des mise-à-jours au méta-serveur..." #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "Envoi du rappel au méta-serveur..." #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "Joueur éjecté à cause d'une période d'inactivité trop longue" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "Joueur éjecté à d'un temps de connexion trop long" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "(L'erreur ne peut pas être affichée en UTF-8)" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "La connexion est brisée à cause d'un buffer plein" #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "Code d'erreur interne: %d" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "WinSock n'a pas été correctement initialisé" #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "Le sous-système réseau n'est pas prêt" #: src/error.c:160 msgid "WinSock version not supported" msgstr "Cette version de WinSock n'est pas supportée" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "Échec dans le sous-système réseau" #: src/error.c:162 msgid "Address already in use" msgstr "Addresse déjà utilisée" #: src/error.c:163 msgid "Cannot reach the network" msgstr "Impossible de rejoindre le réseau" #: src/error.c:164 msgid "The connection timed out" msgstr "La connexion a échouée à cause d'un timeout" #: src/error.c:165 msgid "Out of file descriptors" msgstr "Aucun descripteur de fichiers disponible" #: src/error.c:166 msgid "Out of buffer space" msgstr "Pas assez d'espace de tampon" #: src/error.c:167 msgid "Operation not supported" msgstr "L'opération n'est pas supportée" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "Connexion abandonnée à cause d'un échec" #: src/error.c:169 msgid "Connection reset by remote host" msgstr "Connexion réinitialisée par l'ordinateur distant" #: src/error.c:170 msgid "Connection refused" msgstr "Connexion refusée" #: src/error.c:171 msgid "Address family not supported" msgstr "Famille d'adresses non-supportée" #: src/error.c:172 msgid "Protocol not supported" msgstr "Protocole non-supporté" #: src/error.c:173 msgid "Socket type not supported" msgstr "Type de socket non-supporté" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "Impossible de trouver l'hôte" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "Erreur de serveur de noms temporaire - essayer plus tard" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "Impossible de contacter le serveur de noms" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "Nom valide, mais aucune information DNS disponible" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "Code d'erreur réseau: %d" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "Code d'erreur du serveur de noms: %d" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Erreur interne du méta-serveur \"%s\"" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Mauvaise réponse du méta-serveur \"%s\"" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "Code d'erreur du méta-serveur inconnu: %d" #: src/message.c:1167 msgid "Do you run?" msgstr "Tu cours ?" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "Courir ou combattre ?" #: src/message.c:1369 msgid "pitifully armed" msgstr "leurs guns font pitié" #: src/message.c:1370 msgid "lightly armed" msgstr "légèrement armés" #: src/message.c:1371 msgid "moderately well armed" msgstr "relativement bien armés" #: src/message.c:1372 msgid "heavily armed" msgstr "lourdement armés" #: src/message.c:1372 msgid "armed to the teeth" msgstr "armés jusqu'aux dents" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - te courent après, man!" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s et %d %tde - %s - te courent après, man!" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s est arrivé avec %d %tde, %s!" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "%s reste debout et le prend." #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "Tu restes là comme une momie." #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "%s essaye de décrisser, mais échoue." #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "Fuck! Tu peux pas te sauver!" #: src/message.c:1410 #, c-format msgid "%s has got away to %tde!" msgstr "%s s'est enfuit %tde!" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "%s se sont échappés!" #: src/message.c:1416 msgid "You got away!" msgstr "Tu t'es échappé!" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "Guns rechargés..." #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s tire sur %s... et manque son coup!" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s te tire dessus.. et rate!" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "Tu as manqué %s!" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "%s tue %s par balle" #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s tire sur %s et tue une %tde!" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "%s tire sur %s." #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s t'as massacré, mam! Ça chie ton affaire..." #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s te tire dessus... et tue une %tde!" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "%s t'a pogné, man!" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "T'as achevé %s!" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Tu pognes %s, et tue une %tde!" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "Tu pognes %s!" #: src/message.c:1469 msgid " You find %P on the body!" msgstr "Tu trouves %P sur le corps!" #: src/message.c:1471 msgid " You loot the body!" msgstr " Tu fouilles le corps!" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "Impossible d'initialiser WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "Échec général du serveur SOCKS" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "Connexion refusée par les règles SOCKS" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "SOCKS: Connexion réseau impossible" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "SOCKS: Connexion à l'hôte impossible" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "SOCKS: Connexion refusée" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "SOCKS: Le TTL a expiré" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "SOCKS: Commande non-supportée" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Type d'adresse non-supporté" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "Le serveur SOCKS a réjeté toutes les méthodes offertes" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "Le type de l'adresse SOCKS retournée est inconnu" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "Échec d'authentification SOCKS" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "Authentification SOCKS annulée par l'utilisateur" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Requête rejetée ou échouée" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: Rejeté - impossible de contacter identd" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: Rejeté - identd rapporte un nom d'utilisateur différent" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "Code de réponse SOCKS inconnu" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "Code de version de réponse SOCKS inconnu" #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "Version de serveur SOCKS inconnue" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "Code d'error SOCKS: %d" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "Nombre d'essais excédés" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "Mauvaise entête auth: %s" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "Mauvaise redirection: %s" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "Ligne de status HTTP invalide: %s" #: src/network.c:447 msgid "403: forbidden" msgstr "403: interdit" #: src/network.c:450 msgid "404: page not found" msgstr "404: page non-trouvée" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "401: échec d'authentification HTTP" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "407: échec d'authentification proxy HTTP" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "Mauvais message de redirection du serveur" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "Erreur HTTP inconnue" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "%d: erreur de redirection" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "%d: erreur de client HTTP" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "%d: erreur de serveur HTTP" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "En train d'essayer d'établir la connexion avec le serveur dopewars\n" "local en utilisant le socket UNIX %s...\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Connexion établie. Utilisez Ctrl-D pour terminer votre session.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "Impossible de déterminer le fichier de configuration local." #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "Impossible d'ouvrir le fichier %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Connexion au serveur dopewars impossible\n" "(%s)\n" "Joueur IA termine d'une façon anormale." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Connexion établie\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Connecté au serveur SOCKS %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Authentification avec le serveur SOCKS\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Demande de connexion SOCKS vers %s...\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Utilisation de Socks.Auth.User et Socks.Auth.Password pour \n" "l'authentification SOCKS5\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Le joueur IA a débuté et tente de contacter le serveur sur %s:%d..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Le joueur IA a terminé correctement.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Connexion au serveur perdue!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Utiliser le nom %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Joueurs dans ce jeu:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s joint la partie.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s a quitté la partie.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Déplacement de %tde avec %P en cash et %P en dettes\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Le joueur IA a été tué. Fin normale.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Temps de jeu écoulé. La partie est terminée.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Joueur IA éjecté du serveur.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Le serveur a terminé.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendre %d %tde à %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Acheter %d %tde à %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Acheter un %tde pour %P au marchand d'armes\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Dettes de %P payées au prêteur à gages\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Le prêteur à gages est situé à %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Le marchand d'armes est situé à %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Le bar est situé à %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "La banque est située à %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Tu oses te prendre pour un pusher?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Un singe apprivoisé pourrait faire mieux..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Tu penses que t'es assez toff pour dealer avec du monde comme moi?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzzz... tu vends des bonbons ou quoi?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Je crois que je vais devoir te tuer pour ton propre bien." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Ce fichier binaire a été compilé sans le support réseau et donc ne peut pas " "se comporter comme un joueur IA.\n" "Recompile en passant --enable-networking au script de configuration." #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Le plugin sélectionné (\"%s\") est invalide.\n" "(%s est disponible, utilisation de \"%s\".)" #~ msgid "Version %s" #~ msgstr "Version %s" #~ msgid "Messages" #~ msgstr "Messages" dopewars-1.5.12/po/fr_CA.gmo0000644001565000007070000025526410355323337012470 00000000000000Þ•d<‹\6ˆH”‰H?IH^I"§IÊI5ÚI5JØFJöK.LNEL”L¤L¾LˆÒL[M&]M$„M'©M'ÑM ùM N NN-NJNdN|N—N·NÑNèNOO;OSO#mO$‘O¶OËOßOóOP P 'P1PAPJPSPiPP’P›P+ºPæP'Q(+QÜTQ=1RoRˆR™R¯RÆRáR óR ÿR S SS&S9S MSXSnS‚S!•S·SÈS%çS T-TBTYTtT ‘T ²TÓTîT UU5UHUfU „U/’UÂUÒU"ÙU$üU!V(V1V9VBVJVQVYVaV pV }V‰V¦V·VËVßV ñVÿVW W0WDWVWgWxW ŒW–WW¤W«W²WÒWáW%õWX $X#EXiXrX(uX"žX;ÁXýXY -Y:YIY-NY|Y“Y°YÂY ÚY+æY+Z>ZYZByZ!¼Z"ÞZ#[J%[Mp[ ¾[!ß[\0\$J\o\ ƒ\Ž\’\¦\ À\á\ò\ ÷\]]]J&]q]$_'_0_6_ ?_I_M_ V_d_%z_ _¥_Ã_Ú_%õ_5`Q`6o`¦`Ä`(ä`( a)6a)`a*Šaµa*Òa´ýa#²bÖb$ïbc c#c ,c 9c Ec,RccJ‡cÒcÛc ãc ïc­üc"ªd*Ídød e!9e [e"|e%ŸeÅe;Ýef,f;Lfˆf:¤fßf<öf,3g `gkgpg1gÁg$Õg/úgK*h1vh¨hVÃh$i?i[iki€i ii£i*§i(Òiûijj).jXj ]j"gjŠj#“j·j¾j Æj Ôj0àjkk /k<;k+xk¤k©k ®k¸kÇk&ákll(l0l&Dlklqlºl»Jmnn,nACn…nn-–nÄn+án" o0oPokoqoGo?×oEp2]pp¤pÄpÌpÓpëpðpqqq9q@q Wqbq&iqq­q Êq Öqàq ïqúqr'r >r_rpr r0¢r/ÓrAsEs!cs%…s0«s3Üs+tx.Hxwxx¤x!¹x$Ûx'y((yQyoy3wy «yµy Ôyßy4óy(z@zXzmz!‚z'¤z(Ìzõz{.2{a{7f{ž{¢{,§{Ô{å{||-|>|T|f|y|‘|ª|»|Ð|ì|} }4}+N}z}}«}Ê}Î}Õ}Þ} ó}þ}™~™©~)Cm|)›&Åìó€$*€'O€w€—€¯€)È€ò€" .:J/jš²¸ÀÔìðó&‚,5‚"b‚ …‚$‚µ‚ ½‚Ç‚΂ Ó‚=à‚ ƒ +ƒ%7ƒ"]ƒ€ƒˆƒ'¨ƒ0Ѓ„„7„P„p„ù……9†7¹†2ñ†O$‡t‡$„‡©‡ ®‡,º‡!ç‡ ˆ)ˆ:ˆKˆQˆcˆzˆ*˜ˆÈ Öˆâˆéˆ òˆüˆ‰ ‰5%‰[‰&r‰A™‰Û‰ á‰í‰ö‰&Š;Š@WŠ˜Š¬Š)ÉŠ!óŠ‹2‹L‹d‹2‹*²‹!Ý‹ÿ‹ŒŒ5Œ LŒ#XŒ|ŒŽŒ “ŒŒ¬ŒÃŒ,ÈŒ-õŒ# *.6e#‚¦ ®+¼èŽl!ŽjŽŽ$ùŽ ()*R!}"Ÿ/Â.ò/!<Q;Ž4Ê:ÿ6:‘6q‘(¨‘4Ñ‘%’.,’2[’ Ž’™’7 ’Ø’ Þ’è’“ “ “ “3“ B“ P“ ^“l“)r“#œ“(À“'é“”,0”7]”•”´”4Ë”2•,3• `•1•(³•,Ü• ––/–-6–"d–"‡–*ª–Õ– î–—L,—ny—%è—0˜0?˜ p˜(‘˜º˜;Ö˜;™1N™(€™*©™)Ô™6þ™5šœÓšp›4œCœTœ qœp|œoíœ]0t!¥"Çê,žL0žM}žËžLßž,Ÿ4Ÿ#JŸnŸ ‡Ÿ¨Ÿ)ÅŸïŸ  - 0 @ ¤T¦ ù­&®,,®"Y®|®O™®Wé®GA¯H‰¯Ò¯*ᯠ°°C$°€h°-é°±»±)Û±@² F² g²s²†²‹²¦²À²Û²/í²³):³ d³!r³/”³)ijî³( ´5´$>´/c´.“´)´%ì´$µ7µ:Tµµ•µ(˜µ@ÁµX¶'[¶4ƒ¶ ¸¶)Ù¶·!·â%·"¸+¸%=¸7c¸5›¸,Ѹ þ¸¹,;¹/h¹˜¹.¸¹ ç¹võ¹ lºFzºFÁº5»>» Z»f»…»”»(¯»(Ø»¼*¼;¼Y¼l¼-‹¼¹¼Ѽ@ì¼9-½4g½*œ½1ǽ ù½ ¾¾¾!¾)¾0¾ 9¾D¾M¾T¾[¾a¾g¾k¾o¾x¾ }¾‡¾޾ ¨¾µ¾,º¾%ç¾ ¿*)¿#T¿x¿˜¿$·¿#Ü¿(À%)ÀOÀbÀ,À"®À"ÑÀ$ôÀÁ,Á2Á8Á1@ÁrÁvÁ{Á„ÁÁ”Á Á9©ÁãÁóÁUÂHfÅH¯ÅøÅ ÆÆÆ3 ÆTÆkÆoÆ tÆ €ÆGŽÆ ÖÆäÆ*úÆ%Ç 6ÇAÇQÇ `ÇnÇ €Ç5ŽÇ+ÄÇFðÇ7È@ÈOÈ_ÈgÈ8pÈt©ÉEÊtdÊ ÙÊúÊ5Ë6JËÌËïNÌ>>ÍZ}ÍØÍéÍΜιÎ/»Î3ëÎ2Ï1RÏ „Ï Ï ›Ï§Ï¸ÏÓÏëÏÐ(!ÐJÐbÐ"yМйÐÕÐóÐ.Ñ,>ÑkхќѲÑÅÑÚÑîÑÒÒ!Ò*ÒDÒ_ÒyÒ ‚Ò+£ÒÏÒ ïÒÓà0Ó:ÔLÔbÔwÔŽÔ¦Ô¾Ô ÑÔ ÞÔ éÔ ôÔ ÿÔ ÕÕ2Õ:ÕQÕ`ÕtÕ”Õ%¤Õ%ÊÕðÕ, Ö:Ö.WÖ†Ö$£Ö-ÈÖ)öÖ × 6×W×p×× ×¼×*Ë×ö× Ø/Ø-AØ oØ|ØØ ŸØ ¬Ø¶Ø ÍØ רáØúØ Ù Ù7Ù+MÙyÙ٤ٵ٠ÆÙÔÙçÙýÙÚ"ÚAÚ\ÚeÚkÚrÚzÚ"ƒÚ ¦Ú´Ú(ÊÚ óÚ!þÚ+ Û LÛWÛ%ZÛ€ÛCžÛ%âÛÜ"Ü7ÜLÜ8RÜ‹Ü ¢ÜÃÜ!ÚÜüÜ! Ý(-ÝVÝ"hÝj‹Ý%öÝ&Þ'CÞEkÞk±Þ&ß'Dßlß2ˆß+»ßçß ýßà à%%à)KàuàŽà •à¡à ¼àÇàLÏà˜á3µâéâùâ ÿâ ãã ã,ãAã,Wã„ã"‰ã ¬ãÍã(éã<ä)Oä;yä0µä&æä: å:Hå;ƒå;¿å;ûå/7æ'gæÍæ=]ç!›ç:½çøç ýç èè"è1è-IèwèVè Öè àèìèüèÊé-Ùé3ê!;ê ]ê'~ê%¦ê&Ìê1óê%ëB8ë{ë0ë'¾ëæë8ì=ì<Sì.ì¿ì Ôì3Þì=í-Pí5~íK´íUî;Vî%’îx¸î31ïJeï°ïÂïØïèïûïð>ð,Dðqðwð–ð+ªðÖð Üð'çð ñ(ñ CñMñUñ iñJuñÀñÄñ ÚñJåñ10òbòfòuò‰ò¥ò&Âòéòñò óó-.ó\ó6cóÏšó´jôõ9õSõAmõ ¯õ »õ7Èõ*ö:+ö-fö,”ö$Áö æö%ðöQ÷Fh÷I¯÷Où÷Iø-iø—øŸø#²øÖøÛøíø ù"ù5ù;ù Rù]ù%eù ‹ù$¬ùÑù âùðù úú*-úXúrúúŸú,µú;âú7û=Vû@”û#Õû&ùû0 üTQü+¦üÒü.çü2ý)Iý4sý8¨ý'áý þ##þ!GþTiþ ¾þÉþ5Ýþÿ2ÿ4GÿE|ÿ#Âÿ3æÿ10L"}" ÃÝü5HQW_o ŠC—Ûõ$##H2l*Ÿ#Êî;ö 2< [hB|¿Ý÷$%2J*}#¨#ÌNð?4Ez~,‚¯ÆÜò!7FWnˆ™±Ë â"í$5Oh%ˆ®¶¾!Î ðþ¯œÇ-d ’ ± <Î / ; D b *} )¨ Ò î 0 12 d (| ¥ ¾ !Ð 5ò ( H N V (s œ   £ 1À 7ò +* V 0e  –  ¡ ­ ´ º =Ê 1,<^›,£2Ð8<OfŸ½7Ñ: 6DH{Ä(× 1%Djq‘¨­È!ß13J ^hq ƒ Ž&›9Â!ü/RN¡ §±!Å0ç@7x6®"å&$?"d>‡.Æ!õ. 4UlI}Çæ íù ")*"Tw 1‹&½0ä 2$W-sl¡o3~²ÁÙ$ó!$:7_3—+Ë.÷)&5P:†;Áý+"G$j" ²½7Ì 4:Nc€ž¯¿ ÓFà#' 9K '… %­ 5Ó I !#S!%w!@!=Þ!6"S"<n"6«":â"#7#N#8W# #±#/Î#+þ#$*$!O$Jq$l¼$+)%5U%‹%!«%/Í%ý%&3&1R&.„&(³& Ü&Bý&±@'ªò'«(DI)Ž)%®)Ô)…Ü)…b*!è*< +0G+6x+¯+,É+Cö+M:, ˆ,(©,Ò,Ú,0ï, -(>-!g-2‰-¼-)Ù-..°.ÔÎ4£=6·=<î=0+>\>]u>dÓ>U8?VŽ?å?2ù?,@4@CD@uˆ@5þ@ 4AÓ>A]BGpB'¸BàBéBúB'þB&CFC eC$sC!˜C(ºCãC&ìC2D+FD,rDIŸDéD#ñD$E!:E-\E-ŠE+¸E,äEZFlFrF0uFc¦FS G#^G+‚G®G%ÇG&íGHH#I@I-SI>I0ÀI,ñIJ9J*QJ.|J«J3ÃJ÷J—K  K/ªK+ÚK%L,L JLXLwL/‡L-·L<åL"M%3MYMwM*M;¸MôM" NH/N>xN)·N'áN7 O AO KO YO cOoOxO €O‹OžO ±O »OÆO ÌOØOÝO áO íOøOPP%:P`P!eP'‡P/¯P%ßP(Q!.Q;PQ#ŒQ°Q(ÍQ"öQ+R/ERuR”R¨R¼RÖRìRñRöR0üR-S3S:SKSTS\S eS/qS¡S&²S„ÙSD^W`£WXX X(X-.X\XqXuXzXŠX@›XÜXíX3Y9Y KYYY oY}YY Y8«Y>äYJ#ZnZ‚Z•Z©Z°Z¿CDðÄ|½A"’$*¼ˆÇC.á?ê¨þbo6øQR4ø‡MM®dãˆa!â™›!þG_<O—ÌR-òˆ ÒŒ0ÄìðTÆÑ ±’À I•¯1+.<G HNÛÚj†Æl6ÎÙOȧ*OxåžëÕ0-‡­Ý€›íHªýd?HJZ ô7ýMÜ÷%é¦d -)kõÞÛüݾ“¸.üÕŸ„×UË­8T72Е =Xî µ?Ë7nìó(Ÿ÷!eœ7ƒ {hÈRòK4T¦½Šr¯ÛR”ÙŸBíäî  w|Ô §«W­Á&ú¤'./ŠSEbbœz楔¨ÞØñB“ƒI–)G@_±3:À _'`qrÚ çøïÇoéSúK>ÍÐÖ1¬âmB¥8¨Ó:,=œùÄÒÃóòëNì5ÂØÃ€æ4ylá!OÅ T ¿Ç1²ÉK£^´š¶—=ã·6PEG*’2Ô\)YÓÍXj¾´Ã•| g¬[¸`]è¤fn F®xç© Ù°‰€³éQ[ºcYÞW>Ds2å«§ŽDF‹»gA×hã;<Œ‘ wå1¢â8šÁëôµk©FÿPP\¹´&žày“:Vf'mZ,V³³v@*Ô{5¡áÉE}î\–˜m%+(¦íAÑÝ‚=&˜ÒX`;}x<·+iXù$UÿVÏps—õ:‘ ¡#±‘àl¥r¤"9[~¾vpJ¼$Ø#8~ú¿$…NaZ0În_ñ`]qLHºö¸;9u¯MÌS?°sºJQðe9 –žÖS#ïÏ>kà„0†/ç¡Á÷¬öoªP^»ÜŽW¹‰»‚£}N/p¶À]j9†Ì¢Ž,ßè²%¹‹õÎÊÍ5üÈ ”2 ïyäYý…¶B¼µñDU3 ›æ^Zô[cIÜÕä]u#™;Å~(A)ûc·ÊÓ(zûÖUVh²½Å{Š@štgÉeL@ÂÚÆ£3LavcIÿb"tÏ%ƒtFJiû‰-q‡u ^ê3Ê¢˜6ö5…ß©„,Âw+ËYó'CŒÑLC«K ª/i®>aßêW™&Qzd‚Ef"‹è\аþ×4ù For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -h display this help information -v output version information and exit dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -h, --help display this help information -v, --version output version information and exit dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. $% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-19Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/DealDrugs drug name/%tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/GTK Stats: Guns/%Tde%/Inventory drug name/%tde%/Inventory gun name/%tde%/LoanShark window title/%Tde%/Location display/%tde%/Location to jet to/%tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%c. %-10tde %8P%d of %d%d. %tde%d: HTTP client error%d: HTTP server error%d: redirect error%m-%d-%Y%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no larger than %d - ignoring!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Enter a blank username to cancel)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk401: HTTP authentication failed403: forbidden404: page not found407: HTTP proxy authentication failed<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAttempting to connect to local dopewars server via Unix domain socket %s... Authenticating with SOCKS serverAuthenticating with SOCKS server Authentication RequiredAuthentication for LocalName with the metaserverAuthentication required for realm %sAvailable space: %dBSDTPLGFJQBSLBad auth header: %sBad metaserver reply "%s"Bad redirect message from serverBad redirect: %sBankBank %17PBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBrowse...BuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot create server (listening) socket (%s) Aborting.Cannot get metaserver detailsCannot initialise WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash %17PCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armourCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not set up Unix domain socket for admin connections - check permissions on /tmp!Could not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolCurrency.Prefix=TRUED O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt %17PDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armourDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s:%u (%s)Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth %3dHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf TRUE, use SOCKS for metaserver communicationIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid HTTP status line: %sInvalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaserverMetaserver hostnameMetaserver name to report/get server details to/fromMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of a proxy for metaserver communicationName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of tries exceededNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for HTTP Basic authenticationPassword for HTTP Basic proxy authenticationPassword for SOCKS5 authenticationPassword: Path of the script on the metaserverPay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort for communicating with the proxy serverPort for metaserver communicationPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedProxy Authentication RequiredProxy authentication required for realm %sPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication cancelled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSanitized away a RandomOfferSaturday Night SpecialScript pathSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSound nameSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Could not connect to metaserver (%s)Status: Obtaining server information from metaserver...Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in admin mode. Recompile passing --enable-networking to the configure script. This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and MetaServer.Proxy.Password variablesUnable to authenticate with HTTP server; please set MetaServer.Auth.User and MetaServer.Auth.Password variablesUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown HTTP error %dUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUnknown metaserver error code %dUpUp since : %sUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colours (by default colours are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colours --no-colour (by default colours are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format User name: Username for HTTP Basic authenticationUsername for HTTP Basic proxy authenticationUsername for SOCKS5 authenticationUsers currently logged on:- Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP authenticationUsing MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy authenticationUsing Socks.Auth.User and Socks.Auth.Password for SOCKS5 authenticationUsing Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public Licence Waiting for connect to metaserver at %s:%u...WarningWarning: your client is too old to support all of this^server's features. For the full "experience", get^the latest version of dopewars from the^website, http://dopewars.sourceforge.net/.Wasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeb proxy hostnameWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initialisedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou appear to be using an extremely old (version 1.4.x) client.^While this will probably work, many of the newer features^will be unsupported. Get the latest version from the^dopewars website, http://dopewars.sourceforge.net/.You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Refresh_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licencedopewars serverdopewars server terminating.dopewars server version %s commands and settings help Displays this help screen list Lists all players logged on push Politely asks the named player to leave kill Abruptly breaks the connection with the named player msg: Send message to all players save Save current configuration to the named file quit Gracefully quit, after notifying all players = Sets the named variable to the given value Displays the value of the named variable [x].= Sets the named variable in the given list, index x, to the given value [x]. Displays the value of the named list variable Valid variables are listed below:- dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars 1.5.10 Report-Msgid-Bugs-To: POT-Creation-Date: 2005-12-30 13:30-0800 PO-Revision-Date: 2004-10-29 19:55-0400 Last-Translator: François Marier Language-Team: French MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Pour afficher l'aide sur les options disponible sur la ligne de commande, tapez dopewars -h sur votre prompt UNIX. L>iste des serveurs sur le méta, et en sélectionner un Q>uitter (vous pouvez alors démarrer un server en tapant "dopewars -s") ou J>ouer en solo ? A>ller se faire foutre E>spionner un autre pusher (cout: %P) D>onner un autre pusher aux boeufs (cout: %P) -h affiche cet écran d'aide -v affiche la version et quitte dopewars est un Copyright (C) Ben Webb 1998-2005, et distribué sous GNU GPL Envoyer les bugs à l'auteur : benwebb@users.sf.net -h, --help affiche cet écran d'aide -v, --version affiche la version et quitte dopewars est un Copyright (C) Ben Webb 1998-2005, et est distribué sous la GNU GPL Envoyer les bugs à l'auteur : benwebb@users.sf.net -u fichier utiliser le plugin de son "fichier" -u, --plugin=FICHIER utiliser le plugin de son "FICHIER" Es-tu certain? Tu trouves %P sur le corps! Tu fouilles le corps!# Ceci est le journal de démarrage de dopewars. Il contient # les messages d'information résultant de la lecture du # fichier de configuration et autre... $% de résistance aux coups de gun de chaque pute% de résistance aux coups de gun de chaque policier% de résistance aux coups de gun de chaque adjoint% de résistance aux coups de gun de chaque joueur%-19Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/Banque window title/%Tde%/Combat: Putes/%d %tde%/Endroit présent/%tde%/Vendre nom de la drogue/%tde%/GTK Marchand d'armes window title/%Tde%/GTK Stats: Putes/%Tde%/GTK Stats: Guns/%Tde%/Inventaire nom de la drogue/%tde%/Inventaire nom du gun/%tde%/Prêteur window title/%Tde%/Affichage de l'endroit/%tdeEndroit vers où se déplacer%/Renvoyer une pute dialog title/Renvoyer %Tde%/Sack Bitch menu item/_Renvoyer une pute...%/Espion: Drogues/%Tde...%/Espion: Guns/%Tde...%/Stats: Drogues/%Tde%/Stats: Guns/%Tde%Tde %3d Espace %6d%Tde transporté(e)s%Tde en vente/demande ici%c. %-10tde %8P%d de %d%d. %tde%d: erreur de client HTTP%d: erreur de serveur HTTP%d: erreur de redirection%d-%m-%Y%s - %s - te courent après, man!%s et %d %tde - %s - te courent après, man!%s est arrivé avec %d %tde, %s!%s ne peut pas être moins de %d!%s ne peut pas être moins de %d%s n'a pas l'air d'être un fichier de scores valide. S'il s'agit d'un fichier de scores d'une version précédente de dopewars, veuillez tout d'abord le convertir au nouveau format en utilisant la commande: dopewars -C %s%s a accepté votre %tde!^Tape G pour contacter ton espion.%s s'est enfuit %tde!%s se sont échappés!%s a quitté la partie.%s a quitté la partie. %s a rejeté votre %tde!%s t'a pogné, man!%s est "%s" %s est %P %s est %d %s est %s %s est { %s joint la partie!%s joint la partie. %s tué %s quittes le serveur!%s espionne %s%s tue %s par balle%s tire sur %s et tue une %tde!%s tire sur %s.%s tire sur %s... et manque son coup!%s te tire dessus... et tue une %tde!%s te tire dessus.. et rate!Tentative d'espionnage de %s sur %s: REFUSÉE%s reste debout et le prend.Le rapportage par %s de %s à la police: REFUSÉ%s a rapporté %s à la police%s essaye de décrisser, mais échoue.%s t'as massacré, mam! Ça chie ton affaire...%s est maintenant connu sous le nom de %s%s est maintenant %s.%s: déplacement vers %s INTERDIT%s: Espion offert par %s%s: Indice de %s%s: l'offre etait au nom de %s%s: indice par %s finit OK.%s[%d] est %s %s^%s est déjà là!^Tu Attaque, or t'Evade?(%s disponible) (Mort/es)(Entrez un nom d'utilisateur vide pour annuler)(L'erreur ne peut pas être affichée en UTF-8)(Restant/es)(Repose en Paix), L>aisser tomber, C>ombattre, D>onner, S>'en aller ailleurs, L>ister, V>endre, P>lacotter, R>éveiller, ou Q>uitter? .38 Modifié/Tâches/R_apports des espions.../Tâches/_Espionner.../Tâches/_Rapporter un joueur à la police.../Jeu/Activer les _sons/Jeu/_Abandonner.../Jeu/_Nouveau.../Jeu/_Options.../Jeu/_Quitter/Aide/_À propos.../Liste/_Inventaire.../Liste/_Joueurs.../Liste/_Scores.../Parler/Avec _tout le monde.../Parler/Avec un _joueur.../_Tâches/_Jeu/_Aide/_Liste/_Parler401: échec d'authentification HTTP403: interdit404: page non-trouvée407: échec d'authentification proxy HTTP<- _VendreUn jour sans dope, c'est la nuit.Un singe apprivoisé pourrait faire mieux...A:AttaquerASLe joueur IA a été tué. Fin normale. Joueur IA éjecté du serveur. Le joueur IA a débuté et tente de contacter le serveur sur %s:%d...Le joueur IA a terminé correctement. Abandonner cette partie ?Abandonner la partieÀ propos de dopewarsAcideLes accros achètent de la dope (%tde) à des prix de fou!Addresse déjà utiliséeFamille d'adresses non-supportéeCommand administrativeConnexion administrative terminéeSergent BigrasArgent de départ de chaque joueurMontant des dettes en débutant la partieT'es tu gelé là ?Êtes-vous sur de vouloir quitter? Es-tu certain de ce que tu fais ? (Tous les %tde et les %tde transportés par cette %tde vont être perdus!)Demande de connexion SOCKS avec %s...Demande de connexion SOCKS vers %s... Pénalité d'attaque relative à un joueurConnexion au méta-serveur trop fréquente, attente du prochain timeoutEn train d'essayer d'établir la connexion avec le serveur dopewars local en utilisant le socket UNIX %s... Authentification avec le serveur SOCKSAuthentification avec le serveur SOCKS Authentification nécessaireAuthentification du nom local avec le metaserveur Authentification requise pour le domaine %sEspace disponible: %dAVLPRLDCSQAVPMauvaise entête auth: %sMauvaise réponse du méta-serveur "%s"Mauvais message de redirection du serveurMauvaise redirection: %sBanqueBanque %15PLa banque est située à %s Banque: %PBarettaBasé sur le jeu Drug Wars par John E. Dell, dopewars est une simulation d'unBasé sur le jeu de John E. Dell -Drug Wars- , dopewars est une simulation d'un marché de la drogue imaginaire. DopeWars est un jeu qui vous permet d'acheter ou vendre de la drogue et essayer d'éviter les polices! La première chose à faire est de rembourser le prêteur à gages. Ensuite, votre but est de faire le maximum d'argent (et de rester en vie!) Vous avez un mois de temps de jeu pour faire fortune. Soyez verbose en lisant le fichier de configurationFrançois MarierLavalVieux-PortParcourir...AcheterAcheter %tdeEn acheter combien ?Acheter %d %tde à %P Acheter un %tde pour %P au marchand d'armes CLQJTu oses te prendre pour un pusher?Peut être extrêmement bon marchéPeut être extrêmement chèreImpossible de s'attacher au port %u (%s)Impossible de créer une copie (%s) du fichier des scores: %sImpossible de créer le fichier pid %s: %sImpossible de créer un socket d'écoute (%s) pour le serveurImpossible d'obtenir les détails du méta-serveurImpossible d'initialiser WinSock (%s)!Impossible d'installer le handleur d'interruptions SIGHUP!Impossible d'installer le handleur d'interruptions SIGINT!Impossible d'installer le handleur d'interruptions SIGTERM!Impossible d'installer le handleur d'interruptions SIGUSR1!Ne peux pas installer le handleur d'interruptions SIGWINCH!Impossible d'installer le handleur de pipeline!Impossible de lire sur le socket réseauNe peut pas ouvrir le fichier des meilleurs scores %s. (%s) Vérifiez que vous avez les permissions pour accéder ce fichier ou répertoire ou specifiez un autre fichier et chemin d'accès avec la commande -f.Impossible d'ouvrir le fichier des meilleurs scores (%s): %s.Impossible de rejoindre le réseauNe peut pas commencer la bataille - pas de gun à utiliser!CashCash %17PArgent: %PParc LafontaineChanger de nomExpression "bon marché"Choisir une job à donner à une de tes %tde...CocaïneLes récoltes des serres hydroponiques dépassent les attentes, c'est le temps de fumer!Commande:CommentaireCommentaire: %sÎle Sainte-HélèneLa configuration ne peut seulement être modifiée que lorsqu'aucun joueur n'est connecté. Attendez que tous les joueurs se déconnectent ou éjecter-les avec la commande push ou kill et essayer à nouveau.Fichier de configuration enregistré comme %s Félicitations! Vous êtes dans les meilleurs scores!Connextion au serveur SOCKS %s...Connecté au serveur SOCKS %s... Connexion abandonnée à cause d'un échecConnexion terminée par l'autre partieConnexion refusée par les règles SOCKSLa connexion est brisée à cause d'un buffer pleinConnexion établie Connexion établie. Utilisez Ctrl-D pour terminer votre session. Connexion refuséeConnexion réinitialisée par l'ordinateur distantConnexion au serveur perdue - Mode soloConnexion au serveur perdue! La connection au serveur est perdue. Change en mode SoloCritique constructiveCritiques constructives Andrea Elliot-Smith Pete WinnContrôle le nombre de messages dans le journalArmure d'un policierPoliciersLes boeufs ne peuvent pas attaquer d'autres boeufs!Les boeufs ont mis la main sur un gros stock de dope (%tde) !Le fichier des meilleurs scores est corrompu!Coût pour envoyer une pute espionner le pusher ennemiCoût pour envoyer une pute donner des informations sur l'ennemi à la policeConnexion au serveur dopewars impossible (%s) Joueur IA termine d'une façon anormale.Impossible de déterminer le fichier de configuration local.Impossible d'ouvrir le fichier %s: %sImpossible d'installer le socket de domaine UNIX pour les connexionsadministratives - vérifiez les permissions sur /tmp!Ne peux pas démarrer dopewars en mode multi-joueursLes terroristes dirigent la maison blanche depuis les dernières élections.Symbole monétaireCurrency.Prefix=FALSED O P E W A R SV>endre des %tde, VTCRQDRSTaux d'intérêt quotidien sur l'emprunt avec le prêteur à gagesTaux d'intérêt quotidien du compte de banqueDégâtDommage infligé par chaque gunle marchand d'armesJour du mois durant lequel la partie débuteDetteDette %15PDettes de %P payées au prêteur à gages Dettes: %PPenalité de défense relative à un joueurSupprimerDéposerArmure d'un adjointDescriptionDiviseur sur le prix des drogues lorsqu'elle sont offertes à prix très basTu Courir ou combattre ?Tu cours ?Tu veux D>époser de l'argent, R>etirer de l'argents, ou S>acrer ton camp ?Est-ce que ta mère sait que tu vends de la dope ?BasLaisser tomberLaisser tomber %tdeEn laisser tomber combien ?Vente de drogue et rechercheVente de drogue et recherche Dan WolfDroguesLa drogue est votre amie !S:Se sauverTraduction québécoiseTraduction québécoise François MarierErreurImpossible de lire le fichier des meilleurs scores: %sErreurs lors de la lecture du fichier de configuration. Certaines préférences pourraient ne pas fonctionner correctement. Portez attention aux messages figurant sur la sortie standard pour plus de détails.Erreurs lors de la lecture du fichier de configuration. Certaines préférences pourraient ne pas fonctionner correctement. Voir le fichier "dopewars-log.txt" pour plus de détails.Expresion "dispendieux" 1Expresion "dispendieux" 2Testeurs maniaques du jeuTesteurs maniaques Katherine Holt Caroline MooreS:Se battreC>ombattre, Impossible de se connecter au méta-serveur à %s:%u (%s)Impossible de contacter le serveur de nomsImpossible d'envoyer un message de notification du serviceImpossible d'installer un handleur de serviceImpossible d'obtenir le status du service NTImpossible de démarrer le service NTSe battreFichier dans lequel écrire le journalSuivant votre indice, les boeufs ont attaqué %s, qui s'est échappé avec %d %tde. Suivant votre indice, les boeufs ont pogné %s, qui est mort par balle!Pour afficher l'aide sur les options disponible sur la ligne de commande,Chaîne de formattage utilisée pour les drogues dispendieuses la moitié du tempsNombre de tours dans une partieTemps de jeu écoulé. La partie est terminée. GénéralPlateau Mont-RoyalLe marchand d'armes est situé à %s GunsGuns rechargés...M E I L L E U R S S C O R E SHashC'est vous que j'ai vu à la télé ?SantéSanté %3dSanté: %dHéroïneHeille man, les prix du %tde sont la:Heille man, c'est quoi ton _nom?Heille man, comment tu t'appelles ? Meilleurs scoresNom de l'hôteImpossible de trouver l'hôteNom: Combien que t'en prends ?Combien d'unités veux-tu crisser à terre? Combien que tu en vends? Combien de cash tu rends ?Combien d'argent?Je suis une crevette!Bon chu trop décriss, j'm'en vas me coucher.Je sens un désir incontrôlable de teindre mes cheveux bleusSavais-tu que l'américain moyen a une seule testicule ?Ça t'arrive tu de conduire la nuit avec des lunettes fumées ?Ta mère vient de faire des bons gâteaux avec un peu de ton Hash.J'ai pas toujours été une femme tséC'est à vous l'éléphant rose là-haut ?Chu sûre que tu fais des rêves très intéressants« Le seul moyen de se délivrer de la tentation, c'est d'y céder. » a dit Oscar WildeIcônes et graphiques Ocelot MantisIcônes et graphiquesSi VRAI, le symbôle monétaire précède les prixSi VRAI, le serveur est réduit dans le System TraySi VRAI, le serveur roule en arrière-planSi VRAI, utiliser SOCKS pour les méta-communicationsSi non-vide, le nom d'utilisateur à utiliser pour SOCKS4L'index dans %s doit être entre 1 et %dCode d'erreur interne: %dErreur interne du méta-serveur "%s"Ligne de status HTTP invalide: %sLe plugin sélectionné ("%s") est invalide. (%s est disponible, utilisation de "%s".)InventaireEspace d'inventaireJésus t'aime beaucoup plus que tu ne le sauras jamaisSe déplacer à un autre endroitS'en aller vers %tdeDéplacement de %tde avec %P en cash et %P en dettes Dis-lui non, tout simplement... ouin, peut-être... ah pis d'la marde!Tue une police pour le petit Jésus!Liste des chansons que vous pouvez entendre de loinListe des choses que vous pouvez arrêter de faireListe des choses que vous entendez dans le métroLister quoi? J>oueurs ou S>cores? Le prêteur à gages est situé à %s Documentation HTML localeEmplacement du prêteur à gagesEmplacement de la banqueEmplacement du marchand d'armesEmplacement du barEndroitsColleEcstasyMessage du jourMaintenance du pid file %sCentre-villeNombre maximum de clients (%d) dépassé - annulation de la connexionNombre maximum d'adjointsNombre maximum de droguesPrix normal maximumPrix normal maximum de chaque drogueNombre maximum de connexions TCP/IPNombre maximum d'adjoints accompagnant un policierNombre maximum de drogues à chaque endroitPrix maximum pour employer une puteMessageMessage affiché si cette drogue est offerte à prix très basMessage:-Messages (-/+ avancer/reculer)Méta-serveurNom du méta-serveurNom du méta-serveur auquel envoyer/recevoir les détails du serveurMinimiser dans le System TrayNombre minimum d'adjointsNombre minimum de droguesPrix normal minimumPrix normal minimal de chaque drogueNombre minimum d'adjoints accompagnant un policierNombre minimum de drogues à chaque endroitPrix minimum pour employer une puteMois durant lequel la partie débuteMultiplicateur pour les drogues lorsqu'elles sont offertes à prix exhorbitantsN:NonS>erveur suivant; P>récedent; C>hoisir ce serveur...SPCNomNom d'un serveur proxy de méta-communicationNom de chaque policierNom de chaque adjointNom de chaque adjointNom de chaque drogueNom de chaque type de gunNom de chaque endroitNom d'une puteNom d'un adjointNom de plusieurs putesNom de plusieurs adjointsNom de la banqueNom du marchand d'armesNom du fichier des scoresNom du prêteur à gagesNom du barNom du serveur auquel se connecterCode d'erreur du serveur de noms: %dAdresse réseau du serveurCode d'erreur réseau: %dPort réseau auquel se connecterLe sous-système réseau n'est pas prêtNouveauNouveauNouvelle partieNouvelle connexion administrativeNouveau nom: Pas de boeufs ou de gunsPas de client curses disponible - recompiler le programme en utilisant --enable-curses-client comme configuration, ou utiliser un client graphique (si disponible) à la place! Pas de client graphique disponible - recompiler le programme en utilisant --enable-gui-client comme configuration, ou utiliser un client curses à la place! Aucun autre joueur est en ligne en ce moment!Cet utilisateur n'existe pas. Aucun utilisateur en ligne! Nombre de tours de jeu (avec 0, le jeu ne se termine jamais)Nombre de secondes après quoi on peut répliquerQuantitéNombre de drogues dans le jeuNombre de guns dans le jeuNombre de guns que chaque policier possèdeNombre de guns que chaque adjoint possèdeNombre de lieux dans le jeuNombre de chansonsNombre de choses que vous entendez dans le métroNombre de choses que vous pouvez arrêter de faireNombre d'essais excédésNombre de types de policiers dans le jeuMaurice la grosse policeInspecteur GadgetToi, tu dois venir de Vancouver ?Une de tes %tde était un espion pour %s.^L'espion %s!L'opération n'est pas supportéeOpiumOptionsPas assez d'espace de tamponAucun descripteur de fichiers disponiblePCPJSFuck! Tu peux pas te sauver!Mot de passe pour l'authentification HTTP de baseMot de passe pour l'authentification proxy HTTP de baseMot de passe pour l'authentification SOCKS5Mot de passe: Chemin d'accès au script CGI sur le méta-serveurTout payerRembourser:PéyoteJouerTesteurs de jeuTesteurs Phil Davis Owen WalshJouer à nouveau? Liste des joueursJoueur éjecté à d'un temps de connexion trop longJoueur éjecté à cause d'une période d'inactivité trop longueJoueursLes joueurs sont déjà en train de se battre!Les joueurs sont déjà dans des batailles séparées!Les joueurs sont déconnectés après ce nombre de secondesJoueurs en ligne:-Joueurs dans ce jeu:- Joueurs: %d (maximum %d)Joueurs: -inconnu- (maximum %d)Merci de choisir le joueur a espionner. Votre %tde va ensuite offrir ses services aux joueur, et si elle a du succes, vous aurez ensuite acces aux stats du joueur avec le menu "Rapport des Espions". La %tde va partir, donc toutes les %tde ou %tde qu'elle porte seront peut etre perdus!Choisir le joueur à rapporter à la police. Votre %tde va aider les boeufs à attaquer ce joueur, puis venir vous faire son rapport quand vous la rencontrerez. Rappellez-vous que la %tde vous quittera temporairement, donc tout ce qu'elle porte (%tde ou %tde) pourra être perdu!Merci d'entrer le nom de l'hôte et le port du serveur:-Patientez... tentative de contacter le serveur dopewars...Patientez... tentative de contacter le méta-serveur...Les chiens de police te courent après sur %d blocs! T'as échappé: %tde! Présence policièrePrésence policiaire à chaque endroit (%)PortPort : %dPort par lequel communiquer avec le serveur proxyPort du serveur de méta-communicationPort: Le nom de votre machine serveurPèse sur une touche...PrixPrix de chaque type de gunProtocole non-supportéAuthentification proxy nécessaireAuthentification proxy requise pour le domaine %sLe bar est situé à %s Intimidation de %s WestmountQuestionQuitter la partieD:écrisserT>e sauver, Les éléments aléatioires sont nettoyésJe crois que je vais devoir te tuer pour ton propre bien.Enlève les références à la drogueListe de structure redimentionée à %d éléments Les pushers rivaux ont dévalisé une quincaillerie et vendent de la colle pas chèreRugerM É T R OR>ester sur place, Authentification SOCKS nécessaireAuthentification SOCKS annulée par l'utilisateurÉchec d'authentification SOCKSAuthentification SOCKS requise (entrez un nom vide pour annuler)Code d'error SOCKS: %dÉchec général du serveur SOCKSLe serveur SOCKS a réjeté toutes les méthodes offertesSOCKS: Type d'adresse non-supportéSOCKS: Commande non-supportéeSOCKS: Connexion refuséeSOCKS: Connexion à l'hôte impossibleSOCKS: Connexion réseau impossibleSOCKS: Rejeté - identd rapporte un nom d'utilisateur différentSOCKS: Rejeté - impossible de contacter identdSOCKS: Requête rejetée ou échouéeSOCKS: Le TTL a expiréEDACPTu nettoies une offre aléatoire.Spécial du samedi soirChemin du scriptNombre de secondes entre les tours des joueurs contrôlés par l'ordinateurSélectionner le fichier de sonVendreVendre %tdeEn vendre combien ?Vendre %d %tde à %P EnvoyerEnvoi des mise-à-jours au méta-serveur...Envoi du rappel au méta-serveur...ServeurServeur: %sDescription du serveur, rapportée au méta-serveurLe serveur se rapporte au méta-serveurMessage de bienvenue du serveur pour aujourd'huiMushMode soloJe pense que je vais aller à Vancouver cette annéeType de socket non-supportéVas te faire couper les cheveux le pouilleux!Désolé, ce serveur a une limite de %d joueurs et cette limite a été ^atteinte. Merci de réessayer plus tard.Désolé, ce serveur a une limite d'un seul joueur et cette limite a été ^atteinte. Merci de réessayer plus tard.Touche de tri pour la liste des drogues disponiblesFichier de sonSon de fin de la partieSon de début de la partieSon d'une balle qui atteint sa cibleSon d'une balle qui rate sa cibleSon d'arrivée dans un nouvel endroitSon à faire jouer lorsqu'un joueur se joint à la partieSon à faire jouer lorsqu'un joueur quitte la partieSon d'un message privé envoyé par un joueurSon d'un message publique envoyé par un joueurSon d'un joueur qui s'échappe avec succèsSon d'un joueur qui tente de s'échapper mais qui rateSon accompagnant la mort d'une pute ou d'un adjoint ennemiSon accompagnant la mort d'un autre joueur ou d'un policierSon d'un gun qui est rechargéSon accompagnant la more d'une de vos putesSon accompagnant votre propre mortSon accompagnant votre fuite réussieSon accompagnant votre fuite ratéeNom du sonEffets sonoresEffets sonores Robin Kohli, 19.5degs.comEspaceEspace %6dEspace utilisé par chaque gunSpeedEspionner le joueurRapports des espionsRapports des espions pour %sCommencer une nouvelle partieArgent de départDette de départNotre-Dame-de-GrâceStatistiquesStatus: En train de demander à SOCKS d'établir la connexion avec %s...Status: En train de contacter %s...Status: En cours d'authentification avec le serveur SOCKSStatus: Connecté au serveur SOCKS %s...Status: Ne peut pas se connecter (%s)Status: Ne peut pas se connecter au méta-serveur (%s)Status: Obtention de l'information du serveur à partir du méta-serveur...Status: En attente de l'utilisateurLe symbole monétaire précède les prixVRAI si un serveur SOCKS est nécessaire pour la connexion réseauVRAI si un numéro d'identification est nécessaire pour SOCKS4VRAI si le serveur doit se rapporter à un méta-serveurVRAI pour activer les sonsVRAI si la valeur de la drogue achetée doit être sauvegardéeVRAI si cette drogue peut être offerte à prix très basVRAI si cette drogue peut être offerte à prix exhorbitantsParler à tous les joueursParler au(x) joueur(s)Parler: Erreur de serveur de noms temporaire - essayer plus tardLe Marrakesh Express est arrivé!Tsé, le pape a déjà été juifLa commande utilisée pour lancer votre fureteurLa connexion a échouée à cause d'un timeoutLes boeufs t'ont vu jeter ton stock!Le symbôle monétaire (example: $)La première chose à faire est de rembourser votre dette au prêteur. Après,Le fichier des scores (%s) a été converti au nouveau format. Une copie de l'ancien fichier a été créée: %s. Le nom d'hôte d'un serveur SOCKS à utiliserLa madame à côté de toi dans le métro te dit,^ "%s"%sLe marché est saturé de buvardsÉchec dans le sous-système réseauLe numéro de port d'un serveur SOCKS à utiliserLe serveur a terminé. Le serveur est mort. Mode soloLe serveur est mort. Mode soloLa version du protocole SOCKS à utiliser (4 ou 5)Il n'y a pas autant d'argent dans la banque...Ya pas autant d'argent dans la banque...Ya rien comme avoir full de cashTu penses que t'es assez toff pour dealer avec du monde comme moi?Ce fichier binaire a été compilé sans le support réseau et donc ne peut pas se comporter comme un joueur IA. Recompile en passant --enable-networking au script de configuration.Ce programme a été compilé sans le support réseau et ne peut donc pas fonctionner en mode serveur. Recompilez avec l'option --enable-networking dans le script configure. Ce programme a été compilé sans le support réseau et ne peut donc pas fonctionner en mode serveur. Recompilez avec l'option --enable-networking dans le script configure. Temps en secondes pour que les connexions soient établies ou briséesRapporter un joueur à la policeTrop tard - %s vient juste de partir!ManteauImpossible de s'identifier avec le proxy HTTP. Veuillez configurer les variables MetaServer.Proxy.User et MetaServer.Proxy.Password.Impossible de s'identifier avec le serveur HTTP. Veuillez configurer les variables MetaServer.Auth.User et MetaServer.Auth.Password.Impossible d'ouvrir le fichier %sImpossible de lire le fichier de configuration %s (ligne %d)Impossible de lire le fichier des high scores %sImpossible d'écrire le fichier des meilleurs scores %sCritique non-constructiveCritiques non-consctructives James MatthewsMalheureusement, quelqu'un d'autre utilise déjà ton nom. Change-le Malheureusement, quelqu'un d'autre utilise déjà ton nom.Merci de le changer:-Fichier de configuration Unicodetapez dopewars -h sur votre prompt UNIX.InconnuErreur HTTP inconnueLe type de l'adresse SOCKS retournée est inconnuCode de réponse SOCKS inconnuCode de version de réponse SOCKS inconnuVersion de serveur SOCKS inconnueCommande inconnue - essayez "help" pour l'aide... Message inconnu: %s:%c:%s:%sCode d'erreur du méta-serveur inconnu: %dHautEn ligne depuis : %sUsage: dopewars [OPTION]... Jeu de vente de drogue. Basé sur "Drug Wars" de John E. Dell -b "noir et blanc" - n'utilise pas les jolies couleurs (par défaut, les couleurs sont utilisées si le terminal les supporte) -n ne pas se connecter aux autres serveurs dopewars (i.e. mode joueur unique) -a "antique" dopewars - rester proche de la version originale (cette option désactive les possibilités réseau) -f file spécifie un fichier a utiliser pour la table des high scores (par défaut, %s/dopewars.sco est utilisé) -o addr spécifie une addresse où le serveur peut être trouvé (e.g. nowhere.com) -s lance en mode serveur (note: pour un serveur non-interactif, simplement lancer: dopewars -s < /dev/null >> logfile & ) -S lance un serveur privé (i.e. ne pas contacter le méta-serveur) -p port spécifie le port réseau à utiliser (défault: 7902) -g file spécifie le chemin d'accès au fichier de configuration. Ce fichier est lu immédiatement quand l'option -g est rencontrée -r file maintient un fichier pid "file" pendant que le serveur tourne -l file écrit l'information du journal dans le fichier "file" -c crée et lance une intelligence artificielle (adversaire contrôlé par l'ordinateur) -w force le lancement en mode graphique (GTK+ ou Win32) -t force le lancement en mode texte (par défaut, le client graphique est lancé si possible) -P nom change le nom du joueur -C file convertit un vieux fichier de scores au nouveau format -A se connecte au serveur local pour l'administration Usage: dopewars [OPTION]... Jeu de vente de drogue basé sur "Drug Wars" de John E. Dell -b, --no-color, "noir et blanc" - n'utilise pas les couleurs --no-colour (par défaut, les couleurs sont utilisées si le terminal les supporte) -n, --single-player ne pas se connecter aux autres serveurs dopewars (i.e. mode joueur unique) -a, --antique "antique" dopewars - rester proche de la version originale (cette option désactive les possibilités réseau) -f, --scorefile=FILE spécifier un fichier a utiliser pour la table des meilleurs scores (par défaut, %s/dopewars.sco est utilisé) -o, --hostname=ADDR spécifier une addresse où le serveur peut être trouvé (e.g. nowhere.com) -s, --public-server lancer en mode serveur (note: pour un serveur non-interactif, simplement lancer: dopewars -s < /dev/null >> logfile & ) -S, --private-server lancer un serveur privé (i.e. ne pas contacter le méta-serveur) -p, --port=PORT spécifie le port réseau à utiliser (défault: 7902) -g, --config-file=FILE spécifie le chemin d'accès au fichier de configuration. Ce fichier est lu immédiatement quand l'option -g est rencontrée -r, --pidfile=FILE maintenir un fichier pid "file" pendant que le serveur tourne -l, --logfile=FILE écrit l'information du journal dans le fichier -A, --admin se connecter au serveur local pour l'administration -c, --ai-player crée et lance une intelligence artificielle (adversaire contrôlé par l'ordinateur) -w, --windowed-client force le lancement en mode graphique (GTK+ ou Win32) -t, --text-client force le lancement en mode texte (par défaut, le client graphique est lancé si possible) -C, --convert=FILE convertir un vieux fichier de scores au nouveau format Nom d'utilisateur: Nom d'utilisateur pour l'authentification HTTP de baseNom d'utilisateur pour l'authentification proxy HTTP de baseNom d'utilisateur pour l'authentification SOCKS5Utilisateurs en ligne:- Utilisation de MetaServer.Auth.User et MetaServer.Auth.Password pourl'authentification HTTP .Utilisation de MetaServer.Proxy.User et MetaServer.Proxy.Password pourl'authentification HTTP proxy.Utilisation de Socks.Auth.User et Socks.Auth.Password pour l'authentification SOCKS5.Utilisation de Socks.Auth.User et Socks.Auth.Password pour l'authentification SOCKS5 Utiliser le nom %s Nom valide, mais aucune information DNS disponibleVersionVersion :%sVersion·%-8s·Copyright·(C)·1998-2005··Ben·Webb·benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars est distribué sous la licence GNU GPL En attente de la connexion au méta-serveur à %s:%u...AttentionVotre version de Dopewars est trop vieille pour supporter les fonctionalitésde ce serveur. Pour une meilleure expérience, obtenez la dernière versionsur le site web de Dopewars: http://dopewars.sourceforge.net/Dans mon temps, il n'y avait pas de distributrices de balounes dans les toilettes maintenant?On utilise 20% de nos cerveaux, alors pourquoi ne pas en détruire 80% ?Vous avez les yeux rouges, jeune homme.FureteurNom du proxy WebPotQu'est-ce que tu veux crisser à terre? Qu'est-ce que tu veux acheter? Qu'est-ce que tu veux vendre? Où ça, man ? À qui que tu veux parler en privé ? Qui c'est que tu veux espionner ?Qui c'est que tu veux donner aux flics ?A>cheterVeux tu A>cheter, V>endre, ou P>artir?Voulez-vous... C>onnecter à un hôte/port différentWinSock n'a pas été correctement initialiséCette version de WinSock n'est pas supportéeLes vainqueurs ne se droguent pas... à moins qu'ils prennent de la drogueRetirerMot utilisé pour décrire une "pute"Mot utilisé pour décrire une drogue Mot utilisé pour décrire une armeMot utilisé pour décrire deux "putes" ou plusMot utilisé pour décrire deux drogues ou plusMot utilisé pour décrire deux armes ou plusLa télépathie existe ! Check les vibrations.Pète pis répète sont en bateau, pète tombe à l'eau, qui est-ce qu'il reste dans le bateau?O:OuiONYN^Vas-tu payer le docteur %P pour te ramancher?YN^Heille man! J'pourrais t'aider à transporter tes %tde pour un petit %P. Qu'est-ce que t'en dis ?YN^Il y a une sorte d'herbe qui sent bizarre ici!^Ça a l'air bon! Veux-tu la fumer?YN^Veux-tu acheter un %tde pour %P?YN^Veux-tu acheter un manteau plus gros %P?YN^Veux-tu visiter %tde?YN^^Veux-tu engager une %tde pour %P?Année durant laquelle la partie débuteToiVous semblez utiliser une très vieille version (1.4.x) du jeu. Cette versionrisque de fonctionner, mais plusieurs des nouvelles fonctionalités ne serontpas supportées. Obtenez la dernière version sur le site web de Dopewars: http://dopewars.sourceforge.net/Tu transportes en ce moment %d %tdeTu peux acheter %dTu peux en acheter %d, et en transporter %d. Tu peux pas te faire de cash avec ce que tu transportes %tde :Impossible de débuter une partie sans se nommer!T'as même pas réussi à être dans les scores!T'as pas de %tde à vendre!T'en n'as pas à vendre!T'as pas assez de cash pour acheter: %tde!T'as pas assez d'espace pour transporter: %tdeT'as pas assez de cash!T'as trouvé %d %tde sur un gars mort dans le métro!Tu t'es échappé!T'as halluciné pendant trois jours dans le trip le plus hot que t'aurais ^jamais pu imaginer! Ensuite t'es mort parce que ton cerveau s'est désintégré!T'as %d. Vous avez été expulsé(e) du serveur. Mode solo.Vous avez ete flushé du serveur. Mode solo.Vous avez un mois pour faire fortune.Tu entends quelqu'un jouer %sTu pognes %s!Tu pognes %s, et tue une %tde!T'as achevé %s!Sauvez des arbres, torchez-vous avec un lapin !T'as rencontré un chum, il t'a donné %d %tde.T'as rencontré ton meilleur chum pis tu lui a donné %d %tde.Tu as manqué %s!Vous devez entrer un montant positif!Tu restes là comme une momie.Tu t'arretes pour %s.Tu t'es fait pété la gueule dans le métro!Tu as besoin de plus de %tde pour transporter plus de %tde!Tu viens de crever man!Votre temps de dealage est terminéTa mère a fait des gâteaux avec un peu de %tde! Y'étaient vraiment bons!Votre espion travaillant pour %s a été découvert!^L'espion %s!Numéro du gun que les policiers utilisentZzzzzz... tu vends des bonbons ou quoi?^ (du moins, tu -penses- que c'est ça qu'elle a dit)_%c. %tdeMode _antique_Attaquer_Acheter ->_Annuler_Fermer_Connecter_Vendre de la dope_Laisser tomber <-_S'enfuir_CombattreA_ide_Décrisser!_Non_OK_Rafraîchir_Décrisser_Espionner (%P)_Rester sur place_Débuter la partie en mode solo_Rapporter un joueur à la police (%P)_Oui`Strangers on a Train` par Lovage`La petite grenouille` par André Guitar`Bonjour la police` par Rock et Belles Oreilles`Le p'tit pinson` par Normand L'Amour`Le monde est à pleurer` par Jean Leloup`Hawaïenne` par Les Trois Accords`Treat Me Mean, I Need The Reputation` par Xploding Plastix`Snake in the Garden` par Ramasutra`Rape Me` par Richard Cheese`Get Down Make Love` par Nine Inch Nails`P'tit change` par Groovy Aardvark`Libérez-nous des Libéraux` par Loco Locass`Quelle sorte de plotte c'est ça` par D-Natural`Slap My Bitch Up` par Prodigy`Porn` par Blue Jam`Sod Off` par Björk`Ventolin` par Aphex Twinarmés jusqu'aux dentsà %Pputeputesacheter, vendre et essayer d'éviter les polices!boeufboeufspassé à l'ennemiadjointsadjointDopewarsIA dopewarsdopewars est distribué sous la license GNU GPL.Serveur dopewarsServeur dopewars en train de terminer.Serveur dopewars version %s, commandes et configuration help Affiche l'aide list Lister les joueurs connectés push Demander poliment à un joueur de partir kill Éjecter avec force le joueur donné msg: Envoyer un message à tous les joueurs save: Enregistrer la configuration dans le fichier quit Quitter après avoir averti tout le monde. = Assigne une valeur à une variable Affiche la valeur de la variable donnée [x].= Assigne la variable dans la liste donnée à à la position x, à la valeur donnée. [x]. Affiche la valeur de la variable donnée dans la liste Les variables acceptées sont:- Serveur dopewars version %s attendant les connexions sur le port %d.Serveur dopewars version %s en attente de commandes d'administration.Essayez "help" pour l'aide.dopewars version %s droguedroguesenfuivaleur booléenne attendue (0, FALSE, 1, TRUE)connexion reçu de %sgungunsboire une bièrelourdement armésmarché de la drogue imaginaire. Dopewars est un jeu qui comprendlégèrement armésrelativement bien armésou C>ontacter vos espions et recevoir leur rapportsou P>as de job ? ou Q>uitter? leurs guns font pitiéfumer du hashfumer un cigarefumer une smokefumer du weedChaîne de formattage strftime() pour l'affichage du tourChaîne de formattage strftime() pour les dates dans le journalvotre but est de faire le plus d'argent possible (tout en restant vivant)!la Caisse populairele prêteur à gages`Ass Itch` par Kornle bartuédopewars-1.5.12/po/nn.gmo0000644001565000007070000024540410355323337012124 00000000000000Þ•c4‹L6xH”yH?IHNI"—IºI5ÊI5JØ6JöK.LN5L„L”L®LˆÂLKM&MM$tM'™M'ÁM éM ôM N NN:NTNlN‡N§NÁNØNóN O+OCO#]O$O¦O»OÏOãOöO P P!P1P:PCPYPoP‚P‹P+ªPÖP'óP(QÜDQ=!R_RxR‰RŸR¶RÑR ãR ïR ùR S SS)S =SHS^SrS!…S§S¸S%×SýST2TITdT T ¢TÃTÞTúTU%U8UVU tU/‚U²UÂU"ÉU$ìUVV!V)V2V:VAVIVQV `V mVyV–V§V»VÏV áVïVWW W4WFWWWhW |W†WW”W›W¢WÂWÑW%åW X X#5XYXbX(eX"ŽX;±XíXY Y*Y9Y->YlYƒY Y²Y ÊY+ÖY+Z.ZIZBiZ!¬Z"ÎZ#ñZJ[M`[ ®[!Ï[ñ[0 \$:\_\ s\~\‚\–\ °\Ñ\â\ ç\ñ\]]J]a]$ò^_ _&_ /_9_=_ F_T_%j__•_³_Ê_%å_5 `A`6_`–`´`(Ô`(ý`)&a)Pa*za¥a*Âa´ía#¢bÆb$ßbc cc c )c 5c,BcocJwcÂcËc Óc ßc­ìc"šd*½dèd e!)e Ke"le%eµe;Íe ff;}j}€}›}º}¾}Å}Î} ã}î}™ÿ}™™~)3]l)‹&µÜãÿ$€'?€g€‡€Ÿ€)¸€â€"û€ *:/ZŠ¢¨°ÄÜàã&þ,%‚"R‚ u‚$€‚¥‚ ­‚·‚¾‚ Â=Ђ ƒ ƒ%'ƒ"Mƒpƒxƒ'˜ƒ0Àƒñƒ„'„@„`„ùu…9o†7©†2á†O‡d‡$t‡™‡ ž‡,ª‡!ׇù‡)ˆ*ˆ;ˆAˆSˆjˆ*ˆˆ³ˆ ƈÒˆÙˆ âˆìˆòˆùˆ5‰K‰&b‰A‰‰ˉ щ݉æ‰&Š+Š@GŠˆŠœŠ)¹Š!㊋"‹<‹T‹2o‹*¢‹!͋Œ%Œ <Œ#HŒlŒ~Œ ƒŒŒœŒ³Œ,¸Œ-åŒ .&U#r– ž+¬ØòlŽj~Ž$éŽ (*B!m"/².â/<A;~4º:ï6*‘6a‘(˜‘4Á‘%ö‘.’2K’ ~’‰’7’È’ Î’Ø’ð’ ö’ ““#“ 2“ @“ N“\“)b“#Œ“(°“'Ù“”, ”7M”…”¤”4»”2ð”,#• P•1q•(£•,Ì•ù• ––-&–"T–"w–*š–Å– Þ–ÿ–L—ni—%Ø—0þ—0/˜ `˜(˜ª˜;Ƙ;™1>™(p™*™™)Ä™6î™%šÃš4a›–›§› Ä›pÏ›o@œ°œ0Çœ!øœ"=,VLƒMОL2žž‡ž#žÁž Úžûž)ŸBŸ _Ÿ€ŸƒŸ“Ÿ¤§¥ L­&X­,­"¬­Ï­Oì­W<®G”®HÜ®%¯*4¯_¯g¯Cw¯€»¯-<°j°»r°).±@X± ™± º±ƱÙ±Þ±ù±².²/@²p²)² ·²!Ų/ç²)³A³(_³ˆ³$‘³/¶³.æ³)´%?´$e´Š´:§´â´è´(ë´@µXUµ'®µ4Öµ ¶),¶V¶t¶âx¶"[·~·%·7¶·5î·,$¸ Q¸r¸,ޏ/»¸ë¸. ¹ :¹vH¹ ¿¹F͹Fº5[º‘º ­º¹ºغçº(»(+»T»*c»Ž»¬»¿»-Þ» ¼$¼@?¼9€¼4º¼*ï¼1½ L½ V½d½l½t½|½ƒ½ Œ½—½ ½§½®½´½º½¾½½˽ нڽὠû½¾, ¾%:¾`¾*|¾#§¾˾ë¾$ ¿#/¿(S¿%|¿¢¿µ¿,Ô¿"À"$À$GÀlÀÀ…À‹À1“ÀÅÀÉÀÎÀ×ÀàÀçÀ ðÀ9üÀ6ÁFÁUcÁH¹ÄHÅKÅ`ÅeÅkÅ3sŧžÅÂÅ ÇÅ ÓÅGáÅ )Æ7Æ*MÆxÆ ‰Æ”Æ¤Æ ³ÆÁÆ ÓÆ5áÆ+ÇFCNJǓǢDzǺÇlÃdž0É4·É>ìÉ+ÊIÊ6YÊ5ÊÝÆÊû¤Ë, ÌLÍÌ Í(Í?ÍrRÍÅÍ!ÊÍ!ìÍ*Î#9Î ]Î hÎ tÎ€Î‘Î°ÎÆÎÝÎ"âÎÏÏ 7ÏAÏHÏgÏ€Ï%šÏ#ÀÏäÏùÏÐÐ+Ð >ÐJÐSÐcÐlÐuЉМвлÐ&×ÐþÐ-Ñ,IÑ÷vÑCnÒ²ÒÉÒÚÒñÒ Ó$Ó 8Ó FÓ PÓ ZÓdÓmÓƒÓ šÓ¥Ó¹Ó ÐÓÜÓüÓ Ô#)ÔMÔlԇԜԳÔ-ËÔ"ùÔÕ4ÕKÕ bÕƒÕ ”ÕµÕ ÓÕ9áÕÖ.Ö,5Ö!bÖ„Ö”Ö£Ö «ÖµÖÄÖÍÖÜÖ#åÖ × ×!)×K×a×}בנװ×Å×Ô×ã×úר!Ø6Ø MØWØ^ØfØoØwØ •Ø¢Ø(·ØàØèØ(Ù1Ù:Ù1=Ù(oÙ@˜ÙÙÙøÙÚ #Ú/Ú,4ÚaÚ sÚ”Ú§Ú ¼Ú(ÈÚ'ñÚÛ#.ÛDRÛ—Û¶Û'ÖÛGþÛCF܊ܧÜÅÜ+ÙÜ%Ý+Ý ;ÝFÝJÝiÝ)„Ý ®ÝÏÝ ÔÝÞÝðÝùÝDÞiFÞ&°ß×ß àßîßõßà àà(à+@àlàqà‘à¨à*½à.èàá75á"má"á-³á-áá.â.>â/mâ%â,Ãâ³ðâ%¤ãÊã)ãã ä ä #ä 1ä<ä Eä)Sä}ä?„ä Ää Îä Øäæä²íä å"¼åßåûå)æ)Bæ læ(æ¶æ:Èæ ç)ç7;çsç>ŠçÉç<Ýç2èMèbè0iè>šèÙè/öè7&éL^é3«éßéSüé'Pêxê ”ê¡ê¶ê ÆêÔêÚê&Þê#ë)ë/ëHë'Wëë …ë(ë ¹ë)Ãëíëóëüë ìB&ìiìqì ì4œìÑìíìñì õìÿìí'"íJíNíiírí&„í«í!°í©Òí¬|î )ï 7ïEïAYï›ï £ï0­ï#Þï'ð'*ð'Rð!zðœð'¢ðKÊðEñ:\ñ+—ñÃñ$×ñüñò ò)ò0ò?òSò%Xò~ò„ò ›ò¥ò¬ò Åò Òò ßò êòôò óó+óDó']ó…ó—ó©ó;Éó1ôH7ô$€ô-¥ô)Óô@ýô->õ+lõ˜õ.¨õ0×õ.ö17ö:iö-¤öÒöåö÷?÷ ^÷ i÷!u÷—÷§÷1·÷1é÷ø)5ø*_ø&Šø'±øÙø!ïøù,ùCùbùxùùˆùŒùœù ®ù+¹ù åù%ú,ú#Bú"fú ‰ú)ªú%Ôúúú9û <ûFû eûoû3ƒû·ûÐû#ïûü!'üIü'hü"ü³üAÍüý/ýEýIý.Ný}ý'–ý$¾ýãýöý þþ0þEþ[þuþ‡þ¥þ¸þÎþ%ßþÿ%ÿBÿXÿ#sÿ—ÿšÿ  ÿªÿ ½ÿÈÿ´ãÿ°˜%Io ƒ8¤2Ý3"K%n”¬&Å'ì!&HWm.¼Ù ßí$>*c ޝ!¸ Úäóú ÿ=  I W+c'·!À$â/7Sn ‰ ªß·3—3Ë-ÿJ- x  ‡ ¨  ­ '¹  á  + 4 F K c € (  É  Ú å  î ù     89 r 5 :à þ     &4 [ Ft » Í )è $ "7  Z h „ >¤ +ã +;OU oy%ˆ ®¹ ½ÈÙí$ò,D J*V#$¥Ê Ð)Û&"`I^ª8 B&I'p&˜'¿/ç34K3€6´:ë@&BgHª(ó5&R2y8¬åí7ó+ 1;TZn}“ £ °»ÃÊ#é$ #2"V.y.¨×ó3 4@3u©3Â,ö*#Ng|5„º"×&ú!=]>ur´'(E2n ¡Âá0ø.)7X' ¸'Ù3²5«è2” ÇÕó…ùÿ( E&f,¢IÏA [ Hn · ¾ "Ò õ  !*!+D!p!Œ!©!­!׿!—' ›/'§/-Ï/#ý/!0N70\†0Fã0G*1r13„1¸1À1CÐ1€22•2 È2ÖÒ2,©3JÖ3!4 ?4I4 `4k4~4’4¥4·4×4ñ45"5,@5&m5"”53·5ë5ñ516-@6!n6 6±6Ð6Bè6+707:37En7W´7! 8*.8Y8o88¦8ø©8¢9¼9%Ï9-õ92#:'V: ~:Ÿ:/»:,ë:;-7;e;|v; ó;9ÿ;99<6s<ª< É<Ö< ô<=)=(F=o=+€=#¬=Ð=å=+ÿ=+>H>A]>2Ÿ>6Ò> ?.!? P?Z?k? s?}?…? Œ? —?¡? ©?´?»?Â?É?Î? Ò?Ý? ã?ñ?÷? @@,!@%N@t@*@#»@ß@ÿ@$A#CA(gA%A¶AÉA,èA"B"8B$[B€B“BšB¯B.ÈB ÷B C C C C(C1C9KC…C”CаCDGbÆG)H>HRH eH1pH¢H¹H!ÖH øH IAI SI _I.kIšI¬I½IÖIçIùIJ1 J,RJRJÒJ ÙJ äJòJ øJ¿CCðÃ|½A"’$)¼ˆÇC.á?é¨þbo6÷QR4ø‡MM®cãˆ`!á™› ýG_<O—ÌR,ñˆŸÒŒ0ÄìÿïTÆÑ±‘À I”¯1*.<F HNÛÚj†Ål5ÎÙOȦ*NxåžëÕ0-‡¬Ý€šíHªýd>HIZ ô7ýLÛ÷%é¦d -(kôÞÚüܾ“¸-üÔŸ„×UË­8T62Е =Wí µ?Ë7nìò'žö!eœ7ƒ {hÈRòJ4S¦½Šr¯ÛQ”ØŸBìãî  w|Ô §ªW­À&ú£'./ŠSEbb›z楓§ÝØðB’ƒI–)G@^°3:À _'`qrÚ çøïÇoéSùK>ÌÐÕ1¬âmB¤8¨Ó:+<œøÄÑÂóòêMë5ÂØÃ€å4ylá!OÄT ¾Æ1±ÉK£^³š¶—=ã·6OEG*’1Ó[)YÓÍXj½´Ã•| g«[¸_]è¤fn F­xç¨ Ù°‰€²èQ[ºbYÞW=Ds2å«§ŽDF‹»gAÖhâ;;Œ‘ wä0¡â7™Áëôµk©FþPP\¹´&žàyœ“:Vf&mZ,U³³v?*Ô{5 àÈD}î\•˜m%+(¥íAÐÝ‚=%—ÒX`;}x<¶+iXù$UÿVÏps–õ9 ¡#±‘ßl¥r¤!9[~¾vpJ¼#×"8~ú¿$…NaZ0Ín_ñ`]qKG¹õ·:9u®MËR?°sºJQðe8 –ÖS#îÏ>kà„/†/æ¡Á÷¬öoªP^»ÜŽW¸‰º‚£}N.pµ¿\j9†Ì¢Ž,ßè²$¹‹õÎÊÍ5ûÇ ”2 ïyäYü…¶A»´ñDU2 ›æ]YóZcIÜÕä]u#™;Å~(@)ûc·ÊÒ(zûÖTVh²¼Å{Š@štgÉeL@ÂÙÆ¢3LavcHÿa"tÎ%ƒtEJiú‰-q‡u ^ê3É¢˜6ö4…Þ©„,Áw+ÊXó'CŒÑLB«K ©/i®>aßêV˜&Pzd‚Ef"‹ç\ϯþ×3 ù For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) -h display this help information -v output version information and exit dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -h, --help display this help information -v, --version output version information and exit dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU GPL Report bugs to the author at benwebb@users.sf.net -u file use sound plugin "file" -u, --plugin=FILE use sound plugin "FILE" Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. $% resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-19Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/Current location/%tde%/DealDrugs drug name/%tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/GTK Stats: Guns/%Tde%/Inventory drug name/%tde%/Inventory gun name/%tde%/LoanShark window title/%Tde%/Location display/%tde%/Location to jet to/%tde%/Sack Bitch dialog title/Sack %Tde%/Sack Bitch menu item/S_ack %Tde...%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%c. %-10tde %8P%d of %d%d. %tde%d: HTTP client error%d: HTTP server error%d: redirect error%m-%d-%Y%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s can be no larger than %d - ignoring!%s can be no smaller than %d - ignoring!%s does not appear to be a valid high score file - please check it. If it is a high score file from an older version of dopewars, then first convert it to the new format by running "dopewars -C %s" from the command line.%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(%s available) (Dead)(Enter a blank username to cancel)(Error cannot be displayed in UTF-8)(Left)(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/Enable _sound/Game/_Abandon.../Game/_New.../Game/_Options.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk401: HTTP authentication failed403: forbidden404: page not found407: HTTP proxy authentication failed<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?Abandon gameAbout dopewarsAcidAddicts are buying %tde at ridiculous prices!Address already in useAddress family not supportedAdmin command: %sAdmin connection closedAgent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Asking SOCKS for connect to %s...Asking SOCKS for connect to %s... Attack penalty relative to a playerAttempt to connect to metaserver too frequently - waiting for next timeoutAttempting to connect to local dopewars server via Unix domain socket %s... Authenticating with SOCKS serverAuthenticating with SOCKS server Authentication RequiredAuthentication for LocalName with the metaserverAuthentication required for realm %sAvailable space: %dBSDTPLGFJQBSLBad auth header: %sBad metaserver reply "%s"Bad redirect message from serverBad redirect: %sBankBank %17PBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBen WebbBronxBrooklynBrowse...BuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Can be specially cheapCan be specially expensiveCannot bind to port %u (%s) Aborting.Cannot create backup (%s) of the high score file: %s.Cannot create pid file %s: %sCannot create server (listening) socket (%s) Aborting.Cannot get metaserver detailsCannot initialise WinSock (%s)!Cannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot listen to network socket. Aborting.Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot open high score file %s: %s.Cannot reach the networkCannot start fight - no guns to use!CashCash %17PCash: %PCentral ParkChange NameCheap stringChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Configuration file saved OK as %s Congratulations! You made the high scores!Connected to SOCKS server %s...Connected to SOCKS server %s... Connection aborted due to failureConnection closed by remote hostConnection denied by SOCKS rulesetConnection dropped due to full bufferConnection established Connection established; use Ctrl-D to close your session. Connection refusedConnection reset by remote hostConnection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnControls the number of log messages producedCop armourCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not determine local config file to write toCould not open file %s: %sCould not set up Unix domain socket for admin connections - check permissions on /tmp!Could not start multiplayer dopewarsCourage! Bush is a noodle!Currency symbolCurrency.Prefix=TRUED O P E W A R SD>eal %tde, DRFSQDWLDaily interest rate on the loan shark debtDaily interest rate on your bank balanceDamageDamage done by each gunDan's House of GunsDay of the month on which the game startsDebtDebt %17PDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDeleteDepositDeputy armourDescriptionDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DownDropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeEnglish TranslationEnglish Translation Ben WebbErrorError reading scores from %s.Errors were encountered during the reading of the configuration file. As a result, some settings may not work as expected. Please see the messages on standard output for further details.Errors were encountered during the reading of the configuration file. As as result, some settings may not work as expected. Please consult the file "dopewars-log.txt" for further details.Expensive string 1Expensive string 2Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, Failed to connect to metaserver at %s:%u (%s)Failed to contact nameserverFailed to post service notification messageFailed to register service handlerFailed to set NT Service statusFailed to start NT ServiceFightFile to write log messages toFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame length (turns)Game time is up. Leaving game. GeneralGhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth %3dHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHost not foundHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIcons and Graphics Ocelot MantisIcons and graphicsIf TRUE, the currency symbol precedes pricesIf TRUE, the server minimizes to the System TrayIf TRUE, the server runs in the backgroundIf TRUE, use SOCKS for metaserver communicationIf not blank, the username to use for SOCKS4Index into %s array should be between 1 and %dInternal error code %dInternal metaserver error "%s"Invalid HTTP status line: %sInvalid plugin "%s" selected. (%s available; now using "%s".)InventoryInventory spaceJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Local HTML documentationLocation of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLocationsLudesMDAMOTD (welcome message)Maintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum no. of deputiesMaximum no. of drugsMaximum normal priceMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-Messages (-/+ scrolls up/down)MetaserverMetaserver hostnameMetaserver name to report/get server details to/fromMinimize to System TrayMinimum no. of deputiesMinimum no. of drugsMinimum normal priceMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMonth in which the game startsMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of a proxy for metaserver communicationName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of one bitchName of one deputyName of several bitchesName of several deputiesName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toName server error code %dNetwork address for the server to listen onNetwork error code %dNetwork port to connect toNetwork subsystem is not readyNewNew %sNew GameNew admin connectionNew name: No cops or guns!No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of tries exceededNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!Operation not supportedOpiumOptionsOut of buffer spaceOut of file descriptorsPCPPSPanic! You can't get away!Password for HTTP Basic authenticationPassword for HTTP Basic proxy authenticationPassword for SOCKS5 authenticationPassword: Path of the script on the metaserverPay allPay back:PeyotePlayPlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presencePolice presence at each location (%)PortPort : %dPort for communicating with the proxy serverPort for metaserver communicationPort: Preferred hostname of your server machinePress any key...PricePrice of each gunProtocol not supportedProxy Authentication RequiredProxy authentication required for realm %sPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Remove drug referencesResized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, SOCKS Authentication RequiredSOCKS authentication cancelled by userSOCKS authentication failedSOCKS authentication required (enter a blank username to cancel)SOCKS error code %dSOCKS server general failureSOCKS server rejected all offered methodsSOCKS: Address type not supportedSOCKS: Command not supportedSOCKS: Connection refusedSOCKS: Host unreachableSOCKS: Network unreachableSOCKS: Rejected - identd reports different user-idSOCKS: Rejected - unable to contact identdSOCKS: Request rejected or failedSOCKS: TTL expiredSTGCNSanitized away a RandomOfferSaturday Night SpecialScript pathSeconds between turns of AI playersSelect sound fileSellSell %tdeSell how many?Selling %d %tde at %P SendSending pending updates to the metaserver...Sending reminder message to the metaserver...ServerServer : %sServer description, reported to the metaserverServer reports to metaserverServer's welcome message of the dayShroomsSingle playerSo I think I'm going to Amsterdam this yearSocket type not supportedSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSound fileSound file played at the end of the gameSound file played at the start of the gameSound file played for a gun "hit"Sound file played for a gun "miss"Sound file played on arriving at a new locationSound file played when a player joins the gameSound file played when a player leaves the gameSound file played when a player sends a private chat messageSound file played when a player sends a public chat messageSound file played when a player successfully escapesSound file played when a player tries to escape, but failsSound file played when an enemy bitch/deputy is killedSound file played when another player or cop is killedSound file played when guns are reloadedSound file played when one of your bitches is killedSound file played when you are killedSound file played when you successfully escapeSound file played when you try to escape, but failSound nameSoundsSounds Robin Kohli, 19.5degs.comSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStarting cashStarting debtStaten IslandStatsStatus: Asking SOCKS for connect to %s...Status: Attempting to contact %s...Status: Authenticating with SOCKS serverStatus: Connected to SOCKS server %s...Status: Could not connect (%s)Status: Could not connect to metaserver (%s)Status: Obtaining server information from metaserver...Status: Waiting for user inputSymbol prefixes pricesTRUE if a SOCKS server should be used for networkingTRUE if numeric user IDs should be used for SOCKS4TRUE if server should report to a metaserverTRUE if sounds should be enabledTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: Temporary name server error - try again laterThe Marrakesh Express has arrived!The Pope was once Jewish, you knowThe command used to start your web browserThe connection timed outThe cops spot you dropping %tde!The currency symbol (e.g. $)The first thing you need to do is pay off your debt to the Loan Shark. AfterThe high score file %s has been converted to the new format. A backup of the old file has been created as %s. The hostname of a SOCKS server to useThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The network subsystem has failedThe port number of a SOCKS server to useThe server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.The version of the SOCKS protocol to use (4 or 5)There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.This binary has been compiled without networking support, and thus cannot run in server mode. Recompile passing --enable-networking to the configure script. Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and MetaServer.Proxy.Password variablesUnable to authenticate with HTTP server; please set MetaServer.Auth.User and MetaServer.Auth.Password variablesUnable to open file %sUnable to process configuration file %s, line %dUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unicode config fileUnix prompt. This will display a help screen, listing the available options.UnknownUnknown HTTP error %dUnknown SOCKS address type returnedUnknown SOCKS reply codeUnknown SOCKS reply version codeUnknown SOCKS server versionUnknown command - try "help" for help... Unknown message: %s:%c:%s:%sUnknown metaserver error code %dUpUp since : %sUsage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b "black and white" - i.e. do not use pretty colours (by default colours are used where the terminal supports them) -n be boring and don't connect to any available dopewars servers (i.e. single player mode) -a "antique" dopewars - keep as closely to the original version as possible (no networking) -f file specify a file to use as the high score table (by default %s/dopewars.sco is used) -o addr specify a hostname where the server for multiplayer dopewars can be found -s run in server mode (note: see the -A option for configuring a server once it's running) -S run a "private" server (i.e. do not notify the metaserver) -p port specify the network port to use (default: 7902) -g file specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r file maintain pid file "file" while running the server -l file write log information to "file" -c create and run a computer player -w force the use of a graphical (windowed) client (GTK+ or Win32) -t force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P name set player name to "name" -C file convert an "old format" score file to the new format -A connect to a locally-running server for administration Usage: dopewars [OPTION]... Drug dealing game based on "Drug Wars" by John E. Dell -b, --no-color, "black and white" - i.e. do not use pretty colours --no-colour (by default colours are used where available) -n, --single-player be boring and don't connect to any available dopewars servers (i.e. single player mode) -a, --antique "antique" dopewars - keep as closely to the original version as possible (no networking) -f, --scorefile=FILE specify a file to use as the high score table (by default %s/dopewars.sco is used) -o, --hostname=ADDR specify a hostname where the server for multiplayer dopewars can be found -s, --public-server run in server mode (note: see the -A option for configuring a server once it's running) -S, --private-server run a "private" server (do not notify the metaserver) -p, --port=PORT specify the network port to use (default: 7902) -g, --config-file=FILE specify the pathname of a dopewars configuration file; this file is read immediately when the -g option is encountered -r, --pidfile=FILE maintain pid file "FILE" while running the server -l, --logfile=FILE write log information to "FILE" -A, --admin connect to a locally-running server for administration -c, --ai-player create and run a computer player -w, --windowed-client force the use of a graphical (windowed) client (GTK+ or Win32) -t, --text-client force the use of a text-mode client (curses) (by default, a windowed client is used when possible) -P, --player=NAME set player name to "NAME" -C, --convert=FILE convert an "old format" score file to the new format User name: Username for HTTP Basic authenticationUsername for HTTP Basic proxy authenticationUsername for SOCKS5 authenticationUsers currently logged on:- Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP authenticationUsing MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy authenticationUsing Socks.Auth.User and Socks.Auth.Password for SOCKS5 authenticationUsing Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication Using name %s Valid name, but no DNS data record presentVersionVersion : %sVersion %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public Licence Waiting for connect to metaserver at %s:%u...WarningWarning: your client is too old to support all of this^server's features. For the full "experience", get^the latest version of dopewars from the^website, http://dopewars.sourceforge.net/.Wasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!Web browserWeb proxy hostnameWeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinSock has not been properly initialisedWinSock version not supportedWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?Year in which the game startsYouYou appear to be using an extremely old (version 1.4.x) client.^While this will probably work, many of the newer features^will be unsupported. Get the latest version from the^dopewars website, http://dopewars.sourceforge.net/.You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You can't start the game without giving a name first!You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You must enter a positive amount of money!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Refresh_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licencedopewars serverdopewars server terminating.dopewars server version %s commands and settings help Displays this help screen list Lists all players logged on push Politely asks the named player to leave kill Abruptly breaks the connection with the named player msg: Send message to all players save Save current configuration to the named file quit Gracefully quit, after notifying all players = Sets the named variable to the given value Displays the value of the named variable [x].= Sets the named variable in the given list, index x, to the given value [x]. Displays the value of the named list variable Valid variables are listed below:- dopewars server version %s ready and waiting for connections on port %d.dopewars server version %s ready for admin commands; try "help" for helpdopewars version %s drugdrugsescapedexpected a boolean value (one of 0, FALSE, 1, TRUE)got connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointstrftime() format string for displaying the game turnstrftime() format string for log timestampsthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: nn_new Report-Msgid-Bugs-To: POT-Creation-Date: 2005-12-30 13:30-0800 PO-Revision-Date: 2003-08-31 22:58+0200 Last-Translator: Ã…smund Skjæveland Language-Team: Norsk nynorsk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.2 For informasjon om kommandolinevala, skriv dopewars -h pÃ¥ unix-kommandolinja. Det viser ein hjelpetekst med dei tilgjengelege vala. L>ista tenarane pÃ¥ metatenaren, og velga ein A>vslutta (du kan starta ein tenar med «dopewars -s») eller S>pela Ã¥leine? H>a seg vekk S>pionér pÃ¥ ein annan pushar (pris: %P) T>ipsa politiet om ein annan pushar (pris: %P) -h, vis denne hjelpeteksten -v, vis versjonsinformasjon og avslutt dopewars er Copyright (C) Ben Webb 1998-2005, og er tilgjengeleg under GNU GPL Rapportér feil til forfattaren pÃ¥ ben@bellatrix.pcl.ac.uk -h, --help vis denne hjelpeteksten -v, --version vis versjonsinformasjon og avslutt dopewars er Copyright (C) Ben Webb 1998-2005, og er tilgjengeleg under GNU GPL Rapportér feil til forfattaren pÃ¥ ben@bellatrix.pcl.ac.uk -u fil bruk lydmodul «fil» -u, --plugin=FIL bruk lydmodul «FIL» Er du sikker? Du finn %P pÃ¥ liket!Du plyndrar liket!# Dette er oppstartsloggen for dopewars. Her kjem # nyttige meldingar frÃ¥ tolkinga av # oppsettfilene og slikt. Kr. % motstand mot skot for kvar hore% motstand mot skot for kvar purk% motstand mot skot for kvar politibetjent% motstand mot skot for kvar spelar%-19Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/Banknamn vindaugstittel/%Tde%/Kamp: Horer/%d %tuf%/Staden du er no/%tde%tuf%/GTK VÃ¥penforretning-tittel/%Tde%/GTK Stats: Horer/%Tuf%/GTK Status: VÃ¥pen/%TufNarkotikaVÃ¥pen%/LÃ¥nehai vindagustittel/%Tde%/Liste over stader/%tde%/Plass Ã¥ reisa til/%tde%/Spark hore dialog-tittel/Spark %tde%/Spark hore menyval/S_park %tue...%/Spion: Dop/%Tde...%/Spion: VÃ¥pen/%Tde...%Tde%/Stats: VÃ¥pen/%Tde%Tde %3d plass %6d%Tuf du har%Tuf her%c. %-10tde %8P%d av %d%d. %tde%d: HTTP klientfeil%d: HTTP tenarfeil%d: Omdirigeringsfeil%d-%m/%Y%s - %s - spring etter deg!%s og %d %tuf - %s - spring etter deg!%s kjem hit med %d %tuf, %s!%s kan ikkje vera større enn %d - ignorerer!%s kan ikkje vera mindre enn %d - ignorerer!%s ser ikkje ut til Ã¥ vera ei gyldig poengtavlefil. Sjekk om fila er i orden. Viss det er ei poengtavlefil frÃ¥ ein gamal versjon av dopewars, mÃ¥ du fyrst konvertera henne til det nye formatet ved Ã¥ køyra «dopewars -C %s» frÃ¥ kommandolina.%s har godteke %tbe di! Bruk G-knappen for Ã¥ kontakta spionen din.%s har rømt til %tde!%s kom seg unna!%s har forlatt spelet.%s har gÃ¥tt ut av spelet. %s har avvist di %tde!%s treff deg, mann!%s er «%s» %s er %P %s er %d %s er %s %s er { %s blir med i spelet!%s blir med i runden. %s drepen %s forlét tenaren!%s spionerer no pÃ¥ %s%s drep %s.%s skyt pÃ¥ %s og drep ei %tue!%s skyt pÃ¥ %s.%s skyt pÃ¥ %s... og bommar!%s skyt pÃ¥ deg... og drep ei %tue!%s skyt pÃ¥ deg... og bommar!%s spionéra pÃ¥ %s: NEKTA%s stÃ¥r og tek imot%s tysta pÃ¥ %s: NEKTA%s tipsa politiet om %s%s prøver Ã¥ rømma, men fÃ¥r det ikkje til.%s kverka deg, mann! Søren ogsÃ¥!%s kallar seg no for %s%s er no kjend som %s.%s: NEKTA reise til %s%s: Fekk tilbod om spion frÃ¥ %s%s: Tips frÃ¥ %s%s: Tilbodet var pÃ¥ vegne av %s%s: Tips frÃ¥ %s avslutta OK.%s[%d] er %s %s^%s er alt her!^Vil du gÃ¥ til Angrep, eller Stikka av?(%s tilgjengeleg) (Daud)(Skriv eit blankt brukarnamn for Ã¥ avbryta)(Feilen kan ikkje visast i UTF-8)(Ute av spelet)(Kvil i fred.), H>iva, kJ>empa, G>je oppdrag, R>eisa, sjÃ¥ L>ister, S>elja, sN>akka med alle, snakka med E>in, eller A>vslutta? .38 Spesial/Oppdrag/_Hent spionrapportar .../Oppdrag/_Spioner .../Oppdrag/_Tips politiet .../Spel/SlÃ¥ pÃ¥ _lyd/Spel/_Gje opp/Spel/_Nytt .../Game/_Innstillingar/Spel/_Avslutt/Hjelp/_Om .../Lister/_Eignelutar.../Lister/_Spelarar.../Lister/_Poeng.../Snakk/Til _alle .../Snakk/Til _spelar .../_Oppdrag/_Spel/_Hjelp/_Lister/_Snakk401: HTTP-autentisering feila403: Forbode404: Fann ikkje sida407: HTTP-mellomvert-autentisering feila<- _SelEin dag utan dop er som ei nattEin trent apekatt kunne gjort det betre.A:AngripADDatastyrt spelar vart drepen. Avsluttar normalt. Datastyrt spelar vart dytta av tenaren. Datastyrt spelar starta. Prøver Ã¥ kopla til tenaren pÃ¥ %s:%d.Datastyrt spelar avslutta OK. Gje opp denne runden?Gje opp dette speletOm DopewarsSyreNarkomane kjøper %tde til avsindige prisar!Adressa er i brukAdressefamilien er ikkje støttaAdmin-kommando: %sAdmin-samband stengtAgent SmithKor mykje pengar kvar spelar startar medKor mykje gjeld kvar spelar startar medEr du høg pÃ¥ noko?Er du viss pÃ¥ at du vil avslutta? Er du sikker? (%Tuf eller %tuf denne %tbe har pÃ¥ seg kan gÃ¥ tapt!)Ber SOCKS om samband til %s...Ber SOCKS om samband til %s... Ã…taks-handikap relativt til ein spelarPrøver for ofte Ã¥ kopla til metatenaren - venter pÃ¥ neste tidsavbrotPrøver Ã¥ kopla til lokal dopewars-tenar via Unix-domenesokkel %s Autentiserer mot SOCKS-tenarAutentiserer med SOCKS-tenar Treng autentiseringAutentisering for LocalName med metatenarenTreng autentisering for omrÃ¥de %s c Ledig plass: %dKSHNELGJRAKSGUgyldig auth meldingshovud: %sFeil metatenar-svar «%s»Ugyldig omdirigeringsmelding frÃ¥ tenarenUgyldig omdirigeringsmelding: %sBankBank %17PBanken er pÃ¥ %s Bank: %PBerettadopewars er tufta pÃ¥ Drug Wars av John E. Dell, og er ei simuleringdopewars er tufta pÃ¥ Drug Wars av John E. Dell, og er ei simulering av ein oppdikta narkotikamarknad. I dopewars mÃ¥ du kjøpa, selja og koma unna politiet. Det fyrste du mÃ¥ gjera er Ã¥ betala gjelda di til lÃ¥nehaien. Etter det, er mÃ¥let ditt Ã¥ tena sÃ¥ mykje pengar som rÃ¥d (og halda deg i live)! Du har ein mÃ¥nad i speletid pÃ¥ Ã¥ skapa formuen din. Vér ordrik nÃ¥r oppsettfila blir lestBen WebbGrünerløkkaOslo SBla gjennom...KjøpKjøpa %tufKjøpa kor mange?Kjøper %d %tde for %P Kjøper ein %tde for %P pÃ¥ vÃ¥penbutikken KLASOg de kallar drykk dopseljarar?Kan vera ekstra billegKan vera ekstra dyrtKan ikkje kopla til port %u (%s). Bryt av.Kan ikkje laga kopi (%s) av poengtavlefila %s.Kan ikkje laga pid-fil %s: %sKan ikkje laga (lytte-)sokkel (%s) til tenaren. Avbryt.Kan ikkje henta metatenar-detaljarKan ikkje starta opp WinSock (%s)!Kan ikkje installera SIGHUP-avbrotshandsamar!Kan ikkje installera SIGINT-avbrotshandsamar!Kan ikkje installera SIGTERM-avbrotshandsamar!Kan ikkje installera SIGUSR1-avbrotshandsamar!Kan ikkje installera SIGWINCH-avbrotshandsamar!Kan ikkje installera røyr-handsamar!Kan ikkje lytta til nettverkssokkel. Avbryt.Kan ikkje opna poengtavlefila %s. (%s.) Du mÃ¥ anten vera sikker pÃ¥ at du har løyve til Ã¥ bruka denne fila, eller spesifisera ei anna poengtavlefil med kommandolineopsjonen -f.Kan ikkje opna poengtavlefila %s: %s.Kan ikkje nÃ¥ nettverketKan ikkje starta kamp - har ingen vÃ¥pen!KontantarPengar %15PKontantar: %PMajorstuenByt namnBilleg-strengVel eit ærend Ã¥ gje ei av %tbf dine ...KokainColumbiansk lasteskip lurte kystvakta! Jazztobakkprisen stuper!Kommando:KommentarKommentar: %sSageneOppsettet kan berre endrast interaktivt nÃ¥r ingen spelarar er logga pÃ¥. Vent til alle spelarane har logga av, eller fjern dei med dytt- eller-drep-kommandoane, og prøv igjen.Oppsettfil lagra OK som %s Gratulerar! Du kom pÃ¥ poengtavla!Kopla til SOCKS-tenar %s...Kopla til SOCKS-tenar %s... Sambandet vart avbrote pÃ¥ grunn av feil.Sambandet vart stengd av nettverksverten.Samband nekta av SOCKS-regelsettSambandet vart avbrote pga. fullt bufferSamband oppretta Samband oppretta. Bruk Ctrl-D for Ã¥ stenga tilkoplinga. Samband nektaSambandet vart stengd av nettverksverten.Mista sambandet til tenaren - byter til einspelar-modusSambandet vart brote! Mista sambandet til tenaren! GÃ¥r tilbake til einspelar-modus.Konstruktiv kritikkKonstruktiv kritikk Andrea Elliot-Smith Pete WinnKontrollerer talet pÃ¥ loggmeldingar som blir lagaPansring av politietPolitiPoliti kan ikkje gÃ¥ til Ã¥tak pÃ¥ andre politi!Politiet gjorde eit kjempebeslag av %tde! Prisane er skyhøge!Poengtavlefila er øydelagt!Prisen for at ei hore skal spionera pÃ¥ fiendenPrisen for at ei hore skal tipsa politiet om ein fiendeKunne ikkje kopla til dopewars-tenar (%s) Den datastyrte spelaren avsluttar.Kunne ikkje finna ei lokal oppsettfil Ã¥ skriva tilKunne ikkje opna file %s: %sKunne ikkje laga unix domenesokkel til admin-samband - sjekk skriveløyva pÃ¥ /tmp!Kunne ikkje starta fleirspelar dopewarsHa mot! Bush er ein nuddel!ValutasymbolCurrency.Prefix=TRUED O P E W A R SS>elja %tuf, SRKVASTGDagleg rente pÃ¥ gjelda til lÃ¥nehaienDagleg rente pÃ¥ innskotet i bankenSkadeSkaden kvart vÃ¥pen gjerVidar's VÃ¥penDagen i mÃ¥naden som spelet startar pÃ¥GjeldGjeld %16PGjeld pÃ¥ %P vart betalt til lÃ¥nehaien Gjeld: %PForsvars-handikap relativt til ein spelarSlettSett innPansring av lensmannsbetjentaneSkildringTal som prisen pÃ¥ dopet skal delast pÃ¥ nÃ¥r det er ekstra billegVil du Stikk du av, eller slÃ¥st du?Stikk du av?Vil du S>etja inn pengar, T>a ut pengar, eller G>Ã¥?Veit mora di at du sel dop?NedHivHiva %tufHiva kor mange?Dopsal og researchDopsal og research Dan Wolf DopDopet kan vera vennen din!U:UnngÃ¥Engelsk omsetjingEngelsk omsetjing Ben WebbFeilFeil ved lesing av poeng frÃ¥ %s.Noko vart feil under lesinga av oppsettfila. Det kan gjera at nokon av innstillingane ikkje vil virka som venta. SjÃ¥ pÃ¥ meldingane pÃ¥ standard-ut for fleire detaljar.Noko vart feil under lesinga av oppsettfila. Det kan gjera at nokon av innstillingane ikkje vil virka som venta. SjÃ¥ pÃ¥ loggfila «dopewars-log.txt» for fleire detaljar.Dyrt streng 1Dyrt streng 2Grundig speltestingGrundig speltesting Katherine Holt Caroline MooreK:KjempK>jempa, Kunne ikkje kopla til metatenaren pÃ¥ %s:%u (%s)Fekk ikkje kontakt med namnetenarenKunne ikkje posta tenestevarselsmeldingKunne ikkje registrera tenestehandsamarKlarte ikkje Ã¥ setja NT teneste-statusKlarte ikkje Ã¥ starta NT-tenesteKjempFil som loggmeldingar skal skrivast tilUt frÃ¥ tipset ditt rykka politiet ut mot %s, som kom seg unna med %d %tde.Ut frÃ¥ tipset ditt gjekk politiet mot %s, som vart skoten og drepen!For informasjon om kommandolinevala, skriv dopewars -h pÃ¥Formatstreng brukt for dyrt dop 50% av tidaSpellengde (rundar)Speletida er ute. Avsluttar spelet. Ã…lmenntTøyenVÃ¥penforretninga er pÃ¥ %s VÃ¥penVÃ¥pna lada...P O E N G L I S T EHasjHar eg ikkje sett deg pÃ¥ fjernsynet?HelseHelse %3dHelse: %dHeroinHei du. Her kostar %tbe:Namnet ditt:Namnet ditt:PoengtavleVertsnamnFann ikkje vertenVertsnamn:Kor mange vil du kjøpa? Kor mange vil du kasta? Kor mange vil du selja? Kor mykje pengar vil du betala tilbake?Kor mykje pengar?Eg er kvalrossen!Eg trur ikkje pÃ¥ Ronald ReaganEg har slik ei voldsom lyst til Ã¥ farga hÃ¥ret mitt blÃ¥ttEg synest hemorroidereklamar er ordentleg flotte!Eg synest det er fantastisk kva dei fÃ¥r til med røykjelse no til dags.Eg var hippie sjølv ein gong i tidaEg har ikkje vore kvinne heile livet, veit duEg vil gjerne selja deg ein etande puddelEg er sikker pÃ¥ at du har nokon ordentleg interessante draumar.Eg samlar inn pengar til Zomibiar for KristusIkon og grafikk Ocelot MantisIkon og grafikkViss TRUE, gÃ¥r valutasymbolet framfor prisaneViss TRUE, vil tenaren minimera til systemtrauetViss TRUE, sÃ¥ vil tenaren køyra i bakgrunnenViss TRUE, bruk SOCKS til metatenar-kommunikasjonViss ikkje blank, brukarnamnet som skal brukast til SOCKS4Indeks til %s array burde vore mellom 1 og %dIntern feilkode %dIntern metatenar-feil «%s»Ugyldig HTTP statusline: %sUgyldig modul «%s» vald. (%s tilgjengeleg, brukar «%s» no.)EignelutarPlass kravdJesus elskar deg meir enn du veitReis til plass:Reiser til %tdeReiser til %tde med %P i kontantar og %P i gjeld Berre sei nei! Eller, kanskje... ok, faen heller!Kverk ein purk for Jesus!Liste over songar du kan høyra bli speltListe over ting du kan stoppa for Ã¥ gjeraListe over ting du høyrer pÃ¥ T-banenLista opp kva? S>pelarar eller P>oeng? LÃ¥nehaien er pÃ¥ %s Lokal dokumentasjon i HTML-formatStaden LÃ¥nehaien held tilStaden banken held tilStaden vÃ¥penbutikken held tilStaden puben held tilStaderHyppararMDAVelkomstmeldingBruker pid-fil %sKarl JohanGjekk over MaxClients (%d) - bryt sambandetStørste tal pÃ¥ politibetjentarStørste tal pÃ¥ ulike slag narkotikaStørste vanlege prisStørste vanlege pris pÃ¥ kvart dopMaksimalt tal pÃ¥ TCP/IP-sambandarStørste tal pÃ¥ politibetjentarStørste tal pÃ¥ dopsortar pÃ¥ kvar plassHøgaste pris for Ã¥ tilsetja ei horeMeldingMelding som skal visast nÃ¥r dette dopet er ekstra billegMelding:-Meldingar (-/+ rullar opp/ned)MetatenarMetatenar vertsnamnMetatenar Ã¥ rapportera til/fÃ¥ tenar-detaljar frÃ¥Minimer til systemtrauetMinste tal pÃ¥ politibetjentarMinste tal pÃ¥ ulike slag narkotikaMinste vanlege prisMinste vanlege pris pÃ¥ kvart dopMinste tal pÃ¥ politibetjentarMinste tal pÃ¥ dopsortar pÃ¥ kvar plassMinstepris for Ã¥ tilsetja ei horeMÃ¥naden spelet startar iTal som prisen pÃ¥ dopet skal gangast med nÃ¥r det er ekstra dyrtN:NeiN>este tenar: F>ørre tenar: V>el denne tenarenNFVNamnNamn pÃ¥ ein proxy for metatenar-kommunikasjonNamn pÃ¥ kvar politimannNamn pÃ¥ kvar politimann sine betjentarNamn pÃ¥ kvar politimann sin betjentNamn pÃ¥ kvart dopNamn pÃ¥ kvart vÃ¥penNamn pÃ¥ kvar stadNamn pÃ¥ ei horeNamn pÃ¥ ein betjentNamn pÃ¥ fleire horerNamn pÃ¥ fleire betjentarNamnet pÃ¥ bankenNamnet pÃ¥ vÃ¥penforretningenNamn pÃ¥ poengfilaNamnet pÃ¥ lÃ¥nehaienNamnet pÃ¥ pubenNamn pÃ¥ tenaren du vil kopla deg tilNamnetenarfeil kode %dNetverkadressa tenaren skal lytta pÃ¥Nettverksfeil kode %dNettverksport Ã¥ kopla tilNettverk-delsystemet er ikkje klartNyNy %sNytt spelNytt admin-sambandNytt namn:Ingen politi eller vÃ¥pen!Curses-klient er ikkje tilgjengeleg. Kompilér opp binærfila pÃ¥ nytt, med valet --enable-curses-client til configure, eller bruk ein grafisk klient (viss tilgjengeleg) i staden. Ingen grafisk klient tilgjengeleg. Kompilér opp binærfila pÃ¥ nytt, med valet --enable-gui-client til configure, eller bruk tekstmodus-klienten (viss tilgjengeleg) i staden. Ingen andre spelarar er logga pÃ¥ no.Ingen slik brukar! Ingen brukarar er logga pÃ¥ no. Tal pÃ¥ rundar i spelet (viss 0 vil spelet aldri slutta)Tal pÃ¥ sekund du har pÃ¥ deg til Ã¥ skyta tilbakeMengdeTal pÃ¥ sortar dop i speletTal pÃ¥ vÃ¥pen i speletTal pÃ¥ vÃ¥pen kvar politimann harTal pÃ¥ vÃ¥pen kvar politibetjent harTal pÃ¥ stader i speletTal pÃ¥ sogar som spelarTal pÃ¥ ting som blir sagt pÃ¥ T-banenTal pÃ¥ ting du kan stoppa for Ã¥ gjeraFor mange forsøkTal pÃ¥ typar politimenn i speletLensmann PederPolitimeister BastianÃ…, du mÃ¥ vera frÃ¥ CaliforniaEi av %tbf dine spionerte for %s. ^Spionen %s!Operasjonen er ikkje støttaOpiumInnstillingarTom for bufferplassTom for filskildrararPCPSPPanikk! Du kjem deg ikkje vekk!Passord for HTTP Basic-autentiseringPassord for HTTP Basic proxy-autentiseringPassord for SOCKS5-autentiseringPassord:Bane til skriptet pÃ¥ metatenarenBetal altBetal tilbake:PeyoteSpelSpeltestingSpeltesting Phil Davis Owen WalshSpela igjen? SpelarlisteSpelaren fjerna pga. tidsavbrot i sambandetSpelaren fjerna: Han/ho var ikkje aktivSpelararSpelarane er allereie i ein kamp!Spelarane er alt i kvar sine kampar!Spelarar blir kopla frÃ¥ etter sÃ¥ mange sekundSpelarar som er logga pÃ¥:-Spelarar i denne runden:- Spelarar: %d (maksimum %d)Spelarar: -ukjent- (maksimum %d)Vel ein spelar du vil spionera pÃ¥. %Tbe di vil sÃ¥ tilby tenestane sine til spelarane, og viss ho lukkast, vil du kunna sjÃ¥ den spelaren sin status med «Hent spionrapportar»-menyen. Hugs at %tbe vil forlata deg, sÃ¥ %tuf eller %tuf som ho har pÃ¥ seg kan gÃ¥ tapt!Vel spelaren du vil tipsa politiet om. %Tbe di vil hjelpa politiet med Ã¥ angripa den spelaren, og sÃ¥ rapportera tilbake til deg. Hugs at %tbe bil forlata deg ei kort stund, sÃ¥ %tuf eller %tuf ho har pÃ¥ seg kan gÃ¥ tapt!Skriv vertsnamnet og porten pÃ¥ ein dopewars-tenar:Vent litt... prøver Ã¥ kopla til dopewars-tenar...Vent litt... prøver Ã¥ kontakta metatenar...Politihundar jagar deg %d kvartal! Du mista litt %tde. Det er hardt, mann.PolitinærværPolitinærleik pÃ¥ kvar stad (%)PortPort : %dPort for Ã¥ kommunisera med metatenarenPort for metatenar-kommunikasjonPort:Føretrukke vertsnamn pÃ¥ tenarmaskinen dinTrykk ein tast...PrisPrisen pÃ¥ kvart vÃ¥penProtokollen er ikkje støttaTreng mellomtenar-autentiseringTreng proxy-autentisering for omrÃ¥de %sPuben er pÃ¥ %s Dyttar %s BjølsenSpørsmÃ¥lAvslutt speletS:SpringR>ømma, Tilfeldige hendingar er rensaEg blir vel nøydd til Ã¥ skyta deg til ditt eige beste.Fjern narkotika-referansarForandra storleiken pÃ¥ strukturlista til %d element Andre pusharar plyndra eit apotek og sel billege hypparar!RugerT - B A N EV>enta, MÃ¥ ha SOCKS-autentiseringSOCKS-autentisering avbroten av brukarSOCKS-autentiserer feilaTreng SOCKS-autentisering (skriv eit blankt brukarnamn for Ã¥ avbryta)SOCKS feilkode %dSOCKS server generell feilSOCKS-tenar avviste alle tilbudte metodarSOCKS: Adressetypen er ikkje støttaSOCKS: Kommandoen er ikkje støttaSamband nektaSOCKS: Kan ikkje nÃ¥ vertenSOCKS: Kan ikkje nÃ¥ nettverketSOCKS: AvslÃ¥tt - identd rapporterer ein annan brukaridentitetSOCKS: AvslÃ¥tt - kan ikkje kontakta identdSOCKS: Førespurnad vart avvist eller feilaSOCKS: TTL gjekk utSTHKILuka vekk eit RandomOfferSprettertSti til skriptSekund mellom rundane for AI-spelararVel lydfilSelSelja %tufSelja kor mange?Sel %d %tde for %P SendSender oppdateringar til metatenarenSender pÃ¥minningsmelding til metatenaren...TenarTenar : %sTenarskildring, rapportert til metatenarenTenaren rapporterer til metatenarenTenaren si velkomsthelsing for dagenFleinEin spelarEg trur eg skal reisa til Amsterdam i Ã¥rSokkeltypen er ikkje støttaGuten min, du treng ein gul hÃ¥rklipp.Denne tenaren har ei grense pÃ¥ %d spelarar, og denne grensa har blitt^nÃ¥dd. Prøv att seinare.Denne tenaren har ei grense pÃ¥ 1 spelar, og denne grensa har blitt nÃ¥dd. ^Prøv att seinare.Sorteringsnøkkel for lista over det tilgjengelege dopetLydfilLyd som blir spelt i slutten av speletLyd som blir spelt i byrjinga av speletLyd som blir spelt nÃ¥r eit skot treffLyd som blir spelt nÃ¥r eit skot bommarLyd som blir spelt nÃ¥r du kjem til ein ny stadLyd som blir spelt nÃ¥r ein annan blir med i speletLyd som blir spelt nÃ¥r ein spelar gÃ¥r ut av speletLyd som blir spelt nÃ¥r du sender ei privat meldingLyd som blir spelt nÃ¥r du sender ei offentleg meldingLyd som blir spelt nÃ¥r ein spelar klarer Ã¥ koma seg unnaLyd som blir spelt nÃ¥r ein spelar ikkje klarer Ã¥ koma seg unnaLyd som blir spelt nÃ¥r ei fientleg hore eller betjent blir drepenLyd som blir spelt nÃ¥r ein annan spelar eller ei politimann blir drepenLyd som blir spelt nÃ¥r vÃ¥pna blir ladaLyd som blir spelt nÃ¥r ei av horene dine blir drepenLyd som blir spelt nÃ¥r du blir drepenLyd som blir spelt nÃ¥r du klarer Ã¥ koma deg unnaLyd som blir spelt nÃ¥r du ikkje klarer Ã¥ koma deg unnaLydnamnLydarLydar Robin Kohli, 19.5degs.comPlassPlass %6dPlassen kvart vÃ¥pen tekSpeedSpionér pÃ¥ spelarSpionrapportarSpionrapportar for %sStart nytt spelStartkapitalStartgjeldFrognerStatusBer SOCKS om samband til %s...Status: Freistar Ã¥ kopla til %s...Status: Autentiserer mot SOCKS-tenarStatus: Kopla til SOCKS-tenar %s...Status: Kunne ikkje kopla til (%s)Status: Kunne ikkje kopla til metatenaren (%s)Status: Hentar informasjon frÃ¥ metatenaren...Status: Ventar pÃ¥ brukarenSymbol stÃ¥r før prisenTRUE viss ein SOCKS-tenar skal brukast i nettverketTRUE viss numerisk brukar-ID skal brukast for SOCKS4TRUE viss tenaren skal rapportera til ein metatenarSANN for Ã¥ slÃ¥ pÃ¥ lydTRUE viss verdien av det kjøpte dopet skal hugsastTRUE viss dette dopet kan vera ekstra billegTRUE viss dette dopet kan vera ekstra dyrtSnakk med alle spelaraneSnakk med spelar(ar)Snakk: Mellombels feil med namnetenaren -- prøv att seinareMarrakesh-ekspressen er her!Paven var jøde ein gong, veit du.Kommandoen som startar nettlesaren dinSambandet vart tidsutkopla.Politiet ser at du kastar %tde!Valutasymbolet (t.d. $)Det fyrste du mÃ¥ gjera er Ã¥ betala gjelda di til lÃ¥nehaien.Den gamle poengfila %s har blitt konvertert til det nye formatet. Ein kopi av den gamle fila har fÃ¥tt namnet %s. Vertsnamnet pÃ¥ SOCKS-tenarenDama attmed deg pÃ¥ t-banen sa^ «%s»%sMarknaden er oversvømt med billeg heimelaga syre!Nettverks-delsystemet mislukkastPortnummeret pÃ¥ SOCKS-tenarenTenaren har avslutta. Tenaren har avslutta. Byter til einspelar-modus.Tenaren har stengt. Byter til einspelar-modus.Versjonen av SOCKS-protokollen du vil bruka (4 eller 5)Du har ikkje sÃ¥ mykje pengar i banken.Du har ikkje sÃ¥ mykje i banken.Det er ingenting som Ã¥ ha mykje pengarTrur du du er tøff nok til Ã¥ takla slike som meg?Denne binærfila har blitt kompilert utan nettverksstøtte, og kan dermed ikkje fungera som ein nettverksspelar. Kompiler pÃ¥ nytt med opsjonen --enable-networking til configure.Denne binærfila har blitt kompilert utan støtte for nettverk, og kan ikkje køyra som tenar. Kompilér pÃ¥ nytt, og gi valet --enable-networking til configure-skriptet. Tida i sekund for Ã¥ kopla til eller bryta sambandTips politietFor seint. %s har nett gÃ¥tt.FrakkKan ikkje autentisera med HTTP-mellomtenar: Set MetaServer.Proxy.User og MetaServer.Proxy.Password-variablane til dei rette verdiane.Kan ikkje autentisera med HTTP-tenaren: Set MetaServer.Auth.User og MetaServer.Auth.Password-variablane til dei rette verdiane.Klarte ikkje Ã¥ opna fila %sKan ikkje tolka oppsettfila %s, linje %dKan ikkje lesa poengtavlefila %sKan ikkje skriva til poengtavlefila %sUkonstruktiv kritikkUkonstruktiv kritikk James MatthewsDiverre er det alt nokon som brukar «ditt» namn. Vér snill og byt det.Diverre, nokon andre bruker «ditt» namn. Ver snill og byt det:-Unicode oppsettfilUnix-kommandolina. Det viser ein hjelpetekst med dei tilgjengelege vala.UkjendUkjend HTTP-feil %dUkjend SOCKS-adressetype returnertUkjend SOCKS svarkodeUkjend SOCKS svar-versjon-kodeUkjend SOCKS tenarversjonUkjend kommando - prøv «help» for hjelp Ukjend melding: %s:%c:%s:%sUkjend metatenar-feilkode %dOppOppe sidan : %sBruk: dopewars [VAL]... Dop-pushe-spel tufta pÃ¥ «Drug Wars» av John E. Dell -b «svart-kvitt» - mao. ikkje bruk fine fargar (fargar blir normalt brukt viss terminalen støttar det) -n vér kjedeleg og ikkje kopla til nokon tilgjengelege dopewars-vertar (mao. ein-spelar-modus) -a, «antikk» dopewars - gjer spelet sÃ¥ likt den opprinnelege versjonen som rÃ¥d er (utan nettverksspel) -f fil sei kva for ei fil som skal brukast som poengtavle (normalt blir %s/dopewars.sco brukt) -o adr sei kva for ein vertmaskin som skal koplast til for fleirspelar-modus -s køyr i vertsmodus (merk: sjÃ¥ -A-opsjonen for Ã¥ stilla inn tenaren nÃ¥r han er i gang) -S køyr ein «privat» tenar (ikkje sei ifrÃ¥ til metatenaren) -p port nettverksporten som skal brukast (normalt: 7902) -g fil bane til ei oppsettfil for dopewars denne fila blir lest med ein gong -g-opsjonen blir lest -r fil bruk denne pid-fila nÃ¥r tenaren køyrer -l fil skriv logg til denne fila -c skap og køyr ein datastyrt spelar -w tving bruk av grafisk klient (GTK+ eller Win32) -t tving bruk av tekstklient (curses) (standard er Ã¥ bruka ein grafisk klient nÃ¥r mogleg) -P namn Sett namnet pÃ¥ spelaren -C fil konverter ei poengfil i gamalt format til det nye formatet -A kopla til ein lokalt køyrande tenar for administrasjon Bruk: dopewars [VAL]... Dop-pushe-spel tufta pÃ¥ «Drug Wars» av John E. Dell -b, --no-color, «svart-kvitt» - mao. ikkje bruk fine fargar --no-colour (fargar blir normalt brukt viss mogleg) -n, --single-player vér kjedeleg og ikkje kopla til nokon tilgjengelege dopewars-vertar (mao. ein-spelar-modus) -a, --antique «antikk» dopewars - gjer spelet sÃ¥ likt den opprinnelege versjonen som rÃ¥d er (utan nettverksspel) -f, --scorefile=FIL sei kva for ei fil som skal brukast som poengtavle (normalt blir %s/dopewars.sco brukt) -o, --hostname=ADR sei kva for ein vertmaskin som skal koplast til for fleirspelar-modus -s, --public-server køyr i vertsmodus (merk: sjÃ¥ -A-opsjonen for Ã¥ stilla inn tenaren nÃ¥r han er i gang) -S, --private-server køyr ein «privat» tenar (ikkje sei ifrÃ¥ til metatenaren) -p, --port=PORT nettverksporten som skal brukast (normalt: 7902) -g, --config-file=FIL bane til ei oppsettfil for dopewars denne fila blir lest med ein gong -g-opsjonen blir lest -r, --pidfile=FIL bruk denne pid-fila nÃ¥r tenaren køyrer -l, --logfile=FIL skriv logg til denne fila -A, --admin kopla til ein lokalt køyrande tenar for administrasjon -c, --ai-player skap og køyr ein datastyrt spelar -w, --windowed-client tving bruk av grafisk klient (GTK+ eller Win32) -t, --text-client tving bruk av tekstklient (curses) (standard er Ã¥ bruka ein grafisk klient nÃ¥r mogleg) -P, --player=NAMN Sett namnet pÃ¥ spelaren -C, --convert=FIL konverter ei poengfil i gamalt format til det nye formatet Brukarnamn:Brukarnamn for HTTP Basic-autentiseringBrukarnamn for HTTP Basic proxy-autentiseringBrukarnamn for SOCKS5-autentiseringBrukarar logga pÃ¥:- Bruker MetaServer.Auth.User og MetaServer.Auth.Password til HTTP-autentiseringBruker MetaServer.Proxy.User og MetaServer.Proxy.Password til HTTP mellomtenar-autentiseringBruker Socks.Auth.User og Socks.Auth.Password til SOCKS5-autentiseringBruker Socks.Auth.User og Socks.Auth.Password til SOCKS5-autentisering Bruker namnet %s Gyldig namn, men det er ingen DNS-data tilgjengelegVersjonVersjon : %sVersjon %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars er tilgjengeleg under GNU General Public Licence Ventar pÃ¥ tilkopling til metatenaren pÃ¥ %s:%u...Ã…tvaringÃ…tvaring: Klienten din er for gamal til Ã¥ støtta alle^ eigenskapane ved denne tenaren. For den fulle^ «opplevinga» bør du henta den siste versjonen av ^ dopewars frÃ¥ vevsida: http://dopewars.sourceforge.net/Var ikkje Jane Fonda fantastisk i BarbarellaMe bruker berre 20% av hjernane vÃ¥re, sÃ¥ kvifor ikkje øydeleggja restenMe vinn krigen mot narkotika!NettlesarVertsnamn pÃ¥ vevproxyJazztobakkKva vil du kasta? Kva vil du kjøpa? Kva vil du selja? Kor til, kompis? Kven vil du snakka privat med? Kven vil du spionera pÃ¥?Kven vil du tipsa purken om?Vil du K>jøpaVil du K>jøpa, S>elja eller G>Ã¥?Vil du K>opla til ein bestemt dopewars-tenarWinSock har ikkje starta opp ordentlegWinSock-versjonen er ikkje støttaVinnarar dopar seg ikkje... viss ikkje dei gjer detTa utOrd for ei einskild «hore»Ord for eit einskild narkotikum eller tilsvarandeOrd for eit einskild vÃ¥pen eller tilsvarandeOrd for to eller fleire «horer»Ord for to eller fleire slag dopOrd for to eller fleire vÃ¥penVil du ha ein seigmann?Ville det ikkje vore festleg viss alle plutseleg kvekkte samtidig?J:JaJNYN^vil du betala %P til ein doktor for Ã¥ lappa deg saman?YN^Hei du! Eg kan hjelpa deg Ã¥ bera %tde for berre %P. Ja eller nei?YN^Det er litt jazztobakk som luktar ugraskverk her.^Det ser bra ut! Vil du røyka det?YN^Vil du kjøpa ein %tue for %P?YN^Vil du kjøpa ein større frakk for %P?YN^Vil du vitja %tde?YN^^Vil du hyra ei %tue for %P?Ã…ret spelet startar iDuDet ser ut til at du bruker ein svært gamal (versjon 1.4.x)-klient.^Dette vil truleg fungera, men mange av dei nye eigenskapane til^dopewars vil ikkje vera støtta. Hent den nyaste versjonen frÃ¥^dopewars-vevsida, http://dopewars.sourceforge.net/.No har du pÃ¥ deg %d %tdeDu har rÃ¥d til %dDu har rÃ¥d til %d, og kan béra %d. Du kan ikkje fÃ¥ nokon pengar for desse %tbf:Du kan ikkje starta spelet utan Ã¥ velja eit namn!Du kom ikkje ein gong pÃ¥ poengtavla...Du har ikkje noko %tde Ã¥ selja!Du har ikkje noko Ã¥ selja!Du har ikkje nok pengar til Ã¥ kjøpa det %tde!Du har ikkje nok plass til Ã¥ bera det %tde!Du har ikkje sÃ¥ mykje pengar!Du finn %d %tde pÃ¥ ein daud kar pÃ¥ t-banen!Du kom deg unna!Du hallusinerte i tre dagar pÃ¥ den villaste trippen du kunne^ forestilla deg! SÃ¥ døydde du fordi hjernen din smuldra opp!Du har %d. Du har blitt dytta av tenaren. Byter til einspelar-modus.Du har blitt dytta av tenaren. Byter til einspelar-modus.Du har ein mÃ¥nad i speletid pÃ¥ Ã¥ skapa formuen din.Du høyrer nokon som speler %sDu traff %s!Du traff %s, og drap ei %tue!Du drap %s!Du ser ut som eit beltedyr!Du møter ein venn! Han gjev deg %d %tde.Du møter ein venn, og gjev han %d %tde.Du bomma pÃ¥ %s!Du mÃ¥ skriva inn ei positiv mengde pengar!Du stÃ¥r der som ein annan tulling.Du stoppa for Ã¥ %s.Du vart rana pÃ¥ t-banen!Du treng fleire %tde for Ã¥ bera meir %tde!Du er daud! Spelet er slutt.Pushetida di er ute.Mora di laga sjokoladekjeks med litt av %tbe. Dei var kjempegode!Spionen din hjÃ¥ %s har blitt oppdaga!^Spionen %s!Null-basert indeks pÃ¥ vÃ¥penet politiet er væpna medSel du snop, eller kva?^ (i det minste er det det du -trur- ho sa)_%c. %tde_Gamaldags modus_Angrip_Kjøp ->_Avbryt_Steng_Kopla til_Sel %tuf_Hiv <-_Dukk unna_Kjemp_Hjelp_Reis!_Nei_OK_Frisk opp_Røm_Spioner (%P)_Vent_Start spel for ein spelar_Tips (%P)_Ja`Acapulco Gold` av Riders of the Purple Sage`Are you Experienced` av Jimi Hendrix`Cheeba Cheeba` av Tone Loc`Comin' in to Los Angeles` av Arlo Guthrie`Commercial` av Spanky and Our Gang`Eight Miles High` av the Byrds`Itchycoo Park` av Small Faces`Kicks` av Paul Revere & the Raiders`Late in the Evening` av Paul Simon`Legalize It` av Mojo Nixon & Skid Roper`Legend of a Mind` av the Moody Blues`Light Up` av Styx`Mexico` av Jefferson Airplane`One toke over the line` av Brewer & Shipley`The Smokeout` av Shel Silverstein`White Punks on Dope` av the Tubes`White Rabbit` av Jefferson Airplanevæpna til tennenefor %Phore_ue_hore_be_horahorer_uf_horer_bf_horeneog selja narkotika. Ikkje lat politiet ta deg!politimannpolitimennhoppa avbetjentarbetjentdopewarsDatastyrt dopewars-spelardopewars er tilgjengeleg under GNU General Public Licencedopewars-tenardopewars-tenaren avsluttar.dopewars-tenar versjon %s kommandoar og innstillingar help Viser denne hjelpeteksten list Viser alle spelarane som er logga pÃ¥ push Ber spelaren høfleg om Ã¥ logga av kill Bryt sambandet til spelaren utan varsel msg: Send ei melding til alle spelarane save Lagrar det gjeldande oppsettet til den gjevne fila quit Stopp tenaren ordentleg, etter Ã¥ ha sagt ifrÃ¥ til alle spelarane = Set den gjevne variabelen til den gjevne verdien viser verdien av den gjevne variabelen [x].= Set den gjevne variabelen i den gjevne lista, indeks x, til den gjevne verdien [x]. Viser verdien til den gjevne listevariabelen Lovlege variablar er lista under:- dopewars-tenar versjon %s er klar og ventar pÃ¥ samband pÃ¥ port %d.dopewars-tenar versjon %s er klar til Ã¥ ta imot admin-kommandoar, prøv «help» for Ã¥ fÃ¥ hjelpdopewars versjon %s dop_ue_dop_be_dopetdop_uf_dop_bf_dopaslapp unnaVenta ein boolsk verdi (ein av 0, FALSE, 1, TRUE)Vart kopla til frÃ¥ %svÃ¥pen_ue_vÃ¥pen_be_vÃ¥penetpistolar_uf_pistolar_bf_pistolanetar ein øltungt væpnaav ein oppdikta narkotikamarknad. Skap rikdomen din ved Ã¥ kjøpalett væpnagodt væpnaeller K>ontakta spionane dine og fÃ¥ rapportareller I>ngenting?eller A>vslutta?Latterleg dÃ¥rleg væpnarøyker ein bongrøyker ein sigarrøyker ein sigarettrøyker ei bønnestrftime() formatstreng for Ã¥ visa tida i speletstrftime()-format-streng for logg-tidsmerkerEtter det, er mÃ¥let ditt Ã¥ tena sÃ¥ mykje pengar som rÃ¥d (og halda deg i live)!BankenLÃ¥nehaienNixon-opptakapubenvart skotendopewars-1.5.12/po/es_ES.po0000644001565000007070000040572110355323336012342 00000000000000# Translation of Dopewars to Castilian aka Spanish # This file is distributed under the same license as the Dopewars package. # Copyright (C) 2003 Ben Webb # Quique , 2002, 2003. # # # códigos %t: # # al - yendo a/al/a las/... sitio # First author: Quique , 2002, 2003. # # msgid "" msgstr "" "Project-Id-Version: es_ES\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: 2003-12-10 09:48+0100\n" "Last-Translator: Quique \n" "Language-Team: Castilian aka Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "puta" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "putas" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "arma" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "armas" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "droga" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "drogas" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "%d-%m-%Y" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "el usurero_al_al usurero" #: src/dopewars.c:195 msgid "the Bank" msgstr "el banco" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "la armería" #: src/dopewars.c:196 msgid "the pub" msgstr "el bar" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Puerto de red al que conectarse" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nombre del fichero de máximas puntuaciones" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nombre del servidor al que conectarse" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Mensaje de bienvenida del servidor" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Dirección de red del servidor al que escuchar" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "TRUE si se debe usar un servidor SOCKS para la conexión de red" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "TRUE si se deben usar ID de usuario numéricos para SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Si no se deja en blanco, el nombre de usuario a usar para SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "El nombre del servidor SOCKS a usar" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "El número de puerto del servidor SOCKS a usar" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "La versión del protocolo SOCKS a usar (4 o 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Nombre de usuario para la autenticación SOCKS5" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Contraseña para la autenticación SOCKS5" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "TRUE si el servidor debe informar a un metaservidor" #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "Nombre del metaservidor al que informar o del que obtener información" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "Puerto para la comunicación con el metaservidor" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "Nombre del proxy para la comunicación con el metaservidor" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "Puerto para comunicarse con el servidor proxy" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "Ruta del script en el metaservidor" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "El nombre de tu servidor" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "Autenticación del nombre local con el metaservidor" #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "Descripción del servidor, que se pasa al metaservidor" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "Si TRUE, usar SOCKS para la comunicación con el metaservidor" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "Nombre de usuario para la autenticación HTTP básica" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "Contraseña para la autenticación HTTP básica" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "Nombre de usuario para la autenticación HTTP básica con el proxy" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "Contraseña para la autenticación HTTP básica con el proxy" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Si TRUE, el servidor se minimiza a la bandeja del sistema" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "Si TRUE, el servidor funciona en segundo plano" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "La orden usada para iniciar tu navegador web" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "Número de rondas de juego (si es 0, el juego nunca termina)" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "Día del mes en el que empieza el juego" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "Mes en el que empieza el juego" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "Año en el que empieza el juego" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "El símbolo de dinero (por ejemplo, $)" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "Si TRUE, el símbolo de dinero va antes del precio" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "Fichero en el que escribir los mensajes de registro" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "Controla el número de mensajes de registro producidos" #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "formato de la cadena strftime() para las marcas de tiempo" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "Se limpian los eventos aleatorios" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "TRUE si se debe guardar el valor de las drogas compradas" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "Ser prolijo al procesar el fichero de configuración" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "Número de sitios en el juego" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "Número de tipos de poli en el juego" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "Número de armas en el juego" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "Número de drogas en el juego" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "Ubicación del usurero" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "Ubicación del banco" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "Ubicación de la armería" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "Ubicación del bar" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "Tasa de interés diaria de la deuda con el usurero" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "Tipo de interés diario de tu saldo en el banco" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "Nombre del usurero" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "Nombre del banco" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "Nombre de la armería" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "Nombre del bar" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "TRUE si se debe habilitar el sonido" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "Fichero de sonido que suena cuando un disparo hace blanco" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "Fichero de sonido que suena cuando un disparo yerra su objetivo" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "Fichero de sonido que suena cuando se recarga un arma" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" "Fichero de sonido a reproducir cuando se mata a un ayudante o a una puta " "enemiga" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "Fichero de sonido reproducido cuando muere una de tus putas" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "" "Fichero de sonido reproducido cuando se mata a otro jugador o a un policía" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "Fichero de sonido reproducido cuando te matan a ti" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "" "Fichero de sonido reproducido cuando un jugador intenta escapar, pero no lo " "consigue" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "" "Fichero de sonido reproducido cuando intentas escapar, pero no lo consigues" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "Fichero de sonido reproducido cuando un jugador logra escapar" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "Fichero de sonido reproducido cuando tú logras escapar" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "Fichero de sonido que suena al llegar a un nuevo sitio" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "Sonido que se oye cuando un jugador envía un mensaje público al chat" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "Sonido que se oye cuando un jugador envía un mensaje privado al chat" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "Fichero de sonido que suena cuando se une un jugador al juego" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "Fichero de sonido que suena cuando un jugador abandona el juego" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "Fichero de sonido reproducido al empezar el juego" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "Fichero de sonido reproducido al acabar el juego" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "Orden de las drogas disponibles" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "Número de segundos para devolver disparos" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "Los jugadores son desconectados después de este número de segundos" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "Tiempo en segundos para que las conexiones sean establecidas o rotas" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "Número máximo de conexiones TCP/IP" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "Segundos entre los turnos de los jugadores automáticos" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "Cantidad de dinero con la que empieza cada jugador" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "Importe de la deuda con la que empieza cada jugador" #: src/dopewars.c:493 msgid "Name of each location" msgstr "Nombre de cada lugar" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "Presencia policial en cada sitio (%)" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "Número mínimo de drogas en cada sitio" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "Máximo número de drogas en cada lugar" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "% de resistencia a disparos de cada jugador" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "% de resistencia a disparos de cada puta" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "Nombre de cada poli" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "Nombre del ayudante de cada poli" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "Nombre de los ayudantes de cada poli" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "% de resistencia a disparos de cada poli" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "% de resistencia a disparos de cada ayudante" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "Penalización de ataque relativa a un jugador" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "Penalización de defensa relativa a un jugador" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "Número mínimo de ayudantes acompañantes" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "Número máximo de ayudantes acompañantes" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "Índice basado en cero de la pistola con la que están armados los polis" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "Número de pistolas que porta cada poli" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "Número de pistolas con las que carga cada ayudante" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "Nombre de cada droga" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "Precio mínimo normal de cada droga" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "Precio máximo normal de cada droga" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "TRUE si esta droga puede ser especialmente barata" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "TRUE si esta droga puede ser especiamente cara" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "Mensaje a mostrar cuando esta droga sea especialmente barata" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Línea utilizada para drogas que sean caras el 50% de las veces" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "Divisor del precio de la droga cuando es especialmente barata" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplicador para las drogas especialmente caras" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "Nombre de cada arma" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "Precio de cada arma" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "Espacio que ocupa cada arma" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "Daño ocasionado por cada arma" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "Palabra usada para designar una sola \"puta\"" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "Palabra usada para designar dos o más \"putas\"" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "Palabra usada para designar una sola arma" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "Palabra usada para designar dos o más armas" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "Palabra usada para designar una sola droga" #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "Palabra usada para designar dos o más drogas" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "cadena de formato strftime() para mostrar el turno del juego" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "Coste de enviar a una puta a espiar al enemigo" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Coste de enviar a una puta a dar información sobre el enemigo a la poli" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "Precio mínimo de contratar una puta" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "Precio máximo de contratar una puta" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "Lista de cosas que oyes en el metro" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "Número de cosas que se dicen en el metro" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "Lista de canciones que oyes tocar" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "Número de canciones que se tocan" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "Lista de cosas que puedes dejar de hacer" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "Número de cosas que puedes dejar de hacer" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` de Jimi Hendrix" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` de Tone Loc" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Polipuestón` de King Putreak" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Alternativa platino` de Habeas Corpus" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "`Mineros locos (Armas pal pueblo)` de Def Con Dos" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "`Todo por la napia` de Siniestro Total" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` de Jefferson Airplane" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`I want to get high` de Cypress Hill" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Needle And The Spoon` de Lynyrd Skynyrd" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` de Jefferson Airplane" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "`Street Lobotomy` de Body Count" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` de the Tubes" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`I Love You Mary Jane` de Sonic Youth" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "`Drug Me` de Dead Kennedys" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Julie's In The Drug Squad` de The Clash" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Tengo un spiz amarillo` de Manolo Kabezabolo" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "las grabaciones del CESID" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalización` de Ska-P" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "tomar un cerveza" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "fumar un porro" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "fumar un puro" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "fumar un chino" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "fumar un cigarrillo" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "Agente Matute" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "ayudante" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "ayudantes" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "Comisario Romerales" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "Jefe Biggum" #: src/dopewars.c:717 msgid "cop" msgstr "madero" #: src/dopewars.c:717 msgid "cops" msgstr "maderos" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr ".38 Special" #: src/dopewars.c:723 msgid ".38 Special" msgstr "Kalashnikov" #: src/dopewars.c:724 msgid "Ruger" msgstr "Colt 45" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "Smith & Wesson" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "Tripis" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "" "¡El mercado está inundado de tripis baratos recién llegados de Amsterdam!" #: src/dopewars.c:733 msgid "Cocaine" msgstr "Farlopa" #: src/dopewars.c:734 msgid "Hashish" msgstr "Costo" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "¡Alguien se ha bajado al moro!" #: src/dopewars.c:736 msgid "Heroin" msgstr "Caballo" #: src/dopewars.c:737 msgid "Ludes" msgstr "Barbitúricos" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "¡Alguien ha dado un palo en una farmacia y está vendiendo barbitúricos " "baratos!" #: src/dopewars.c:739 msgid "MDA" msgstr "Pirulos" #: src/dopewars.c:740 msgid "Opium" msgstr "Opio" #: src/dopewars.c:741 msgid "PCP" msgstr "Ketamina" #: src/dopewars.c:742 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:743 msgid "Shrooms" msgstr "Monguis" #: src/dopewars.c:744 msgid "Speed" msgstr "Speed" #: src/dopewars.c:745 msgid "Weed" msgstr "María" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Ha llegado la cosecha. ¡El precio de la marihuana está por los suelos!" #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "La Paz_al_a La Paz" #: src/dopewars.c:755 msgid "Ghetto" msgstr "Barrio Oliver_al_al Barrio Oliver" #: src/dopewars.c:756 msgid "Central Park" msgstr "Parque Bruil_al_al Parque Bruil" #: src/dopewars.c:757 msgid "Manhattan" msgstr "Zona pija_al_a la Zona pija" #: src/dopewars.c:758 msgid "Coney Island" msgstr "Delicias_al_a las Delicias" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "El Gancho_al_al Gancho" #: src/dopewars.c:760 msgid "Queens" msgstr "Torrero_al_a Torrero" #: src/dopewars.c:761 msgid "Staten Island" msgstr "Casco viejo_al_al Casco Viejo" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" "¡La pestañí ha hecho una gran redada de %tde! ¡Los precios son exorbitantes!" #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "¡Los yonquis están comprando %tde a precios absurdos!" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "¡Vivamos al límite, co!" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "De todo lo que he perdido, lo que más echo de menos es la cabeza." #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "Apuesto a que tienes sueños superinteresantes" #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "Este verano no sé si bajar al moro o irme a Amsterdam" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "Tío, tienes que hacerte una cresta." #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Pero ¿por qué llevas gafas de sol si es de noche?" #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "Yo no he sido siempre una mujer, ¿sabes?" #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "¿Tu madre sabe que eres un camello?" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "¿Te has metido algo?" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "Ah, tú debes ser gallego" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "" "Hmmm... ¡qué almuerzo! Mi madre me ha preparado unas galletas de... " "chocolate." #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "Con dinero, chufletes." #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "" "Sólo usamos el 10% de nuestro cerebro. ¡Destruye con drogas el 90% sobrante!" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "Estoy hecha polvo, me voy a la cama. ¿Vienes?" #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "El PP es lo más rancio y retrógrado que ha parido madre. ¿O no?" #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "Tú sales en la tele, ¿verdad?" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "" "Los anuncios de compresas usan la regla de la reina: la sangre siempre es " "azul." #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "¿Sabe que tiene los ojos muy enrojecidos, joven?" #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "¿Te imaginas como sería la vida si no hubiera drogas?" #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "En las hamburgueserías usan carne de rata. Por eso la dan picada." #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "`Cuestiona la autoridad; piensa por ti mismo` dijo Tim Leary" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "Te vendo una chupa de cuero por 30 euros." #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "Los triunfadores no usan drogas... salvo..." #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "¡Mi cuerpo es mío y en él meto lo que quiero!" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "Soy Carlos Jesús, y vengo de Raticulín." #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "Espero que no te importe, pero voy a rezar por ti." #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "No somos más que un montón de átomos moviéndose en la nada." #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "¿No te encanta la música del telediario?" #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Si te ofrecen droga, di \"no\", que somos muchos y queda poca." #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "La telepatía existe. ¿No sientes la energía del universo?" #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "" "De la piel para dentro usted es su único soberano. ¡Y las drogas son sus " "amigas!" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "No se ha podido procesar el fichero de configuración %s, línea %d" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "No es posible abrir el fichero %s" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "La configuración sólo se puede cambiar interactivamente cuando no hay " "ningún\n" "jugador conectado. Espera a que se desconecten todos los jugadores, o\n" "elimínalos con las órdenes echar o matar, e inténtalo otra vez." #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "El índice en la cadena %s debe estar entre 1 y %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "%s es %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "%s es %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "%s es %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "%s es \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] es %s\n" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "%s es { " #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s no puede ser menor de %d - se ignora" #: src/dopewars.c:2210 #, fuzzy, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "%s no puede ser menor de %d - se ignora" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Estructura lista redimensionada a %d elementos\n" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "Se esperaba un valor booleano (uno de 0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "¤" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "Currency.Prefix=FALSE" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=FICHERO usar módulo de sonido \"FICHERO\"\n" " " #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u fichero usar módulo de sonido \"fichero\"\n" "\t " #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "(%s disponible)\n" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "dopewars versión %s\n" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Sintaxis: dopewars [OPCIÓN]...\n" "Juego de tráfico de drogas basado en \"Drug Wars\" de John E. Dell\n" " -b, --no-color, \"black and white\" - o sea, en blanco y negro\n" " --no-colour (por omisión se usan colores, si se puede)\n" " -n, --single-player ser aburrido y no conectarse a ninguno de los\n" " servidores dopewars disponibles (modo 1 " "jugador)\n" " -a, --antique dopewars \"antiguo\" dopewars - parecerse a la\n" " versión original cuanto sea posible (sin red)\n" " -f, --scorefile=FICHERO indicar que fichero usar como tabla de " "puntuaciones\n" " (por omisión se usa %s/dopewars.sco)\n" " -o, --hostname=DIRE especificar un nombre de servidor en el que se " "puede\n" " encontrar un servidor para dopewars " "multiusuario\n" " -s, --public-server ejecutar en modo servidor (nota: lee la opción -A " "para\n" " configurar un servidor ya en funcionamiento)\n" " -S, --private-server ejecutar un servidor \"privado\" (no avisar al\n" " metaservidor)\n" " -p, --port=PUERTO indicar el puerto de red a usar (por omisión: " "7902)\n" " -g, --config-file=FICHERO indicar la ruta de un fichero de configuración " "de\n" " dopewars\n" " este fichero se lee inmediatamente cuando se\n" " encuentra la opción -g\n" " -r, --pidfile=FICHERO mantener el fichero pid \"FICHERO\" mientras se " "ejecuta\n" " el servidor\n" " -l, --logfile=FICHERO escribir la información del registro en\n" " \"FICHERO\"\n" " -A, --admin conectarse a un servidor ejecutándose localmente " "para\n" " administración\n" " -c, --ai-player crear y ejecutar un jugador automático\n" " -w, --windowed-client obligar al uso de un cliente gráfico (GTK+ o " "Win32)\n" " -t, --text-client obligar al uso de un cliente en modo texto " "(curses)\n" " (por omisión se intenta usar un cliente gráfico\n" " -P, --player=NOMBRE establecer el nombre del jugador como \"NOMBRE\"\n" " -C, --convert=FICHERO convertir un fichero de puntuaciones en el " "\"formato\n" " antiguo\" al nuevo formato\n" #: src/dopewars.c:2619 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help mostrar esta información de ayuda\n" " -v, --version mostrar información sobre la versión y salir\n" "\n" "dopewars es Copyright (C) Ben Webb 1998-2005, y está publicado bajo la GNU " "GPL\n" "Informa de fallos al autor escribiendo a benwebb@users.sf.net\n" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Sintaxis: dopewars [OPCIÓN]...\n" "Juego de tráfico de drogas basado en \"Drug Wars\" de John E. Dell\n" " -b \"black and white\" - o sea, en blanco y negro\n" " (por omisión se usan colores, si se puede)\n" " -n ser aburrido y no conectarse a ninguno de los\n" " servidores dopewars disponibles (modo 1 jugador)\n" " -a dopewars \"antiguo\" dopewars - parecerse a la\n" " versión original cuanto sea posible (no hay red)\n" " -f FICHERO indicar que fichero usar como tabla de puntuaciones\n" " (por omisión se usa %s/dopewars.sco)\n" " -o DIRE especificar un nombre de servidor en el que se\n" " puede encontrar un servidor para dopewars multiusuario\n" " -s ejecutar en modo servidor (nota: lea la opción -A para\n" " configurar un servidor que ya está en funcionamiento)\n" " -S ejecutar un servidor \"privado\" (no avisar al metaservidor)\n" " -p PUERTO indicar el puerto de red a usar (por omisión: 7902)\n" " -g FICHERO indicar la ruta de un fichero de configuración de dopewars\n" "este fichero se lee inmediatamente cuando se encuentra la opción -g\n" " -r FICHERO mantener el fichero pid \"FICHERO\" mientras se ejecuta el " "servidor\n" " -l FICHERO escribir la información del registro en \"FICHERO\"\n" " -c crear y ejecutar un jugador automático\n" " -w obligar al uso de un cliente gráfico (GTK+ o Win32)\n" " -t obligar al uso de un cliente en modo texto (curses) (por\n" " omisión se usa un cliente gráfico si es posible)\n" " -P nombre establecer el nombre del jugador a \"nombre\"\n" " -C FICHERO convertir un fichero de puntuaciones en el \"formato antiguo" "\" al nuevo formato\n" " -A conectarse a un servidor ejecutándose localmente para " "administración\n" #: src/dopewars.c:2655 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h mostrar esta información de ayuda\n" " -v mostrar información sobre la versión y salir\n" "\n" "dopewars es Copyright (C) Ben Webb 1998-2005, y está publicado bajo la GNU " "GPL\n" "Informa de fallos al autor escribiendo a benwebb@users.sf.net\n" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "El cliente curses no está disponible - vuelve a construir el binario\n" "pasando la opción --enable-curses-client a configure, o usa una\n" "versión gráfica (si es posible) es su lugar.\n" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "El cliente gráfico no está disponible - vuelve a construir\n" "el binario pasando la opción --enable-gui-client a configure,\n" "o usa el cliente curses (si está disponible) en su lugar.\n" #: src/dopewars.c:2983 #, fuzzy msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto\n" "no se puede ejecutar en modo servidor. Recompila pasando\n" "la opción --enable-networking al script configure.\n" #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto\n" "no se puede ejecutar en modo servidor. Recompila pasando\n" "la opción --enable-networking al script configure.\n" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "Traducción al inglés Ben Webb" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Basado en el juego Drug Wars de John E. Dell, dopewars es una simulación" #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" "de un mercado de la droga imaginario. Dopewars es un juego para toda la" #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "" "familia que consiste en ganar dinero con la compraventa (y eludir a la poli)." #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "Lo primero que tienes que hacer es saldar la deuda con tu usurero. Después" #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "tu objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!)" #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "Tienes un mes de tiempo de juego para amasar tu fortuna." #: src/curses_client/curses_client.c:297 #, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr "dopewars está publicado bajo la GNU General Public Licence" #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "Iconos y gráficos Ocelot Mantis" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Sonidos Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "Compraventa de drogas e investigación Dan Wolf " #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testeo del juego Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testeo intensivo del juego Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Críticas constructivas Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "Críticas destructivas James Matthews" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "Para conocer las opciones en la línea de órdenes, escribe dopewars -h" #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "en tu terminal. Se mostrará una pantalla de ayuda con las opciones " "disponibles." #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Introduce el nombre y puerto de un servidor doperwars:-" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "Nombre del servidor: " #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "Puerto: " #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "Por favor, espera... intentando contactar con el metaservidor..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "Servidor: %s" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "Puerto : %d" #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "Versión : %s" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Jugadores: -desconocido- (máximo %d)" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "Jugadores: %d (máximo %d)" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "En funcionamiento desde: %s" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "Comentario: %s" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "S>iguiente servidor: A>nterior servidor; E>scoger este servidor... " #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "SAE" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Conectado al servidor SOCKS %s..." #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "Autenticando contra el servidor SOCKS" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Pidiendo SOCKS para conectarse a %s..." #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "Se requiere autenticación proxy para la zona %s" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "Se requiere autenticación para la zona %s" #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "(Introduce un nombre de usuario en blanco para cancelar" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "Nombre de usuario: " #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "Contraseña: " #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" "Se requiere autenticación SOCKS (nombre de usuario en blanco para cancelar)" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "Por favor, espera... intentando contactar con el servidor dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "No se pueden obtener los detalles del metaservidor" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "No se puede iniciar dopewars en modo multijugador" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "¿Quieres... C>onectarte a un servidor dopewars determinado" #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr "" " L>istar los servidores que hay en el metaservidor, y elegir uno" #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "" " S>alir (puedes iniciar un servidor tecleando «dopewars -s»)" #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr " o J>ugar en modo 1 jugador? " #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "CLSJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "¿Dónde quieres ir, colega? " #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "%/Location display/%tde" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "No puedes conseguir ni un pavo por estas %tde que llevas:" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "¿Qué quieres tirar? " #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "¿Cuántas quieres tirar? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "¿Qué quieres pillar? " #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "¿Qué quieres pulir? " #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Tienes pasta para comprar %d, y espacio para llevar %d. " #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "¿Cuánto quieres? " #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "Tienes %d. " #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "¿Cuánto quieres vender? " #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Elige un recado que encargar a una de tus %tde..." #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr " E>spiar a otro camello (precio: %P)" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " S>oplarse a la bofia de otro camello (precio: %P)" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr " I>rse a tomar por culo" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "o C>ontactar con tus espias y recibir las informaciones" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr "o N>o mandar ningún encargo " #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "ESICN" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "¿A quién quieres espiar? " #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "¿De quién quieres chivarte a la pasma? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr " ¿Estás seguro? " #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "SN" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "¿Estás seguro de que quieres salir? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "Nuevo nombre: " #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Has sido expulsado del servidor. Pasando al modo 1 jugador." #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "El servidor se ha desconectado. Pasando al módulo 1 jugador." #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "¡%s se une al juego!" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "%s ha dejado el juego." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "%s es ahora conocido como %s." #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "M E T R O" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "%/Ubicación actual/%tde" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Desgraciadamente ya hay alguien usando «tu» nombre. Elige otro." #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "P U N T U A C I O N E S" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "¡No tienes ningún %tde que vender!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "¡No tienes ninguna que vender!" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "¡Necesitas más %tde para que te guarden más %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "¡No tienes suficiente espacio para llevar ese %tde!" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "¡No tienes suficientes pelas para comprar ese %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "¿Quieres C>omprar, P>ulir o D>arte el piro? " #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "CPD" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "¿Cuánto dinero quieres devolver? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "¡No tienes tanta pasta!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "¿Quieres I>ngresar dinero, S>acar dinero o L>argarte?" #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "ISL" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "¿Cuánto dinero? " #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "No tienes tantos dineros en el banco..." #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "S:Sí" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "N:No" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "C:Correr" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "E:Enfrentarse" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "A:Atacar" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "H:Huir" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "Pulsa cualquier tecla..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "Mensajes (-/+ desplaza hacia arriba/abajo)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "Situación" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "Pasta %16P" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "%-18Tde%3d" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "Salud %3d" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "Banco %16P" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "Pufo %17P" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "Espacio %4d" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "%Tde %5d Espacio %4d" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "Gabardina" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "%/Situación: Drogas/%Tde" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d a %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "%/Situación: Armas/%Tde" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "Información sobre %s de las espías" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Espía: Drogas/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "%/Espía: Armas/%Tde..." #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "¡No hay ningún otro jugador conectado en este momento!" #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "Jugadores conectados en este momento:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Eh, tío. Los precios de las %tde aquí son:" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "%c. %-10tde %8P" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGWINCH!" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "Eh tío, ¿cómo te llamas? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "¿Quieres C>omprar" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr ", P>ulir" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr ", T>irar" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr ", H>ablar a todos, hablar a un J>ugador" #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr ", L>istar" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr ", M>andar recado" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr ", E>nfrentarte" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr ", D>arte el piro" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr ", o S>alir? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "¿Quieres " #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "L>uchar, " #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "E>sperar, " #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "C>orrer, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "P>ulir %tde, " #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "o S>alir? " #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "Se ha perdido la conexión con el servidor. Pasando al modo 1 jugador." #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "CPTHJLMEDS" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "PCLES" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "¿Qué lista quieres? ¿J>ugadores o P>untuaciones? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "JP" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "¿Con quién quieres hablar en privado?" #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "Decir: " #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "¿Jugar otra vez? " #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "/_Juego" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "/Juego/_Nueva partida..." #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "/Juego/_Abandonar partida..." #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "/Juego/_Opciones..." #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "/Juego/Habilitar _sonido" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "/Juego/_Salir..." #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "/_Hablar" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "/Hablar/_Hablar a todos..." #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "/Hablar/Hablar al _Jugador..." #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "/_Listar" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "/Listar/_Jugadores..." #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "/Listar/_Puntuaciones..." #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "/Listar/_Inventario..." #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "/_Recados" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "/Recados/_Espiar..." #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "/Recados/_Chivarse a la policía..." #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "/Recados/_Obtener información de las espías..." #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "/_Ayuda" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "/Ayuda/_Acerca de..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "Advertencia" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "Error" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "Mensaje" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "¿Abandonar esta partida?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "Salir del juego" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "Empezar nueva partida" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "Abandonar esta partida" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "Inventario" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "Se ha perdido la conexión con el servidor - pasando al modo 1 jugador" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" "Has sido expulsado del servidor.\n" "Pasando al modo 1 jugador." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" "El servidor se ha apagado.\n" "Pasando al modo 1 jugador." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "Yendo %tal" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Elemento de menú echar a una puta/E_char a una %Tde..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "_Espiar (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "_Chivarse (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "Puntuaciones" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "El fichero de puntuaciones está corrupto :-(" #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "Enfrentarse" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "¡A _Trapichear!" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "_Luchar" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "_Esperar" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "_Correr" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Enfrentamiento: Putas/%d %tde" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "(Quedan)" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "(Muertas)" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "Salud: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "Tú" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "%/Estado GTK: Armas/%Tde" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Putas/%Tde" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1352 #, fuzzy msgid "%/Inventory gun name/%tde" msgstr "Inventario" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "Ir al barrio:" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "%/Lugar al que pirarse/%tde" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "a %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "Ahora llevas %d dosis de %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "Espacio disponible: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "Tienes dinero para comprar %d" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "Comprar" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "Pulir" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "Tirar" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "¿Cuánto quieres comprar?" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "¿Cuánto quieres pulir?" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "¿Cuánto quieres tirar?" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "Comprar %tde" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "Pulir %tde" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "Tirar %tde" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "_Sí" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "_No" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "_Atacar" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "_Huir" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "Pregunta" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "Espacio" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "Pasta" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "Pufo" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "Banco" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "Salud" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "¡_Darse el piro!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "Traducción al inglés" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "Ben Webb" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "Iconos y gráficos" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "Sonidos" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "Compraventa de drogas e investigación" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "Testeo del juego" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "Testeo intensivo del juego" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "Críticas constructivas" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "Críticas destructivas" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "Acerca de Dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Basado en el juego Drug Wars de John E. Dell, dopewars es una \n" "simulación de un mercado de la droga imaginario. Dopewars es un juego \n" "para toda la familia que consiste en la compraventa de droga y en intentar \n" "evitar a la policía.\n" "\n" "Lo primero que tienes que hacer es saldar la deuda con tu usurero. \n" "Después, tu objetivo es hacer tanto dinero como sea posible (¡y seguir \n" "vivo!) Tienes un mes de tiempo de juego para amasar tu fortuna.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" "Versión %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars está publicado bajo la GNU General Public Licence\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Para obtener información sobre las opciones en la línea de órdenes,\n" "escribe dopewars -h en tu terminal Unix. Esto mostrará una pantalla\n" "de ayuda con las opciones disponibles.\n" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "Documentación local en HTML " #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "%/Título de la ventana del usurero/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "%/Título de la ventana del banco/%Tde" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "¡Tienes que introducir una cantidad positiva de dinero!" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "No tienes tantos dineros en el banco..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "Pasta en efectivo: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "Pufo: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "Banco: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "Saldar:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "Ingresar" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "Sacar" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "Pagar todo" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "Lista de jugadores" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "Hablar al jugador (o jugadores)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "Hablar a todos los jugadores" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "Mensaje:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "Enviar" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "Espiar al jugador" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor, elige al jugador al quieres espiar. Tu %tde ofrecerá\n" "sus servicios a ese jugador, y si tiene éxito, podrás ver la\n" "situación del jugador con el menú \"Obtener informes de las\n" "espías\" Recuerda que la %tde se va, así que puedes perder\n" "todas las %tde o %tde que te esté guardando." #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "Chivarse a la pasma" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor, elige al jugador del que quieres chivarte a la pasma. Tu\n" "%tde ayudará a los maderos a atacar a ese jugador, y te informará\n" "del resultado cuando os encontreis. Recuerda que la %tde se va\n" "a ir temporalmente, así que puedes perder todas las %tde o %tde\n" "que te esté guardando." #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Título del diálogo Echar a una puta/Echar a una %Tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "¿Estás seguro? (Perderás todas las %tde y %tde\n" "que te esté guardando esta %tde!)" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "Nombre" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "Precio" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "Número" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "_Comprar ->" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "<- _Pulir" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "_Tirar <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "%Tde aquí" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "%Tde que tienes" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "Cambiar nombre" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Desgraciadamente ya hay otro jugador usando «tu» nombre. Elije otro" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Ventana de la armería/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "Información de las espías" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "Nuevo %s" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "Seleccionar fichero de sonido" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "Nuevo" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "Borrar" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "Arriba" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "Abajo" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "Presencia policial" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "Número mínimo de distintas clases de droga" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "Número máximo de distintos tipo de droga" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "Mínimo precio normal" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "Máximo precio normal" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "Puede ser especialmente barata" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "Frase barata" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "Puede ser especialmente cara" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "Inventario" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "Daño" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "Nombre de un ayudante" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "Nombre de varios ayudantes" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "Número mínimo de ayudantes" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "Número máximo de ayudantes" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "Blindaje del madero" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "Blindaje del ayudante" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "Opciones" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "Eliminar las referencias a drogas" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "Fichero de configuración de Unicode" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "Duración de la partida (turnos)" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "Capital inicial" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "Deuda inicial" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "Símbolo de dinero" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "Símbolo antes del precio" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "Nombre de una puta" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "Nombre de varias putas" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "Navegador" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "General" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "Sitios" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "Frase cara 1" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "Frase cara 2" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "Drogas" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "Armas" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "Maderos" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "El servidor informa al metaservidor" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "Minimizar a la bandeja del sistema" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "Nombre del metaservidor" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "Puerto" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "Nombre del proxy web" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "Ruta del script" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "Comentario" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "MOTD (mensaje de bienvenida)" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "Servidor" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "Nombre del sonido" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "Descripción" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "Fichero de sonido" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "Inspeccionar..." #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "Jugar" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "¡No puedes empezar la partida sin dar un nombre antes!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "Nueva partida" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "Situación: Esperando input del usuario" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Conexión cerrada por el servidor remoto." #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "Situación: No se ha podido conectar al metaservidor (%s)" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "Situación: No se ha podido conectar (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Situación: Intentando contactar con %s..." #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "Desconocido" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Situación: Conectado al servidor SOCKS %s..." #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "Situación: Autenticando contra servidor SOCKS" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Situación: Pidiendo SOCKS para conectarse a %s..." #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "Situación: Obtener información de servidores del metaservidor..." #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "Versión" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "Jugadores" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "Eh tío, ¿cuál es tu _nombre?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "Nombre del servidor" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "_Conectarse" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "1 jugador" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "_Modo antiguo" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "_Empezar partida para 1 jugador" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "Metaservidor" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "Se precisa autenticación con el Proxy" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "Se precisa autenticación" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "Se precisa autenticación SOCKS" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "_Aceptar" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "Cerrar _Ventana" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "_Cancelar" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "_Refrescar" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "_Ayuda" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "Éste es el registro de arranque de dopewars,\n" "que contiene todos los mensajes de información resultantes\n" "de procesar el fichero de configuración, etc.\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "servidor dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "Jugador automático de dopewars" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "se escapó" #: src/serverside.c:73 msgid "defected" msgstr "desertó" #: src/serverside.c:73 msgid "was shot" msgstr "fue disparada" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AH" #. Help on various general server commands #: src/serverside.c:121 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "ordenes y preferencias del servidor dopewars versión %s\n" "\n" "help Muestra esta pantalla de ayuda\n" "list Lista todos los jugadores conectados\n" "push Le pide educadamente al jugador nombrado que se " "vaya\n" "kill Rompe repentinamente la conexión con el jugador " "nombrado\n" "msg: Envía un mensaje a todos los jugadores\n" "save Guardar la configuración actual en el fichero " "nombrado\n" "quit Salir elegantemente, tras avisar a todos los " "jugadores\n" "= Establece la variable nombrada al valor dado\n" " Muestra el valor de la variable nombrada\n" "[x].= Establece la variable nombrada en la lista dada,\n" " index x, al valor proporcionado\n" "[x]. Muestra el valor de la variable de la lista " "nombrada\n" "\n" "Las variables válidas son:-\n" "\n" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "No se ha podido conectar al metaservidor en %s:%u (%s)" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "" "Usando metaservidor. Proxy. Usuario y metaservidor. Proxy. Contraseña para " "la autenticación con el proxy HTTP" #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" "No se ha podido autenticar con proxy HTTP; por favor, establece las " "variablesMetaServer.Proxy.User y MetaServer.Proxy.Password" #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" "Usando MetaServer.Auth.User y MetaServer.Auth.Password para la autenticación " "HTTP" #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" "No se ha podido autenticar con el servidor HTTP; por favor, establece las " "variables MetaServer.Auth.User y MetaServer.Auth.Password" #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "" "Usando Socks.Auth.Usuario y Socks.Auth.Contraseña para autenticación SOCKS5" #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" "Intentos para conectarse al metaservidor demasiado frecuentes - esperando al " "siguiente turno" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "Esperando para conectarse al metaservidor en %s:%u..." #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" "Parece que estás usando un cliente tremendamente viejo (versión 1.4.x)^ " "Aunque posiblemente funcione, muchas de las nuevas funcionalidades^ no " "estarán soportadas. Obtén la última versión del sitio web de dopewars,^ " "http://dopewars.sourceforge.net/." #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" "Advertencia: tu cliente es demasiado viejo para soportar todas las^ " "funcionalidades de este servidor. Para «vivir la experiencia» completa,^ " "obtén la última versión de dopewars del servidor web,^ http://dopewars." "sourceforge.net/." #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "" "Alcanzado el número máximo de clientes (MaxClients %d) - cerrando la conexión" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Lo siento, pero este servidor tiene un límite de 1 jugador, que ya ha sido " "alcanzado. ^Prueba más tarde a conectarte de nuevo." #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Lo siento, pero este servidor tiene un límite de %d jugadores, que ya ha " "sido alcanzado. ^Prueba a conectarte de nuevo más tarde." #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "%s es ahora conocido como %s" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "Se acabó tu tiempo para trapichear..." #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: DENEGADO largarse a %s" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "%s espía ahora a %s" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "espionaje de %s a %s: DENEGADO" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s se chivó a la poli de %s" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "Chivatazo de %s sobre %s: DENEGADO" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Mensaje desconocido: %s:%c:%s:%s" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "Manteniendo el fichero pid %s" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "No se puede crear el fichero pid %s: %s" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" "No se puede crear el socket (%s) (a la escucha) del servidor. Cancelando." #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "No se puede conectar al puerto %u (%s). Cancelando." #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "No se puede escuchar el socket de red. Cancelando." #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "servidor dopewars versión %s listo y esperando conexiones por el puerto %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGUSR1!" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGHUP!" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGINT!" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGTERM!" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "¡No se puede instalar el gestor de tuberías!" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "El fichero de configuración se ha guardado con éxito como %s\n" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "Usuarios conectados:-\n" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "No hay ningún usuario conectado.\n" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "Echando a %s\n" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "¡No existe ese usuario!\n" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "%s asesinado\n" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "Orden desconocida - usa «help» para obtener ayuda\n" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "recibida una conexión de %s" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "cerrando el servidor dopewars." #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "¡%s deja el servidor!" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" "No se ha podido establecer el socket de dominio Unix para conexiones de " "administración - comprueba los permisos en /tmp." #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "el servidor de dopewars versión %s está listo para recibir órdenes de " "administración; usa «help» para obtener ayuda" #: src/serverside.c:1280 msgid "New admin connection" msgstr "Nueva conexión de administración" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "Orden de administración: %s" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "Conexión de administración cerrada" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "No se ha podido establecer el estado del Servicio NT" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "No se ha podido enviar el mensaje de notificación de servicio" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "No se ha podido registrar el gestor de servicio" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "No se ha podido iniciar el Servicio NT" #: src/serverside.c:1728 msgid "Command:" msgstr "Orden:" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "No se ha podido leer la tabla de puntuaciones del fichero %s" #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "El fichero %s de la tabla de puntuaciones se ha convertido\n" "al nuevo formato. Se ha creado una copia de respaldo del\n" "fichero antiguo, que se ha llamado %s.\n" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "No se ha podido crear la copia de respaldo(%s) del\n" "fichero de máximas puntuaciones %s." #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "No se ha podido abrir el fichero de puntuaciones %s: %s." #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "No se puede abrir el fichero de máximas puntuaciones %s.\n" "(%s.) Asegúrate de que tienes permisos para acceder\n" "a este fichero o directorio, o bien indica otro fichero de\n" "puntuaciones con la opción -f en la línea de órdenes." #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s no parece ser un fichero de puntuaciones válido - \n" "por favor, compruébalo. Si es un fichero de puntuaciones\n" "de una versión antigua de dopewars, conviértela al nuevo\n" "formato ejecutando la orden «dopewars -C %s» en la\n" "línea de órdenes." #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Se han encontrado errores al leer el fichero de configuración.\n" "Como resultado, algunas preferencias podrían no funcionar de\n" "la manera esperada. Puedes consultar el fichero «dopewars-log.txt»\n" "para conocer los detalles." #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Se han encontrado errores al leer el fichero de configuración.\n" "Como resultado, puede que algunas preferencias no funcionen\n" "de la manera esperada. Puedes mirar los mensajes en la\n" "salida estándar para conocer más detalles." #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "No se puede leer el fichero de máximas puntuaciones %s." #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "¡Enhorabuena! ¡Has conseguido una de las máximas puntuaciones!" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "Ni siquiera has conseguido entrar en la tabla de puntuaciones..." #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "No se ha podido escribir en el fichero de puntuaciones %s" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "(R.I.P.)" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Chivatazo de %s" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Oferta de espionaje de %s" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Una de tus %tde estaba espiando para %s. ^¡La espía %s!" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "¡Tu espía trabajando con %s ha sido descubierta!^¡La espía %s!" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "La chavala que está junto a ti en el metro dice:^ «%s»%s" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (al menos, eso es lo que *piensas* que ha dicho)" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "Oyes a alguien poner %s" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^¿Quieres visitar %tal?" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^¿Quieres contratar a una %tde por %P?" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^¡%s ya está aquí!^¿Quieres Atacar o Huir?" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "¡No hay armas ni maderos!" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "¡Los maderos no pueden atacar a otros maderos!" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "¡Los jugadores ya están en una pelea!" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "¡Los jugadores ya están en sus propias peleas!" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "No se puede empezar el enfrentamiento - ¡no hay ningún arma que usar!" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "Estás criando malvas. Sayonara, baby." #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: el chivatazo de %s acabó bien." #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Siguiendo tu chivatazo, la bofia va a por %s, ¡le disparan y la palma!" #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "Siguiendo tu chivatazo, la pasma va a por %s, que escapa con %d %tde. " #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^¿Quieres pagar %P a un médico para que te cure?" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "¡Te atracan en el metro!" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "¡Te encuentras con un amigo! Te da %d %tde." #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "¡Te encuentras con un amigo! Le das %d %tde." #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "Pasando de una oferta aleatoria" #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "¡Los perros de la bofia te persiguen durante %d manzanas! ¡Pierdes algo de %" "tde! Vaya mierda, macho." #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Encuentras %d %tde en el cuerpo de un tío tirado en el metro!" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "¡Tu mami ha hecho galletas con algo de tu %tde! ¡Estaban geniales!" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^¡Aquí hay algo de maría que huele a herbicida!^¡Tiene buena pinta! " "^¿Quieres fumarla? " #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "Te has parado para %s." #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^¿Quieres comprar una gabardina más grande por %P?" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^¡Eh, tío! Te ayudo a llevar tus %tde por sólo %P. ¿Sí o no?" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^¿Quieres comprar un %tde por %P?" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: la oferta era en nombre de %s" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "¡%s ha aceptado tu %tde!^Usa la tecla G para contactar con tu espía." #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "¡Estuviste flipando durante tres días en el cuelgue más salvaje que hayas " "imaginado nunca!^Y entonces la palmaste debido a que tu cerebro se derritió." #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "Demasiado tarde. %s se acaba de ir." #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "¡%s ha rechazado tu %tde!" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "¡La bofia te ve tirando %tde!" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "Enviando actualizaciones pendientes al metaservidor..." #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "Enviando mensaje recordatorio al metaservidor..." #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "Jugador eliminado: demasiado tiempo inactivo" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "Jugador eliminado debido a que se agotó el tiempo para la conexión" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "(No se puede mostrar el error en UTF-8)" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "" "Se ha roto la conexión debido a que se ha llenado la memoria intermedia " "(full buffer)." #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "Código de error interno %d" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "WinSock no ha sido inicializado correctamente." #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "El subsistema de red no está preparado." #: src/error.c:160 msgid "WinSock version not supported" msgstr "Versión de WinSock no soportada" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "El subsistema de red ha fallado" #: src/error.c:162 msgid "Address already in use" msgstr "La dirección ya está en uso" #: src/error.c:163 msgid "Cannot reach the network" msgstr "No se puede alcanzar la red" #: src/error.c:164 msgid "The connection timed out" msgstr "La conexión excedió el tiempo límite" #: src/error.c:165 msgid "Out of file descriptors" msgstr "Ya no quedan descriptores de fichero" #: src/error.c:166 msgid "Out of buffer space" msgstr "Ya no queda memoria intermedia (buffer)" #: src/error.c:167 msgid "Operation not supported" msgstr "Operación no soportada" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "La conexión se ha roto debido a un fallo" #: src/error.c:169 msgid "Connection reset by remote host" msgstr "Conexión rota por el servidor remoto" #: src/error.c:170 msgid "Connection refused" msgstr "Conexión rechazada" #: src/error.c:171 msgid "Address family not supported" msgstr "Familia de direcciones no soportada" #: src/error.c:172 msgid "Protocol not supported" msgstr "Protocolo no soportado" #: src/error.c:173 msgid "Socket type not supported" msgstr "Tipo de socket no soportado" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "Servidor no encontrado" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "Error temporal con el nombre del servidor - prueba de nuevo más tarde" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "No se ha podido contactar con el servidor de nombres" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "Nombre válido, pero ahora no tiene ningún registro DNS" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "Error de red código %d" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "Error del servidor de nombres código %d" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Error interno del metaservidor «%s»" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Respuesta del metaservidor incorrecta «%s»" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "Error del metaservidor desconocido código %d" #: src/message.c:1167 msgid "Do you run?" msgstr "¿Echas a correr?" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "¿Huyes o te enfrentas?" #: src/message.c:1369 msgid "pitifully armed" msgstr "armados de pena" #: src/message.c:1370 msgid "lightly armed" msgstr "poco armados" #: src/message.c:1371 msgid "moderately well armed" msgstr "armados" #: src/message.c:1372 msgid "heavily armed" msgstr "muy armados" #: src/message.c:1372 msgid "armed to the teeth" msgstr "armados hasta los dientes" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "¡%s - %s - te está dando caza, colega!" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "¡%s y %d %tde - %s - te están persiguiendo, colega!" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "¡%s llega con %d %tde, %s!" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "%s se levanta y lo coge" #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "Te quedas ahí como un tonto." #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "%s intenta huir, pero no lo consigue." #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "¡Pánico! ¡No puedes escapar!" #: src/message.c:1410 #, c-format msgid "%s has got away to %tde!" msgstr "¡%s ha conseguido escapar %tal!" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "¡%s ha conseguido escapar!" #: src/message.c:1416 msgid "You got away!" msgstr "¡Has conseguido escapar!" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "Armas recargadas..." #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s dispara a %s... ¡y falla!" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s te dispara... ¡y falla!" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "¡No le has dado a %s!" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "%s mata a %s." #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s dispara a %s ¡y mata a una %tde!" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "%s dispara a %s." #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "¡%s se te ha picado, tío! Descansa en paz..." #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s te dispara... ¡y se carga a una %tde!" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "¡%s te ha dado, co!" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "¡Has matado a %s!" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Le das a %s, y matas a un %tde!" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "¡Le das a %s!" #: src/message.c:1469 msgid " You find %P on the body!" msgstr " ¡Te encuentras %P en el cuerpo!" #: src/message.c:1471 msgid " You loot the body!" msgstr " ¡Le robas al cadaver!" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "¡No se puede inicializar WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "Error general del servidor SOCKS" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "Conexión rechazada por las reglas de SOCKS" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "SOCKS: No se llega a la red" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "SOCKS: No se llega al servidor" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "SOCKS: Conexión rechazada" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "SOCKS: se agotó el tiempo" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "SOCKS: Orden no soportada" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Tipo de dirección no soportado" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "El servidor SOCKS rechazó todos los métodos ofrecidos" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "Devuelto tipo de dirección SOCKS desconocido" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "Error de autenticación SOCKS" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "Autenticación SOCKS cancelada por el usuario" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Solicitud rechazada o sin éxito" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: Rechazada - no se ha podido contactar identd" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: Rechazada - identd informa de diferentes ID de usuario" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "Código de respuesta de SOCKS desconocida" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "Código de respuesta de versión de SOCKS desconocida." #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "Versión de servidor SOCKS desconocida" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "Código de error de SOCKS %d" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "Se ha excedido el número de intentos" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "Cabecera de autenticación no válida: %s" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "Redirección no válida: %s" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "Línea de estado de HTTP no válida: %s" #: src/network.c:447 msgid "403: forbidden" msgstr "403: prohibido" #: src/network.c:450 msgid "404: page not found" msgstr "404: página no encontrada" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "401: la autenticación HTTP ha fallado" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "407: la autenticación con el proxy HTTP ha fallado" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "Mensaje de redirección no válido recibido del servidor" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "Error HTTP desconocido %d" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "%d: error de redirección" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "%d: error del cliente HTTP" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "%d: error del servidor HTTP" #: src/admin.c:52 #, fuzzy, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "Probando a conectar con el servidor dopewars local vía sockets de\n" "dominio Unix %s...\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Conexión establecida. Usa Ctrl-D para cerrar la sesión.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" "No se ha podido determinar el fichero de configuración local en que escribir" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "No se ha podido abrir el fichero %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "No se ha podido conectar al servidor dopewars\n" "(%s)\n" "El jugador automático se suicida." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Se ha establecido la conexión\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Conectado al servidor SOCKS %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Autenticándose con el servidor SOCKS\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Pidiendo SOCKS para conectarse a %s...\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Usando Socks.Auth.User y Socks.Auth.Password para la autenticación SOCKS5\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "" "Iniciado el jugador automático; intentando conectarse al servidor en %s:%d." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Jugador automático suicidado con éxito.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "¡Se ha roto la conexión con el servidor!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Usando el nombre %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Jugadores en esta partida:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s se une a la partida.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s ha dejado el juego.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Yendo %tal con %P en efectivo y %P de deuda\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Jugador automático asesinado. Cerrando de manera normal.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Se ha agotado el tiempo de juego. Saliendo.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "El jugador automático ha sido expulsado del servidor.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "El servidor se ha apagado.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendiendo %d %tde a %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Comprando %d %tde a %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Comprando un %tde por %P en la armería\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Deuda de %P pagada al usurero\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "El usurero está en %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "La armería está en %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "El bar está en %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "El banco está en %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "¿Y tú te haces llamar camello?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Un mono amaestrado lo haría mejor..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" "¿Crees que eres lo suficientemente duro como para manejar a tipos como yo?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... ¿estás traficando con caramelos o qué?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Voy a tener que dispararte por tu propio bien." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto no puede actuar " "como un jugador automático.\n" "Recompila pasando la opción --enable-networking al script configure" #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Seleccionado módulo «%s» no válido.\n" "(%s disponible, ahora usando «%s».)" dopewars-1.5.12/po/fr.po0000644001565000007070000035051710355323334011753 00000000000000# MINABLE TRADUCTION EN FRANCAIS DE DOPEWARS POUR UNIX # leonard , en l'An de Grace 2001 # Copyright (C) 2001 Free Software Foundation, Inc. # msgid "" msgstr "" "Project-Id-Version: dopewars-1.5.3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: 2001-10-16 20:50+0100\n" "Last-Translator: leonard \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "chienne" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "chiennes" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "flingue" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "flingues" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "camme" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "drogues" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "Le Preteur a Gages" #: src/dopewars.c:195 msgid "the Bank" msgstr "la banque" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "l'arriere boutique" #: src/dopewars.c:196 msgid "the pub" msgstr "le bar" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Port reseau a se connecter" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nom du fichier des scores" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nom du serveur a se connecter" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "Different de zero si le serveur doit reporter a un metaserveur" #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "Port du serveur de metacommunication" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "Chemin d'acces au script CGI sur le metaserveur" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "Le nom de votre machine serveur" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "Authentification du nom local avec le metaserveur " #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "description du serveur, reporte au metaserveur" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "Nombre de tours de jeu (avec 0, le jeu ne se termine jamais)" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "" #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "Les elements aleatioires sont nettoyes" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "" "Different de zero si la valeur de la camme achetee doit etre sauvegardee" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "Soyez verbose en passant le config file a la moulinette" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "Nombre de lieux dans le jeu" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "Nombre de types de flics dans le jeu" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "Nombre de revolvers dans le jeu" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "Nombre de drogues dans le jeu" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "L'endroit ou se trouve le Preteur a Gages" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "L'endroit ou se trouve la banque" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "l'endroit ou se trouve l'armurerie" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "l'endroit ou se trouve le bar" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "Nom du Preteur a Gages" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "Nom de la banque" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "Nom de l'armurerie" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "Nom du bar" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "Touche de tri pour la liste des dopes disponibles" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "Nombre de secondes apres lesquelles on peut retourner le feu" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "Les joueurs sont deconnectes apres ce nombre de secondes" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "Temps en secondes pour que les connections soient etablies ou cassees" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "Nombre maximum de connections TCP/IP" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "Secondes entre les tours des intelligences artificielles" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "Fric donne en debutant la partie" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "Montant des dettes en debutant la partie" #: src/dopewars.c:493 msgid "Name of each location" msgstr "Nom de chaque lieu" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "Presence policiaire a chaque endroit (%)" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "Nombre minimum de potions magiques a chaque endroit" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "Nombre maximum de potions magiques a chaque endroit" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "% de resistance aux coups de fusil de chaque joueur" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "% de resistance aux coups de fusil de chaque chienne" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "Nom de chaque flics" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "Nom de chaque sous-flic" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "Nom de chaques sous-flics" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "% de resistance aux coups de fusil de chaque flic" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "% de resistance aux coups de flingue de chaque sous-flic" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "Penalite d'attaque relative a un joueur" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "Penalite de deffence relative a un joueur" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "Nombre minimum de sous-flics accompagnant" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "Nombre MAX des adjoints accompagnant" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "Index base sur zero du pistolet avec lequel le flic est arme" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "Nombre de flingues que chaque flic porte" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "Nombre de flingues que chaque sous-flic portes" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "Nom de chaque potion magique" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "Prix minimum normal de chaque camme" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "Prix MAX normal de chaque camme" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "Different de zero si cette camme peut devenir vraiement pas chere" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "Different de zero si cette drogue peut devenir particulierement chere" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "Message affiche si cette camme est vraiement pas chere" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Ligne utilisee pour des drogues cheres 50% des fois" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "Diviseur sur le prix des cammes devenues vraiement pas cheres" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplicateur pour les drogues devenues cheres" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "Nom de chaque type de flingue" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "Prix de chaque type de flingue" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "Espace pris par chaque flingue" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "Dommage inflige par chaque flingue" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "Mot utilise pour decrire 1 \"chienne\"" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "Mot utilise pour decrire 2 \"chiennes\" ou plus" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "Mot utilise pour decrire 1 flingue ou equivalent" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "Mot utlise pour decrire 2 flingues ou plus" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "Mot utlise pour decrire 1 drogue " #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "Mot utilise pour decrire deux drogues ou plus" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "Cout pour envoyer une chienne espionner le dealer ennemi" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Cout pour envoyer une chienne donner des informations sur l'ennemi aux flics" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "Prix minimum pour employer une salope" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "Prix MAX pour employer une chienne" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "liste des trucs que vous entendez dans le metro" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "nombre de choses que vous entendez dans le metro" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "liste des morceaux de zic que vous pouvez entendre de loin" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "nombre de morceaux de musique" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "liste des trucs que tu peux arreter de faire" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "nombre de trucs que tu peux arreter de faire" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Mangez-moi Mangez-moi` par Billy Ze Kick :)" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Lost in the K hole` par Chemical Brothers" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Annie aime les sucettes` par Gainsbourg" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "`The Spice` par Dune" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "`Bons baisers d'Amsterdam` par Billy ze Kick" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "`Light Up` by Styx" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "`Trip Tonite` par Etnica" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`Le Ciel Est Triste` par Haldolium" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Autopilot` par Vibrasphere" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`Live at Plookland city` par Transorbital Lobotomy" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "`La main verte` par Tryo" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "`Jesus Chris est un Hippie` par J.Hallyday" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Legend of a Mind` by the Moody Blues" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "`L'etat assassine` par Assassins" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Douanier 007` par Sicemilla" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`l'Apologie` par Matmatah" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "`Mechanical Animals` par Marilyn Manson" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalize It` by Mojo Nixon & Skid Roper" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "boire une biere" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "fumer un joint" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "fumer un cigare" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "fumer un blunt" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "fumer une cigarette" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "Inspecteur GrosBoeuf" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "adjoint" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "adjoints" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "Inspecteur VERGES" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "Detective de Dieuleveult" #: src/dopewars.c:717 msgid "cop" msgstr "flic" #: src/dopewars.c:717 msgid "cops" msgstr "flics" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr "Colt 45" #: src/dopewars.c:723 msgid ".38 Special" msgstr "P 38" #: src/dopewars.c:724 msgid "Ruger" msgstr "Avtomat Kalashnikov 47" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "Smith et Wesson 657" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "Acide" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "Le marche est sature de buvards" #: src/dopewars.c:733 msgid "Cocaine" msgstr "Cocaine" #: src/dopewars.c:734 msgid "Hashish" msgstr "Hashish" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "The Marrakesh Express has arrived!" #: src/dopewars.c:736 msgid "Heroin" msgstr "Heroine" #: src/dopewars.c:737 msgid "Ludes" msgstr "Special K" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "Tes concurrents ont devalise une pharmacie et vendent de la Keta pas chere" #: src/dopewars.c:739 msgid "MDA" msgstr "Exctasy" #: src/dopewars.c:740 msgid "Opium" msgstr "Opium" #: src/dopewars.c:741 msgid "PCP" msgstr "PCP" #: src/dopewars.c:742 msgid "Peyote" msgstr "Mescaline" #: src/dopewars.c:743 msgid "Shrooms" msgstr "Champis" #: src/dopewars.c:744 msgid "Speed" msgstr "Amphes" #: src/dopewars.c:745 msgid "Weed" msgstr "Skunk" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "de la bonne herbe d'Amsterdam vient d'arriver en masse" #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "Le Moulin Rouge" #: src/dopewars.c:755 msgid "Ghetto" msgstr "Gare du Nord" #: src/dopewars.c:756 msgid "Central Park" msgstr "Porte de la Chapelle" #: src/dopewars.c:757 msgid "Manhattan" msgstr "Barbes Rochechouart" #: src/dopewars.c:758 msgid "Coney Island" msgstr "Les Halles" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "Boulogne" #: src/dopewars.c:760 msgid "Queens" msgstr "Place d'Italie" #: src/dopewars.c:761 msgid "Staten Island" msgstr "Argenteuil" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Les flics ont mis la main sur un gros stock de %tde !" #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Les junkies achetent %tde hors de prix !" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "`Vivons dans l'extase de l'illimité`" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "Of all the things that I've lost, I miss my mind the most." #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "Je parie que vous faites des reves tres interessants" #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "Je pense que je vais aller a Amsterdam cette annee" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "je suis un cheval, en fait" #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Ca vous arrive de conduire la nuit avec des lunettes de soleil ?" #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "J'ai pas toujours ete une femme, tu sais" #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "Ta mere sait que tu est un dealer ?" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "T'est defonce a quoi, la ?" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "Vous venez de Tunisie ?" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "Ta mere vient de faire des bons gateaux avec un peu de ton Hash." #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "In dust, we trust" #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "On utilise 10% de nos cerveaux, alors pourquoi ne pas en crammer 90% ?" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "Bon je suis trop defait, je vais me coucher." #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "" "Les vrais leaders de ce monde sont george bush, keanu reeves et sandra " "Bullock" #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "C'est vous que j'ai vu a la tele ?" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "L'esprit n'est jamais né, l'esprit ne cessera jamais" #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "Vous avez les yeux rouges, jeune homme." #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "Un jour sans camme, c'est la nuit." #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "Sauvez des arbres, mangez des castors !" #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "`Question authority; think for yourself`. a dit Timothy Leary" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "Gnôthi seauton" #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "Les vainqueurs ne se droguent pas... a moins que..." #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "Bute un flic, bon Dieu!" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "Je suis un elephant de mer!" #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "Seulement de nos jours, les chateaux sont des entreprises." #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "We are masses of wavelenghts on the infinite" #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Il faut ouvrir ses branchies aux courants" #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Just say No... well, maybe... ok, what the hell!" #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "La telepathie existe ! Regardez les vibrations." #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "La camme peut etre votre amie !" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "La config peut seulement etre changee quand aucun joueur n'est connecte." #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "L'index dans %s doit etre entre 1 et %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "%s est %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "%s est %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "%s est %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "%s est \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] est %s\n" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "%s est { " #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2210 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Structure liste redimentionnee a %d elements\n" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "dopewars version %s\n" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Jeu de vente de drogue. Base sur \"Drug Wars\" de John E. Dell\n" " -b \"noir et blanc\" - n'utilise pas les jolies couleurs\n" " (par defaut, les couleurs sont utilisees si le term les supporte " "-n ne pas se connecter aux autres serveurs dopewars\n" " (i.e. mode joueur unique)\n" " -a \"antique\" dopewars - rester proche de la version " "originale (cette option desactive les possibilites reseau)\n" " -f file specifier un fichier a utiliser pour la table des high scores\n" " (par defaut, s/dopewars.sco est choisi)\n" " -o addr specifier un host ou le serveur multiplayers peut etre trouve\n" " (e.g. nowhere.com)\n" " -s lancer en mode serveur (note: pour un \"non-interactive\" server, " "simplement\n" " lancer: dopewars -s < /dev/null >> logfile & )\n" " -S lancer un \"private\" server (i.e. ne pas contacter le " "metaserver)\n" " -p specifie le port reseau a utiliser (default: 7902)\n" " -g file specifie le chemin d'acces au dopewars configuration file. Ce " "fichier\n" " est lu immediatement quand l'option -g est rencontree\n" " -r file maintenir un pid file \"file\" pendant que le serveur tourne\n" " -c cree et lance une intelligence artificielle (computer player)\n" " -w force le lancement en mode graphik (fenetre) client (GTK+ or " "Win32)\n" " -t force le lancement en mode text\n" " (par defaut, le client en fenetre est lance si possible)\n" " -h affiche cet ecran d'aide\n" " -v affiche la version et quitte\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, et distribue sous GNU GPL\n" "Envoyer les bugs a l'auteur : benwebb@users.sf.net\n" #: src/dopewars.c:2619 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Usage: dopewars [OPTION]...\n" "Jeu de vente de drogue. Base sur \"Drug Wars\" de John E. Dell\n" " -b \"noir et blanc\" - n'utilise pas les jolies couleurs\n" " (par defaut, les couleurs sont utilisees si le term les supporte " "-n ne pas se connecter aux autres serveurs dopewars\n" " (i.e. mode joueur unique)\n" " -a \"antique\" dopewars - rester proche de la version " "originale (cette option desactive les possibilites reseau)\n" " -f file specifier un fichier a utiliser pour la table des high scores\n" " (par defaut, s/dopewars.sco est choisi)\n" " -o addr specifier un host ou le serveur multiplayers peut etre trouve\n" " (e.g. nowhere.com)\n" " -s lancer en mode serveur (note: pour un \"non-interactive\" server, " "simplement\n" " lancer: dopewars -s < /dev/null >> logfile & )\n" " -S lancer un \"private\" server (i.e. ne pas contacter le " "metaserver)\n" " -p specifie le port reseau a utiliser (default: 7902)\n" " -g file specifie le chemin d'acces au dopewars configuration file. Ce " "fichier\n" " est lu immediatement quand l'option -g est rencontree\n" " -r file maintenir un pid file \"file\" pendant que le serveur tourne\n" " -c cree et lance une intelligence artificielle (computer player)\n" " -w force le lancement en mode graphik (fenetre) client (GTK+ or " "Win32)\n" " -t force le lancement en mode text\n" " (par defaut, le client en fenetre est lance si possible)\n" " -h affiche cet ecran d'aide\n" " -v affiche la version et quitte\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, et distribue sous GNU GPL\n" "Envoyer les bugs a l'auteur : benwebb@users.sf.net\n" #: src/dopewars.c:2655 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Pas de curses client disponible - reconstruire le binaire en utilisant\n" "--enable-curses-client pour configurer, ou utiliser un client\n" "fenetre (si dispo) a la place!\n" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Pas de curses client disponible - reconstruire le binaire en utilisant\n" "--enable-curses-client pour configurer, ou utiliser un client\n" "fenetre (si dispo) a la place!\n" #: src/dopewars.c:2983 #, fuzzy msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Ce fichier binaire a ete compile sans le support rezo, et donc ne peut pas " "se comporter comme un joueur IA.\n" "Recompile en utilisant --enable-networking avec le script de config." #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Base sur le jeu Drug Wars par John E. Dell, dopewars est une simulation d'un" #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "marche de la drogue imaginaire. Dopewars est un jeu qui comprend" #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "acheter, vendre et essayer d'eviter les flics!" #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "La premiere chose a faire est de rembourser votre dette au preteur. Apres" #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "votre but est de faire le plus de fric possible en restant vivant! Tu" #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "as un mois de temps de jeu pour faire fortune." #: src/curses_client/curses_client.c:297 #, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr "dopewars est distribue sous la license GPL de GNU." #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "Vente de camme et recherche Dan Wolf" #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testeurs Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testeurs extensifs Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Critiques constructives Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "Critiques deconsctructives James Matthews" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "" "Pour information sur les options en ligne de commande, taper dopewars -h" #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "a votre prompt UNIX. Cela va afficher l'aide sur les options disponibles." #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Merci d'entrer le nom du host et le port du server dopewars:-" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "Hostname: " #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "Port: " #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "Patientez... tentative de contacter le metaserver..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "Serveur: %s" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "Port : %d" #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "Version :%s" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Joueurs: -inconnu- (maximun %d)" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "Joueurs: %d (maximum %d)" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "Operationnel depuis : %s" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "Commentaire: %s" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "S>uivant server; P>recedent server; C>choisir ce serveur..." #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "SPC" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "" #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "" #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "" #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "" #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "" #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "Patientez... tentative de contacter le serveur dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "Ne peux pas demarrer dopewars en multi-joueur" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "Woulez vous... C>connecter a un hote/port different" #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr " L>ister les serveurs sur le meta, et en selectionner un" #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " Q>uitter (vous pouvez alors demarrer un server" #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr " ou J>ouer en solo ? " #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "CLQJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "Ou ca, mec ? " #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Tu ne peux pas faire du fric avec ce que tu portes %tde :" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "Que veux tu laisser tomber? " #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "Combien d'unites tu laisses tomber? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "Que souhaites tu acheter? " #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "Que souhaites tu vendre? " #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Tu peux acheter %d, et porter %d. " #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "Combien tu en achetes ?" #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "Tu as %d. " #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "Combien tu en vends? " #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Choisir un boulot a donner a une de tes %tde..." #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr " E>spionner un autre dealer (cout: %P)" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " D>onner un autre dealer aux flics (cout: %P)" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr " A>ller se faire foutre" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "ou C>ontacter vos espions et recevoir des rapports" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr "ou P>as de boulot ? " #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "EDACP" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "Qui tu veux espionner ?" #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "Qui tu veux donner aux flics ?" #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr " Etes vous sur? " #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "ON" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "Etes vous sur de vouloir quitter? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "Nouveau nom: " #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Vous avez ete vire du serveur. Devient solo." #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "Le serveur est mort. Devient solo" #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "%s joint la partie!" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "%s a quitte la partie." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "%s est maintenant %s." #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "METRO" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Malheureusement, qq d'autre utilise deja ton nom. Merci d'en changer" #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "H I G H S C O R E S" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "Tu n'as aucun %tde a vendre!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "T'en as aucun a vendre!" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Tu as besoin de plus de %tde pour porter plus de %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Tu n'as pas assez d'espace pour porter ce %tde" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Tu n'as pas assez de fric pour achter ce %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Souhaitez vous A>cheter, V>endre, ou P>artir?" #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "AVP" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "Combien de fric tu rends ?" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "Tu n'as pas assez d'argent!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Tu veux D>eposer de l'argent, R>etirer des biftons, ou P>artir ?" #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "DRP" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "Combien d'argent?" #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "Il n'y a pas autant d'argent dans la banque..." #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "O:Oui" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "N:Non" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "C:Courrir" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "S:Se battre" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "A:Attaquer" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "S: S'evader" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "Appuyer sur une touche..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "Statistiques" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "Fric %17P" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "%-19Tde%3d" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "Sante %3d" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "Banque %15P" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "Dettes %15P" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "Espace %6d" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Espace %6d" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "Trenchcoat" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "%/Stats: Drogues/%Tde" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d @ %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "%/Stats: Flingues/%Tde" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "Rapport des espions pour %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Esprion: Drogues/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "%/Esprion: Flingues/%Tde..." #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "Aucun autre joueur est en ligne en ce moment!" #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "Joueurs en ligne:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "He man, les prix du %tde sont la:" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "%c. %-10tde %8P" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Ne peux pas installer SIGWINCH interrupt handler!" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "He mec, c'est quoi ton nom? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "A>cheter" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr ", V>endre" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr ", L>aisser tomber" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr ", P>arler, R>reveiller" #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr ", L>lister" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr ", D>onner" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr ", C>ombattre" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr ", dEplacer" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr ", ou Q>uitter " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "Tu " #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "C>combat, " #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "R>este sur place, " #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "S>e sauver, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "D>eal %tde, " #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "ou Q>uitter? " #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "La connection au serveur est perdue. Change en mode Solo" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "AVLPRLDCEQ" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "DSCRQ" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "Lister quoi? J>oueurs ou S>cores? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "JS" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "A qui tu veux parler en prive ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "Parler: " #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "Rejouer? " #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "/_Jeu" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "/Jeu/_Nouveau..." #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "" #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "" #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "/Jeu/_Quitter" #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "/_Parler" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "/Parler/A _Tous..." #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "/Parler/A _joueur..." #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "/_Liste" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "/Liste/_Joueurs..." #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "/Liste/_Scores..." #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "/Liste/_Inventaire..." #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "/_Taches" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "/Taches/_Espionner..." #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "/Taches/_Balancer..." #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "/Taches/_Rapports des espions..." #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "/_Aide" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "/Aide/_A propos..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "Avertissement" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "Message" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "Abandonner cette partie ?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "Quitter la partie" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "Commencer une nouvelle partie" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "Inventaire" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "Connection au server perdue - Mode solo" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "Vous avez ete vire du serveur. Devient solo." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "Le serveur est mort. Devient solo" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "Bouger vers %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "_Espionner (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "_Balancer (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "High Scores" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "High Score corrompu!" #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "Se battre" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "_Vendre %Tde" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "_Combattre" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "_Rester sur place" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "_Courrir" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Combat: Salopes/%d %tde" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "Sante: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "Vous" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "%/GTK Stats: Flingues/%Tde" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Salopes/%Tde" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1352 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "Se deplacer a un autre endroit" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "at %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "Vous portez en ce moment %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "Espace disponible: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "Vous pouvez acheter %d" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "Acheter" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "Vendre" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "Laisser tomber" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "Acheter combien ?" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "Vendre combien ?" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "Laisser tomber combien ?" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "Acheter %tde" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "Vendre %tde" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "Laisser tomber %tde" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "_Oui" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "_Non" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "_Attaquer" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "_S'evader" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "Question" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "Espace" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "Fric" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "Dette" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "Banque" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "Sante" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "_Bouger!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "Vente de camme et Recherche" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "Testeur de jeu" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "Testeur extensif du jeu" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "Critique constructive" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "Critique non-constructive" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "A propos de dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Base sur le jeu de John E. Dell -Drug Wars- , dopewars est une simulation\n" "d'un marche de la drogue imaginaire. DopeWars est un jeu qui vous permet\n" "d'acheter ou vendre de la camme et essayer d'eviter les flics!\n" "\n" "La premiere chose a faire est de rembourser le preteur a gages.\n" "Ensuite, votre but est de faire le maxium de fric (et de rester en vie!)\n" "Vous avez un mois de temps de jeu pour faire fortune.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars est diffuse sous la GNU General Public Licence\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Pour infos sur les options en ligne de commande, taper: dopewars -h\n" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "%/Preteur window title/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "%/Banque window title/%Tde" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "Il n'y a pas autant d'argent dans la banque..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "Fric: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "Dettes: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "banque: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "Rembourser:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "Deposer" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "Retirer" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "Tout payer" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "Liste des joueurs" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "Parler au joueur(s)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "Parler a tout les joueurs" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "Message:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "Envoyer" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "Espionner le joueur" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Merci de choisir le joueur a espionner. Votre %tde va\n" "ensuite offrir ses services aux joueur, et si elle a du\n" "succes, vous aurez ensuite acces aux stats du joueur avec\n" "le menu \"Rapport des Espions\". La %tde va partir, donc\n" "toutes les %tde ou %tde qu'elle porte seront peut etre perdus!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "Balancer aux flics" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, fuzzy, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Choisir le joueur a balancer aux flics. Votre %tde va aider les flics\n" "a attaquer ce joueur, puis venir vous faire son rapport quand vous la\n" "rencontrez. Rappellez vous que la %tde vous quittera temporairement,\n" "donc tout ce qu'elle porte (tde ou %tde) pourront etre perdus!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Etes vous sur ? (Chaque %tde ou %tde transporte\n" "par cette %tde pourront etre perdus!)" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "Nom" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "Prix" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "Nombre" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "_Acheter ->" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "<- _Vendre" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "_Laisser tomber <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "%Tde ici" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "%Tde transporte" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "Changer Nom" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "" "Malheureusement, quelqu'un d'autre utilise deja ton nom. Merci de le changer" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Armurerie window title/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "Rapport des espions" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "drogues" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "flingues" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "flics" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "Port" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "Commentaire" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "Serveur" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "Nouvelle partie" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "Status: Attente de l'utilisateur" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "" #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "Status: Ne peut pas se connecter (%s)" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Ne peut pas se connecter (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Essayer de contacter %s..." #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "Inconnu" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "" #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "" #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "" #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "Version" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "Joueurs" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "Salut mec, quel est ton _nom?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "Nom de l'hote" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "_Connect" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "Jouer en solo" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "_Antique mode" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "_Commencer un jeu en solo" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "Metaserver" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "_OK" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "_Fermer" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "_Annuler" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "_Aide" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "# Ceci est le LOG de demarrage de dopewars.\n" "# Contient les messages d'info resultant du parsage\n" "# du fichier de config etc...\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "serveur dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "dopewars AI" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "enfui" #: src/serverside.c:73 msgid "defected" msgstr "passe a l'ennemi" #: src/serverside.c:73 msgid "was shot" msgstr "a ete bute" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AS" #. Help on various general server commands #: src/serverside.c:121 #, fuzzy, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "dopewars server version %s commandes and config\n" "\n" "help Affiche l'aide\n" "list Lister les joueurs connectes\n" "push Demander poliment a un joueur de partir\n" "kill Casser la connection avec le joueur donne\n" "msg: Envoyer un message a tout les joueurs\n" "quit Quitte apres avoir averti tout le monde.\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "" #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "" #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "" #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "MaxClients (%d) exceeded - dropping connection" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Desole, ce serveur a une limite atteinte de 1 joueurMerci de re-essayer " "votre connection plus tard." #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Desole, ce serveur a une limite atteinte de %d joueursMerci de re-essayer " "votre connection plus tard." #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "%s est maintenant %s" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "Votre temps de deal est termine" #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: deplacement vers %s INTERDIT" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "%s espionne %s" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s spy on %s: DENIED" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s a balance %s aux flics" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s tipoff about %s: DENIED" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "Maintenance du pid file %s" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Cannot create pid file %s: %s" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "dopewars server version %s pret et attendant les connections\n" "sur le port %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Cannot install SIGUSR1 interrupt handler!" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Cannot install SIGHUP interrupt handler!" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "Cannot install SIGINT interrupt handler!" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Cannot install SIGTERM interrupt handler!" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "Ne peut pas installer le truc qui s'occupe des pipes!" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "Utilisateurs en ligne:-\n" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "Aucun utilisateur en ligne.\n" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "Pousser %s\n" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "Cet user n'existe pas.\n" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "%s tue\n" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "Commande inconnue - Essaye \"help\" pour l'aide...\n" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "recu une connection de %s" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "" #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "%s quittes le serveur!" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1280 msgid "New admin connection" msgstr "" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1728 msgid "Command:" msgstr "Command:" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "Impossible de lire le fichier des high scores %s" #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "" #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Ne peut pas ouvrir le fichier des high score %s. (%s)\n" "Verifiez que vous avez les permissions pour acceder ce fichier ou " "repertoire\n" "ou specifiez un autre fichier et chemin d'acces avec la commande -f." #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "Impossible de lire le fichier des high scores %s" #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "Felicitations! Vous etes dans les high scores!" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "T'as meme pas reussi a etre dans les Scores!" #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "Impossible d'ecrire le fichier des high scores %s" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "(Repose en Paix)" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Balance de %s" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Espion offert par %s" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Une de tes %tde etait un espion pour %s.^L'espion %s!" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Votre espion travaillant pour %s a ete decouvert!^L'espion %s!" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "La dame a cote de vous dans le metro dit,^ \"%s\"%s" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (au moins, tu -penses- que c'est ce qu'elle a dit)" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "Tu entends quelqu'un jouer %s" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Voulez-vous visiter %tde?" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Voulez vous engager une %tde pour %P?" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s est deja la!^Tu Attaque, or t'Evade?" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "Les flics ne peuvent pas attaquer d'autres flics!" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "Les joueurs sont deja en train de se battre!" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "Les joueurs sont deja dans des bastons separees!" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "Ne peut pas commencer la bagarre - pas de flingue a utiliser!" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "Vous etes mort! GamE OveR" #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: balance par %s finit OK." #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Suivant votre balance, les flics ont pecho %s, qui est mort par balle!" #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Suivant votre balance, les flics ont pecho %s, qui s'est echappe avec %d %" "tde. " #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^Tu payes le docteur %P pour te recoudre?" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "Tu as ete attaque dans le metro!" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Tu rencontres un ami! Il te donne %d %tde." #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Tu rencontre un ami! Tu lui donne %d %tde." #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "Tu nettoies une offre aleatoire." #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Les chiens des flics te courent apres sur %d blocs! Tu laisses tomber %tde! " #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Tu trouves %d %tde sur un mec mort dans le metro!" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "" "Ta maman a fait des gateaux avec un peu de ton %tde! Ils sont excellents!" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Il y a une sorte d'herbe qui sent bizarre ici!^Ca a l'air bon! Tu la fume?" #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "Tu t'arretes pour %s." #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Tu veux acheter une trenchcoat plus grande pour %P?" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" "YN^He! mec! Je t'aiderais a porter tes %tde pour un petit %P. Oui ou non ?" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Tu veux acheter un %tde pour %P?" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: l'offre etait au nom de %s" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s a accepte votre %tde!^Tape G pour contacter ton espion." #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Tu a hallucine pendant trois jours dans le plus trip le plus sauvage " "que^t'aurais jamais imagine! Ensuite tu t'est mis a parler avec tes oreilles!" #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "Trop tard - %s vient juste de partir!" #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "%s a rejete votre %tde!" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "" #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "Joueur enleve a cause d'inactivite trop longue" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "Joueur enleve a cause de temps de connection trop long" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "" #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:160 msgid "WinSock version not supported" msgstr "" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "" #: src/error.c:162 msgid "Address already in use" msgstr "" #: src/error.c:163 msgid "Cannot reach the network" msgstr "" #: src/error.c:164 msgid "The connection timed out" msgstr "" #: src/error.c:165 msgid "Out of file descriptors" msgstr "" #: src/error.c:166 msgid "Out of buffer space" msgstr "" #: src/error.c:167 msgid "Operation not supported" msgstr "" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "" #: src/error.c:169 msgid "Connection reset by remote host" msgstr "" #: src/error.c:170 msgid "Connection refused" msgstr "" #: src/error.c:171 msgid "Address family not supported" msgstr "" #: src/error.c:172 msgid "Protocol not supported" msgstr "" #: src/error.c:173 msgid "Socket type not supported" msgstr "" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "" #: src/message.c:1167 msgid "Do you run?" msgstr "Tu cours ?" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "Tu cours ou combat ?" #: src/message.c:1369 msgid "pitifully armed" msgstr "leur armement fait pitie" #: src/message.c:1370 msgid "lightly armed" msgstr "legerement armes" #: src/message.c:1371 msgid "moderately well armed" msgstr "relativement bien armes" #: src/message.c:1372 msgid "heavily armed" msgstr "lourdement armes" #: src/message.c:1372 msgid "armed to the teeth" msgstr "armes jusqu'aux dents" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - te courent apres, mec!" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s and %d %tde - %s - te courent apres, mec!" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s est arrive avec %d %tde, %s!" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "%s reste debout et le prend." #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "Tu restes la comme un pantin." #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "%s essaye de se barrer, mais echoue." #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "Pannique! Tu peux pas te sauver!" #: src/message.c:1410 #, c-format msgid "%s has got away to %tde!" msgstr "%s s'est barre a %tde!" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "%s se sont echappes!" #: src/message.c:1416 msgid "You got away!" msgstr "Tu t'est echappe!" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "Flingues recharges..." #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s tire a %s... et manque son coup!" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s te tire dessus.. et loupe!" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "Tu manques %s!" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "%s tire %s mort" #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s tire a %s et tue une %tde!" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "%s tire a %s." #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s t'as detruit, mec! Ca gonfles..." #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s te tire dessus... et tue une %tde!" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "%s te troue, mec!" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "Tu as bute %s!" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Tu touches %s, et tue une %tde!" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "Tu touches %s!" #: src/message.c:1469 msgid " You find %P on the body!" msgstr "Tu trouves %P sur le corps!" #: src/message.c:1471 msgid " You loot the body!" msgstr " Tu cherches le corps!" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "" #: src/network.c:447 msgid "403: forbidden" msgstr "" #: src/network.c:450 msgid "404: page not found" msgstr "" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Ne peut pas connecter au server dopewars\n" "(%s)\n" "IA joueur terminating abnormally." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Connection etablie\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Le joueur IA a debute; essaye de contacter le server sur %s:%d..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Joueur IA terminated OK\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Connection au serveur perdue!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Utiliser nom %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Joueurs dans ce jeu:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s joint le jeu.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s a quitte le jeu.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Deplacement de %tde avec %P en cash et %P en dettes\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "joueur IA tue. Teminating normallement.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Temps de jeu termine. Quitte le jeu.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Joueur IA jette du serveur.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Le serveur has terminated.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendre %d %tde a %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Acheter %d %tde a %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Acheter un %tde pour %P au magazin de flingues\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Dettes de %P payees au preteur a gages\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Le preteur a gages est situe a %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "L'armurerie est situee a %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Le bar est situe a %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "La banque est situee a %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Vous osez vous appeller des dealers?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Un singe apprivoise pourrait faire mieux..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" "Tu penses que t'est suffisament dur pour dealer avec des mecs comme moi?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzzz... tu vends des bombons ou quoi?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Je crois que je vais devoir te buter pour ton propre bien." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Ce fichier binaire a ete compile sans le support rezo, et donc ne peut pas " "se comporter comme un joueur IA.\n" "Recompile en utilisant --enable-networking avec le script de config." #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" dopewars-1.5.12/po/pt_BR.po0000644001565000007070000035014110355323334012343 00000000000000# Portuguese/Brazil Translation for dopewars # Copyright (C) 2000 Free Software Foundation, Inc. # Created by Hugo Cisneiros , Nov 2000 # Revised by Bruno Lopes , Jan 2003 # msgid "" msgstr "" "Project-Id-Version: dopewars-1.5.3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: 2001-04-08 15:55+0100\n" "Last-Translator: Bruno Lopes \n" "Language-Team: Portuguese/Brazil \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "puta" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "putas" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "arma" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "armas" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "droga" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "drogas" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "o agiota" #: src/dopewars.c:195 msgid "the Bank" msgstr "" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "Casa de Armas do Dan" #: src/dopewars.c:196 msgid "the pub" msgstr "o bordel" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Porta de rede para conectar" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nome do arquivo de pontuação" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nome do servidor para conectar" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "Não-zero se o servidor deve reportar ao servidor meta" #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "Nome do servidor meta para reportar os detalhes do servidor" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "Porta para a comunicação com o servidor meta" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "Caminho do script CGI no servidor meta" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "Nome do host preferido para a sua máquina servidor" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "Autentificação para o NomeLocal com o servidor meta" #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "Descrição do servidor, reportado para o servidor meta" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "No. de turnos do jogo (se 0, o jogo nunca acaba)" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "" #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "Eventos aleatórios são censurados" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "Não-zero se o valor das drogas compradas devem ser salvos" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "Mostrar mensagens processando o arquivo de configuração" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "Quantidade de locais no jogo" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "Número de tipos de policiais no jogo" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "Número de armas no jogo" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "Número de drogas no jogo" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "Localização do agiota" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "Localização do banco" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "Localização da loja de armas" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "Localização do bordel" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "Juros diários na dívida do agiota" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "Juros diários em sua poupança" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "Nome do agiota" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "Nome do banco" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "Nome da loja de armas" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "Nome do bordel" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "Teclas de ordenação para a listagem de drogas disponíveis" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "Número de segundos em para revidar tiro" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "Jogadores são desconectados depois destes segundos" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "Tempo em segundos para conexões a serem feitas ou quebradas" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "Número máximo de conexões TCP/IP" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "Segundos entre turnos dos jogadores IA" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "Quantidade de dinheiro que cada jogador começa" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "Quantidade de débito que cada jogador começa" #: src/dopewars.c:493 msgid "Name of each location" msgstr "Nome de cada local" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "Polícia presente em cada local (%)" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "Número mínimo de drogas em cada local" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "Número máximo de drogas em cada local" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "Nome de cada policial" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "Nome de cada ajudante do policial" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "Nome dos ajudantes do policial" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "Valor relativo de ataque para o jogador" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "Valor relativo de defesa para o jogador" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "Número mínimo de ajudantes acompanhantes" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "Número máximo de ajudantes acompanhantes" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "Índice baseado-em-zero da arma que os policiais estão armados" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "Nome de cada droga" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "Preço mínimo normal de cada droga" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "Preço máximo normal de cada droga" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "Não-zero se esta droga pode ser especialmente barata" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "Não-zero se esta droga pode ser especialmente cara" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "Mensagem mostrada quando esta droga é especialmente barata" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Formato da string usada para drogas caras em 50% do tempo" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "Divisor para os preços da droga especialmente barata" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplicador para para os preços da droga especialmente cara" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "Nome de cada arma" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "Preço de cada arma" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "Espaço tomado por cada arma" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "Dano de cada arma" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "Palavra usada para denominar uma simples \"puta\"" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "Palavra usada para denominar duas ou mais \"putas\"" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "Palavra usada para detominar uma simples arma ou equivalente" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "Palavra usada para denominar duas ou mais armas" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "Palavra usada para denominar uma simples droga ou equivalente" #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "Palavra usada para denominar duas ou mais drogas" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "Custo para as putas espionarem o inimigo" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "Custo para as putas atraírem os policiais ao inimigo" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "Preço mínimo para contratar uma puta" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "Preço máximo para contratar uma puta" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "Lista de coisas ao qual você ouve no metrô" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "Número de falas no metrô" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "Lista de sons ao qual você ouve tocando" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "Número de sons tocando" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "Lista de coisas que você pode parar de fazer" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "Número de coisas que você pode parar de fazer" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` por Jimi Hendrix" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` por Tome Loc" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Comin` in to Los Angeless` por Arlo Guthrie" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Comemrcial` por Spanky e Nossa Gangue" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "`Late in the Evening` por Paul Simon" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "`Light Up` por Styx" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` por Jefferson Airplane" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`One toke over the line` por Brewer & Shipley" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "`The Smokeout` por Shell Silverstein" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` por Jefferson Airplane" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "`Itchycoo Park` por Small Faces" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` por the Tubes" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Legend of a Mind` por the Moody Blues" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "`Eight Miles High` por the Byrds" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Acapulco Gold` por Riders of the Purple Sage" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Kicks` por Paul Revere & the Raiders" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "as fitas de Nixon" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalize Já` por Planet Hemp" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "tome uma cerveja" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "fumar um baseado" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "fumar um charuto" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "fumar um Djarum" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "fumar um cigarro" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "Oficial Hardass" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "ajudante" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "ajudantes" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "Oficial Bob" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "Agente Smith" #: src/dopewars.c:717 msgid "cop" msgstr "policial" #: src/dopewars.c:717 msgid "cops" msgstr "policiais" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr "Baretta" #: src/dopewars.c:723 msgid ".38 Special" msgstr ".38 Especial" #: src/dopewars.c:724 msgid "Ruger" msgstr "Ruger" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "Saturday Night Special" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "Ácido" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "O mercado está cheio de ácido caseiro barato!" #: src/dopewars.c:733 msgid "Cocaine" msgstr "Cocaína" #: src/dopewars.c:734 msgid "Hashish" msgstr "Haxixe" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "O Expresso de Marrakesh chegou!" #: src/dopewars.c:736 msgid "Heroin" msgstr "Heroína" #: src/dopewars.c:737 msgid "Ludes" msgstr "Ecstasy" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "Comerciantes de drogas rivais roubaram uma farmácia e estão vendendo ecstasy " "barato!" #: src/dopewars.c:739 msgid "MDA" msgstr "MDA" #: src/dopewars.c:740 msgid "Opium" msgstr "Ópio" #: src/dopewars.c:741 msgid "PCP" msgstr "PCP" #: src/dopewars.c:742 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:743 msgid "Shrooms" msgstr "Cogumelos" #: src/dopewars.c:744 msgid "Speed" msgstr "Speed" #: src/dopewars.c:745 msgid "Weed" msgstr "Maconha" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Colombianos enganaram a Guarda Costeira! Preços de maconha abaixaram!" #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "Bronx" #: src/dopewars.c:755 msgid "Ghetto" msgstr "Ghetto" #: src/dopewars.c:756 msgid "Central Park" msgstr "Central Park" #: src/dopewars.c:757 msgid "Manhattan" msgstr "Manhattan" #: src/dopewars.c:758 msgid "Coney Island" msgstr "Coney Island" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "Brooklyn" #: src/dopewars.c:760 msgid "Queens" msgstr "Queens" #: src/dopewars.c:761 msgid "Staten Island" msgstr "Staten Island" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Policiais apreenderam %tde! Preços estão super altos!" #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Viciados estão comprando %tde a preços ridículos!" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "Não seria engraçado se todos tivessem de uma vez só?" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "O Papa já foi judeu uma vez, você sabe" #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "Eu aposto que você tem sonhos realmente interessantes" #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "Então eu acho que vou para Amsterdã este ano" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "Filho, você precisa de um corte de cabelo amarelo" #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Eu acho maravilhoso o que estão fazendo com incenso estes dias" #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "I eu não fui sempre uma mulher, você sabe" #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "Sua mãe sabe que você é um traficante de drogas?" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "Você está doidão ou coisa parecida?" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "Ah, você deve ser da Califórnia" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "Eu mesmo costumava ser hippe" #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "Não há nada como ter muito dinheiro" #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "Você tá parecendo um aardvark!" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "Eu não acredito no Ronal Reagan" #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "Coragem! Bush é um zé!" #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "Eu já não te vi na TV?" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "Eu acho comerciais de hemorróida realmente doidos!" #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "Nós estamos ganhando a guerra das drogas!" #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "Um dia sem droga é como a noite" #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" "Nós usamos apenas 20% de nossos cérebros, então porque não estragar os " "outros 80%" #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "Eu estou solicitando contribuições para os Zumbis de Cristo" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "Eu queria te mandar um poodle" #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "Vencedores não usam drogas... ao menos que usem" #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "Mate um policial por Cristo!" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "Eu sou o walrus!" #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "Jesus ama você mais do que você sabe" #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "Eu sinto uma vontade incontável de pintar meu cabelo de azul" #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Jane Fonda não estava maravilhosa em Barbarella" #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Apenas diga Não... bem, talvez... ok, que diabos!" #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "Você gostaria de um doce, bebê?" #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "Drogas podem ser suas amigas!" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "Configuração pode ser somente mudada interativamente quando\n" "nenhum jogador está logado. Espere por todos os jogadores saírem,\n" "ou remove eles com os comandos push ou kill, e tente de novo." #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "Índice da array %s deve ser entre 1 e %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "%s é %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "%s é %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "%s é %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "%s é \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] é %s\n" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "%s é { " #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2210 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Estrutura de lista redimensionada para %d elementos\n" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Uso: dopewars [OPÇÕES]...\n" "Jogo de tráfico de drogas baseado no \"Drug Wars\" por John E. Dell\n" " -b \"preto e branco\" - você não usa cores\n" " (por padrão cores são usadas quando o terminal suporta) -" "n seja chato e não conecta em nenhum servidor dopewars " "disponível (modo para um jogador)\n" " -a dopewars \"antigo\" - se mantém o mais parecido com a versão\n" " original (isto também desabilita todo suporte de rede)\n" " -f arquivo especifica um arquivo para usar para a tabela de pontuação\n" " (por padrão, %s/dopewars.sco é usado)\n" " -o addr especifica o nome do host do server dopewars para jogar em " "modo\n" " multiplayer (legível - ex. nenhumlugar.com - formato)\n" " -s roda em modo servidor (nota: para um servidor \"não interativo" "\", \n" " rode dopewars -s < /dev/null >> logfile & )\n" " -S roda um servidor \"privado\" (não modifica o servidor meta)\n" " -p especifica uma porta de rede para usar (padrão: 7902)\n" " -g arquivo especifica o local do arquivo de configuração do dopewars. " "Este\n" " arquivo é lido imediatamente quando a opção -g é encontrada\n" " -r arquivo mentém o arquivo pid \"arquivo\" enquanto roda-se o servidor\n" " -c cria e roda um jogador controlado pelo computador\n" " -w força o uso do cliente gráfico (GTK+ ou Win32)\n" " -t força o uso do cliente baseado em texto (curses)\n" " (por padrão, o cliente gráfico é usado quando possível)\n" " -h mostra estas informações de ajuda\n" " -v mostra informações de versão e sai\n" #: src/dopewars.c:2619 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Uso: dopewars [OPÇÕES]...\n" "Jogo de tráfico de drogas baseado no \"Drug Wars\" por John E. Dell\n" " -b \"preto e branco\" - você não usa cores\n" " (por padrão cores são usadas quando o terminal suporta) -" "n seja chato e não conecta em nenhum servidor dopewars " "disponível (modo para um jogador)\n" " -a dopewars \"antigo\" - se mantém o mais parecido com a versão\n" " original (isto também desabilita todo suporte de rede)\n" " -f arquivo especifica um arquivo para usar para a tabela de pontuação\n" " (por padrão, %s/dopewars.sco é usado)\n" " -o addr especifica o nome do host do server dopewars para jogar em " "modo\n" " multiplayer (legível - ex. nenhumlugar.com - formato)\n" " -s roda em modo servidor (nota: para um servidor \"não interativo" "\", \n" " rode dopewars -s < /dev/null >> logfile & )\n" " -S roda um servidor \"privado\" (não modifica o servidor meta)\n" " -p especifica uma porta de rede para usar (padrão: 7902)\n" " -g arquivo especifica o local do arquivo de configuração do dopewars. " "Este\n" " arquivo é lido imediatamente quando a opção -g é encontrada\n" " -r arquivo mentém o arquivo pid \"arquivo\" enquanto roda-se o servidor\n" " -c cria e roda um jogador controlado pelo computador\n" " -w força o uso do cliente gráfico (GTK+ ou Win32)\n" " -t força o uso do cliente baseado em texto (curses)\n" " (por padrão, o cliente gráfico é usado quando possível)\n" " -h mostra estas informações de ajuda\n" " -v mostra informações de versão e sai\n" #: src/dopewars.c:2655 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Cliente curses não disponível - reconstrua o binário passando a opção\n" "--enable-curses-client para configurar, ou use o cliente gráfico\n" "(se disponível) no lugar!\n" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Nenhum cliente GTK+ disponível - reconstrua o binário passando\n" "a opção --enable-gui-client para configurar, ou use o cliente\n" "curses (se disponível) no lugar!\n" #: src/dopewars.c:2983 #, fuzzy msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binário foi compilado sem suporte a rede, e por iss não se pode atuar " "como um jogador com IA.\n" "Recompile passando a opção --enable-networking para o script configure." #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Baseado no velho jogo Drug Wars de John E. Dell, dopewars é uma simulação de" #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" "um mercado de drogas imaginário. dopewars é um jogo americano onde se pode" #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "comprar, vender, e tentar se safar dos policiais!" #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "A primeira coisa que você irá precisar fazer é pagar seu débito com o agiota." #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "" "Depois disso, seu objetivo é ganhar o máximo de dinheiro possível (e ficar" #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "vivo)! Você tem um mês de tempo de jogo para fazer sua fortuna." #: src/curses_client/curses_client.c:297 #, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "Versão %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr "dopewars está lançado sob a GNU General Public Licence" #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "Tráfico de Drogas e Pesquisas Dan Wolf" #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Teste de Jogo Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testes Extensivos de Jogo Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Crítica Construtiva Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "Crítica não construtiva James Matthews" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "" "Para informações de opções da linha de comando, digite dopewars -h no seu" #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "prompt Unix. Isto irá mostrar a tela de ajudam listando as opções " "disponíveis." #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Por favor entre com o nome do host e porta do servidor dopewars:-" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "Nome do Host: " #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "Porta" #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "Aguarde... tentando contactar o servidor meta..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "Servidor : %s" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "Porta : %d" #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "Versão : %s" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Jogadores: -unknown- (máximo de %d)" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "Jogadores: %d (máximo de %d)" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "Rodando desde : %s" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "Comentário: %s" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "P>róximo servidor; A>nterior; S>elecionar este servidor... " #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "PAS" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "" #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "" #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "" #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "" #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "" #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "Aguarde... tentando contactar o servidor dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "Não foi possível iniciar o dopewars em multiplayer" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "Você irá... C>onectar em um diferente host e porta" #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr " L>istar os servidor no servidor meta, e selecionar um" #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " S>air (onde você pode iniciar um servidor digitando " #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr " ou J>ogar com apenas um jogador ? " #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "CLSJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "Para onde, cara ? " #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Você não pode ganhar nenhum dinheiro pelo seguinte %tde :" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "O que você quer largar? " #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "Que quantidade você quer largar? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "O que você quer comprar? " #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "O que você quer vender? " #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Você pode comprar %d, e pode carregar %d. " #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "Quantos você vai comprar? " #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "Você tem %d. " #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "Quantos você vai vender? " #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Escolha um trabalho para dar a uma de suas %tde..." #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr " E>spionar um outro traficante (custo: %P)" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " A>trair policiais para outro traficante (custo: %P)" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr " D>espedir" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "ou C>ontactar suas espiãs e receber informações" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr "ou N>enhum trabalho ? " #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "EADCN" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "Quem você quer espiar? " #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "Para quem você quer que os policiais sejam atraídos? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr " Você tem certeza? " #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "SN" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "Você tem certeza que quer sair? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "Novo nome: " #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Você foi tirado do servidor. Revertendo para modo de jogador único." #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "O servidor foi terminado. Revertendo para modo de jogador único." #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "%s entrou no jogo!" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "%s saiu do jogo." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "%s agora vai ser conhecido como %s." #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "M E T R Ô" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Infelizmente, alguém já está usando o \"seu\" nome. Por favor mude-o." #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "M E L H O R E S P O N T U A Ç Õ E S" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "Você não tem nenhum %tde para vender!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "Você não tem nenhum para vender!" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Você irá precisar de mais %tde para carregar ainda mais %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Você não tem espaço suficiente para carregar aquele %tde!" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Você não tem dinheiro suficiente para comprar aquele %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Você irá C>omprar, V>ender, ou S>air? " #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "CVS" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "Quanto dinheiro você quer pagar de volta? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "Você não tem todo esse dinheiro!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Você quer D>epositar dinheiro, R>etirar dinheiro, ou S>air ? " #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "DRS" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "Quanto dinheiro? " #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "Não há todo este dinheiro no banco..." #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "S:Sim" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "N:Não" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "C:Correr" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "L:Lutar" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "A:Atacar" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "E:Evacuar" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "Pressione qualquer tecla..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "Estatísticas" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "Dinheiro %13P" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "Pontos de vida %3d" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "Banco %16P" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "Débito %15P" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "Espaço %6d" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Espaço %6d" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "Casaco" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "%/Estatísticas: Drogas/%Tde" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "%/Estatísticas: Armas/%Tde" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "Informações de espionagem de %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "" #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "" #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "Nenhum outro jogador está atualmente logado!" #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "Jogadores atualmente logados:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Ei carinha, os preços de %tde aqui estão:" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGWINCH!" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "Ei carinha, qual seu nome? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "Você irá C>omprar" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr ", V>ender" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr ", L>argar" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr ", F>alar, P>agear" #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr ", J>ogadores" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr ", D>ar" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr ", L>utar" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr ", I>r" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr ", ou S>air? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "Você quer " #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "L>utar, " #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "F>icar paradão, " #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "C>orrer, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "T>raficar %tde, " #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "ou S>air? " #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "Conexão com o servidor perdida! Revertendo para o modo de um jogador" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "CVLFPJDLIS" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "TCLFS" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "Listar o que? J>ogadores ou P>ontuações? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "JP" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "Quem você quer pagear (falar privadamente) ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "Fale: " #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "Jogar novamente? " #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "/_Jogo" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "/Jogo/_Novo..." #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "/Jogo/_Abandonar" #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "/Jogo/_Opções" #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "/Jogo/_Habilitar som" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "/Jogo/_Sair..." #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "/_Falar" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "/Falar/Para _Todos..." #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "/Falar/Para um _Jogador..." #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "/_Listar" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "/Listar/_Jogadores..." #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "/Listar/_Pontuações..." #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "/Listar/_Inventário..." #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "/_Trabalhos" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "/Trabalhos/_Espionar..." #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "/Trabalhos/_Atrair..." #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "/Trabalhos/_Pegar informações de espionagem..." #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "/_Ajuda" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "/Ajuda/_Sobre..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "Aviso" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "Erro" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "Mensagem" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "Abandonar jogo atual?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "Sair do Jogo" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "Iniciar um novo jogo" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "Abandonar jogo" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "Inventário" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "Conexão com o servidor perdida - mudando para modo de um jogador" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "Você foi tirado do servidor. Revertendo para modo de um jogador." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "O servidor foi terminado. Revertendo para modo de um jogador." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "Indo para %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Despedir puta menu item/_Despedir %Tde..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "_Espionar (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "_Subornar (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "Melhores Pontuações" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "" #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "Lutar" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "_Traficar %Tde" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "_Lutar" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "_Ficar parado" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "_Correr" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "(Saiu)" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "(Morto)" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "(Pontos de vida: %d)" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "(Você)" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "%/Estatísticas: Armas/%Tde" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/Estatísticas: Putas/%Tde" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1352 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "Ir para o local" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "em %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "Você está atualmente carregando %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "Espaço disponível: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "Você pode comprar %d" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "Comprar" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "Vender" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "Largar" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "Comprar que quantidade?" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "Vender que quantidade?" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "Largar que quantidade?" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "Comprar %tde" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "Vender %tde" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "Largar %tde" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "_Sim" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "_Não" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "_Atacar" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "_Evacuar" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "Pergunta" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "Espaço" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "Dinheiro" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "Débito" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "Banco" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "Pontos de vida" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "_Ir!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "Tráfico de Drogas e Pesquisas" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "Teste de Jogo" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "Extensivo Teste de Jogo" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "Crítica Construtiva" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "Crítica não construtiva" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "Sobre o dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Baseado no velho jogo Drug Wars de John E. Dell, dopewars é uma simulação " "de\n" "um mercado de drogas imaginário. dopewars é um jogo americano onde se pode\n" "comprar, vender, e tentar se safar dos policiais!\n" "\n" "A primeira coisa que você irá precisar fazer é pagar seu débito com o " "agiota. Depois\n" "disso, seu objetivo é ganhar o máximo de dinheiro possível (e ficar vivo)! " "Você\n" "tem um mês de tempo de jogo para fazer sua fortuna.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" "Versão %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars está lançado sob a GNU General Public Licence\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Para informações sobre opções de linha de comando, digite dopewars -h no " "seu\n" "prompt Unix. Isto irá mostrar a tela de ajuda, listando as opções " "disponíveis.\n" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "%/Título da janela do agiota/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "%/Título da janela do NomeDoBanco/%Tde" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "Não há todo este dinheiro no banco..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "Dinheiro: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "Débito: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "Banco: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "Pagar de volta:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "Depositar" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "Retirar" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "Pagar tudo" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "Lista de jogadores" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "Falar com jogador(es)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "Falar com todos os jogadores" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "Mensagem:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "Mandar" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "Espionar Jogador" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor escolha o jogador para espionar. Sua %tde irá\n" "então oferecer seus serviços para o jogador, e se conseguido,\n" "você poderá ver as estatísticas do jogador com o menu\n" "\"Obter Informações de Espionagem\". Lembre-se que a %tde irá\n" "deixar você, então qualquer %tde ou %tde que ela está carregandoirá ser " "perdido!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "Atrair os Policiais" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor escolha o jogador para os policiais serem atraídos. Sua %tde irá\n" "ajudar os policiais atacar este jogador, e então reportar de volta para\n" "você. Lembre-se que a %tde irá deixar você temporariamente, então\n" "todo %tde ou %tde que ela está carregando será perdido!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Despedir puta dialog title/Despedir %Tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Você tem certeza? (Qualquer %tde ou %tde carregado\n" "por esta %tde vai ser perdido!)" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "Nome" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "Preço" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "Número" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "_Comprar ->" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "<- _Vender" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "_Largar <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "%Tde aqui" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "%Tde carregados" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "Mudar Nome" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Infelizmente, alguém já está usando o \"seu\" nome. Por favor mude-o:-" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "%/Título da janela da LojaDeArmas/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "Informações de Espionagem" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "Novo" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "Novo" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "drogas" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "armas" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "policiais" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "Porta" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "Comentário" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "Servidor" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "Você não pode iniciar um jogo antes de dar a ele um nome!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "Novo Jogo" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "Status: Esperando por algo do usuário" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "" #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Não foi possível conectar (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Tentando contacatar %s..." #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "" #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "" #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "" #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "Versão" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "Jogadores" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "Ei carinha, qual o seu _nome?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "Nome do host" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "_Conectar" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "Apenas um jogador" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "Modo _Antigo" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "_Iniciar jogo de um jogador" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "Servidor Meta" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "_OK" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "_Fechar" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "_Cancelar" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "_Ajudar" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "escapou" #: src/serverside.c:73 msgid "defected" msgstr "derrotado" #: src/serverside.c:73 msgid "was shot" msgstr "levou um tiro" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:121 #, fuzzy, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "servidor dopewars versão %s comandos e configurações\n" "\n" "help Mostra esta tela de ajuda\n" "list Lista todos os jogadores logados\n" "push Educadamente pede para o jogador sair\n" "kill Brutalmente interrompe a conexão do jogador\n" "msg: Manda mensagem para todos os jogadores\n" "quit Sai, depois de notificar todos os jogadores\n" "= Seta uma variável com o valor\n" " Mostra o conteúdo da variável\n" "[x].= Seta uma variável na lista dada,\n" " índice x, com o valor dado\n" "[x]. Mostra o conteúdo da variável de lista\n" "\n" "Variáveis válidas são mostradas abaixo:-\n" "\n" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "" #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "" #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "" #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "MaxClientes (%d) excedido - cancelando conexão" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Desculpe, mas este servidor tem um limite de 1 jogador, ao qual foi " "alcançado. Por favor tente conectar mais tarde." #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Desculpe, mas este servidor tem um limite de %d jogadores, ao qual foi " "alcançado. Por favor tente conectar mais tarde." #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "%s será conhecido como %s" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "Seu tempo de tráfico acabou..." #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: RECUSADO ir para %s" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "%s agora espionando %s" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s espionando %s: RECUSADO" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s atraiu os policiais para %s" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s atração para %s: RECUSADO" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "Mantendo o arquivo pid %s" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Não foi possível criar o arquivo pid %s: %s" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "servidor dopewars versão %s pronto e esperando conexões\n" "na porta %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGUSR1!" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGHUP!" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGINT!" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Não foi possível instalar o sinal de interrupção SIGTERM!" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "Não foi possível instalar o sinal de pipe!" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "Usuários atualmente logados:-\n" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "Nenhum usuário atualmente logado!\n" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "Retirando %s\n" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "Este usuário não existe!\n" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "%s morto\n" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "Comando desconhecido - tente \"help\" para ajuda...\n" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "conexão de %s" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "" #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "%s saiu do servidor!" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1280 msgid "New admin connection" msgstr "" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1728 msgid "Command:" msgstr "" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "Não foi possível ler o arquivo de pontuação %s" #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "" #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Não foi possível abrir o arquivo de pontuação %s. (%s)\n" "Veja se você tem permissões para acessar este arquivo e diretório, ou\n" "especifique um arquivo de pontuação alternativo com a opção -f." #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "Não foi possível ler o arquivo de pontuação %s" #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "Parabéns! Você entrou nas melhores pontuações!" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "Você nem conseguiu entrar na tabela de melhores pontuações..." #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "Não foi possível escrever no arquivo de pontuação %s" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "(R.I.P.)" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Atrair de %s" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: espião oferecido por %s" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Um de suas %tde estava espionando para %s.^O espião %s!" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Seu espião trabalhando com %s foi descobrido!^O espião %s!" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "A moça próxima a você no metrô lhe diz,^ \"%s\"%s" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (ao menos, você -pensa- que foi o que ela disse)" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "Você escuta alguém tocando %s" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Você gostaria de visitar %tde?" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Você gostaria de contratar %tde por %P?" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s está aqui!^Você Ataca, ou Evacua?" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "Policiais não podem atacar outros policiais" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "Jogadores já estão brigando!" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "Jogadores estão em lutas separadas!" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "Não é possível começar briga - nenhuma arma para usar!" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "Você está morto! Jogo acabado." #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: atração de %s terminada OK." #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "Seguindo suas pistas, os policiais cercaram %s, que foi morto!" #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Seguindo suas pistas, os policiais cercara %s, que escapou com %d %tde. " #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "Você foi massacrado no metrô!" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Você encontrou um amigo! Ele lhe dá %d %tde." #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Você encontrou um amigo! Você dá a ele %d %tde." #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "Sanitized away a RandomOffer" #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Cães policiais caçam você por %d blocos! Você largou algum %tde! Que droga, " "cara!" #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Você acha %d %tde em um cara morto no metrô!" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "Sua mamãe fez comida com algumas de suas %tde! Ela estava ótima!" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Tem uma maconha aqui que cheira muito bem!^Parece bom! Você irá fumar? " #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "Você parou para %s." #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Você gostaria de comprar um colete por %P?" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "" "YN^Ei carinha! Eu posso ajudar você carregar %tde por meros %P. Sim ou não?" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Você gostaria de comprar %tde por %P?" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: oferta foi %s" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s aceitou seu %tde!^Use a tecla G para contactar seu espião." #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Você alucionou por três dias na viagem mais louca que você jamais imaginou!" "^Então você morreu porque seu cérebro desintegrou!" #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "Muito tarde - %s já saiu!" #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "%s rejeitou seu %tde!" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "" #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "Jogador removido por ter ficado muito tempo parado" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "Jogador removido por expiração da conexão" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "" #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:160 msgid "WinSock version not supported" msgstr "" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "" #: src/error.c:162 msgid "Address already in use" msgstr "" #: src/error.c:163 msgid "Cannot reach the network" msgstr "" #: src/error.c:164 msgid "The connection timed out" msgstr "" #: src/error.c:165 msgid "Out of file descriptors" msgstr "" #: src/error.c:166 msgid "Out of buffer space" msgstr "" #: src/error.c:167 msgid "Operation not supported" msgstr "" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "" #: src/error.c:169 msgid "Connection reset by remote host" msgstr "" #: src/error.c:170 msgid "Connection refused" msgstr "" #: src/error.c:171 msgid "Address family not supported" msgstr "" #: src/error.c:172 msgid "Protocol not supported" msgstr "" #: src/error.c:173 msgid "Socket type not supported" msgstr "" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "" #: src/message.c:1167 msgid "Do you run?" msgstr "Você corre?" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "Você corre, ou luta?" #: src/message.c:1369 msgid "pitifully armed" msgstr "muito pouco armado" #: src/message.c:1370 msgid "lightly armed" msgstr "pouco armado" #: src/message.c:1371 msgid "moderately well armed" msgstr "moderamente bem armado" #: src/message.c:1372 msgid "heavily armed" msgstr "pesadamente armado" #: src/message.c:1372 msgid "armed to the teeth" msgstr "armado até os dentes" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - está te perseguindo, cara!" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s e %d %tde - %s - estão te perseguindo, cara!" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s chega com %d %tde, %s!" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "%s fica e pega" #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "Você fica parado como um panaca." #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "%s tenta escapar, mas falha." #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "Pânico! Você não consegue escapar!" #: src/message.c:1410 #, fuzzy, c-format msgid "%s has got away to %tde!" msgstr "%s fugiu!" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "%s fugiu!" #: src/message.c:1416 msgid "You got away!" msgstr "Você fugiu!" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "Armas recarregadas..." #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s atira em %s... e erra!" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s atira em você... e erra!" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "Você errou em %s!" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "%s mata %s." #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s atira em %s e mata uma %tde!" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "%s atira em %s." #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "%s acabou com você, cara! Que merda!" #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s atirou em você... e matou uma %tde!" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "%s acertou você, carinha!" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "Você matou %s!" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Você acertou %s, e matou uma %tde!" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "Você acertou %s!" #: src/message.c:1469 msgid " You find %P on the body!" msgstr "Você achou %P no corpo!" #: src/message.c:1471 msgid " You loot the body!" msgstr " Você roubou o corpo!" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "" #: src/network.c:447 msgid "403: forbidden" msgstr "" #: src/network.c:450 msgid "404: page not found" msgstr "" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Não foi possível conectar no servidor dopewars\n" "(%s)\n" "Jogador com IA terminado abnormalmente." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Conexão estabelecida\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Jogador com IA iniciado; tentando contactar servidor em %s:%d..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Jogador com IA terminado OK\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Conexão com o servidor perdida!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Usando o nome %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Jogadores neste jogo:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s entra no jogo.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s sai do jogo.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Indo para %tde com %P de dinheiro e %P de débito\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Jogador com IA morto. Terminando normalmente.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Tempo de jogo esgotando. Saindo do jogo.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Jogador com IA retirado do servidor.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "O servidor foi acabado.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendendo %d %tde por %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Comprando %d %tde por %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Comprando um %tde por %P na loja de armas\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Débito de %P pago ao agiota\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Agiota localizado em %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Loja de armas localizada em %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Bordel localizado em %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "Banco localizado em %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Vocês se acham traficantes de drogas?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Um macaco treinado pode até fazer melhor..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Acham que vocês são duros o bastante para lidar com gente como eu?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... vocês estão traficando doces ou o que?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Droga eu vou ter que simplesmente atirar em você pro seu próprio bem." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Este binário foi compilado sem suporte a rede, e por iss não se pode atuar " "como um jogador com IA.\n" "Recompile passando a opção --enable-networking para o script configure." #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" dopewars-1.5.12/po/fr.gmo0000644001565000007070000014213110355323337012111 00000000000000Þ•WÔ)Œ%02”12?Æ2H3"O3r35‚35¸3î3þ34ˆ,4&µ4$Ü4'5')5 Q5 \5 h5t5…5¢5¼5Ü5ö5 6+6@6T6h6{6 6 œ6¦6¶6¿6+Þ6 7='7e7~77¥7¼7×7 é7 õ7 ÿ7 888/8 C8N8d8x8!‹8­8¾8%Ý89#989O9j9 ‡9 ¨9É9ä9::+:>:\: z:/ˆ:¸:Á:É:Ò:Ú:á:é:ñ: ; ;;6;G; [;i;x;ˆ;œ;®;¿;Ð; ä;î;õ;ü;< < <#4<X<a<(d<"<;°<ì<==+=-0= ^=+j=+–=Â=Ý=Bý=#@>0d>•> ©>´>¸> ½>Ç>Û>ä>Jì>7?$È@í@ó@ü@A AA%-ASAXAvA(”A(½A)æA)B*:BeB´‚B$7C\C aCkC tC C,CºCJÂC DD D *D­7D*åDE;(EdE:€E»E<ÒEFF13FeF$yF/žFKÎF$G?G[G kGxG~G‚GšG®G ³G"½GàG#éG H0HFHNH dH<pH+­HÙH ÞHèH÷H&I8I>IXI`I~IA•I×IßIèIGîI?6JEvJ2¼JïJKK.K3KDKZKbK|KƒK šK¥K&¬KÓKðK L L #L.LDL[L rL“L¤L µL0ÖL/MA7MyM!—M%¹M0ßM3N.DN sN'}N¥NµN)ÅN0ïN O(7O'`O/ˆO ¸OÙOóOP#P]D]a]#x]œ] ¡]«]º]Ñ]Ö] Ý].é]^ ^+.^Z^ly^jæ^$Q_v_ |_†_ž_ ¤_ ²_¾_Ñ_ à_î_#ô_`,7`d`,ƒ`1°`(â`, a8aLa^a"ea"ˆaL«a0øa0)bZb;vb;²b(îb*c)Bc6lc£c4Advd‡d ¤d!¯d"Ñdôd, eL:eM‡eLÕe"f)*fTfdfff˜fC¨f€ìfmg)ug@Ÿg àghh!h;hVh/hh˜h)µh ßh!íh/i(?ihi$qi/–i.Æi)õi%j$Ejjj:‡jÂjÈj(Ëj@ôjX5k'Žk4¶k ëk) l6l":l]l%ol7•l,Íl úlm,7m/dm”m.´m ãmvñm hnFvnF½n5o:o Vobooo(«o(Ôoýo p*p=p-\pŠp¢p@½p9þp48q*mq1˜q Êq Ôqâqêqòqúqr rrr%r,r2r8ruCuLuUu\u eu9qu«uH»uvvv$v,vCvGv Lv XvGfv ®v¼v*Òvýv ww)w 8wFw XwFfw­w¶wÅwÕwÝw:æwE!yFgy=®y ìy z5'z5]z“z¤zÀz×z4W{1Œ{8¾{3÷{ +| 6| B|N|_|z|!”|¶|Ð|ë|}"}>}T}k}€}}™}©} ²},Ó}~: ~[~r~‡~ž~³~Ë~ Ý~ ê~ õ~  );CZiy —#¥%Éï €"€?€Z€$t€#™€½€Ò€ è€ "4Sp*ª» Í Ú ä ï ú‚‚*‚ /‚P‚f‚{‚ Œ‚š‚­‚ÂÖ‚è‚û‚ƒƒƒ&ƒ.ƒ 7ƒ"Bƒ+eƒ ‘ƒœƒ(ŸƒȃAåƒ'„@„Z„o„(u„ž„ ·„(Ø„…"…U?…'•…2½…ð… ††† †(† C†N†LV†“£†77ˆoˆˆˆˆ ˆˆ¯ˆ/ňõˆ$úˆ‰(=‰(f‰)‰)¹‰1ã‰5ŠÇKŠ=‹Q‹ V‹`‹i‹ ~‹/Š‹º‹6‹ù‹ ŒŒ ŒH)Œ.rŒ¡Œ'µŒÝŒ8üŒ5<Kˆ1Ž5Àö8 ŽLDŽO‘Ž-áŽN^ n{"…¨» Á'Í õ)*=2pt ‰@”#Õù‘‘5‘&Q‘x‘€‘  ‘0¬‘Ý‘Aõ‘ 7’ C’ N’OX’F¨’Hï’38“%l“ ’“Ÿ“¼“œۓñ“"ù“”"” 9”C”!K”m”‹” ¨” ´” ”Í”$å” • •;•M•,i•,–•4Õ@ø•@9–(z–£–4²–=ç–'%— M—:X—“—²—4×0ø—)˜:A˜,|˜/©˜"Ù˜"ü˜)™ I™"j™™ «™µ™½™Ø™.왚$;š$`š3…š"¹šÜš6äš › %›#0›)T›3~›%²›/Ø›œ;œJœNœRœfœ€œ˜œµœÓœæœ÷œ $ ;Fd ¤¤Bž-瞟-Ÿ<JŸ<‡ŸÄŸËŸéŸ(  .2 a } 0› ,Ì $ù ¡0¡E¡5]¡“¡™¡¡  ¡/Á¡ ñ¡ ü¡ ¢¢=!¢ _¢i¢6{¢.²¢á¢,é¢0£8G£€£“£ª£ãã£=¥:?¥4z¥L¯¥(ü¥%¦ *¦$7¦\¦c¦ƒ¦¦¢¦Á¦ ئä¦ó¦ü¦ § §&%§:L§-‡§Jµ§¨¨¨0¨ 6¨W¨8k¨¤¨ «¨·¨Ȩݨå¨ í¨.ù¨(© 0©2>©q©eŒ©cò©1Vªˆª ªšª¹ªÀªÔªèª« "« -«":«%]«%ƒ« ©«>Ê«H ¬AR¬E”¬Ú¬ô¬­"­:4­Io­1¹­ë­ ®!'®!I®.k®.š®É®HÛ®°$¯EÕ¯°%.° T°0_°1°°,ܰD ±LN±I›±å±1í±²8²Q²b²j²Cz²~¾² =³)K³'u³'³ų˳è³´ ´ +´L´d´ƒ´-Œ´3º´3î´"µ$*µ!Oµ0qµ-¢µ-е*þµ/)¶$Y¶~¶„¶+‡¶J³¶Mþ¶#L·6p·§·)Ä·î· ó·¸"+¸9N¸,ˆ¸µ¸Ò¸.ê¸.¹H¹1d¹–¹’¨¹ ;º,Fº,sº. ºϺíºüº»F+»*r»*»È»×»õ» ¼6,¼c¼}¼I¼>ç¼<&½'c½7‹½ ý ͽ Û½ å½ñ½ú½¾ ¾¾ +¾ 5¾@¾F¾O¾T¾X¾a¾q¾ƒ¾¾¬¾±¾,ξ*û¾(&¿O¿ d¿…¿ž¿,¸¿(å¿%À4ÀGÀ"`ÀƒÀ*ŸÀ2ÊÀýÀÁÁ!Á.*ÁYÁ^ÁdÁuÁ~Á†Á Á2›ÁÎÁLßÁ,ÂAÂGÂOÂUÂoÂw€ÂÂ@¡ÂâÂóÂ2 Ã>à SÃaÃzÉÙíÃE¼Ã Ä Ä'ÄGÄ NÄŠ$EG:¸úË‘ UØH¢·‚öÜænÌ«kSþDI-j /'Ogñä =(®‚7Eîí!ßÎdø–ç½ó@ëf5_NóɪSùÛ’2I˜W¦AØãl¯JÃö•m·%µ0­PïíR$-i‹A¨äõž‡+Z¤é´;]qÙcMðÛWá,–¦{ Ó1Œ<þ9BMÖë`÷Kuš7xPº¥…~*<iÙÆ÷€‰KN p™ wÔ¿¼|¹Œ~ÚyáWÓ‰2+_\˜%‘ì!€kIжhtòÕ’.b36 õ¼àփ߅Gû9è»;—Ÿ=ÀFCéÒü  ¶ê]¬}#ÑÉwL`CO(v‹&DT&Õ\8Á(ÅÏ=8§V)> Á*V.ÂP”Ãs•|ªòa4î„@sâ³//úHu¾6´Y¡f È„¹L[Êt:^©eÅTvzrÿl †Ta'²"¡ 3ÞÚ¸>}<j棈ÄÂ7n;U h»1ÐÆ+кbÀ ȱâ?ÿY¬­Ô®ôzCÜ”§eì5 )£ð'šoýÏHÊRFo.3¤åAMgû³:D)@$J{0›rc“™F Ò¿QG0©¯ˆ%×dÄ4#å,pÝ¢?5#üžSƒJ9¨ý›Ý"œÑÞùÌZÇÎU6°Ím!,N°àã[XQç1"4Ÿ&^—y ½x†>?XË¥ R L*‡«ô±øVèŽB-2×¾²Ç8ŽEÍïKqBµQñêOœ“ For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) Are you sure? You find %P on the body! You loot the body!# This is the dopewars startup log, containing any # informative messages resulting from configuration # file processing and the like. % resistance to gunshots of each bitch% resistance to gunshots of each cop% resistance to gunshots of each deputy% resistance to gunshots of each player%-19Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/BankName window title/%Tde%/Combat: Bitches/%d %tde%/GTK GunShop window title/%Tde%/GTK Stats: Bitches/%Tde%/GTK Stats: Guns/%Tde%/LoanShark window title/%Tde%/Spy: Drugs/%Tde...%/Spy: Guns/%Tde...%/Stats: Drugs/%Tde%/Stats: Guns/%Tde%Tde %3d Space %6d%Tde carried%Tde here%c. %-10tde %8P%d of %d%s - %s - is chasing you, man!%s and %d %tde - %s - are chasing you, man!%s arrives with %d %tde, %s!%s has accepted your %tde!^Use the G key to contact your spy.%s has got away to %tde!%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s hits you, man!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s shoots %s dead.%s shoots at %s and kills a %tde!%s shoots at %s.%s shoots at %s... and misses!%s shoots at you... and kills a %tde!%s shoots at you... and misses!%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s tries to get away, but fails.%s wasted you, man! What a drag!%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Spy offered by %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?(R.I.P.), D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/_New.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAEAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?About dopewarsAcidAddicts are buying %tde at ridiculous prices!Agent SmithAmount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Attack penalty relative to a playerAuthentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBankBank %17PBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBronxBrooklynBuyBuy %tdeBuy how many?Buying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Cannot create pid file %s: %sCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.Cannot start fight - no guns to use!CashCash %17PCash: %PCentral ParkChange NameChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!Command:CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Congratulations! You made the high scores!Connection established Connection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnCopsCops cannot attack other cops!Cops made a big %tde bust! Prices are outrageous!Corrupt high score!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not start multiplayer dopewarsCourage! Bush is a noodle!D O P E W A R SD>eal %tde, DRFSQDWLDamage done by each gunDan's House of GunsDebtDebt %17PDebt of %P paid off to loan shark Debt: %PDefend penalty relative to a playerDepositDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DropDrop %tdeDrop how many?Drug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeError reading scores from %s.Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, FightFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame time is up. Leaving game. GhettoGun shop located at %s GunsGuns reloaded...H I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth %3dHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIndex into %s array should be between 1 and %dInventoryJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Location of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLudesMDAMaintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of accompanying deputiesMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-MetaserverMinimum normal price of each drugMinimum number of accompanying deputiesMinimum number of drugs at each locationMinimum price to hire a bitchMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each copName of each cop's deputiesName of each cop's deputyName of each drugName of each gunName of each locationName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toNetwork port to connect toNew GameNew name: No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of guns that each cop carriesNumber of guns that each deputy carriesNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doNumber of types of cop in the gameOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!OpiumPCPPSPanic! You can't get away!Path of the script on the metaserverPay allPay back:PeyotePlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are already in a fight!Players are already in separate fights!Players are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presence at each location (%)PortPort : %dPort for metaserver communicationPort: Preferred hostname of your server machinePress any key...PricePrice of each gunPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Resized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, STGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSellSell %tdeSell how many?Selling %d %tde at %P SendServerServer : %sServer description, reported to the metaserverShroomsSingle playerSo I think I'm going to Amsterdam this yearSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStaten IslandStatsStatus: Attempting to contact %s...Status: Could not connect (%s)Status: Could not connect to metaserver (%s)Status: Waiting for user inputTRUE if server should report to a metaserverTRUE if the value of bought drugs should be savedTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: The Marrakesh Express has arrived!The Pope was once Jewish, you knowThe first thing you need to do is pay off your debt to the Loan Shark. AfterThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unix prompt. This will display a help screen, listing the available options.UnknownUnknown command - try "help" for help... Up since : %sUsers currently logged on:- Using name %s VersionVersion : %sVersion %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public Licence WarningWasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!WeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?YouYou are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You got away!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou hit %s!You hit %s, and killed a %tde!You killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You missed %s!You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!You're dead! Game over.Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zero-based index of the gun that cops are armed withZzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_%c. %tde_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_OK_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!copcopsdefecteddeputiesdeputydopewarsdopewars AIdopewars is released under the GNU General Public Licencedopewars serverdopewars server version %s ready and waiting for connections on port %d.dopewars version %s drugdrugsescapedgot connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars-1.5.3 Report-Msgid-Bugs-To: POT-Creation-Date: 2005-12-30 13:30-0800 PO-Revision-Date: 2001-10-16 20:50+0100 Last-Translator: leonard Language-Team: French MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Pour infos sur les options en ligne de commande, taper: dopewars -h L>ister les serveurs sur le meta, et en selectionner un Q>uitter (vous pouvez alors demarrer un server ou J>ouer en solo ? A>ller se faire foutre E>spionner un autre dealer (cout: %P) D>onner un autre dealer aux flics (cout: %P) Etes vous sur? Tu trouves %P sur le corps! Tu cherches le corps!# Ceci est le LOG de demarrage de dopewars. # Contient les messages d'info resultant du parsage # du fichier de config etc... % de resistance aux coups de fusil de chaque chienne% de resistance aux coups de fusil de chaque flic% de resistance aux coups de flingue de chaque sous-flic% de resistance aux coups de fusil de chaque joueur%-19Tde%3d%-22tde %3d%-7tde %3d%-7tde %3d @ %P%/Banque window title/%Tde%/Combat: Salopes/%d %tde%/GTK Armurerie window title/%Tde%/GTK Stats: Salopes/%Tde%/GTK Stats: Flingues/%Tde%/Preteur window title/%Tde%/Esprion: Drogues/%Tde...%/Esprion: Flingues/%Tde...%/Stats: Drogues/%Tde%/Stats: Flingues/%Tde%Tde %3d Espace %6d%Tde transporte%Tde ici%c. %-10tde %8P%d de %d%s - %s - te courent apres, mec!%s and %d %tde - %s - te courent apres, mec!%s est arrive avec %d %tde, %s!%s a accepte votre %tde!^Tape G pour contacter ton espion.%s s'est barre a %tde!%s se sont echappes!%s a quitte la partie.%s a quitte le jeu. %s a rejete votre %tde!%s te troue, mec!%s est "%s" %s est %P %s est %d %s est %s %s est { %s joint la partie!%s joint le jeu. %s tue %s quittes le serveur!%s espionne %s%s tire %s mort%s tire a %s et tue une %tde!%s tire a %s.%s tire a %s... et manque son coup!%s te tire dessus... et tue une %tde!%s te tire dessus.. et loupe!%s spy on %s: DENIED%s reste debout et le prend.%s tipoff about %s: DENIED%s a balance %s aux flics%s essaye de se barrer, mais echoue.%s t'as detruit, mec! Ca gonfles...%s est maintenant %s%s est maintenant %s.%s: deplacement vers %s INTERDIT%s: Espion offert par %s%s: Balance de %s%s: l'offre etait au nom de %s%s: balance par %s finit OK.%s[%d] est %s %s^%s est deja la!^Tu Attaque, or t'Evade?(Repose en Paix), L>aisser tomber, C>ombattre, D>onner, dEplacer, L>lister, V>endre, P>arler, R>reveiller, ou Q>uitter P 38/Taches/_Rapports des espions.../Taches/_Espionner.../Taches/_Balancer.../Jeu/_Nouveau.../Jeu/_Quitter/Aide/_A propos.../Liste/_Inventaire.../Liste/_Joueurs.../Liste/_Scores.../Parler/A _Tous.../Parler/A _joueur.../_Taches/_Jeu/_Aide/_Liste/_Parler<- _VendreUn jour sans camme, c'est la nuit.Un singe apprivoise pourrait faire mieux...A:AttaquerASjoueur IA tue. Teminating normallement. Joueur IA jette du serveur. Le joueur IA a debute; essaye de contacter le server sur %s:%d...Joueur IA terminated OK Abandonner cette partie ?A propos de dopewarsAcideLes junkies achetent %tde hors de prix !Detective de DieuleveultFric donne en debutant la partieMontant des dettes en debutant la partieT'est defonce a quoi, la ?Etes vous sur de vouloir quitter? Etes vous sur ? (Chaque %tde ou %tde transporte par cette %tde pourront etre perdus!)Penalite d'attaque relative a un joueurAuthentification du nom local avec le metaserveur Espace disponible: %dAVLPRLDCEQAVPBanqueBanque %15PLa banque est situee a %s banque: %PColt 45Base sur le jeu Drug Wars par John E. Dell, dopewars est une simulation d'unBase sur le jeu de John E. Dell -Drug Wars- , dopewars est une simulation d'un marche de la drogue imaginaire. DopeWars est un jeu qui vous permet d'acheter ou vendre de la camme et essayer d'eviter les flics! La premiere chose a faire est de rembourser le preteur a gages. Ensuite, votre but est de faire le maxium de fric (et de rester en vie!) Vous avez un mois de temps de jeu pour faire fortune. Soyez verbose en passant le config file a la moulinetteLe Moulin RougeBoulogneAcheterAcheter %tdeAcheter combien ?Acheter %d %tde a %P Acheter un %tde pour %P au magazin de flingues CLQJVous osez vous appeller des dealers?Cannot create pid file %s: %sCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Ne peux pas installer SIGWINCH interrupt handler!Ne peut pas installer le truc qui s'occupe des pipes!Ne peut pas ouvrir le fichier des high score %s. (%s) Verifiez que vous avez les permissions pour acceder ce fichier ou repertoire ou specifiez un autre fichier et chemin d'acces avec la commande -f.Ne peut pas commencer la bagarre - pas de flingue a utiliser!FricFric %17PFric: %PPorte de la ChapelleChanger NomChoisir un boulot a donner a une de tes %tde...Cocainede la bonne herbe d'Amsterdam vient d'arriver en masseCommand:CommentaireCommentaire: %sLes HallesLa config peut seulement etre changee quand aucun joueur n'est connecte.Felicitations! Vous etes dans les high scores!Connection etablie Connection au server perdue - Mode soloConnection au serveur perdue! La connection au serveur est perdue. Change en mode SoloCritique constructiveCritiques constructives Andrea Elliot-Smith Pete WinnflicsLes flics ne peuvent pas attaquer d'autres flics!Les flics ont mis la main sur un gros stock de %tde !High Score corrompu!Cout pour envoyer une chienne espionner le dealer ennemiCout pour envoyer une chienne donner des informations sur l'ennemi aux flicsNe peut pas connecter au server dopewars (%s) IA joueur terminating abnormally.Ne peux pas demarrer dopewars en multi-joueurLes vrais leaders de ce monde sont george bush, keanu reeves et sandra BullockD O P E W A R SD>eal %tde, DSCRQDRPDommage inflige par chaque flinguel'arriere boutiqueDetteDettes %15PDettes de %P payees au preteur a gages Dettes: %PPenalite de deffence relative a un joueurDeposerDiviseur sur le prix des cammes devenues vraiement pas cheresTu Tu cours ou combat ?Tu cours ?Tu veux D>eposer de l'argent, R>etirer des biftons, ou P>artir ?Ta mere sait que tu est un dealer ?Laisser tomberLaisser tomber %tdeLaisser tomber combien ?Vente de camme et RechercheVente de camme et recherche Dan WolfdroguesLa camme peut etre votre amie !S: S'evaderImpossible de lire le fichier des high scores %sTesteur extensif du jeuTesteurs extensifs Katherine Holt Caroline MooreS:Se battreC>combat, Se battreSuivant votre balance, les flics ont pecho %s, qui s'est echappe avec %d %tde. Suivant votre balance, les flics ont pecho %s, qui est mort par balle!Pour information sur les options en ligne de commande, taper dopewars -hLigne utilisee pour des drogues cheres 50% des foisTemps de jeu termine. Quitte le jeu. Gare du NordL'armurerie est situee a %s flinguesFlingues recharges...H I G H S C O R E SHashishC'est vous que j'ai vu a la tele ?SanteSante %3dSante: %dHeroineHe man, les prix du %tde sont la:Salut mec, quel est ton _nom?He mec, c'est quoi ton nom? High ScoresNom de l'hoteHostname: Combien tu en achetes ?Combien d'unites tu laisses tomber? Combien tu en vends? Combien de fric tu rends ?Combien d'argent?Je suis un elephant de mer!Bon je suis trop defait, je vais me coucher.We are masses of wavelenghts on the infiniteL'esprit n'est jamais né, l'esprit ne cessera jamaisCa vous arrive de conduire la nuit avec des lunettes de soleil ?Ta mere vient de faire des bons gateaux avec un peu de ton Hash.J'ai pas toujours ete une femme, tu saisGnôthi seautonJe parie que vous faites des reves tres interessants`Question authority; think for yourself`. a dit Timothy LearyL'index dans %s doit etre entre 1 et %dInventaireSeulement de nos jours, les chateaux sont des entreprises.Se deplacer a un autre endroitBouger vers %tdeDeplacement de %tde avec %P en cash et %P en dettes Just say No... well, maybe... ok, what the hell!Bute un flic, bon Dieu!liste des morceaux de zic que vous pouvez entendre de loinliste des trucs que tu peux arreter de faireliste des trucs que vous entendez dans le metroLister quoi? J>oueurs ou S>cores? Le preteur a gages est situe a %s L'endroit ou se trouve le Preteur a GagesL'endroit ou se trouve la banquel'endroit ou se trouve l'armureriel'endroit ou se trouve le barSpecial KExctasyMaintenance du pid file %sBarbes RochechouartMaxClients (%d) exceeded - dropping connectionPrix MAX normal de chaque cammeNombre maximum de connections TCP/IPNombre MAX des adjoints accompagnantNombre maximum de potions magiques a chaque endroitPrix MAX pour employer une chienneMessageMessage affiche si cette camme est vraiement pas chereMessage:-MetaserverPrix minimum normal de chaque cammeNombre minimum de sous-flics accompagnantNombre minimum de potions magiques a chaque endroitPrix minimum pour employer une salopeMultiplicateur pour les drogues devenues cheresN:NonS>uivant server; P>recedent server; C>choisir ce serveur...SPCNomNom de chaque flicsNom de chaques sous-flicsNom de chaque sous-flicNom de chaque potion magiqueNom de chaque type de flingueNom de chaque lieuNom de la banqueNom de l'armurerieNom du fichier des scoresNom du Preteur a GagesNom du barNom du serveur a se connecterPort reseau a se connecterNouvelle partieNouveau nom: Pas de curses client disponible - reconstruire le binaire en utilisant --enable-curses-client pour configurer, ou utiliser un client fenetre (si dispo) a la place! Pas de curses client disponible - reconstruire le binaire en utilisant --enable-curses-client pour configurer, ou utiliser un client fenetre (si dispo) a la place! Aucun autre joueur est en ligne en ce moment!Cet user n'existe pas. Aucun utilisateur en ligne. Nombre de tours de jeu (avec 0, le jeu ne se termine jamais)Nombre de secondes apres lesquelles on peut retourner le feuNombreNombre de drogues dans le jeuNombre de revolvers dans le jeuNombre de flingues que chaque flic porteNombre de flingues que chaque sous-flic portesNombre de lieux dans le jeunombre de morceaux de musiquenombre de choses que vous entendez dans le metronombre de trucs que tu peux arreter de faireNombre de types de flics dans le jeuInspecteur VERGESInspecteur GrosBoeufVous venez de Tunisie ?Une de tes %tde etait un espion pour %s.^L'espion %s!OpiumPCPJSPannique! Tu peux pas te sauver!Chemin d'acces au script CGI sur le metaserveurTout payerRembourser:MescalineTesteur de jeuTesteurs Phil Davis Owen WalshRejouer? Liste des joueursJoueur enleve a cause de temps de connection trop longJoueur enleve a cause d'inactivite trop longueJoueursLes joueurs sont deja en train de se battre!Les joueurs sont deja dans des bastons separees!Les joueurs sont deconnectes apres ce nombre de secondesJoueurs en ligne:-Joueurs dans ce jeu:- Joueurs: %d (maximum %d)Joueurs: -inconnu- (maximun %d)Merci de choisir le joueur a espionner. Votre %tde va ensuite offrir ses services aux joueur, et si elle a du succes, vous aurez ensuite acces aux stats du joueur avec le menu "Rapport des Espions". La %tde va partir, donc toutes les %tde ou %tde qu'elle porte seront peut etre perdus!Merci d'entrer le nom du host et le port du server dopewars:-Patientez... tentative de contacter le serveur dopewars...Patientez... tentative de contacter le metaserver...Les chiens des flics te courent apres sur %d blocs! Tu laisses tomber %tde! Presence policiaire a chaque endroit (%)PortPort : %dPort du serveur de metacommunicationPort: Le nom de votre machine serveurAppuyer sur une touche...PrixPrix de chaque type de flingueLe bar est situe a %s Pousser %s Place d'ItalieQuestionQuitter la partieC:CourrirS>e sauver, Les elements aleatioires sont nettoyesJe crois que je vais devoir te buter pour ton propre bien.Structure liste redimentionnee a %d elements Tes concurrents ont devalise une pharmacie et vendent de la Keta pas chereAvtomat Kalashnikov 47METROR>este sur place, EDACPTu nettoies une offre aleatoire.Smith et Wesson 657Secondes entre les tours des intelligences artificiellesVendreVendre %tdeVendre combien ?Vendre %d %tde a %P EnvoyerServeurServeur: %sdescription du serveur, reporte au metaserveurChampisJouer en soloJe pense que je vais aller a Amsterdam cette anneeje suis un cheval, en faitDesole, ce serveur a une limite atteinte de %d joueursMerci de re-essayer votre connection plus tard.Desole, ce serveur a une limite atteinte de 1 joueurMerci de re-essayer votre connection plus tard.Touche de tri pour la liste des dopes disponiblesEspaceEspace %6dEspace pris par chaque flingueAmphesEspionner le joueurRapport des espionsRapport des espions pour %sCommencer une nouvelle partieArgenteuilStatistiquesStatus: Essayer de contacter %s...Status: Ne peut pas se connecter (%s)Status: Ne peut pas se connecter (%s)Status: Attente de l'utilisateurDifferent de zero si le serveur doit reporter a un metaserveurDifferent de zero si la valeur de la camme achetee doit etre sauvegardeeDifferent de zero si cette camme peut devenir vraiement pas chereDifferent de zero si cette drogue peut devenir particulierement chereParler a tout les joueursParler au joueur(s)Parler: The Marrakesh Express has arrived!Of all the things that I've lost, I miss my mind the most.La premiere chose a faire est de rembourser votre dette au preteur. ApresLa dame a cote de vous dans le metro dit,^ "%s"%sLe marche est sature de buvardsLe serveur has terminated. Le serveur est mort. Devient soloLe serveur est mort. Devient soloIl n'y a pas autant d'argent dans la banque...Il n'y a pas autant d'argent dans la banque...In dust, we trustTu penses que t'est suffisament dur pour dealer avec des mecs comme moi?Ce fichier binaire a ete compile sans le support rezo, et donc ne peut pas se comporter comme un joueur IA. Recompile en utilisant --enable-networking avec le script de config.Temps en secondes pour que les connections soient etablies ou casseesBalancer aux flicsTrop tard - %s vient juste de partir!TrenchcoatImpossible de lire le fichier des high scores %sImpossible d'ecrire le fichier des high scores %sCritique non-constructiveCritiques deconsctructives James MatthewsMalheureusement, qq d'autre utilise deja ton nom. Merci d'en changerMalheureusement, quelqu'un d'autre utilise deja ton nom. Merci de le changera votre prompt UNIX. Cela va afficher l'aide sur les options disponibles.InconnuCommande inconnue - Essaye "help" pour l'aide... Operationnel depuis : %sUtilisateurs en ligne:- Utiliser nom %s VersionVersion :%sVersion %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars est diffuse sous la GNU General Public Licence AvertissementIl faut ouvrir ses branchies aux courantsSauvez des arbres, mangez des castors !Vous avez les yeux rouges, jeune homme.SkunkQue veux tu laisser tomber? Que souhaites tu acheter? Que souhaites tu vendre? Ou ca, mec ? A qui tu veux parler en prive ? Qui tu veux espionner ?Qui tu veux donner aux flics ?A>cheterSouhaitez vous A>cheter, V>endre, ou P>artir?Woulez vous... C>connecter a un hote/port differentLes vainqueurs ne se droguent pas... a moins que...RetirerMot utilise pour decrire 1 "chienne"Mot utlise pour decrire 1 drogue Mot utilise pour decrire 1 flingue ou equivalentMot utilise pour decrire 2 "chiennes" ou plusMot utilise pour decrire deux drogues ou plusMot utlise pour decrire 2 flingues ou plusLa telepathie existe ! Regardez les vibrations.`Vivons dans l'extase de l'illimité`O:OuiONYN^Tu payes le docteur %P pour te recoudre?YN^He! mec! Je t'aiderais a porter tes %tde pour un petit %P. Oui ou non ?YN^Il y a une sorte d'herbe qui sent bizarre ici!^Ca a l'air bon! Tu la fume?YN^Tu veux acheter un %tde pour %P?YN^Tu veux acheter une trenchcoat plus grande pour %P?YN^Voulez-vous visiter %tde?YN^^Voulez vous engager une %tde pour %P?VousVous portez en ce moment %d %tdeVous pouvez acheter %dTu peux acheter %d, et porter %d. Tu ne peux pas faire du fric avec ce que tu portes %tde :T'as meme pas reussi a etre dans les Scores!Tu n'as aucun %tde a vendre!T'en as aucun a vendre!Tu n'as pas assez de fric pour achter ce %tde!Tu n'as pas assez d'espace pour porter ce %tdeTu n'as pas assez d'argent!Tu trouves %d %tde sur un mec mort dans le metro!Tu t'est echappe!Tu a hallucine pendant trois jours dans le plus trip le plus sauvage que^t'aurais jamais imagine! Ensuite tu t'est mis a parler avec tes oreilles!Tu as %d. Vous avez ete vire du serveur. Devient solo.Vous avez ete vire du serveur. Devient solo.as un mois de temps de jeu pour faire fortune.Tu entends quelqu'un jouer %sTu touches %s!Tu touches %s, et tue une %tde!Tu as bute %s!On utilise 10% de nos cerveaux, alors pourquoi ne pas en crammer 90% ?Tu rencontres un ami! Il te donne %d %tde.Tu rencontre un ami! Tu lui donne %d %tde.Tu manques %s!Tu restes la comme un pantin.Tu t'arretes pour %s.Tu as ete attaque dans le metro!Tu as besoin de plus de %tde pour porter plus de %tde!Vous etes mort! GamE OveRVotre temps de deal est termineTa maman a fait des gateaux avec un peu de ton %tde! Ils sont excellents!Votre espion travaillant pour %s a ete decouvert!^L'espion %s!Index base sur zero du pistolet avec lequel le flic est armeZzzzzz... tu vends des bombons ou quoi?^ (au moins, tu -penses- que c'est ce qu'elle a dit)_%c. %tde_Antique mode_Attaquer_Acheter ->_Annuler_Fermer_Connect_Vendre %Tde_Laisser tomber <-_S'evader_Combattre_Aide_Bouger!_Non_OK_Courrir_Espionner (%P)_Rester sur place_Commencer un jeu en solo_Balancer (%P)_Oui`Douanier 007` par Sicemilla`Mangez-moi Mangez-moi` par Billy Ze Kick :)`Lost in the K hole` par Chemical Brothers`Annie aime les sucettes` par Gainsbourg`The Spice` par Dune`L'etat assassine` par Assassins`La main verte` par Tryo`l'Apologie` par Matmatah`Bons baisers d'Amsterdam` par Billy ze Kick`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Trip Tonite` par Etnica`Le Ciel Est Triste` par Haldolium`Autopilot` par Vibrasphere`Jesus Chris est un Hippie` par J.Hallyday`Live at Plookland city` par Transorbital Lobotomyarmes jusqu'aux dentsat %Pchiennechiennesacheter, vendre et essayer d'eviter les flics!flicflicspasse a l'ennemiadjointsadjointdopewarsdopewars AIdopewars est distribue sous la license GPL de GNU.serveur dopewarsdopewars server version %s pret et attendant les connections sur le port %d.dopewars version %s cammedroguesenfuirecu une connection de %sflingueflinguesboire une bierelourdement armesmarche de la drogue imaginaire. Dopewars est un jeu qui comprendlegerement armesrelativement bien armesou C>ontacter vos espions et recevoir des rapportsou P>as de boulot ? ou Q>uitter? leur armement fait pitiefumer un bluntfumer un cigarefumer une cigarettefumer un jointvotre but est de faire le plus de fric possible en restant vivant! Tula banqueLe Preteur a Gages`Mechanical Animals` par Marilyn Mansonle bara ete butedopewars-1.5.12/po/es.po0000644001565000007070000040574610355323336011762 00000000000000# Translation of Dopewars to Castilian aka Spanish # This file is distributed under the same license as the Dopewars package. # Copyright (C) 2003 Ben Webb # Quique , 2002, 2003. # # # códigos %t: # # al - yendo a/al/a las/... sitio # First author: Quique , 2002,2003. # # msgid "" msgstr "" "Project-Id-Version: es\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: 2003-12-10 09:29+0100\n" "Last-Translator: Quique \n" "Language-Team: Castilian aka Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "puta" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "putas" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "arma" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "armas" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "droga" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "drogas" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "%d-%m-%Y" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "el usurero_al_al usurero" #: src/dopewars.c:195 msgid "the Bank" msgstr "el banco" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "la armería" #: src/dopewars.c:196 msgid "the pub" msgstr "el bar" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Puerto de red al que conectarse" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nombre del fichero de máximas puntuaciones" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nombre del servidor al que conectarse" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "Mensaje de bienvenida del servidor" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Dirección de red del servidor al que escuchar" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "TRUE si se debe usar un servidor SOCKS para la conexión de red" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "TRUE si se deben usar ID de usuario numéricos para SOCKS4" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Si no se deja en blanco, el nombre de usuario a usar para SOCKS4" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "El nombre del servidor SOCKS a usar" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "El número de puerto del servidor SOCKS a usar" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "La versión del protocolo SOCKS a usar (4 o 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Nombre de usuario para la autenticación SOCKS5" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Contraseña para la autenticación SOCKS5" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "TRUE si el servidor debe informar a un metaservidor" #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "Nombre del metaservidor al que informar o del que obtener información" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "Puerto para la comunicación con el metaservidor" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "Nombre del proxy para la comunicación con el metaservidor" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "Puerto para comunicarse con el servidor proxy" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "Ruta del guión en el metaservidor" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "El nombre de su servidor" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "Autenticación del nombre local con el metaservidor" #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "Descripción del servidor, que se pasa al metaservidor" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "Si TRUE, usar SOCKS para la comunicación con el metaservidor" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "Nombre de usuario para la autenticación HTTP básica" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "Contraseña para la autenticación HTTP básica" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "Nombre de usuario para la autenticación HTTP básica con el proxy" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "Contraseña para la autenticación HTTP básica con el proxy" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Si TRUE, el servidor se minimiza a la bandeja del sistema" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "Si TRUE, el servidor funciona en segundo plano" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "La orden usada para iniciar su navegador web" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "Número de rondas de juego (si es 0, el juego nunca termina)" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "Día del mes en el que empieza el juego" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "Mes en el que empieza el juego" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "Año en el que empieza el juego" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "El símbolo de dinero (por ejemplo, $)" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "Si TRUE, el símbolo de dinero va antes que el precio" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "Fichero en el que escribir los mensajes de registro" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "Controla el número de mensajes de registro producidos" # timestamps: dataciones estampilla marcas temporales #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "formato de la cadena strftime() para las marcas de tiempo" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "Se limpian los eventos aleatorios" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "TRUE si se debe guardar el valor de las drogas compradas" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "Ser prolijo al procesar el fichero de configuración" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "Número de sitios en el juego" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "Número de tipos de policía en el juego" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "Número de armas en el juego" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "Número de drogas en el juego" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "Ubicación del usurero" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "Ubicación del banco" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "Ubicación de la armería" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "Ubicación del bar" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "Tasa de interés diaria de la deuda con el usurero" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "Tipo de interés diario de su saldo en el banco" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "Nombre del usurero" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "Nombre del banco" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "Nombre de la armería" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "Nombre del bar" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "TRUE si se debe habilitar el sonido" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "Fichero de sonido que suena cuando un disparo hace blanco" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "Fichero de sonido que suena cuando un disparo yerra su objetivo" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "Fichero de sonido que suena cuando se recarga un arma" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" "Fichero de sonido que suena cuando se mata a un ayudante o a una puta enemiga" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "Fichero de sonido reproducido cuando muere una de sus putas" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "" "Fichero de sonido reproducido cuando se mata a otro jugador o a un policía" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "Fichero de sonido reproducido cuando le matan a usted" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "" "Fichero de sonido reproducido cuando un jugador intenta escapar, pero no lo " "consigue" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "" "Fichero de sonido reproducido cuando usted intenta escapar, pero no lo " "consigue" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "Fichero de sonido reproducido cuando un jugador logra escapar" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "Fichero de sonido reproducido cuando usted logra escapar" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "Fichero de sonido que suena al llegar a un nuevo sitio" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "Sonido que se oye cuando un jugador envía un mensaje público al chat" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "Sonido que se oye cuando un jugador envía un mensaje privado al chat" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "Fichero de sonido que suena cuando se une un jugador al juego" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "Fichero de sonido que suena cuando un jugador abandona el juego" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "Fichero de sonido reproducido al empezar el juego" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "Fichero de sonido reproducido al acabar el juego" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "Orden de las drogas disponibles" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "Número de segundos para devolver disparos" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "Los jugadores son desconectados después de este número de segundos" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "Tiempo en segundos para que las conexiones sean establecidas o rotas" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "Número máximo de conexiones TCP/IP" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "Segundos entre los turnos de los jugadores automáticos" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "Cantidad de dinero con la que empieza cada jugador" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "Importe de la deuda con la que empieza cada jugador" #: src/dopewars.c:493 msgid "Name of each location" msgstr "Nombre de cada lugar" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "Presencia policial en cada sitio (%)" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "Número mínimo de drogas en cada sitio" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "Máximo número de drogas en cada lugar" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "% de resistencia a disparos de cada jugador" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "% de resistencia a disparos de cada puta" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "Nombre de cada policía" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "Nombre del ayudante de cada policía" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "Nombre de los ayudantes de cada policía" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "% de resistencia a disparos de cada policía" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "% de resistencia a disparos de cada ayudante" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "Penalización de ataque relativa a un jugador" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "Penalización de defensa relativa a un jugador" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "Número mínimo de ayudantes acompañantes" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "Número máximo de ayudantes acompañantes" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "" "Índice basado en cero de la pistola con la que están armados los policías" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "Número de pistolas que porta cada policía" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "Número de pistolas con las que carga cada ayudante" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "Nombre de cada droga" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "Precio mínimo normal de cada droga" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "Precio máximo normal de cada droga" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "TRUE si esta droga puede ser especialmente barata" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "TRUE si esta droga puede ser especiamente cara" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "Mensaje a mostrar cuando esta droga sea especialmente barata" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Línea utilizada para drogas que sean caras el 50% de las veces" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "Divisor del precio de la droga cuando es especialmente barata" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplicador para las drogas especialmente caras" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "Nombre de cada arma" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "Precio de cada arma" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "Espacio que ocupa cada arma" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "Daño ocasionado por cada arma" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "Palabra usada para designar una sola \"puta\"" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "Palabra usada para designar dos o más \"putas\"" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "Palabra usada para designar una sola arma" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "Palabra usada para designar dos o más armas" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "Palabra usada para designar una sola droga" #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "Palabra usada para designar dos o más drogas" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "cadena de formato strftime() para mostrar la ronda del juego" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "Coste de enviar a una puta a espiar al enemigo" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Coste de enviar a una puta a dar información sobre el enemigo a la policía" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "Precio mínimo de contratar una puta" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "Precio máximo de contratar una puta" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "Lista de cosas que se oyen en el metro" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "Número de cosas que se dicen en el metro" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "Lista de canciones que se oyen tocar" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "Número de canciones que se tocan" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "Lista de cosas que puede dejar de hacer" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "Número de cosas que puede dejar de hacer" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` de Jimi Hendrix" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` de Tone Loc" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Polipuestón` de King Putreak" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Alternativa platino` de Habeas Corpus" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "`Mineros locos (Armas pal pueblo)` de Def Con Dos" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "`Todo por la napia` de Siniestro Total" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` de Jefferson Airplane" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`I want to get high` de Cypress Hill" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Needle And The Spoon` de Lynyrd Skynyrd" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` de Jefferson Airplane" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "`Street Lobotomy` de Body Count" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` de the Tubes" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`I Love You Mary Jane` de Sonic Youth" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "`Drug Me` de Dead Kennedys" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Julie's In The Drug Squad` de The Clash" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Tengo un spiz amarillo` de Manolo Kabezabolo" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "las grabaciones del CESID" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalización` de Ska-P" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "tomar una cerveza" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "fumar un porro" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "fumar un puro" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "fumar un Djarum" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "fumar un cigarrillo" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "Agente Matute" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "ayudante" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "ayudantes" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "Comisario Romerales" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "Jefe Wiggum" #: src/dopewars.c:717 msgid "cop" msgstr "poli" #: src/dopewars.c:717 msgid "cops" msgstr "polis" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr ".38 Special" #: src/dopewars.c:723 msgid ".38 Special" msgstr "Kalashnikov" #: src/dopewars.c:724 msgid "Ruger" msgstr "Colt 45" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "Smith & Wesson" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "LSD" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "¡El mercado está inundado de LSD casero barato!" #: src/dopewars.c:733 msgid "Cocaine" msgstr "Cocaína" #: src/dopewars.c:734 msgid "Hashish" msgstr "Hachís" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "¡Ha llegado un cargamento de hachís de Marruecos!" #: src/dopewars.c:736 msgid "Heroin" msgstr "Heroína" #: src/dopewars.c:737 msgid "Ludes" msgstr "Barbitúricos" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "¡Alguien ha atracado en una farmacia y está vendiendo barbitúricos baratos!" #: src/dopewars.c:739 msgid "MDA" msgstr "Éxtasis" #: src/dopewars.c:740 msgid "Opium" msgstr "Opio" #: src/dopewars.c:741 msgid "PCP" msgstr "Ketamina" #: src/dopewars.c:742 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:743 msgid "Shrooms" msgstr "Hongos alucinógenos" #: src/dopewars.c:744 msgid "Speed" msgstr "Anfetaminas" #: src/dopewars.c:745 msgid "Weed" msgstr "Marihuana" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "Ha llegado la cosecha. ¡El precio de la marihuana está por los suelos!" #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "La Paz_al_a La Paz" #: src/dopewars.c:755 msgid "Ghetto" msgstr "Barrio Oliver_al_al Barrio Oliver" #: src/dopewars.c:756 msgid "Central Park" msgstr "Parque Bruil_al_al Parque Bruil" #: src/dopewars.c:757 msgid "Manhattan" msgstr "Zona pija_al_a la Zona pija" #: src/dopewars.c:758 msgid "Coney Island" msgstr "Delicias_al_a las Delicias" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "El Gancho_al_al Gancho" #: src/dopewars.c:760 msgid "Queens" msgstr "Torrero_al_a Torrero" #: src/dopewars.c:761 msgid "Staten Island" msgstr "Casco viejo_al_al Casco Viejo" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" "¡Los polis han hecho una gran redada de %tde! ¡Los precios son exorbitantes!" #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "¡Los adictos están comprando %tde a precios absurdos!" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "¡Vivamos al límite!" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "De todo lo que he perdido, lo que más echo de menos es la cabeza." #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "Apuesto a que tiene sueños superinteresantes" #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "Creo que voy a ir a Amsterdam este año" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "Chico, deberías teñirte el pelo de color amarillo" #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Pero ¿por qué llevas gafas de sol si es de noche?" #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "Yo no he sido siempre una mujer, ¿sabes?" #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "¿Su madre sabe que es un camello?" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "¿Está drogado o qué?" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "Ah, usted debe ser gallego" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "" "Hmmm... ¡qué almuerzo! Mi madre me ha preparado unas galletas de... " "chocolate." #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "Poderoso caballero es Don Dinero" #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "" "Sólo usamos el 10% de nuestro cerebro. ¡Destruyamos con drogas el 90% " "sobrante!" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "No puedo más, me voy a la cama. ¿Me acompaña?" #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "¡Ánimo! El imperio estadounidense caerá como cayó el imperio romano" #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "Usted sale en la televisión, ¿verdad?" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "Los anuncios de compresas hacen que desee ser mujer" #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "¿Sabe que tiene los ojos muy enrojecidos, joven?" #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "¿Se imagina como sería la vida si no hubiera drogas?" #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "En las hamburgueserías usan carne de rata. Por eso la dan picada." #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "" "`Cuestionemos la autoridad; pensemos por nosotros mismos` dijo Tim Leary" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "Le vendo una cámara de fotos nueva a mitad de precio" #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "Los triunfadores no usan drogas... salvo..." #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "¡Mi cuerpo es mío y en él meto lo que quiero!" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "Soy Carlos Jesús, y vengo de Raticulín." #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "Espero que no le importe, pero voy a rezar por usted." #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "No somos más que un montón de átomos moviéndose en la nada." #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "¿No le encanta la música del noticiario?" #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Si le ofrecen droga, diga \"no\", que somos muchos y queda poca." #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "La telepatía existe. ¿No siente la energía del universo?" #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "" "De la piel para dentro usted es su único soberano. ¡Y las drogas son sus " "amigas!" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "No se ha podido procesar el fichero de configuración %s, línea %d" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "No es posible abrir el fichero %s" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "La configuración sólo se puede cambiar interactivamente cuando no hay " "ningún\n" "jugador conectado. Espere a que se desconecten todos los jugadores, o\n" "elimínelos con las órdenes echar o matar, e inténtelo otra vez." #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "El índice en la cadena %s debe estar entre 1 y %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "%s es %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "%s es %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "%s es %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "%s es \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] es %s\n" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "%s es { " #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "%s no puede ser menor de %d - se ignora" #: src/dopewars.c:2210 #, fuzzy, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "%s no puede ser menor de %d - se ignora" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Estructura lista redimensionada a %d elementos\n" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "Se esperaba un valor booleano (uno de 0, FALSE, 1, TRUE)" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "$" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "Currency.Prefix=FALSE" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" " -u, --plugin=FICHERO usar módulo de sonido \"FICHERO\"\n" " " #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" " -u fichero usar módulo de sonido \"fichero\"\n" "\t " #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "(%s disponible)\n" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "dopewars versión %s\n" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Sintaxis: dopewars [OPCIÓN]...\n" "Juego de tráfico de drogas basado en \"Drug Wars\" de John E. Dell\n" " -b, --no-color, \"black and white\" - o sea, en blanco y negro\n" " --no-colour (por omisión se usan colores, si se puede)\n" " -n, --single-player ser aburrido y no conectarse a ninguno de los\n" " servidores dopewars disponibles (modo 1 " "jugador)\n" " -a, --antique dopewars \"antiguo\" dopewars - parecerse a la\n" " versión original cuanto sea posible (sin red)\n" " -f, --scorefile=FICHERO indicar que fichero usar como tabla de " "puntuaciones\n" " (por omisión se usa %s/dopewars.sco)\n" " -o, --hostname=DIRE especificar un nombre de servidor en el que se " "puede\n" " encontrar un servidor para dopewars " "multiusuario\n" " -s, --public-server ejecutar en modo servidor (nota: lea la opción -A " "para\n" " configurar un servidor ya en funcionamiento)\n" " -S, --private-server ejecutar un servidor \"privado\" (no avisar al\n" " metaservidor)\n" " -p, --port=PUERTO indicar el puerto de red a usar (por omisión: " "7902)\n" " -g, --config-file=FICHERO indicar la ruta de un fichero de configuración " "de\n" " dopewars\n" " este fichero se lee inmediatamente cuando se\n" " encuentra la opción -g\n" " -r, --pidfile=FICHERO mantener el fichero pid \"FICHERO\" mientras se " "ejecuta\n" " el servidor\n" " -l, --logfile=FICHERO escribir la información del registroen\n" " \"FICHERO\"\n" " -A, --admin conectarse a un servidor ejecutándose localmente " "para\n" " administración\n" " -c, --ai-player crear y ejecutar un jugador automático\n" " -w, --windowed-client obligar al uso de un cliente gráfico (GTK+ o " "Win32)\n" " -t, --text-client obligar al uso de un cliente en modo texto " "(curses)\n" " (por omisión se intenta usar un cliente gráfico\n" " -P, --player=NOMBRE establecer el nombre del jugador como \"NOMBRE\"\n" " -C, --convert=FICHERO convertir un fichero de puntuaciones en el " "\"formato\n" " antiguo\" al nuevo formato\n" #: src/dopewars.c:2619 #, fuzzy msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h, --help mostrar esta información de ayuda\n" " -v, --version mostrar información sobre la versión y salir\n" "\n" "dopewars es Copyright (C) Ben Webb 1998-2005, y está publicado bajo la GNU " "GPL\n" "Informe de fallos al autor escribiendo a ben@users.sf.net\n" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Sintaxis: dopewars [OPCIÓN]...\n" "Juego de tráfico de drogas basado en \"Drug Wars\" de John E. Dell\n" " -b \"black and white\" - o sea, en blanco y negro\n" " (por omisión se usan colores, si se puede)\n" " -n ser aburrido y no conectarse a ninguno de los\n" " servidores dopewars disponibles (modo 1 jugador)\n" " -a dopewars \"antiguo\" dopewars - parecerse a la\n" " versión original cuanto sea posible (no hay red)\n" " -f FICHERO indicar que fichero usar como tabla de puntuaciones\n" " (por omisión se usa %s/dopewars.sco)\n" " -o DIRE especificar un nombre de servidor en el que se\n" " puede encontrar un servidor para dopewars multiusuario\n" " -s ejecutar en modo servidor (nota: lea la opción -A para\n" " configurar un servidor que ya está en funcionamiento)\n" " -S ejecutar un servidor \"privado\" (no avisar al metaservidor)\n" " -p PUERTO indicar el puerto de red a usar (por omisión: 7902)\n" " -g FICHERO indicar la ruta de un fichero de configuración de dopewars\n" "este fichero se lee inmediatamente cuando se encuentra la opción -g\n" " -r FICHERO mantener el fichero pid \"FICHERO\" mientras se ejecuta el " "servidor\n" " -l FICHERO escribir la información del registro en \"FICHERO\"\n" " -c crear y ejecutar un jugador automático\n" " -w obligar al uso de un cliente gráfico (GTK+ o Win32)\n" " -t obligar al uso de un cliente en modo texto (curses) (por\n" " omisión se usa un cliente gráfico si es posible)\n" " -P nombre establecer el nombre del jugador a \"nombre\"\n" " -C FICHERO convertir un fichero de puntuaciones en el \"formato antiguo" "\" al nuevo formato\n" " -A conectarse a un servidor ejecutándose localmente para " "administración\n" #: src/dopewars.c:2655 #, fuzzy msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" " -h mostrar esta información de ayuda\n" " -v mostrar información sobre la versión y salir\n" "\n" "dopewars es Copyright (C) Ben Webb 1998-2005, y está publicado bajo la GNU " "GPL\n" "Informe de fallos al autor escribiendo a ben@users.sf.net\n" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "El cliente curses no está disponible - vuelva a construir el binario\n" "pasando la opción --enable-curses-client a configure, o use una\n" "versión gráfica (si es posible) es su lugar.\n" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "El cliente gráfico no está disponible - vuelva a construir\n" "el binario pasando la opción --enable-gui-client a configure,\n" "o use el cliente curses (si está disponible) en su lugar.\n" #: src/dopewars.c:2983 #, fuzzy msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto\n" "no se puede ejecutar en modo servidor. Recompile pasando\n" "la opción --enable-networking al script configure.\n" #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto\n" "no se puede ejecutar en modo servidor. Recompile pasando\n" "la opción --enable-networking al script configure.\n" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "Traducción al inglés Ben Webb" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Basado en el juego Drug Wars de John E. Dell, dopewars es una simulación" #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "" "de un mercado de la droga imaginario. Dopewars es un juego para toda la" #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "" "familia que consiste en ganar dinero con la compraventa (y eludir a la " "policía)." #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "Lo primero que tiene que hacer es saldar la deuda con su usurero. Después" #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "su objetivo es hacer tanto dinero como sea posible (¡y seguir vivo!)" #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "Tiene un mes de tiempo de juego para amasar su fortuna." #: src/curses_client/curses_client.c:297 #, fuzzy, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "Version %-8s Copyright (C) 1998-2005 Ben Webb ben@users.sf.net" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr "dopewars está publicado bajo la GNU General Public Licence" #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "Iconos y gráficos Ocelot Mantis" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Sonidos Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "Compraventa de drogas e investigación Dan Wolf " #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testeo del juego Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Testeo intensivo del juego Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Críticas constructivas Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "Críticas destructivas James Matthews" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "Para conocer las opciones en la línea de órdenes, escriba dopewars -h" #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "en su terminal. Se mostrará una pantalla de ayuda con las opciones " "disponibles." #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Introduzca el nombre y puerto de un servidor dopewars:-" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "Nombre del servidor: " #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "Puerto: " #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "Por favor, espere... intentando contactar con el metaservidor..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "Servidor: %s" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "Puerto : %d" #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "Versión : %s" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Jugadores: -desconocido- (máximo %d)" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "Jugadores: %d (máximo %d)" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "En funcionamiento desde: %s" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "Comentario: %s" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "S>iguiente servidor: A>nterior servidor; E>scoger este servidor... " #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "SAE" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Conectado al servidor SOCKS %s..." #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "Autenticando contra el servidor SOCKS" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Pidiendo SOCKS para conectarse a %s..." #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "Se requiere autenticación proxy para la zona %s" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "Se requiere autenticación para la zona %s" #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "(Introduzca un nombre de usuario en blanco para cancelar)" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "Nombre de usuario: " #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "Contraseña: " #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" "Se requiere autenticación SOCKS (nombre de usuario en blanco para cancelar)" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "Por favor, espere... intentando contactar con el servidor dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "No se pueden obtener los detalles del metaservidor" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "No se puede iniciar dopewars en modo multijugador" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "¿Quiere... C>onectarte a un servidor dopewars determinado" #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr "" " L>istar los servidores que hay en el metaservidor, y elegir uno" #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " S>alir (puede iniciar un servidor tecleando «dopewars -s»)" #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr " o J>ugar en modo 1 jugador? " #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "CLSJ" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "%d. %tde" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "¿Dónde quiere ir, caballero? " #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "%/Location display/%tde" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "No puede conseguir ni una moneda por estas %tde que lleva:" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "¿Qué quiere tirar? " #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "¿Cuántas quiere tirar? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "¿Qué quiere comprar? " #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "¿Qué quiere vender? " #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Tiene dinero para comprar %d, y espacio para llevar %d. " #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "¿Cuánto quiere? " #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "Tiene %d. " #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "¿Cuánto quiere vender? " #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Elija un recado que encargar a una de sus %tde..." #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr " E>spiar a otro traficante (precio: %P)" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " D>elatar a la policía otro traficante (precio: %P)" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr " I>rse a consumir sus drogas" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "o C>ontactar con sus espias y recibir las informaciones" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr "o N>o mandar ningún encargo " #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "EDICN" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "¿A quién quiere espiar? " #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "¿A quién quiere delatar a la policía? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr " ¿Está seguro? " #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "SN" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "¿Está seguro de que quiere salir? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "Nuevo nombre: " #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Ha sido expulsado del servidor. Pasando al modo 1 jugador." #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "El servidor se ha desconectado. Pasando al módulo 1 jugador." #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "¡%s se une al juego!" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "%s ha dejado el juego." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "%s es ahora conocido como %s." #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "M E T R O" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "%/Ubicación actual/%tde" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Desgraciadamente ya hay alguien usando «su» nombre. Elija otro." #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "P U N T U A C I O N E S" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "¡No tiene ningún %tde que vender!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "¡No tiene ninguna que vender!" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "¡Necesita más %tde para que le guarden más %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "¡No tiene suficiente espacio para llevar ese %tde!" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "¡No tiene suficiente dinero para comprar ese %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "¿Quiere C>omprar, V>ender o I>rse? " #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "CVI" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "¿Cuánto dinero quiere devolver? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "¡No tiene tanto dinero!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "¿Quiere I>ngresar dinero, O>btener dinero o S>alir?" #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "IOS" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "¿Cuánto dinero? " #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "No tiene tanto dinero en el banco..." #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "S:Sí" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "N:No" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "C:Correr" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "E:Enfrentarse" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "A:Atacar" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "H:Huir" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "Pulse cualquier tecla..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "Mensajes (-/+ desplaza hacia arriba/abajo)" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "Situación" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "Dinero %15P" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "%-18Tde%3d" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "Salud %3d" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "Banco %16P" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "Deuda %16P" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "Espacio %4d" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "%Tde %5d Espacio %4d" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "Gabardina" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "%/Situación: Drogas/%Tde" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "%-7tde %3d a %P" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "%-7tde %3d" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "%/Situación: Armas/%Tde" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "%-22tde %3d" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "Información sobre %s de las espías" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Espía: Drogas/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "%/Espía: Armas/%Tde..." #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "¡No hay ningún otro jugador conectado en este momento!" #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "Jugadores conectados en este momento:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Eh, oiga. Los precios de las %tde aquí son:" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "%c. %-10tde %8P" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGWINCH!" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "Eh oiga, ¿cómo se llama? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "¿Quiere C>omprar" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr ", V>ender" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr ", T>irar" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr ", H>ablar a todos, hablar a un J>ugador" #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr ", L>istar" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr ", M>andar recado" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr ", E>nfrentarse" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr ", I>r a otro sitio" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr ", o S>alir? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "¿Quiere " #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "L>uchar, " #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "E>sperar, " #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "C>orrer, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "V>ender %tde, " #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "o S>alir? " #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "Se ha perdido la conexión con el servidor. Pasando al modo 1 jugador." #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "CVTHJLMEIS" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "LECVS" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "¿Qué lista quiere? ¿J>ugadores o P>untuaciones? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "JP" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "¿Con quién quiere hablar en privado?" #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "Decir: " #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "¿Jugar otra vez? " #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "/_Juego" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "/Juego/_Nueva partida..." #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "/Juego/_Abandonar partida..." #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "/Juego/_Opciones..." #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "/Juego/Activar_sonido" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "/Juego/_Salir..." #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "/_Hablar" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "/Hablar/_Hablar a todos..." #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "/Hablar/Hablar al _Jugador..." #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "/_Listar" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "/Listar/_Jugadores..." #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "/Listar/_Puntuaciones..." #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "/Listar/_Inventario..." #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "/_Recados" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "/Recados/_Espiar..." #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "/Recados/_Delatar..." #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "/Recados/_Obtener información de las espías..." #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "/_Ayuda" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "/Ayuda/_Acerca de..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "Advertencia" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "Error" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "Mensaje" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "¿Abandonar esta partida?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "Salir del juego" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "Empezar nueva partida" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "Abandonar esta partida" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "Inventario" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "Se ha perdido la conexión con el servidor - pasando al modo 1 jugador" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" "Ha sido expulsado del servidor.\n" "Pasando al modo 1 jugador." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" "El servidor se ha apagado.\n" "Pasando al modo 1 jugador." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "Yendo %tal" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "%/Elemento de menú echar a una puta/E_char a una %Tde..." #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "_Espiar (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "_Delatar (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "Puntuaciones" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "El fichero de puntuaciones está corrupto :-(" #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "Enfrentarse" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "¡A _traficar!" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "_Luchar" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "_Esperar" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "_Correr" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Enfrentamiento: Putas/%d %tde" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "(Quedan)" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "(Muertas)" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "Salud: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "Usted" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "%/Estado GTK: Armas/%Tde" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Putas/%Tde" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1352 #, fuzzy msgid "%/Inventory gun name/%tde" msgstr "Inventario" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "Ir al barrio:" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "%/Lugar al que irse/%tde" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "_%c. %tde" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "a %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "Ahora lleva %d dosis de %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "Espacio disponible: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "Tiene dinero para comprar %d" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "Comprar" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "Vender" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "Tirar" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "¿Cuánto quiere comprar?" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "¿Cuánto quiere vender?" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "¿Cuánto quiere tirar?" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "Comprar %tde" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "Vender %tde" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "Tirar %tde" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "_Sí" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "_No" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "_Atacar" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "_Huir" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "Pregunta" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "Espacio" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "Dinero" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "Deuda" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "Banco" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "Salud" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "¡_Irse!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "Traducción al inglés" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "Ben Webb" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "Iconos y gráficos" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "Sonidos" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "Compraventa de drogas e investigación" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "Testeo del juego" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "Testeo intensivo del juego" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "Críticas constructivas" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "Críticas destructivas" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "Acerca de Dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Basado en el juego Drug Wars de John E. Dell, dopewars es una \n" "simulación de un mercado de la droga imaginario. Dopewars es un juego \n" "para toda la familia que consiste en la compraventa de droga y en intentar \n" "evitar a la policía.\n" "\n" "Lo primero que tiene que hacer es saldar la deuda con su usurero. \n" "Después, su objetivo es hacer tanto dinero como sea posible (¡y seguir \n" "vivo!) Tiene un mes de tiempo de juego para amasar su fortuna.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, fuzzy, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" "Versión %s Copyright (C) 1998-2005 Ben Webb ben@users.sf.net\n" "dopewars está publicado bajo la GNU General Public Licence\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Para obtener información sobre las opciones en la línea de órdenes,\n" "escriba dopewars -h en su terminal Unix. Esto mostrará una pantalla\n" "de ayuda con las opciones disponibles.\n" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "Documentación local en HTML " #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "%/Título de la ventana del usurero/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "%/Título de la ventana del banco/%Tde" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "¡Tiene que introducir una cantidad positiva de dinero!" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "No tiene tanto dinero en el banco..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "Dinero en efectivo: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "Deuda: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "Banco: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "Saldar:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "Ingresar" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "Sacar" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "Pagar todo" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "Lista de jugadores" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "Hablar al jugador (o jugadores)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "Hablar a todos los jugadores" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "Mensaje:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "Enviar" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "Espiar al jugador" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor, elija al jugador al quiere espiar. Su %tde ofrecerá\n" "sus servicios a ese jugador, y si tiene éxito, podrá ver la\n" "situación del jugador con el menú \"Obtener informes de las\n" "espías\" Recuerde que la %tde se va, así que puede perder\n" "todas las %tde o %tde que le esté guardando." #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "Delatar a la policía" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Por favor, elija al jugador al que quiere delatar a la policía. Su\n" "%tde ayudará a los policías a atacar a ese jugador, y le informará\n" "del resultado cuando se encuentren. Recuerde que la %tde se va\n" "a ir temporalmente, así que puede perder todas las %tde o %tde\n" "que le esté guardando." #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "%/Título del diálogo Echar a una puta/Echar a una %Tde" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "¿Está seguro? (Perderá todas las %tde y %tde\n" "que le esté guardando esta %tde!)" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "Nombre" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "Precio" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "Número" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "_Comprar ->" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "<- _Vender" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "_Tirar <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "%Tde aquí" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "%Tde que tiene" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "Cambiar nombre" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Desgraciadamente ya hay otro jugador usando «su» nombre. Elija otro" #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Ventana de la armería/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "Información de las espías" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "Nuevo %s" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "Seleccionar fichero de sonido" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "Nuevo" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "Borrar" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "Arriba" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "Abajo" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "Presencia policial" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "Número mínimo de distintas clases de droga" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "Número máximo de distintos tipo de droga" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "Mínimo precio normal" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "Máximo precio normal" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "Puede ser especialmente barata" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "Frase barata" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "Puede ser especialmente cara" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "Inventario" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "Daño" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "Nombre de un ayudante" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "Nombre de varios ayudantes" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "Número mínimo de ayudantes" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "Número máximo de ayudantes" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "Blindaje del poli" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "Blindaje del ayudante" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "Opciones" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "Eliminar las referencias a drogas" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "Fichero de configuración de Unicode" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "Duración de la partida (turnos)" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "Capital inicial" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "Deuda inicial" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "Símbolo de dinero" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "Símbolo antes del precio" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "Nombre de una puta" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "Nombre de varias putas" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "Navegador" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "General" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "Sitios" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "Frase cara 1" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "Frase cara 2" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "Drogas" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "Armas" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "Polis" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "El servidor informa al metaservidor" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "Minimizar a la bandeja del sistema" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "Nombre del metaservidor" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "Puerto" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "Nombre del proxy web" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "Ruta del script" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "Comentario" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "MOTD (mensaje de bienvenida)" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "Servidor" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "Nombre del sonido" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "Descripción" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "Fichero de sonido" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "Inspeccionar..." #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "Jugar" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "¡No puede empezar la partida sin dar un nombre antes!" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "Nueva partida" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "Situación: Esperando datos del usuario" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Conexión cerrada por el servidor remoto." #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "Situación: No se ha podido conectar al metaservidor (%s)" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "Situación: No se ha podido conectar (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Situación: Intentando contactar con %s..." #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "Desconocido" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "%d de %d" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Situación: Conectado al servidor SOCKS %s..." #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "Situación: Autenticando contra servidor SOCKS" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Situación: Pidiendo SOCKS para conectarse a %s..." #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "Situación: Obtener información de servidores del metaservidor..." #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "Versión" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "Jugadores" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "Eh oiga, ¿cuál es su _nombre?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "Nombre del servidor" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "_Conectarse" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "1 jugador" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "_Modo antiguo" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "_Empezar partida para 1 jugador" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "Metaservidor" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "Se precisa autenticación con el Proxy" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "Se precisa autenticación" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "Se precisa autenticación SOCKS" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "_Aceptar" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "Cerrar _Ventana" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "_Cancelar" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "_Refrescar" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "_Ayuda" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" "Éste es el registro de arranque de dopewars, que\n" "contiene todos los mensajes de información resultantes\n" "de procesar el fichero de configuración, etc.\n" "\n" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "servidor dopewars" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "Jugador automático de dopewars" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "se escapó" #: src/serverside.c:73 msgid "defected" msgstr "desertó" #: src/serverside.c:73 msgid "was shot" msgstr "fue disparada" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "AH" #. Help on various general server commands #: src/serverside.c:121 #, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "ordenes y preferencias del servidor dopewars versión %s\n" "\n" "help Muestra esta pantalla de ayuda\n" "list Lista todos los jugadores conectados\n" "push Le pide educadamente al jugador nombrado que se " "vaya\n" "kill Rompe repentinamente la conexión con el jugador " "nombrado\n" "msg: Envía un mensaje a todos los jugadores\n" "save Guardar la configuración actual en el fichero " "nombrado\n" "quit Salir elegantemente, tras avisar a todos los " "jugadores\n" "= Establece la variable nombrada al valor dado\n" " Muestra el valor de la variable nombrada\n" "[x].= Establece la variable nombrada en la lista dada,\n" " index x, al valor proporcionado\n" "[x]. Muestra el valor de la variable de la lista " "nombrada\n" "\n" "Las variables válidas son:-\n" "\n" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "No se ha podido conectar al metaservidor en %s:%u (%s)" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "" "Usando metaservidor. Proxy. Usuario y metaservidor. Proxy. Contraseña para " "la autenticación con el proxy HTTP" #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" "No se ha podido autenticar con proxy HTTP; por favor, establezca las " "variablesMetaServer.Proxy.User y MetaServer.Proxy.Password" #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" "Usando MetaServer.Auth.User y MetaServer.Auth.Password para la autenticación " "HTTP" #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" "No se ha podido autenticar con el servidor HTTP; por favor, establezca las " "variables MetaServer.Auth.User y MetaServer.Auth.Password" #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "" "Usando Socks.Auth.Usuario y Socks.Auth.Contraseña para autenticación SOCKS5" #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" "Intentos para conectarse al metaservidor demasiado frecuentes - esperando al " "siguiente turno" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "Esperando para conectarse al metaservidor en %s:%u..." #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" "Parece que está usando un cliente tremendamente viejo (versión 1.4.x)^ " "Aunque posiblemente funcione, muchas de las nuevas funcionalidades^ no " "estarán soportadas. Obtenga la última versión del sitio web de dopewars,^ " "http://dopewars.sourceforge.net/." #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" "Advertencia: su cliente es demasiado viejo para soportar todas las^ " "funcionalidades de este servidor. Para «vivir la experiencia» completa,^ " "consiga la última versión de dopewars del servidor web,^ http://dopewars." "sourceforge.net/." #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "" "Alcanzado el número máximo de clientes (MaxClients %d) - cerrando la conexión" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Disculpe, pero este servidor tiene un límite de 1 jugador, que ya ha sido " "alcanzado. ^Pruebe más tarde a conectarte de nuevo." #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Disculpe, pero este servidor tiene un límite de %d jugadores, que ya ha sido " "alcanzado. ^Pruebe a conectarte de nuevo más tarde." #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "%s es ahora conocido como %s" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "Se acabó su tiempo para traficar..." #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: DENEGADO irse a %s" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "%s espía ahora a %s" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "espionaje de %s a %s: DENEGADO" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s delató a la policía a %s" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "Delación de %s sobre %s: DENEGADO" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Mensaje desconocido: %s:%c:%s:%s" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "Manteniendo el fichero pid %s" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "No se puede crear el fichero pid %s: %s" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" "No se puede crear el socket (%s) (a la escucha) del servidor. Cancelando." #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "No se puede conectar al puerto %u (%s). Cancelando." #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "No se puede escuchar el socket de red. Cancelando." #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "servidor dopewars versión %s preparado y esperando conexiones por el puerto %" "d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGUSR1!" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGHUP!" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGINT!" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "¡No se puede instalar el gestor de interrupción SIGTERM!" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "¡No se puede instalar el gestor de tuberías!" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "El fichero de configuración se ha guardado con éxito como %s\n" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "Usuarios conectados:-\n" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "No hay ningún usuario conectado.\n" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "Echando a %s\n" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "¡No existe ese usuario!\n" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "%s asesinado\n" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "Orden desconocida - use «help» para obtener ayuda\n" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "recibida una conexión de %s" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "cerrando el servidor dopewars." #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "¡%s deja el servidor!" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" "No se ha podido establecer el socket de dominio Unix para conexiones de " "administración - compruebe los permisos en /tmp." #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" "el servidor de dopewars versión %s está listo para recibir órdenes de " "administración; use «help» para obtener ayuda" #: src/serverside.c:1280 msgid "New admin connection" msgstr "Nueva conexión de administración" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "Orden de administración: %s" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "Conexión de administración cerrada" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "No se ha podido establecer el estado del Servicio NT" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "No se ha podido enviar el mensaje de notificación de servicio" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "No se ha podido registrar el gestor de servicio" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "No se ha podido iniciar el Servicio NT" #: src/serverside.c:1728 msgid "Command:" msgstr "Orden:" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "No se ha podido leer la tabla de puntuaciones del fichero %s" #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" "El fichero %s de la tabla de puntuaciones se ha convertido\n" "al nuevo formato. Se ha creado una copia de respaldo del\n" "fichero antiguo, que se ha llamado %s.\n" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "No se ha podido crear la copia de respaldo (%s) del\n" "fichero de máximas puntuaciones %s." #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "No se ha podido abrir el fichero de puntuaciones %s: %s." #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "No se puede abrir el fichero de máximas puntuaciones %s.\n" "(%s.) Asegúrese de que tiene permisos para acceder\n" "a este fichero o directorio, o bien indique otro fichero de\n" "puntuaciones con la opción -f en la línea de órdenes." #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" "%s no parece ser un fichero de puntuaciones válido - \n" "por favor, compruébelo. Si es un fichero de puntuaciones\n" "de una versión antigua de dopewars, conviértala al nuevo\n" "formato ejecutando la orden «dopewars -C %s» en la\n" "línea de órdenes." #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" "Se han encontrado errores al leer el fichero de configuración.\n" "Como resultado, algunas preferencias podrían no funcionar de\n" "la manera esperada. Puede consultar el fichero «dopewars-log.txt»\n" "para conocer los detalles." #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" "Se han encontrado errores al leer el fichero de configuración.\n" "Como resultado, puede que algunas preferencias no funcionen\n" "de la manera esperada. Puede mirar los mensajes en la\n" "salida estándar para conocer más detalles." #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "No se puede leer el fichero de máximas puntuaciones %s." #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "¡Enhorabuena! ¡Ha conseguido una de las máximas puntuaciones!" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "Ni siquiera ha conseguido entrar en la tabla de puntuaciones..." #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "No se ha podido escribir en el fichero de puntuaciones %s" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "(R.I.P.)" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Delación de %s" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Oferta de espionaje de %s" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Una de sus %tde estaba espiando para %s. ^¡La espía %s!" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "¡Su espía trabajando con %s ha sido descubierta!^¡La espía %s!" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "La señorita que está junto a usted en el metro dice:^ «%s»%s" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (al menos, eso es lo que *piensa* que ha dicho)" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "Oye a alguien poner %s" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^¿Quiere visitar %tal?" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^¿Quiere contratar a una %tde por %P?" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^¡%s ya está aquí!^¿Quiere Atacar o Huir?" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "¡No hay armas ni polis!" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "¡Los polis no pueden atacar a otros polis!" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "¡Los jugadores ya están en una pelea!" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "¡Los jugadores ya están en sus propias peleas!" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "No se puede empezar el enfrentamiento - ¡no hay ningún arma que usar!" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "Está criando malvas. Sayonara, baby." #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: la delación de %s acabó bien." #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" "Siguiendo su delación, la policía va a por %s, ¡le disparan y es abatido!" #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Siguiendo su delación , la policía va a por %s, que escapa con %d %tde. " #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^¿Quiere pagar %P a un médico para que le cure?" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "¡Le atracan en el metro!" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "¡Se encuentra con un amigo! Le da a usted %d %tde." #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "¡Se encuentra con un amigo! Usted le da %d %tde." #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "Pasando de una oferta aleatoria" #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "¡Los perros de la policía le persiguen durante %d minutos! ¡Pierde algo de %" "tde! Maldita sea..." #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Encuentra %d %tde en un cadáver abandonado en el metro!" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "¡Su mamacita ha hecho galletas con algo de su %tde! ¡Estaban geniales!" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^¡Aquí hay algo de marihuana que huele a herbicida!^¡Tiene buen aspecto! " "^¿Quiere fumarla? " #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "Se ha parado para %s." #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^¿Quiere comprar una gabardina más grande por %P?" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^¡Eh, oiga! Le ayudo a llevar sus %tde por sólo %P. ¿Sí o no?" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^¿Quiere comprar un %tde por %P?" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: la oferta era en nombre de %s" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "¡%s ha aceptado su %tde!^Use la tecla G para contactar con su espía." #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "¡Estuvo alucinando durante tres días en el viaje más salvaje que haya " "imaginado nunca!^Y entonces se murió debido a que su cerebro se derritió." #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "Demasiado tarde. %s se acaba de ir." #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "¡%s ha rechazado su %tde!" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "¡La policía le ve tirando %tde!" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "Enviando actualizaciones pendientes al metaservidor..." #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "Enviando mensaje recordatorio al metaservidor..." #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "Jugador eliminado: demasiado tiempo inactivo" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "Jugador eliminado debido a que se agotó el tiempo para la conexión" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "(No se puede mostrar el error en UTF-8)" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "" "Se ha roto la conexión debido a que se ha llenado la memoria intermedia " "(full buffer)." #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "Código de error interno %d" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "WinSock no ha sido inicializado correctamente." #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "El subsistema de red no está preparado." #: src/error.c:160 msgid "WinSock version not supported" msgstr "Versión de WinSock no soportada" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "El subsistema de red ha fallado" #: src/error.c:162 msgid "Address already in use" msgstr "La dirección ya está en uso" #: src/error.c:163 msgid "Cannot reach the network" msgstr "No se puede alcanzar la red" #: src/error.c:164 msgid "The connection timed out" msgstr "La conexión excedió el tiempo límite" #: src/error.c:165 msgid "Out of file descriptors" msgstr "Ya no quedan descriptores de fichero" #: src/error.c:166 msgid "Out of buffer space" msgstr "Ya no queda memoria intermedia (buffer)" #: src/error.c:167 msgid "Operation not supported" msgstr "Operación no soportada" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "La conexión se ha roto debido a un fallo" #: src/error.c:169 msgid "Connection reset by remote host" msgstr "Conexión rota por el servidor remoto" #: src/error.c:170 msgid "Connection refused" msgstr "Conexión rechazada" #: src/error.c:171 msgid "Address family not supported" msgstr "Familia de direcciones no soportada" #: src/error.c:172 msgid "Protocol not supported" msgstr "Protocolo no soportado" #: src/error.c:173 msgid "Socket type not supported" msgstr "Tipo de socket no soportado" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "Servidor no encontrado" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "Error temporal con el nombre del servidor - pruebe de nuevo más tarde" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "No se ha podido contactar con el servidor de nombres" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "Nombre válido, pero ahora no tiene ningún registro DNS" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "Error de red código %d" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "Error del servidor de nombres código %d" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Error interno del metaservidor «%s»" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Respuesta del metaservidor incorrecta «%s»" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "Error del metaservidor desconocido código %d" #: src/message.c:1167 msgid "Do you run?" msgstr "¿Echa a correr?" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "¿Huye o se enfrenta?" #: src/message.c:1369 msgid "pitifully armed" msgstr "armados de pena" #: src/message.c:1370 msgid "lightly armed" msgstr "poco armados" #: src/message.c:1371 msgid "moderately well armed" msgstr "armados" #: src/message.c:1372 msgid "heavily armed" msgstr "muy armados" #: src/message.c:1372 msgid "armed to the teeth" msgstr "armados hasta los dientes" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "¡%s - %s - le está dando caza!" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "¡%s y %d %tde - %s - le están persiguiendo!" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "¡%s llega con %d %tde, %s!" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "%s se levanta y lo coge" #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "Se queda ahí como un tonto." #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "%s intenta huir, pero no lo consigue." #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "¡Pánico! ¡No puede escapar!" #: src/message.c:1410 #, c-format msgid "%s has got away to %tde!" msgstr "¡%s ha conseguido escapar %tal!" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "¡%s ha conseguido escapar!" #: src/message.c:1416 msgid "You got away!" msgstr "¡Ha conseguido escapar!" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "Armas recargadas..." #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s dispara a %s... ¡y falla!" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s le dispara... ¡y falla!" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "¡No le ha dado a %s!" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "%s mata a %s." #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s dispara a %s ¡y mata a una %tde!" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "%s dispara a %s." #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "¡%s le ha alcanzado! Descanse en paz..." #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s le dispara... ¡y mata a una %tde!" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "¡%s le ha dado!" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "¡Ha matado a %s!" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Le da a %s, y mata a un %tde!" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "¡Le da a %s!" #: src/message.c:1469 msgid " You find %P on the body!" msgstr " ¡Le encuentra %P en el cuerpo!" #: src/message.c:1471 msgid " You loot the body!" msgstr " ¡Le roba al cadaver!" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "¡No se puede inicializar WinSock (%s)!" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "Error general del servidor SOCKS" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "Conexión rechazada por las reglas de SOCKS" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "SOCKS: No se llega a la red" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "SOCKS: No se llega al servidor" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "SOCKS: Conexión rechazada" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "SOCKS: se agotó el tiempo" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "SOCKS: Orden no soportada" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "SOCKS: Tipo de dirección no soportado" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "El servidor SOCKS rechazó todos los métodos ofrecidos" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "Devuelto tipo de dirección SOCKS desconocido" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "Error de autenticación SOCKS" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "Autenticación SOCKS cancelada por el usuario" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "SOCKS: Solicitud rechazada o sin éxito" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "SOCKS: Rechazada - no se ha podido contactar identd" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "SOCKS: Rechazada - identd informa de diferentes ID de usuario" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "Código de respuesta de SOCKS desconocida" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "Código de respuesta de versión de SOCKS desconocida." #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "Versión de servidor SOCKS desconocida" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "Código de error de SOCKS %d" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "Se ha excedido el número de intentos" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "Cabecera de autenticación no válida: %s" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "Redirección no válida: %s" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "Línea de estado de HTTP no válida: %s" #: src/network.c:447 msgid "403: forbidden" msgstr "403: prohibido" #: src/network.c:450 msgid "404: page not found" msgstr "404: página no encontrada" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "401: la autenticación HTTP ha fallado" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "407: la autenticación con el proxy HTTP ha fallado" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "Mensaje de redirección no válido recibido del servidor" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "Error HTTP desconocido %d" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "%d: error de redirección" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "%d: error del cliente HTTP" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "%d: error del servidor HTTP" #: src/admin.c:52 #, fuzzy, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" "Probando a conectar con el servidor dopewars local vía sockets de\n" "dominio Unix %s...\n" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" "Conexión establecida. Use Ctrl-D para cerrar la sesión.\n" "\n" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" "No se ha podido determinar el fichero de configuración local en que escribir" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "No se ha podido abrir el fichero %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "No se ha podido conectar al servidor dopewars\n" "(%s)\n" "El jugador automático se suicida." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Se ha establecido la conexión\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "Conectado al servidor SOCKS %s...\n" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "Autenticándose con el servidor SOCKS\n" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "Pidiendo SOCKS para conectarse a %s...\n" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" "Usando Socks.Auth.User y Socks.Auth.Password para la autenticación SOCKS5\n" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "" "Iniciado el jugador automático; intentando conectarse al servidor en %s:%d." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Jugador automático suicidado con éxito.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "¡Se ha roto la conexión con el servidor!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Usando el nombre %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Jugadores en esta partida:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s se une a la partida.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s ha dejado el juego.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Yendo %tal con %P en efectivo y %P de deuda\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Jugador automático asesinado. Cerrando de manera normal.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Se ha agotado el tiempo de juego. Saliendo.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "El jugador automático ha sido expulsado del servidor.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "El servidor se ha apagado.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Vendiendo %d %tde a %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Comprando %d %tde a %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Comprando un %tde por %P en la armería\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "Deuda de %P pagada al usurero\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "El usurero está en %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "La armería está en %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "El bar está en %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "El banco está en %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "¿Y usted se hace llamar traficante?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Un mono amaestrado lo haría mejor..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "" "¿Cree que es lo suficientemente duro como para manejar a gente como yo?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... ¿está traficando con caramelos o qué?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Voy a tener que dispararle por su propio bien." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Este binario se ha compilado sin soporte de red, y por tanto no puede actuar " "como un jugador automático.\n" "Recompile pasando la opción --enable-networking al script configure" #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" "Seleccionado módulo «%s» no válido.\n" "(%s disponible, ahora usando «%s».)" dopewars-1.5.12/po/pl.gmo0000644001565000007070000012564210355323337012125 00000000000000Þ•T½Œ €+”+?,HV,"Ÿ,Â,5Ò,5->-N- b- o-y-‚-=Ÿ-Ý-î-.. 6. B. L. V.`.i.|. .›.±.Å.Ú.ñ. /)/D/`/u/ˆ/¦/ Ä//Ò/0 000"0*020 A0 N0Z0w0ˆ0 œ0ª0¹0É0Ý0ï011 %1/161=1D1K1 T1#u1™1(¢1"Ë1;î1*2D2Z2i2-n2+œ2+È2ô23B/30r3£3 ·3Â3Æ3 Ë3Õ3é3ò3Jú3E4$Ö5û56 66%$6J6O6m6(‹6(´6)Ý6)7*17\7´y7.8 38=8 F8 S8,_8Œ8J”8ß8 ç8 ó8­9*®9Ù9;ñ9-::I:„:<›:Ø:1Ý:$;/4;Kd;$°;Õ;ñ; <<<<0<D< I<"S<v<<0‡<¸<À< Ö<<â<+=K=P=&j=‘=—=±=¹=×=Aî=0>8>A>GG>?>EÏ>2?H?h?o?‡?Œ?¢?ª?Ä?Ë? â?í?&ô?@8@ U@ a@ k@v@Œ@£@ º@Û@ì@ ý@0A/OAAAÁA!ßA%B0'B3XB.ŒB »B'ÅBíBýB) C07ChC(C'¨C/ÐC D!D;DVDkD„D˜DžD¢D ºD.ÄD!óD$E(:EcEE3‰E ½E ÇE4ÒE!F()FRF.pFŸF7¤FÜFàFåF÷FGG/GDG`GwG ‡G¨GÃG ÌG™×G™qH) I5IDI)cI&I´I»I×IòIJ*J)CJ mJyJ‰J/©JÙJßJãJ$æJ K KK $K=1K oK |K%ˆK"®KÑK0ÙK L(L@LYLyLùŽM9ˆN7ÂN2úNO-O$}O¢O §O!³OÕO)ÜOPPP/P BPNPUP ^PhPnPuP5‘P&ÇPAîP0Q 6QBQKQQQnQ#…Q©Q®QÅQÊQ ÑQ.ÝQ R R+"RNRlmRjÚR$ESjS pSzS’S ˜S ¦S²SÅS ÔSâS#èS T+T,JT(wT, TÍTáTóT"úT"UL@U0U0¾UïU; V;GV(ƒV*¬V)×V6W8W4ÖW XX 9X!DX"fX‰X,¢XLÏXMYLjY)·YáYñYZZ%ZC5Z€yZúZ)[@,[ m[Ž[“[®[È[ã[/õ[%\)B\ l\!z\/œ\(Ì\õ\$þ\/#].S])‚]%¬]$Ò]÷]:^O^U^(X^@^XÂ^'_4C_ x_)™_"Ã_æ_%ø_7`,V` ƒ`¤`,À`/í`a.=avla ãaFñaF8b5bµbÑbàb(ûb($cMckc~c-cËc@æc9'd*ad1Œd ¾dÌdÔdÜdädëd ôdÿdeeee"e&e +e5e©C?©ƒ©ˆ©Ž©–©¦©«© °©¾©DÏ©ª$ª%=ª"cª †ª“ª«ªʪ Úª æª>ôª3«8«5O« …««_/"C¨òlnàa83›*öΖ®ì”Uð«ý’„e'Ÿ×!ü\RmÊ! &W²±†ˆúÍš^™Çí| ·£óڢĎÁ굦Ð`º7 (ìyÇyH—)޹>2…¢®KÍDV7.e¶p´:­züª{cáu tÃØÞ~éÞ¦È1=åg©­P–Üë >‡oýîÏx¥ë´]Bbªœ¤q׈¯%ÕZùñhG›sá¡XÆ:û 9†À?€“¡°05Ý?«Jœ˜Î°LY¼„Ö<gÂ5<%cäOç kJøð4€ïTõ=ß6+¨|ÊVµ³{ÕIÄA £*CwkQiÉËMZ@åôF²ºEHjô4wçâØ»ò¿ ±tY#h¸Æ}óÒ0]Ÿ ‰Ó'pŠQÙõêÔf[2•T¾q[,.M`-rGÅNéÔ}¯LA#¸šaö©RÌDj¬~ƒñ ‡3oÿÀÓ$v½§ ‹™"@Ù;ÒŒvXÖi‚’÷IËïÅUú¶Ü^xûO—èãB¿“z…r6fà÷‚NâÛóÁø(lînƒÿ&_Ϲ);”È8ßPÐÚ¾ æ•9íFŠ+·,þWè uS‰\1Eæž½S¥ÑŒÛÂ$b‘¼d§ùãäsž¤þ-̘Ým¬d‹ÑÉ»K/‘ For information on the command line options, type dopewars -h at your Unix prompt. This will display a help screen, listing the available options. L>ist the servers on the metaserver, and select one Q>uit (where you can start a server by typing "dopewars -s") or P>lay single-player ? G>et stuffed S>py on another dealer (cost: %P) T>ip off the cops to another dealer (cost: %P) Are you sure? %Tde %3d Space %6d%Tde carried%Tde here%d of %d%s arrives with %d %tde, %s!%s has accepted your %tde!^Use the G key to contact your spy.%s has got away!%s has left the game.%s has left the game. %s has rejected your %tde!%s is "%s" %s is %P %s is %d %s is %s %s is { %s joins the game!%s joins the game. %s killed %s leaves the server!%s now spying on %s%s spy on %s: DENIED%s stands and takes it%s tipoff about %s: DENIED%s tipped off the cops to %s%s will now be known as %s%s will now be known as %s.%s: DENIED jet to %s%s: Tipoff from %s%s: offer was on behalf of %s%s: tipoff by %s finished OK.%s[%d] is %s %s^%s is already here!^Do you Attack, or Evade?, D>rop, F>ight, G>ive, J>et, L>ist, S>ell, T>alk, P>age, or Q>uit? .38 Special/Errands/_Get spy reports.../Errands/_Spy.../Errands/_Tipoff.../Game/_New.../Game/_Quit.../Help/_About.../List/_Inventory.../List/_Players.../List/_Scores.../Talk/To _All.../Talk/To _Player.../_Errands/_Game/_Help/_List/_Talk<- _SellA day without dope is like nightA trained monkey could do better...A:AttackAI Player killed. Terminating normally. AI Player pushed from the server. AI Player started; attempting to contact server at %s:%d...AI Player terminated OK. Abandon current game?About dopewarsAcidAddicts are buying %tde at ridiculous prices!Amount of cash that each player starts withAmount of debt that each player starts withAre you high on something?Are you sure you want to quit? Are you sure? (Any %tde or %tde carried by this %tde may be lost!)Authentication for LocalName with the metaserverAvailable space: %dBSDTPLGFJQBSLBankBank %17PBank located at %s Bank: %PBarettaBased on John E. Dell's old Drug Wars game, dopewars is a simulation of anBased on John E. Dell's old Drug Wars game, dopewars is a simulation of an imaginary drug market. dopewars is an All-American game which features buying, selling, and trying to get past the cops! The first thing you need to do is pay off your debt to the Loan Shark. After that, your goal is to make as much money as possible (and stay alive)! You have one month of game time to make your fortune. Be verbose in processing config fileBronxBrooklynBuyBuying %d %tde at %P Buying a %tde for %P at the gun shop CLQPCall yourselves drug dealers?Cannot create pid file %s: %sCannot install SIGHUP interrupt handler!Cannot install SIGINT interrupt handler!Cannot install SIGTERM interrupt handler!Cannot install SIGUSR1 interrupt handler!Cannot install SIGWINCH interrupt handler!Cannot install pipe handler!Cannot open high score file %s. (%s.) Either ensure you have permissions to access this file and directory, or specify an alternate high score file with the -f command line option.CashCash %17PCash: %PCentral ParkChange NameChoose an errand to give one of your %tde...CocaineColumbian freighter dusted the Coast Guard! Weed prices have bottomed out!CommentComment: %sConey IslandConfiguration can only be changed interactively when no players are logged on. Wait for all players to log off, or remove them with the push or kill commands, and try again.Congratulations! You made the high scores!Connection established Connection to server lost - switching to single player modeConnection to server lost! Connection to server lost! Reverting to single player modeConstructive CriticismConstructive Criticism Andrea Elliot-Smith Pete WinnCopsCops made a big %tde bust! Prices are outrageous!Cost for a bitch to spy on the enemyCost for a bitch to tipoff the cops to an enemyCould not connect to dopewars server (%s) AI Player terminating abnormally.Could not start multiplayer dopewarsCourage! Bush is a noodle!D O P E W A R SD>eal %tde, DRFSQDWLDamage done by each gunDan's House of GunsDebtDebt %17PDebt of %P paid off to loan shark Debt: %PDepositDivider for drug price when it's specially cheapDo you Do you run, or fight?Do you run?Do you want to D>eposit money, W>ithdraw money, or L>eave ? Does your mother know you're a dope dealer?DropDrug Dealing and ResearchDrug Dealing and Research Dan WolfDrugsDrugs can be your friend!E:EvadeError reading scores from %s.Extensive Play TestingExtensive Play Testing Katherine Holt Caroline MooreF:FightF>ight, FightFollowing your tipoff, the cops ambushed %s, who escaped with %d %tde. Following your tipoff, the cops ambushed %s, who was shot dead!For information on the command line options, type dopewars -h at yourFormat string used for expensive drugs 50% of timeGame time is up. Leaving game. GhettoGun shop located at %s GunsH I G H S C O R E SHashishHaven't I seen you on TV?HealthHealth %3dHealth: %dHeroinHey dude, the prices of %tde here are:Hey dude, what's your _name?Hey dude, what's your name? High ScoresHost nameHostname: How many do you buy? How many do you drop? How many do you sell? How much money do you pay back? How much money? I am the walrus!I don't believe in Ronald ReaganI feel an unaccountable urge to dye my hair blueI think hemorrhoid commercials are really neat!I think it's wonderful what they're doing with incense these daysI used to be a hippie, myselfI wasn't always a woman, you knowI'd like to sell you an edible poodleI'll bet you have some really interesting dreamsI'm soliciting contributions for Zombies for ChristIndex into %s array should be between 1 and %dInventoryJesus loves you more than you will knowJet to locationJetting to %tdeJetting to %tde with %P cash and %P debt Just say No... well, maybe... ok, what the hell!Kill a cop for Christ!List of songs which you can hear playingList of things which you can stop to doList of things which you overhear on the subwayList what? P>layers or S>cores? Loan shark located at %s Location of the Loan SharkLocation of the bankLocation of the gun shopLocation of the pubLudesMDAMaintaining pid file %sManhattanMaxClients (%d) exceeded - dropping connectionMaximum normal price of each drugMaximum number of TCP/IP connectionsMaximum number of drugs at each locationMaximum price to hire a bitchMessageMessage displayed when this drug is specially cheapMessage:-MetaserverMetaserver name to report/get server details to/fromMinimum normal price of each drugMinimum number of drugs at each locationMinimum price to hire a bitchMultiplier for specially expensive drug pricesN:NoN>ext server; P>revious server; S>elect this server... NPSNameName of each drugName of each gunName of each locationName of the bankName of the gun shopName of the high score fileName of the loan sharkName of the pubName of the server to connect toNetwork port to connect toNew GameNew name: No curses client available - rebuild the binary passing the --enable-curses-client option to configure, or use a windowed client (if available) instead! No graphical client available - rebuild the binary passing the --enable-gui-client option to configure, or use the curses client (if available) instead! No other players are currently logged on!No such user! No users currently logged on! No. of game turns (if 0, game never ends)No. of seconds in which to return fireNumberNumber of drugs in the gameNumber of guns in the gameNumber of locations in the gameNumber of playing songsNumber of subway sayingsNumber of things which you can stop to doOfficer BobOfficer HardassOh, you must be from CaliforniaOne of your %tde was spying for %s.^The spy %s!OpiumPCPPSPath of the script on the metaserverPay allPay back:PeyotePlay TestingPlay Testing Phil Davis Owen WalshPlay again? Player ListPlayer removed due to connect timeoutPlayer removed due to idle timeoutPlayersPlayers are disconnected after this many secondsPlayers currently logged on:-Players in this game:- Players: %d (maximum %d)Players: -unknown- (maximum %d)Please choose the player to spy on. Your %tde will then offer his services to the player, and if successful, you will be able to view the player's stats with the "Get spy reports" menu. Remember that the %tde will leave you, so any %tde or %tde that he's carrying may be lost!Please choose the player to tip off the cops to. Your %tde will help the cops to attack that player, and then report back to you on the encounter. Remember that the %tde will leave you temporarily, so any %tde or %tde that he's carrying may be lost!Please enter the hostname and port of a dopewars server:-Please wait... attempting to contact dopewars server...Please wait... attempting to contact metaserver...Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, man!Police presence at each location (%)PortPort : %dPort for metaserver communicationPort: Preferred hostname of your server machinePress any key...PricePrice of each gunPub located at %s Pushing %s QueensQuestionQuit GameR:RunR>un, Random events are sanitizedReckon I'll just have to shoot you for your own good.Resized structure list to %d elements Rival drug dealers raided a pharmacy and are selling cheap ludes!RugerS U B W A YS>tand, STGCNSanitized away a RandomOfferSaturday Night SpecialSeconds between turns of AI playersSellSelling %d %tde at %P SendServerServer : %sServer description, reported to the metaserverShroomsSingle playerSo I think I'm going to Amsterdam this yearSon, you need a yellow haircutSorry, but this server has a limit of %d players, which has been reached.^Please try connecting again later.Sorry, but this server has a limit of 1 player, which has been reached.^Please try connecting again later.Sort key for listing available drugsSpaceSpace %6dSpace taken by each gunSpeedSpy On PlayerSpy reportsSpy reports for %sStart new gameStaten IslandStatsStatus: Attempting to contact %s...Status: Could not connect (%s)Status: Waiting for user inputTRUE if server should report to a metaserverTRUE if this drug can be specially cheapTRUE if this drug can be specially expensiveTalk to all playersTalk to player(s)Talk: The Marrakesh Express has arrived!The Pope was once Jewish, you knowThe first thing you need to do is pay off your debt to the Loan Shark. AfterThe lady next to you on the subway said,^ "%s"%sThe market is flooded with cheap home-made acid!The server has terminated. The server has terminated. Switching to single player mode.The server has terminated. Reverting to single player mode.There isn't that much money available...There isn't that much money in the bank...There's nothing like having lots of moneyThink you're hard enough to deal with the likes of me?This binary has been compiled without networking support, and thus cannot act as an AI player. Recompile passing --enable-networking to the configure script.Time in seconds for connections to be made or brokenTip Off The CopsToo late - %s has just left!TrenchcoatUnable to read high score file %sUnable to write high score file %sUnconstructive CriticismUnconstructive Criticism James MatthewsUnfortunately, somebody else is already using "your" name. Please change it.Unfortunately, somebody else is already using "your" name. Please change it:-Unix prompt. This will display a help screen, listing the available options.Unknown command - try "help" for help... Up since : %sUsers currently logged on:- Using name %s VersionVersion : %sVersion %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netVersion %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars is released under the GNU General Public Licence WarningWasn't Jane Fonda wonderful in BarbarellaWe only use 20% of our brains, so why not burn out the other 80%We're winning the war for drugs!WeedWhat do you want to drop? What do you wish to buy? What do you wish to sell? Where to, dude ? Whom do you want to page (talk privately to) ? Whom do you want to spy on? Whom do you want to tip the cops off to? Will you B>uyWill you B>uy, S>ell, or L>eave? Will you... C>onnect to a named dopewars serverWinners don't do drugs... unless they doWithdrawWord used to denote a single "bitch"Word used to denote a single drug or equivalentWord used to denote a single gun or equivalentWord used to denote two or more "bitches"Word used to denote two or more drugsWord used to denote two or more gunsWould you like a jelly baby?Wouldn't it be funny if everyone suddenly quacked at once?Y:YesYNYN^Do you pay a doctor %P to sew you up?YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?YN^There is some weed that smells like paraquat here!^It looks good! Will you smoke it? YN^Would you like to buy a %tde for %P?YN^Would you like to buy a bigger trenchcoat for %P?YN^Would you like to visit %tde?YN^^Would you like to hire a %tde for %P?You are currently carrying %d %tdeYou can afford %dYou can afford %d, and can carry %d. You can't get any cash for the following carried %tde :You didn't even make the high score table...You don't have any %tde to sell!You don't have any to sell!You don't have enough cash to buy that %tde!You don't have enough space to carry that %tde!You don't have that much money!You find %d %tde on a dead dude in the subway!You hallucinated for three days on the wildest trip you ever imagined!^Then you died because your brain disintegrated!You have %d. You have been pushed from the server. Switching to single player mode.You have been pushed from the server. Reverting to single player mode.You have one month of game time to make your fortune.You hear someone playing %sYou killed %s!You look like an aardvark!You meet a friend! He gives you %d %tde.You meet a friend! You give him %d %tde.You stand there like a dummy.You stopped to %s.You were mugged in the subway!You'll need more %tde to carry any more %tde!Your dealing time is up...Your mama made brownies with some of your %tde! They were great!Your spy working with %s has been discovered!^The spy %s!Zzzzz... are you dealing in candy or what?^ (at least, you -think- that's what she said)_Antique mode_Attack_Buy ->_Cancel_Close_Connect_Deal %Tde_Drop <-_Evade_Fight_Help_Jet!_No_Run_Spy (%P)_Stand_Start single-player game_Tipoff (%P)_Yes`Acapulco Gold` by Riders of the Purple Sage`Are you Experienced` by Jimi Hendrix`Cheeba Cheeba` by Tone Loc`Comin` in to Los Angeles` by Arlo Guthrie`Commercial` by Spanky and Our Gang`Eight Miles High` by the Byrds`Itchycoo Park` by Small Faces`Kicks` by Paul Revere & the Raiders`Late in the Evening` by Paul Simon`Legalize It` by Mojo Nixon & Skid Roper`Legend of a Mind` by the Moody Blues`Light Up` by Styx`Mexico` by Jefferson Airplane`One toke over the line` by Brewer & Shipley`The Smokeout` by Shel Silverstein`White Punks on Dope` by the Tubes`White Rabbit` by Jefferson Airplanearmed to the teethat %Pbitchbitchesbuying, selling, and trying to get past the cops!defecteddopewars is released under the GNU General Public Licencedopewars server version %s ready and waiting for connections on port %d.drugdrugsescapedgot connection from %sgungunshave a beerheavily armedimaginary drug market. dopewars is an All-American game which featureslightly armedmoderately well armedor C>ontact your spies and receive reportsor N>o errand ? or Q>uit? pitifully armedsmoke a Djarumsmoke a cigarsmoke a cigarettesmoke a jointthat, your goal is to make as much money as possible (and stay alive)!the Bankthe Loan Sharkthe Nixon tapesthe pubwas shotProject-Id-Version: dopewars-1.5.3 Report-Msgid-Bugs-To: POT-Creation-Date: 2005-12-30 13:30-0800 PO-Revision-Date: 2001-04-08 16:16+01000 Last-Translator: Slawomir Molenda Language-Team: Polish MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Informacje o komendach linni poleceñ uzyskasz piszaæ dopewars -h po twoim znaku zachêty. To wy¶wietli ekran pomocy z dostêpnym opcjami. Z>obaczyæ listê serwerów na metaserwerze i wybraæ jeden W>yj¶æ (mo¿esz uruchomiæ serwer pisz±c G>raæ w trybie single-player W>ypieprz j± z roboty S>zpieguj innego dilera (koszt: %P) Z>akapuj glinom na innego dilera (koszt: %P)Jeste¶ pewien? %Tde %3d Miejsce %6d%Tde w plecaku%Tde na rynku%d z %d%s przyby³, z %d %tde, %s%s zaakceptowa³ twój %tde!^U¿yj klawisza G, aby skontaktowaæ siê ze szpiegiem%s zwia³!%s opu¶ci³ grê.%s opu¶ci³ grê. %s odmówi³ %tde%s jest "%s" %s jest %P %s jest %d %s jest %s %s jest { %s do³±czy³ do gry!%s do³±czy³ do gry. %s zabity %s opuszcza serwer!%s teraz szpieguje %s%s szpiegowanie %s: ZABRONIONE%s stoi i dostaje.%s na³anie glin na %S: ZABRONIONE%s nas³a³ gliny na %s%s bêdzie znany jako %s%s bêdzie teraz znany jako %s.%s: ZABRONIONY przejazd do %s%s: Zasadzkê zrobi³ %s%s: propozycja by³a na rachunek %s%s: kablowanie %s zakoñczone OK.%s[%d] jest %s %s^%s ju¿ tu jest!^A>takujesz czy E>wakuujesz siê? U>pu¶æ A>takuj D>aj zlecenie J>ed¼ Z>obacz S>przedaj G>adaj P>owiedz W>yj¶cieMagnum/Zlecenia/_Raport szpiegowski.../Zlecenia/_Szpiegowanie.../Zlecenia/_Zasadzka.../Gra/_Nowa.../Gra/_Wyj¶cie.../Pomoc/_O programie.../Zobacz/_Plecak.../Zobacz/_Graczy.../Zobacz/_Wynik.../Rozmowa/Ze _Wszystkimi.../Rozmowa/Z _Graczem.../_Zlecenia/_Gra/_Pomoc/Z_obacz/_Rozmowa<- _SprzedajDzieñ bez prochów jest jak nocWytrenowana ma³pa zrobi³aby to lepiej...A:AtakujGracz AI zabity. Normalne wyj¶cie. Gracz AI wyrzucony z serwera. Gracz AI rozpocz±³ grê; próba kontaktu z serwerem %s:%d...Gracz AI zakoñczy³ rozgrywkê. Zakoñczyæ aktualn± grê?O grzeKwasÆpuny kupuj± %tde po absurdalnych cenach!Ilo¶æ gotówki, z jak± gracz zaczynaZ jakim d³ugiem zaczyna ka¿dy graczCo dzi¶ wci±gn±³e¶?Na pewno chcesz wyj¶æ? Jeste¶ pewien? (%tde albo %tde niesiona przez tê %tde mog± byæ utracone!)Autentyfikacja dla LocalName z metaserweremDostêpne miejsce: %dKSUGPZDAJWKSWBankBank %17PBank jest w mie¶cie %s Bank %PBarettaOparte s± na starej grze `Drug Wars` Johna E. Dell'a. Jest to symulacja Oparte s± na starej grze `Drug Wars` Johna E. Dell'a. Jest to symulacja rynku narkotykowego z takimi elementami jak kupowanie, sprzedawanie i próby ucieczki gliniarzom! Najpierw musisz sp³aciæ d³ug Z³otym Pasom. Potem twoim celem jest zarobienie tak du¿o forsy, jak siê da i pozostanie przy ¿yciu! Masz jeden miesi±c na zdobycie fortuny. Tryb ¶ledzenia dla pliku konfiguracjiWarszawaGdyniaKupKupujê %d %tde w %P Kupujê %tde za %P na ruskim bazarze z broni± PZWGNazywacie siê dilerami?Nie mo¿na utworzyæ pliku pid %s: %sNie mo¿na obs³u¿yæ przerwania SIGHUP!Nie mo¿na obs³u¿yæ przerwania SIGINT!Nie mo¿na obs³u¿yæ przerwania SIGTERM!Nie mo¿na obs³u¿yæ przerwania SIGUSR1!Nie mo¿na obs³u¿yæ przerwania SIGWINCH!Nie mo¿na ob³u¿yæ potoku!Nie mo¿na otworzyæ pliku z najlepszymi wynikami %s. (%s) Upewnij siê, ¿e masz dostêp do pliku i katalogu, albo podaj nazwê alternatywnego pliku poprzez opcjê -f z linni poleceñ.KasaKasa %17PKasa: %PGdañskZmieñ nickaWybierz zadanie dla jednej ze swoich %tde...Kokaina¦wie¿a dostawa marihuany z Holandii! Ceny trawy lec± w dó³KomentarzKomentarz: %sPruszkówKonfiguracja mo¿e byæ zmieniona interaktywnie tylko, gdy ¿aden z graczy nie jest zalogowany. Zaczekaj, a¿ wszyscy siê wyloguj± lub usuñ ich komendami "push" albo "kill" i spróbuj jeszcze raz.Gratulacje! Wpiszesz siê na karty historii!Po³±czenie nawi±zane Po³±czenie z serwerem przerwane - w³±czenie trybu dla jednego graczaPo³±czenie z serwerem przerwane! Po³±czenie z serwerem zerwane! W³±czenie trybu dla jednego graczaKonstruktywna krytykaKonstruktywna krytyka Andrea Elliot-Smith Pete WinnZamknijGliny zrobi³y ob³awê na %tde ! Ceny towaru s± kosmiczne!Koszt szpiegowania wroga przez dziwkêKoszt napuszczenia na wroga glin przez dziwkêNie mo¿na po³±czyæ siê z serwerem dopewars (%s) Gracz AI zakoñczy³ rozrgrywkê w nietypowy sposób.Nie mogê wystartowaæ trybu multiplayerOdwagi! Zajaraj sobie i siê wyluzujesz!D R E S S W A R SD>ilujesz %tde, ASUDWZWOObra¿enia zadawane prze poszczególne bronieruski bazar z broni±DebetDebet %16PD³ug %P zosta³ sp³acony Z³otym Pasom Debet: %PDepozytSeparator dla ceny szczególnie taniego dragaCzy Uciekasz czy Atakujesz?Uciekasz?Zamierzasz Z>deponowaæ, W>ycofaæ gotówkê czy O>pu¶ciæ bank? Czy twoja stara wie, ¿e jeste¶ dilerem?ZostawDilowanie dragami i rozwójDilowanie dragami i badania Dan WolfdragiDragi to twój najlepszy przyjaciel, pamiêtaj!E:Ewakuuj siêNie mo¿na odczytaæ pliku z najlepszymi wynikami %sEkstensywne testowanie gryEkstensywne testowanie gry Katherine Holt Caroline MooreA:AtakA>takujeszAtakDziêki twoim wskazówkom gliny zasadzi³y siê na %s, który uciek³ z %d %tde. Dziêki twoim wskazówkom gliny zasadzi³y siê na %s, który zosta³ zastrzelonyInformacje o komendach linni poleceñ uzyskasz pisz±c dopewars -h poFormat u¿ywany dla drogich dragów przez 50% czasuCzas gry siê skoñczy³. Opuszczam grê. Wroc³awSklep z broni± jest w mie¶cie %s broñN A J L E P S Z E W Y N I K IHaszyszCzy ja cie czasem nie widzia³em w TV?ZdrowieZdrowie %3dZdrowie: %dHeroinaHej cieciu, oto %tde jakie s± w obiegu:Jak siê _nazywasz cieciu?Jak siê nazywasz cieciu? Najlepsze wynikiNazwa hostaNazwa hosta: Ile kupujesz? Ile chcesz zostawiæ? Ile sprzedajesz? Ile forsy oddajesz Z³otym Pasom? Ile kasy? Jestem zajebist± prostytutk±!Przypominasz mi zafajdanego æpunaCzujê potrzebê przefarbowania siê na niebieskoReklamy tamponów s± odjazdoweMasz niez³y ty³ek...chcesz siê zabawiæ?Kiedy¶ te¿ by³em ¶mieciem, tak ja ty.Wiesz, nie zawsze by³am kobiet±Sprzedaæ ci trochê py³ku kosmicznego?Hej cieciu, zwolnij trochêZbieram datki na Ko¶ció³ Zombich ChrystusaIndeks w tablicy %s powinien byæ pomiêdzy 1 i %dPlecakJezus kocha ciê bardziej ode mniePodró¿Podró¿ do miasta %tdeJedziesz do %tde z %P kas± i %P debetem Po prostu powiedz NIE...chocia¿, mo¿e...ok, a niech tam!Zajeb gline, dla Chrystusa!Liczba piosenek, które mo¿esz us³yszeæLista rzeczy, które mo¿esz przestaæ robiæLista rzeczy jakie s³yszysz na dworcuCo chcesz zobaczyæ? G>raczy W>ynikiSiedziba Z³otych Pasów jest w mie¶cie %s Po³o¿enie Z³otych PasówPo³o¿enie bankuPo³o¿enie ruskiego bazaru z broni±Po³o¿enie dyskotekiLufkiEkstazaU¿ywam pliku %sKrakówMaxClients (%d) przekoroczona warto¶æ - zrywam po³±czenieMaksymalna cena ka¿dego dragaMaksymalna ilo¶æ po³±czeñ TCP/IPMaksymalna ilo¶æ dragów dla ka¿dego miejscaMaksymalna wynajêcia dziwkiWiadomo¶æWiadomo¶æ wy¶wietlana, gdy drag jest szczególnie taniWiadomo¶æ:-MetaserwerNazwa metaserwera do wysy³ania szczegó³ów o serwerzeMinimalna cena ka¿dego dragaMinimalna ilo¶æ dragów dla ka¿dego miejscaMinimalna cena wynajêcia dziwkiMno¿nik dla szczególnie drogich dragówN:NieN>astêpny serwer; P>oprzedni serwer; W>ybierz ten serwer... NPWNazwaNazwa poszczególnych narkotykówNazwa ka¿dej broniNazwa ka¿dej lokacjiNazwa bankuNazwa sklepu z broni±Nazwa pliku z najlepszymi wynikamiNazwa Z³otych PasówNazwa dyskotekiNazwa serwera do po³±czenia siêPort do po³±czeniaNowa GraNowe imiê: Nie ma klienta dla biblioteki curses - przekompiluj grê dodaj±c opcjê --enable-curses-client to pliku konfigurancyjnego, albo u¿yj zamiast tego okienkowej wersji klienta (je¿eli jest dostêpny). Klient GTK+ niedostêpny - skompiluj grê dodaj±c opcjê --enable-gui-client do skryptu konfiguracyjnego, albo u¿yj zamiast tego (je¿eli jest dostêpny) klienta opartego na curses. Nie ma aktualnie innych zalogowanych graczy!Nie ma takiego u¿ytkownika! Nie ma ¿adnych zalogowanych u¿ytkowników Ilo¶æ tur (je¿eli 0, brak ograniczeñ)Ilo¶æ sekund na oddanie strza³uIlo¶æIlo¶æ narkotyków w grzeIlo¶æ broni w grzeIlo¶æ miejsc w grzeLiczba granych piosenekLiczba komentarzy na dworcuLiczba rzeczy, które mo¿esz przestaæ robiæRomekButPan z Wo³omina?Jeden z twoich %tde chodzi³ za %s.^Szpieg %s!OpiumPCPGW¦cie¿ka do skryptu CGI na metaserwerzeSp³aæ wszystkoZwróæ:PeyotlTestowanie gryTestowanie gry Phil Davis Owen WalshGrasz jeszcze raz? Lista graczyGracz usuniêty przez przekroczenia czasu przy po³±czeniuGracz usuniêty przez przekroczenie czasu na ruchGraczeGracze s± roz³±czani po tej liczbie sekundGracze aktualnie zalogowani:-Gracze w grze:- Gracze: %d (maksymalnie %d)Gracze: -nieznani- (maksymalnie %d)Wybierz gracza, którego chcesz szpiegowaæ. Twoja %tde zaoferuje wtedy swoje us³ugi temu graczowi, i je¿eli on siê zgodzi, bêdziesz w stanie zobaczyæ jego statystyki poprzez opcjê "Raport szpiegowski" w menu. Pamiêtaj, ¿e %tde ciê opu¶ci i jakikolwiek %tde albo %tde, któr± niesie, mo¿e straciæ!Wybierz gracza, na którego chcesz napu¶ciæ gliny. Twoja %tde pomo¿e gliniarzom zaatakowaæ gracza i potem wróci, aby zdaæ raport co siê sta³o. Pamiêtaj, ¿e %tde opu¶ci ciê tymczasowo, tak¿e jakikolwiek %tde albo %tde, któr± niesie, mo¿e straciæ!Wprowad¼ nazwê hosta i port serwera dopewars:-Proszê czekaæ... próba kontaktu z serwerem dopewars...Proszê czekaæ... próba kontaktu z metaserwerem...Policyjne psy skoczy³y ci do gard³a %d! Upu¶ci³e¶ jakie¶ %tde! Ale rozpierdol!dresie!Policja obecna w ka¿dym miejscu (%)PortPort: : %dPort do komunikacji z metaserweremPort: Preferowana nazwa hosta twojego serweraNaci¶nij dowolny klawisz...CenaCena ka¿dej broniDyskoteka jest w mie¶cie %s Wywalam %s PoznañPytanieWyj¶cie z gryU:UciekaszU>ciekaszLosowe zdarzenia umiarkowaneUwa¿am, ¿e powiniennem ciê zastrzeliæ dla twojego w³asnego dobra.Zmieniono strukturê listy do %d elementów Konkurencyjni dresiarze opychaj± tanio lufkiBejzbolP K PS>toiszSZWKNWy³±czono RandomOfferKastet AdidaSLiczba sekund pomiêdzy turami komputerowych graczySprzedajSprzedajê %d %tde w %P Wy¶lijSerwerSerwer : %sOpis serwera, zg³aszany do metaserweraGrzybkiPojedyñczy graczPo co ci mózg, jak masz dresyWiesz, nie zawsze by³am kobiet±Przykro mi, ale serwer ma limit %d graczy, który zosta³ osi±gniêty.^Proszê spróbowaæ po³±czyæ siê pó¼niej.Przykro mi, ale serwer ma limit do 1 gracza, który zosta³ osi±gniêty. ^Proszê spróbowaæ po³±czyæ siê pó¼niej.Rodzaj klucza sortuj±cego dostêpne narkotykiMiejsceMiejsce %6dMiejsce zajmowane przez poszczególn± broñSpidySzpieguj graczaRaport szpiegaSzpieg z³o¿y³ raport o %sRozpoczniej now± grêKozia WólkaStatystykaStatus: Próba kontaktu z %s...Status: Nie mogê siê po³±czyæ (%s)Status: Czekam na aktywno¶æ useraNiezerowa warto¶æ je¿eli serwer ma siê kontaktowaæ z metaserweremNiezerowa warto¶æ je¿eli ten drag ma byæ szczególnie taniNiezerowa warto¶æ je¿eli ten drag ma byæ szczególnie drogiMów do wszystkich graczyMów do gracza(y)Nawijaj: Ekspres z Marakeszu przywióz³ tani hasz!Za¿ywasz-przegrywasz!Najpierw musisz sp³aciæ d³ug Z³otym Pasom. Potem twoim celem jestJaka¶ kobieta stoj±ca obok na dworcu powiedzia³a^"%s"%sRynek jest pe³en taniego, domowej roboty kwasu!Serwer zakoñczy³ pracê. Serwer zosta³ zatrzymany. W³±czenie trybu dla jednego gracza.Serwer zosta³ zatrzymany. W³±czenie trybu dla jednego gracza.Nie ma tyle gotówki w banku...Nie ma tyle gotówki w banku...Nic siê nie liczy oprócz pieniêdzyMy¶lisz, ¿e jeste¶ taki twardy, aby ze mn± dilowaæ?Program zosta³ skompilowany bez wsparcia dla sieci i nie mo¿e zachowywaæ siê jakby by³ komputerowym graczem. Skonfiguruj z opcj± --enable-networking i przekompilujLiczba sekund na nawi±zanie po³±cznia albo zerwanieNapu¶æ glinyZa pó¼no - %s w³a¶nie zwia³!Twój p³aszczNie mo¿na odczytaæ pliku z najlepszymi wynikami %sNie mo¿na zapisaæ do pliku z najlepszymi wynikami %sNiekonstruktywna krytykaNiekonstruktywna krytyka James MatthewsNiestety jaki¶ cieæ u¿ywa ju¿ twojego nicka. Zmieñ go.Niestety jaki¶ cieæ u¿ywa ju¿ twojego nicka. Zmieñ go. twoim znaku zachêty. To wy¶wietli ekran pomocy z dostêpnym opcjami.Nieznana komenda - spróbuj "help",aby uzyskaæ pomoc... Od : %sU¿ytkownicy aktualnie zalogowani:= U¿ywa imienia %s WersjaWersja : %sWersja %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.netWersja %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net dopewars s± publikowane zgodnie z GNU General Public Licence Ostrze¿enieCzy twoja laska nie by³a cudowna w tym porno?U¿ywamy tylko 10% naszego mózgu, czemu nie zjaraæ reszty?Wygramy tê wojnê o narkotyki!MarihuanaCo chcesz zostawiæ? Co chcesz kupiæ? Co chcesz sprzedaæ? Dok±d jedziesz ? Do kogo prywatnie zagadujesz ? Kogo chcesz szpiegowaæ? Na kogo chcesz nas³aæ gliny? K>upK>upiæ, S>przedaæ, czy W>yj¶æ? Chcesz... P>o³±czyæ siê z innym hostem i/lub portemZwyciêzcy nie u¿ywaj± dragów...dopóki s± zwyciêzcamiWycofaj siêS³owo okre¶laj±ce jedn± "dziwkê"S³owo okre¶laj±ce jednego dragaS³owo okre¶laj±ce jedn± broñS³owo okre¶laj±ce dwie lub wiêcej "dziwek"S³owo okre¶laj±ce wiêcej dragówS³owo okre¶laj±ce wiêcej broniChcesz landrynkê kotku?By³oby fajnie gdyby wszyscy wyszli na ulicê i siê pieprzyliT:TakYNYN^P³acisz doktorowi %P, ¿eby ciê pozszywa³?YN^Hej kole¶! Pomogê ci ponie¶æ %tde za jedyne %P. Zgadzasz siê?YN^Znalaz³e¶ trochê ziela, które pachnie tak ¶wie¿o!^Dobrze wygl±da! Zapalisz? YN^Chcia³by¶ kupiæ %tde za %P?YN^Chcia³byæ kupiæ wiêkszy p³aszcz za %P?YN^Chcia³by¶ odwiedziæ %tde?YN^^Chcia³by¶ wynaj±æ %tde za %P?Masz teraz %d %tdeStaæ ciê na %dStaæ ciê na %d, a mo¿esz unie¶æ %d. Nie dostaniesz forsy za to ci niesiesz %tde :Nawet siê nie wpiszesz, cieniasie...Nie masz ¿adnej %tde do sprzedania!Nie masz nic do opchniêcia!Nie masz tyle kasy na %tde!Nie masz wystarczaj±co du¿o miejsca, aby unie¶æ tê %tde!Nie masz tak du¿o kasy!Znalaz³e¶ %d %tde przy zw³okach jakiego¶ æpuna w WC!Mia³e¶ haluny przez trzy dni i najlepszego tripa w swoim ¿yciu!^Potem umar³e¶, bo dla twojego mózga ta wycieczka by³a za mocna!Posiadasz %d. Zosta³e¶ wyrzucony z serwera. W³±czenie trybu dla jednego gracza.Zosta³e¶ wyrzucony z serwera. W³±czenie trybu dla jednego gracza.Masz jeden miesi±c na zdobycie fortuny.S³yszysz jak kto¶ puszcza %sTrafisz i zabijasz %sNiez³y dres, widzê, ¿e zarabiasz na tym gównie kupê szmaluSpotykasz starego dilera! Daje ci %d %tde.Spotka³e¶ przyjaciela! Dajesz mu %d %tde.Stoisz tam jak idiota.Zatrzymujesz siê i %s.Zosta³e¶ obrzygany w poci±gu!Bêdziesz potrzebowa³ wiêcej %tde aby jeszcze unie¶æ %tde!Twój czas dilerki dobieg³ koñca...Mamu¶ka zrobi³a ci kanapki z odrobin± %tde! By³y super!Twój szpieg pracuj±cy nad %s zosta³ odkryty!^Szpieg %s!Zzzzz... dilujesz cukiereczku czy co?^ (tak ci siê przynajmniej wydaje, ¿e TO powiedzia³a)_Tryb `antyczny`_Atakuj_Kup ->Z_aniechaj_Zamknij_Po³±cz_Diluj %Tde_Zostaw <-_Ewakuuj siê_Atakujesz_Pomoc_Jed¼_Nie_Uciekasz_Szpiegowanie (%P)_Stoisz_Rozpocznij grê dla jednego gracza_Zasadzka (%P)_Tak`Tata diler` by Kazik na ¿ywo`Czy jeste¶ do¶wiadczony` by Alex Sex Band`Chod¼ tu i poka¿ mi swe paski` by Dress Attack`Dziewczyna drezyna` by BoYz`Spuszczê ci siê do ¶rodka` by Spanky Doggy Dog`Firestarter` by Prodigy`Killin' floor` by Body Count`Blondyna Maryna` by Just Five`Mój dom, mój pies` by Krzysztof Krawczyk`Zalegalizuj To` by Kaliber 45`Taste like drug spirit` by Nirvana`Murzyn Mariusz` by Acid Drinkers`Viva Go³ota` by Calabash`Mandatory Cocaine Song` by Flapjack`Zagubiona mi³o¶æ` by Classic`Czarnuchy na kwasie` by Skinner`Bia³y króliczek` by Marylin Mansonkurewsko uzbrojony po zêbyza %Pdziwkadziwkii próby ucieczki od gliniarzy.uszkodzi³ dopewars s± publikowane zgodnie z GNU General Public Licenceserwer dopewars w wersji %s gotowy i oczekuje po³±czeñna porcie %d.dragdragiusciek³po³±czenie z %sbroñbroñpijesz browardobrze uzbrojonyrynku narkotykowego z takimi elementami jak kupowanie, sprzedawanie lekko uzbrojonyca³kiem nie¼le uzbrojonyalbo K>ontakt ze szpiegami i raporcik N>ie ma byæ ¿adnego zlecenia ? czy W>yj¶ciebeznadziejnie uzbrojonyczujesz, ¿e musich sobie ul¿yæwypalasz cygaropalisz fajepalisz skrêtazarobienie tak du¿o forsy, jak siê da i pozostanie przy ¿yciu!banksiedziba Z³otych Pasów`Zasad¼ Krzaka, zarzuæ Kwacha` by Degenerate Politicsdyskotekazosta³ postrzelonydopewars-1.5.12/po/pl.po0000644001565000007070000034151310355323333011752 00000000000000# Polish translation for dopewars # Copyright (C) 2000-1 Free Software Foundation, Inc. # Created by Slawomir Molenda , 2000 # msgid "" msgstr "" "Project-Id-Version: dopewars-1.5.3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: 2001-04-08 16:16+01000\n" "Last-Translator: Slawomir Molenda \n" "Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "dziwka" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "dziwki" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "broñ" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "broñ" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "drag" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "dragi" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "siedziba Z³otych Pasów" #: src/dopewars.c:195 msgid "the Bank" msgstr "bank" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "ruski bazar z broni±" #: src/dopewars.c:196 msgid "the pub" msgstr "dyskoteka" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Port do po³±czenia" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Nazwa pliku z najlepszymi wynikami" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Nazwa serwera do po³±czenia siê" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "Niezerowa warto¶æ je¿eli serwer ma siê kontaktowaæ z metaserwerem" #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "Nazwa metaserwera do wysy³ania szczegó³ów o serwerze" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "Port do komunikacji z metaserwerem" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "¦cie¿ka do skryptu CGI na metaserwerze" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "Preferowana nazwa hosta twojego serwera" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "Autentyfikacja dla LocalName z metaserwerem" #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "Opis serwera, zg³aszany do metaserwera" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "Ilo¶æ tur (je¿eli 0, brak ograniczeñ)" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "" #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "Losowe zdarzenia umiarkowane" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "Tryb ¶ledzenia dla pliku konfiguracji" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "Ilo¶æ miejsc w grze" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "Ilo¶æ broni w grze" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "Ilo¶æ narkotyków w grze" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "Po³o¿enie Z³otych Pasów" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "Po³o¿enie banku" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "Po³o¿enie ruskiego bazaru z broni±" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "Po³o¿enie dyskoteki" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "Nazwa Z³otych Pasów" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "Nazwa banku" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "Nazwa sklepu z broni±" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "Nazwa dyskoteki" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "Rodzaj klucza sortuj±cego dostêpne narkotyki" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "Ilo¶æ sekund na oddanie strza³u" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "Gracze s± roz³±czani po tej liczbie sekund" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "Liczba sekund na nawi±zanie po³±cznia albo zerwanie" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "Maksymalna ilo¶æ po³±czeñ TCP/IP" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "Liczba sekund pomiêdzy turami komputerowych graczy" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "Ilo¶æ gotówki, z jak± gracz zaczyna" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "Z jakim d³ugiem zaczyna ka¿dy gracz" #: src/dopewars.c:493 msgid "Name of each location" msgstr "Nazwa ka¿dej lokacji" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "Policja obecna w ka¿dym miejscu (%)" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "Minimalna ilo¶æ dragów dla ka¿dego miejsca" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "Maksymalna ilo¶æ dragów dla ka¿dego miejsca" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "Nazwa poszczególnych narkotyków" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "Minimalna cena ka¿dego draga" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "Maksymalna cena ka¿dego draga" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "Niezerowa warto¶æ je¿eli ten drag ma byæ szczególnie tani" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "Niezerowa warto¶æ je¿eli ten drag ma byæ szczególnie drogi" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "Wiadomo¶æ wy¶wietlana, gdy drag jest szczególnie tani" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "Format u¿ywany dla drogich dragów przez 50% czasu" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "Separator dla ceny szczególnie taniego draga" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "Mno¿nik dla szczególnie drogich dragów" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "Nazwa ka¿dej broni" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "Cena ka¿dej broni" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "Miejsce zajmowane przez poszczególn± broñ" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "Obra¿enia zadawane prze poszczególne bronie" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "S³owo okre¶laj±ce jedn± \"dziwkê\"" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "S³owo okre¶laj±ce dwie lub wiêcej \"dziwek\"" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "S³owo okre¶laj±ce jedn± broñ" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "S³owo okre¶laj±ce wiêcej broni" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "S³owo okre¶laj±ce jednego draga" #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "S³owo okre¶laj±ce wiêcej dragów" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "Koszt szpiegowania wroga przez dziwkê" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "Koszt napuszczenia na wroga glin przez dziwkê" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "Minimalna cena wynajêcia dziwki" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "Maksymalna wynajêcia dziwki" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "Lista rzeczy jakie s³yszysz na dworcu" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "Liczba komentarzy na dworcu" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "Liczba piosenek, które mo¿esz us³yszeæ" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "Liczba granych piosenek" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "Lista rzeczy, które mo¿esz przestaæ robiæ" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "Liczba rzeczy, które mo¿esz przestaæ robiæ" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Czy jeste¶ do¶wiadczony` by Alex Sex Band" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Chod¼ tu i poka¿ mi swe paski` by Dress Attack" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Dziewczyna drezyna` by BoYz" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "`Spuszczê ci siê do ¶rodka` by Spanky Doggy Dog" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "`Mój dom, mój pies` by Krzysztof Krawczyk" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "`Murzyn Mariusz` by Acid Drinkers" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "`Viva Go³ota` by Calabash" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`Mandatory Cocaine Song` by Flapjack" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "`Zagubiona mi³o¶æ` by Classic" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`Bia³y króliczek` by Marylin Manson" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "`Killin' floor` by Body Count" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "`Czarnuchy na kwasie` by Skinner" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Taste like drug spirit` by Nirvana" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "`Firestarter` by Prodigy" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Tata diler` by Kazik na ¿ywo" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Blondyna Maryna` by Just Five" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "`Zasad¼ Krzaka, zarzuæ Kwacha` by Degenerate Politics" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Zalegalizuj To` by Kaliber 45" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "pijesz browar" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "palisz skrêta" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "wypalasz cygaro" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "czujesz, ¿e musich sobie ul¿yæ" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "palisz faje" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "But" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "Romek" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "" #: src/dopewars.c:717 msgid "cop" msgstr "" #: src/dopewars.c:717 msgid "cops" msgstr "" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr "Baretta" #: src/dopewars.c:723 msgid ".38 Special" msgstr "Magnum" #: src/dopewars.c:724 msgid "Ruger" msgstr "Bejzbol" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "Kastet AdidaS" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "Kwas" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "Rynek jest pe³en taniego, domowej roboty kwasu!" #: src/dopewars.c:733 msgid "Cocaine" msgstr "Kokaina" #: src/dopewars.c:734 msgid "Hashish" msgstr "Haszysz" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "Ekspres z Marakeszu przywióz³ tani hasz!" #: src/dopewars.c:736 msgid "Heroin" msgstr "Heroina" #: src/dopewars.c:737 msgid "Ludes" msgstr "Lufki" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "Konkurencyjni dresiarze opychaj± tanio lufki" #: src/dopewars.c:739 msgid "MDA" msgstr "Ekstaza" #: src/dopewars.c:740 msgid "Opium" msgstr "Opium" #: src/dopewars.c:741 msgid "PCP" msgstr "PCP" #: src/dopewars.c:742 msgid "Peyote" msgstr "Peyotl" #: src/dopewars.c:743 msgid "Shrooms" msgstr "Grzybki" #: src/dopewars.c:744 msgid "Speed" msgstr "Spidy" #: src/dopewars.c:745 msgid "Weed" msgstr "Marihuana" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "¦wie¿a dostawa marihuany z Holandii! Ceny trawy lec± w dó³" #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "Warszawa" #: src/dopewars.c:755 msgid "Ghetto" msgstr "Wroc³aw" #: src/dopewars.c:756 msgid "Central Park" msgstr "Gdañsk" #: src/dopewars.c:757 msgid "Manhattan" msgstr "Kraków" #: src/dopewars.c:758 msgid "Coney Island" msgstr "Pruszków" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "Gdynia" #: src/dopewars.c:760 msgid "Queens" msgstr "Poznañ" #: src/dopewars.c:761 msgid "Staten Island" msgstr "Kozia Wólka" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "Gliny zrobi³y ob³awê na %tde ! Ceny towaru s± kosmiczne!" #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Æpuny kupuj± %tde po absurdalnych cenach!" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "By³oby fajnie gdyby wszyscy wyszli na ulicê i siê pieprzyli" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "Za¿ywasz-przegrywasz!" #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "Hej cieciu, zwolnij trochê" #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "Po co ci mózg, jak masz dresy" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "Wiesz, nie zawsze by³am kobiet±" #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Masz niez³y ty³ek...chcesz siê zabawiæ?" #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "Wiesz, nie zawsze by³am kobiet±" #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "Czy twoja stara wie, ¿e jeste¶ dilerem?" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "Co dzi¶ wci±gn±³e¶?" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "Pan z Wo³omina?" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "Kiedy¶ te¿ by³em ¶mieciem, tak ja ty." #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "Nic siê nie liczy oprócz pieniêdzy" #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "Niez³y dres, widzê, ¿e zarabiasz na tym gównie kupê szmalu" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "Przypominasz mi zafajdanego æpuna" #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "Odwagi! Zajaraj sobie i siê wyluzujesz!" #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "Czy ja cie czasem nie widzia³em w TV?" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "Reklamy tamponów s± odjazdowe" #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "Wygramy tê wojnê o narkotyki!" #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "Dzieñ bez prochów jest jak noc" #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "U¿ywamy tylko 10% naszego mózgu, czemu nie zjaraæ reszty?" #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "Zbieram datki na Ko¶ció³ Zombich Chrystusa" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "Sprzedaæ ci trochê py³ku kosmicznego?" #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "Zwyciêzcy nie u¿ywaj± dragów...dopóki s± zwyciêzcami" #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "Zajeb gline, dla Chrystusa!" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "Jestem zajebist± prostytutk±!" #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "Jezus kocha ciê bardziej ode mnie" #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "Czujê potrzebê przefarbowania siê na niebiesko" #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Czy twoja laska nie by³a cudowna w tym porno?" #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Po prostu powiedz NIE...chocia¿, mo¿e...ok, a niech tam!" #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "Chcesz landrynkê kotku?" #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "Dragi to twój najlepszy przyjaciel, pamiêtaj!" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "Konfiguracja mo¿e byæ zmieniona interaktywnie tylko, gdy\n" "¿aden z graczy nie jest zalogowany. Zaczekaj, a¿ wszyscy siê wyloguj±\n" "lub usuñ ich komendami \"push\" albo \"kill\" i spróbuj jeszcze raz." #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "Indeks w tablicy %s powinien byæ pomiêdzy 1 i %d" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "%s jest %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "%s jest %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "%s jest %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "%s jest \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] jest %s\n" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "%s jest { " #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2210 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "Zmieniono strukturê listy do %d elementów\n" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "U¿ycie: dopewars [OPCJE]...\n" "Gra o dilowaniu dragami oparta na \"Drug Wars\" Johna E. Della\n" " -b bez kolorów (standardowo kolory s± u¿ywane, gdy terminal je " "wspiera\n" " -n bez ³±czenia siê z ¿adnym serwerem (gra dla jednego gracza)\n" " -a \"antyczne\" dopewars - staraj± siê na¶ladowaæ antyczn± wersjê\n" " jak tylko to mo¿liwe (to wy³±cza wszelkie po³±czenia " "sieciowe)\n" " -f plik okre¶la plik, jaki ma byæ u¿yty do najlepszych wyników\n" " (standardowo u¿ywany jest %s/dopewars.sco)\n" " -o adres nazwa hosta, gdzie znajduje siê serwer dopewars dla wielu " "graczy\n" " (np. x.mtl.pl)\n" " -s uruchamia tryb serwera (je¿eli ma to byæ nieinteraktywny serwer\n" " nale¿y napisaæ dopewars -s < /dev/null >> logfile & )\n" " -S uruchamia \"prywatny\" serwer (nie ³±czy siê z metaserwerem)\n" " -p port, jak ma byæ u¿yty (standardowo: 7902)\n" " -g plik ¶cie¿ka do pliku z konfiguracj± dopewars\n" " -r plik nazwa pliku z pid'em okre¶laj±cym uruchomiony serwer\n" " -c tworzy gracza komputerowego\n" " -w wymuszenie u¿ycia trybu graficznego (GTK+ albo Win32)\n" " -t wymuszenie u¿ycia trybu tekstowego klienta (curses)\n" " (standardowo, klient graficzny uruchamiany jest, gdy to " "mo¿liwe)\n" " -h wy¶wietla tê pomoc\n" " -v wy¶wietla wersjê programu\n" "\n" "dopewars (C) Ben Webb 1998-2000, publikowane zgodnie z GNU GPL\n" "Wszelkie b³êdy wysy³aj na adres autora ben@bewebb@users.sf.net\n" #: src/dopewars.c:2619 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "U¿ycie: dopewars [OPCJE]...\n" "Gra o dilowaniu dragami oparta na \"Drug Wars\" Johna E. Della\n" " -b bez kolorów (standardowo kolory s± u¿ywane, gdy terminal je " "wspiera\n" " -n bez ³±czenia siê z ¿adnym serwerem (gra dla jednego gracza)\n" " -a \"antyczne\" dopewars - staraj± siê na¶ladowaæ antyczn± wersjê\n" " jak tylko to mo¿liwe (to wy³±cza wszelkie po³±czenia " "sieciowe)\n" " -f plik okre¶la plik, jaki ma byæ u¿yty do najlepszych wyników\n" " (standardowo u¿ywany jest %s/dopewars.sco)\n" " -o adres nazwa hosta, gdzie znajduje siê serwer dopewars dla wielu " "graczy\n" " (np. x.mtl.pl)\n" " -s uruchamia tryb serwera (je¿eli ma to byæ nieinteraktywny serwer\n" " nale¿y napisaæ dopewars -s < /dev/null >> logfile & )\n" " -S uruchamia \"prywatny\" serwer (nie ³±czy siê z metaserwerem)\n" " -p port, jak ma byæ u¿yty (standardowo: 7902)\n" " -g plik ¶cie¿ka do pliku z konfiguracj± dopewars\n" " -r plik nazwa pliku z pid'em okre¶laj±cym uruchomiony serwer\n" " -c tworzy gracza komputerowego\n" " -w wymuszenie u¿ycia trybu graficznego (GTK+ albo Win32)\n" " -t wymuszenie u¿ycia trybu tekstowego klienta (curses)\n" " (standardowo, klient graficzny uruchamiany jest, gdy to " "mo¿liwe)\n" " -h wy¶wietla tê pomoc\n" " -v wy¶wietla wersjê programu\n" "\n" "dopewars (C) Ben Webb 1998-2000, publikowane zgodnie z GNU GPL\n" "Wszelkie b³êdy wysy³aj na adres autora benwebb@users.sf.net\n" #: src/dopewars.c:2655 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Nie ma klienta dla biblioteki curses - przekompiluj grê dodaj±c\n" "opcjê --enable-curses-client to pliku konfigurancyjnego, albo u¿yj\n" "zamiast tego okienkowej wersji klienta (je¿eli jest dostêpny).\n" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Klient GTK+ niedostêpny - skompiluj grê dodaj±c opcjê\n" "--enable-gui-client do skryptu konfiguracyjnego, albo u¿yj\n" "zamiast tego (je¿eli jest dostêpny) klienta opartego na curses.\n" #: src/dopewars.c:2983 #, fuzzy msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Program zosta³ skompilowany bez wsparcia dla sieci i nie mo¿e zachowywaæ siê " "jakby by³ komputerowym graczem.\n" "Skonfiguruj z opcj± --enable-networking i przekompiluj" #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "D R E S S W A R S" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Oparte s± na starej grze `Drug Wars` Johna E. Dell'a. Jest to symulacja " #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "rynku narkotykowego z takimi elementami jak kupowanie, sprzedawanie " #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "i próby ucieczki od gliniarzy." #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "Najpierw musisz sp³aciæ d³ug Z³otym Pasom. Potem twoim celem jest" #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "zarobienie tak du¿o forsy, jak siê da i pozostanie przy ¿yciu!" #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "Masz jeden miesi±c na zdobycie fortuny." #: src/curses_client/curses_client.c:297 #, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "Wersja %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr " dopewars s± publikowane zgodnie z GNU General Public Licence" #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "Dilowanie dragami i badania Dan Wolf" #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Testowanie gry Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Ekstensywne testowanie gry Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Konstruktywna krytyka Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "Niekonstruktywna krytyka James Matthews" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "Informacje o komendach linni poleceñ uzyskasz pisz±c dopewars -h po" #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr " twoim znaku zachêty. To wy¶wietli ekran pomocy z dostêpnym opcjami." #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Wprowad¼ nazwê hosta i port serwera dopewars:-" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "Nazwa hosta: " #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "Port: " #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "Proszê czekaæ... próba kontaktu z metaserwerem..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "Serwer : %s" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "Port: : %d" #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "Wersja : %s" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Gracze: -nieznani- (maksymalnie %d)" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "Gracze: %d (maksymalnie %d)" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "Od : %s" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "Komentarz: %s" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "N>astêpny serwer; P>oprzedni serwer; W>ybierz ten serwer... " #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "NPW" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "" #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "" #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "" #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "" #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "" #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "Proszê czekaæ... próba kontaktu z serwerem dopewars..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "Nie mogê wystartowaæ trybu multiplayer" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "Chcesz... P>o³±czyæ siê z innym hostem i/lub portem" #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr " Z>obaczyæ listê serwerów na metaserwerze i wybraæ jeden" #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr " W>yj¶æ (mo¿esz uruchomiæ serwer pisz±c " #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr " G>raæ w trybie single-player" #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "PZWG" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "Dok±d jedziesz ? " #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Nie dostaniesz forsy za to ci niesiesz %tde :" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "Co chcesz zostawiæ? " #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "Ile chcesz zostawiæ? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "Co chcesz kupiæ? " #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "Co chcesz sprzedaæ? " #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Staæ ciê na %d, a mo¿esz unie¶æ %d. " #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "Ile kupujesz? " #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "Posiadasz %d. " #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "Ile sprzedajesz? " #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Wybierz zadanie dla jednej ze swoich %tde..." #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr " S>zpieguj innego dilera (koszt: %P)" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " Z>akapuj glinom na innego dilera (koszt: %P)" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr " W>ypieprz j± z roboty" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "albo K>ontakt ze szpiegami i raporcik" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr " N>ie ma byæ ¿adnego zlecenia ? " #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "SZWKN" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "Kogo chcesz szpiegowaæ? " #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "Na kogo chcesz nas³aæ gliny? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr "Jeste¶ pewien? " #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "YN" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "Na pewno chcesz wyj¶æ? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "Nowe imiê: " #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Zosta³e¶ wyrzucony z serwera. W³±czenie trybu dla jednego gracza." #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "Serwer zosta³ zatrzymany. W³±czenie trybu dla jednego gracza." #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "%s do³±czy³ do gry!" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "%s opu¶ci³ grê." #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "%s bêdzie teraz znany jako %s." #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "P K P" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Niestety jaki¶ cieæ u¿ywa ju¿ twojego nicka. Zmieñ go." #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "N A J L E P S Z E W Y N I K I" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "Nie masz ¿adnej %tde do sprzedania!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "Nie masz nic do opchniêcia!" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Bêdziesz potrzebowa³ wiêcej %tde aby jeszcze unie¶æ %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Nie masz wystarczaj±co du¿o miejsca, aby unie¶æ tê %tde!" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Nie masz tyle kasy na %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "K>upiæ, S>przedaæ, czy W>yj¶æ? " #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "KSW" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "Ile forsy oddajesz Z³otym Pasom? " #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "Nie masz tak du¿o kasy!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Zamierzasz Z>deponowaæ, W>ycofaæ gotówkê czy O>pu¶ciæ bank? " #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "ZWO" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "Ile kasy? " #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "Nie ma tyle gotówki w banku..." #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "T:Tak" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "N:Nie" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "U:Uciekasz" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "A:Atak" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "A:Atakuj" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "E:Ewakuuj siê" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "Naci¶nij dowolny klawisz..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "Statystyka" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "Kasa %17P" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "Zdrowie %3d" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "Bank %17P" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "Debet %16P" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "Miejsce %6d" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Miejsce %6d" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "Twój p³aszcz" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "Szpieg z³o¿y³ raport o %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "" #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "" #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "Nie ma aktualnie innych zalogowanych graczy!" #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "Gracze aktualnie zalogowani:-" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Hej cieciu, oto %tde jakie s± w obiegu:" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "Nie mo¿na obs³u¿yæ przerwania SIGWINCH!" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "Jak siê nazywasz cieciu? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "K>up" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr " S>przedaj" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr " U>pu¶æ" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr " G>adaj P>owiedz " #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr " Z>obacz" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr " D>aj zlecenie" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr " A>takuj" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr " J>ed¼" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr " W>yj¶cie" #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "Czy " #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "A>takujesz" #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "S>toisz" #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "U>ciekasz" #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "D>ilujesz %tde, " #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "czy W>yj¶cie" #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "Po³±czenie z serwerem zerwane! W³±czenie trybu dla jednego gracza" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "KSUGPZDAJW" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "ASUDW" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "Co chcesz zobaczyæ? G>raczy W>yniki" #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "GW" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "Do kogo prywatnie zagadujesz ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "Nawijaj: " #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "Grasz jeszcze raz? " #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "/_Gra" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "/Gra/_Nowa..." #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "" #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "" #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "/Gra/_Wyj¶cie..." #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "/_Rozmowa" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "/Rozmowa/Ze _Wszystkimi..." #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "/Rozmowa/Z _Graczem..." #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "/Z_obacz" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "/Zobacz/_Graczy..." #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "/Zobacz/_Wynik..." #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "/Zobacz/_Plecak..." #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "/_Zlecenia" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "/Zlecenia/_Szpiegowanie..." #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "/Zlecenia/_Zasadzka..." #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "/Zlecenia/_Raport szpiegowski..." #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "/_Pomoc" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "/Pomoc/_O programie..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "Ostrze¿enie" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "Wiadomo¶æ" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "Zakoñczyæ aktualn± grê?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "Wyj¶cie z gry" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "Rozpoczniej now± grê" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "Plecak" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "Po³±czenie z serwerem przerwane - w³±czenie trybu dla jednego gracza" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "Zosta³e¶ wyrzucony z serwera. W³±czenie trybu dla jednego gracza." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "Serwer zosta³ zatrzymany. W³±czenie trybu dla jednego gracza." #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "Podró¿ do miasta %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "_Szpiegowanie (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "_Zasadzka (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "Najlepsze wyniki" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "" #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "Atak" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "_Diluj %Tde" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "_Atakujesz" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "_Stoisz" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "_Uciekasz" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "Zdrowie: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1352 msgid "%/Inventory gun name/%tde" msgstr "" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "Podró¿" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "za %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "Masz teraz %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "Dostêpne miejsce: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "Staæ ciê na %d" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "Kup" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "Sprzedaj" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "Zostaw" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "_Tak" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "_Nie" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "_Atakuj" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "_Ewakuuj siê" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "Pytanie" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "Miejsce" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "Kasa" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "Debet" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "Bank" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "Zdrowie" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "_Jed¼" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "Dilowanie dragami i rozwój" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "Testowanie gry" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "Ekstensywne testowanie gry" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "Konstruktywna krytyka" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "Niekonstruktywna krytyka" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "O grze" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Oparte s± na starej grze `Drug Wars` Johna E. Dell'a. Jest to symulacja\n" "rynku narkotykowego z takimi elementami jak kupowanie, sprzedawanie\n" "i próby ucieczki gliniarzom!\n" "\n" "Najpierw musisz sp³aciæ d³ug Z³otym Pasom. Potem twoim celem jest\n" "zarobienie tak du¿o forsy, jak siê da i pozostanie przy ¿yciu!\n" "Masz jeden miesi±c na zdobycie fortuny.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" "Wersja %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars s± publikowane zgodnie z GNU General Public Licence\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Informacje o komendach linni poleceñ uzyskasz piszaæ dopewars -h po\n" "twoim znaku zachêty. To wy¶wietli ekran pomocy z dostêpnym opcjami.\n" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "Nie ma tyle gotówki w banku..." #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "Kasa: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "Debet: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "Bank %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "Zwróæ:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "Depozyt" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "Wycofaj siê" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "Sp³aæ wszystko" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "Lista graczy" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "Mów do gracza(y)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "Mów do wszystkich graczy" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "Wiadomo¶æ:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "Wy¶lij" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "Szpieguj gracza" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Wybierz gracza, którego chcesz szpiegowaæ. Twoja %tde\n" "zaoferuje wtedy swoje us³ugi temu graczowi, i je¿eli on siê zgodzi,\n" "bêdziesz w stanie zobaczyæ jego statystyki poprzez opcjê\n" "\"Raport szpiegowski\" w menu. Pamiêtaj, ¿e %tde ciê opu¶ci\n" "i jakikolwiek %tde albo %tde, któr± niesie, mo¿e straciæ!" #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "Napu¶æ gliny" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Wybierz gracza, na którego chcesz napu¶ciæ gliny. Twoja %tde\n" "pomo¿e gliniarzom zaatakowaæ gracza i potem wróci, aby zdaæ raport\n" "co siê sta³o. Pamiêtaj, ¿e %tde opu¶ci ciê tymczasowo, tak¿e\n" "jakikolwiek %tde albo %tde, któr± niesie, mo¿e straciæ!" #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Jeste¶ pewien? (%tde albo %tde niesiona\n" "przez tê %tde mog± byæ utracone!)" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "Nazwa" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "Cena" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "Ilo¶æ" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "_Kup ->" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "<- _Sprzedaj" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "_Zostaw <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "%Tde na rynku" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "%Tde w plecaku" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "Zmieñ nicka" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Niestety jaki¶ cieæ u¿ywa ju¿ twojego nicka. Zmieñ go." #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "Raport szpiega" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "dragi" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "broñ" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "Zamknij" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "Port" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "Komentarz" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "Serwer" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "Nowa Gra" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "Status: Czekam na aktywno¶æ usera" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "" #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Nie mogê siê po³±czyæ (%s)" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Próba kontaktu z %s..." #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "%d z %d" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "" #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "" #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "" #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "Wersja" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "Gracze" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "Jak siê _nazywasz cieciu?" #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "Nazwa hosta" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "_Po³±cz" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "Pojedyñczy gracz" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "_Tryb `antyczny`" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "_Rozpocznij grê dla jednego gracza" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "Metaserwer" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "_Zamknij" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "Z_aniechaj" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "_Pomoc" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "usciek³" #: src/serverside.c:73 msgid "defected" msgstr "uszkodzi³" #: src/serverside.c:73 msgid "was shot" msgstr "zosta³ postrzelony" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:121 #, fuzzy, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "komendy i ustawienia serwera dopewars w wersji %s\n" "\n" "help Wy¶wietla ten ekran pomocy\n" "list Listuje zalogowanych graczy\n" "push Grzecznie prosi danego gracza o opuszczenie " "serwera\n" "kill Natychmiast zrywa po³±czenie z danym graczem\n" "msg: Wysy³a wiadomo¶æ do wszystkich graczy\n" "quit Wyj¶cie po uprzednim poinformowaniu o tym graczy\n" "= Ustawienie dla zmiennej podanej warto¶ci\n" " Wy¶wietlenie waroto¶ci danej zmiennej\n" "[x].= Ustawia zmiennej z listy o indeksie x, dan± " "warto¶æ\n" "[x]. Wy¶wietla warto¶æ danej zmiennej z listy\n" "\n" "Prawid³owe zmienne s± poni¿ej:-\n" "\n" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "" #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "" #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "" #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "MaxClients (%d) przekoroczona warto¶æ - zrywam po³±czenie" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Przykro mi, ale serwer ma limit do 1 gracza, który zosta³ osi±gniêty. " "^Proszê spróbowaæ po³±czyæ siê pó¼niej." #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Przykro mi, ale serwer ma limit %d graczy, który zosta³ osi±gniêty.^Proszê " "spróbowaæ po³±czyæ siê pó¼niej." #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "%s bêdzie znany jako %s" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "Twój czas dilerki dobieg³ koñca..." #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: ZABRONIONY przejazd do %s" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "%s teraz szpieguje %s" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s szpiegowanie %s: ZABRONIONE" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s nas³a³ gliny na %s" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s na³anie glin na %S: ZABRONIONE" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "U¿ywam pliku %s" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Nie mo¿na utworzyæ pliku pid %s: %s" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "" #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "" #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "serwer dopewars w wersji %s gotowy i oczekuje po³±czeñna porcie %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Nie mo¿na obs³u¿yæ przerwania SIGUSR1!" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Nie mo¿na obs³u¿yæ przerwania SIGHUP!" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "Nie mo¿na obs³u¿yæ przerwania SIGINT!" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Nie mo¿na obs³u¿yæ przerwania SIGTERM!" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "Nie mo¿na ob³u¿yæ potoku!" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "U¿ytkownicy aktualnie zalogowani:=\n" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "Nie ma ¿adnych zalogowanych u¿ytkowników\n" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "Wywalam %s\n" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "Nie ma takiego u¿ytkownika!\n" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "%s zabity\n" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "Nieznana komenda - spróbuj \"help\",aby uzyskaæ pomoc...\n" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "po³±czenie z %s" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "" #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "%s opuszcza serwer!" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1280 msgid "New admin connection" msgstr "" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "" #: src/serverside.c:1728 msgid "Command:" msgstr "" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "Nie mo¿na odczytaæ pliku z najlepszymi wynikami %s" #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "" #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Nie mo¿na otworzyæ pliku z najlepszymi wynikami %s. (%s)\n" "Upewnij siê, ¿e masz dostêp do pliku i katalogu, albo podaj nazwê\n" "alternatywnego pliku poprzez opcjê -f z linni poleceñ." #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "Nie mo¿na odczytaæ pliku z najlepszymi wynikami %s" #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "Gratulacje! Wpiszesz siê na karty historii!" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "Nawet siê nie wpiszesz, cieniasie..." #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "Nie mo¿na zapisaæ do pliku z najlepszymi wynikami %s" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Zasadzkê zrobi³ %s" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Jeden z twoich %tde chodzi³ za %s.^Szpieg %s!" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Twój szpieg pracuj±cy nad %s zosta³ odkryty!^Szpieg %s!" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "Jaka¶ kobieta stoj±ca obok na dworcu powiedzia³a^\"%s\"%s" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (tak ci siê przynajmniej wydaje, ¿e TO powiedzia³a)" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "S³yszysz jak kto¶ puszcza %s" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Chcia³by¶ odwiedziæ %tde?" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Chcia³by¶ wynaj±æ %tde za %P?" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s ju¿ tu jest!^A>takujesz czy E>wakuujesz siê?" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "" #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: kablowanie %s zakoñczone OK." #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" "Dziêki twoim wskazówkom gliny zasadzi³y siê na %s, który zosta³ zastrzelony" #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Dziêki twoim wskazówkom gliny zasadzi³y siê na %s, który uciek³ z %d %tde. " #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^P³acisz doktorowi %P, ¿eby ciê pozszywa³?" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "Zosta³e¶ obrzygany w poci±gu!" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Spotykasz starego dilera! Daje ci %d %tde." #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Spotka³e¶ przyjaciela! Dajesz mu %d %tde." #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "Wy³±czono RandomOffer" #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Policyjne psy skoczy³y ci do gard³a %d! Upu¶ci³e¶ jakie¶ %tde! Ale " "rozpierdol!dresie!" #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Znalaz³e¶ %d %tde przy zw³okach jakiego¶ æpuna w WC!" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "Mamu¶ka zrobi³a ci kanapki z odrobin± %tde! By³y super!" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "" "YN^Znalaz³e¶ trochê ziela, które pachnie tak ¶wie¿o!^Dobrze wygl±da! " "Zapalisz? " #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "Zatrzymujesz siê i %s." #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Chcia³byæ kupiæ wiêkszy p³aszcz za %P?" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^Hej kole¶! Pomogê ci ponie¶æ %tde za jedyne %P. Zgadzasz siê?" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Chcia³by¶ kupiæ %tde za %P?" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: propozycja by³a na rachunek %s" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "" "%s zaakceptowa³ twój %tde!^U¿yj klawisza G, aby skontaktowaæ siê ze szpiegiem" #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Mia³e¶ haluny przez trzy dni i najlepszego tripa w swoim ¿yciu!^Potem " "umar³e¶, bo dla twojego mózga ta wycieczka by³a za mocna!" #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "Za pó¼no - %s w³a¶nie zwia³!" #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "%s odmówi³ %tde" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "" #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "" #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "Gracz usuniêty przez przekroczenie czasu na ruch" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "Gracz usuniêty przez przekroczenia czasu przy po³±czeniu" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "" #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "" #: src/error.c:160 msgid "WinSock version not supported" msgstr "" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "" #: src/error.c:162 msgid "Address already in use" msgstr "" #: src/error.c:163 msgid "Cannot reach the network" msgstr "" #: src/error.c:164 msgid "The connection timed out" msgstr "" #: src/error.c:165 msgid "Out of file descriptors" msgstr "" #: src/error.c:166 msgid "Out of buffer space" msgstr "" #: src/error.c:167 msgid "Operation not supported" msgstr "" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "" #: src/error.c:169 msgid "Connection reset by remote host" msgstr "" #: src/error.c:170 msgid "Connection refused" msgstr "" #: src/error.c:171 msgid "Address family not supported" msgstr "" #: src/error.c:172 msgid "Protocol not supported" msgstr "" #: src/error.c:173 msgid "Socket type not supported" msgstr "" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "" #: src/message.c:1167 msgid "Do you run?" msgstr "Uciekasz?" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "Uciekasz czy Atakujesz?" #: src/message.c:1369 msgid "pitifully armed" msgstr "beznadziejnie uzbrojony" #: src/message.c:1370 msgid "lightly armed" msgstr "lekko uzbrojony" #: src/message.c:1371 msgid "moderately well armed" msgstr "ca³kiem nie¼le uzbrojony" #: src/message.c:1372 msgid "heavily armed" msgstr "dobrze uzbrojony" #: src/message.c:1372 msgid "armed to the teeth" msgstr "kurewsko uzbrojony po zêby" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s przyby³, z %d %tde, %s" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "%s stoi i dostaje." #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "Stoisz tam jak idiota." #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "" #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "" #: src/message.c:1410 #, fuzzy, c-format msgid "%s has got away to %tde!" msgstr "%s zwia³!" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "%s zwia³!" #: src/message.c:1416 msgid "You got away!" msgstr "" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "" #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "" #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "" #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "" #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "Trafisz i zabijasz %s" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "" #: src/message.c:1469 msgid " You find %P on the body!" msgstr "" #: src/message.c:1471 msgid " You loot the body!" msgstr "" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "" #: src/network.c:447 msgid "403: forbidden" msgstr "" #: src/network.c:450 msgid "404: page not found" msgstr "" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Nie mo¿na po³±czyæ siê z serwerem dopewars\n" "(%s)\n" "Gracz AI zakoñczy³ rozrgrywkê w nietypowy sposób." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Po³±czenie nawi±zane\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "Gracz AI rozpocz±³ grê; próba kontaktu z serwerem %s:%d..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "Gracz AI zakoñczy³ rozgrywkê.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Po³±czenie z serwerem przerwane!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "U¿ywa imienia %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Gracze w grze:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s do³±czy³ do gry.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s opu¶ci³ grê.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Jedziesz do %tde z %P kas± i %P debetem\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "Gracz AI zabity. Normalne wyj¶cie.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Czas gry siê skoñczy³. Opuszczam grê.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "Gracz AI wyrzucony z serwera.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Serwer zakoñczy³ pracê.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Sprzedajê %d %tde w %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Kupujê %d %tde w %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Kupujê %tde za %P na ruskim bazarze z broni±\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "D³ug %P zosta³ sp³acony Z³otym Pasom\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Siedziba Z³otych Pasów jest w mie¶cie %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Sklep z broni± jest w mie¶cie %s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Dyskoteka jest w mie¶cie %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "Bank jest w mie¶cie %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Nazywacie siê dilerami?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Wytrenowana ma³pa zrobi³aby to lepiej..." #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "My¶lisz, ¿e jeste¶ taki twardy, aby ze mn± dilowaæ?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... dilujesz cukiereczku czy co?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Uwa¿am, ¿e powiniennem ciê zastrzeliæ dla twojego w³asnego dobra." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Program zosta³ skompilowany bez wsparcia dla sieci i nie mo¿e zachowywaæ siê " "jakby by³ komputerowym graczem.\n" "Skonfiguruj z opcj± --enable-networking i przekompiluj" #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" dopewars-1.5.12/po/de.po0000644001565000007070000036146610355323333011740 00000000000000# German translation for dopewars # Copyright (C) 2000 Free Software Foundation, Inc. # Created by Ben Webb , Sep 2000, based on # Eric Steiner' translated dopewars client - For translation Errors mail me at eric_st@aon.at or fix the Code yourself # Fixed Grammatical Errors and other Stuff on Tobias Mathes tobi@ideenpark.de Translation # So this is based on his translation but i corrected Grammar Bugs and added new Translations to the File # This is still far away from done, guess there are lots of bugs still in it, you are encouraged to fix it ;-) msgid "" msgstr "" "Project-Id-Version: dopewars-1.5.3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-12-30 13:30-0800\n" "PO-Revision-Date: 2001-04-08 15:48+0100\n" "Last-Translator: Eric Steiner \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Name of a single bitch - if you need to use different words for #. * "bitch" depending on where in the sentence it occurs (e.g. subject or #. * object) then read doc/i18n.html about the %tde (etc.) notation. N.B. #. * This notation can be used for most of the translatable strings in #. * dopewars. #: src/dopewars.c:178 msgid "bitch" msgstr "Hure" #. Word used for two or more bitches #: src/dopewars.c:180 msgid "bitches" msgstr "Huren" #. Word used for a single gun #: src/dopewars.c:182 msgid "gun" msgstr "Waffe" #. Word used for two or more guns #: src/dopewars.c:184 msgid "guns" msgstr "Waffen" #. Word used for a single drug #: src/dopewars.c:186 msgid "drug" msgstr "Droge" #. Word used for two or more drugs #: src/dopewars.c:188 msgid "drugs" msgstr "Drogen" #. String for displaying the game date or turn number. This is passed #. * to the strftime() function, with the exception that %T is used to #. * mean the turn number rather than the calendar date. #: src/dopewars.c:192 msgid "%m-%d-%Y" msgstr "" #. Names of the loan shark, the bank, the gun shop, and the pub, #. * respectively #: src/dopewars.c:195 msgid "the Loan Shark" msgstr "den Kredithai" #: src/dopewars.c:195 msgid "the Bank" msgstr "die Bank" #: src/dopewars.c:196 msgid "Dan's House of Guns" msgstr "Otto's Haus der Waffen" #: src/dopewars.c:196 msgid "the pub" msgstr "den Irish Pub" #. The following strings are the helptexts for all the options that can #. * be set in a dopewars configuration file, or in the server. See #. * doc/configfile.html for more detailed explanations. #: src/dopewars.c:236 msgid "Network port to connect to" msgstr "Netzwerk-Port" #: src/dopewars.c:239 msgid "Name of the high score file" msgstr "Name der Highscore Datei" #: src/dopewars.c:242 msgid "Name of the server to connect to" msgstr "Verbinde zu Server [Name]" #: src/dopewars.c:245 msgid "Server's welcome message of the day" msgstr "" #: src/dopewars.c:248 msgid "Network address for the server to listen on" msgstr "Netzwerkadresse für den Server" #: src/dopewars.c:252 msgid "TRUE if a SOCKS server should be used for networking" msgstr "" #: src/dopewars.c:256 msgid "TRUE if numeric user IDs should be used for SOCKS4" msgstr "" #: src/dopewars.c:260 msgid "If not blank, the username to use for SOCKS4" msgstr "Leer lassen wenn kein Benutzername für SOCKS4 benutzt wird" #: src/dopewars.c:263 msgid "The hostname of a SOCKS server to use" msgstr "Der Rechnername des SOCKS Server" #: src/dopewars.c:266 msgid "The port number of a SOCKS server to use" msgstr "Die Port Adresse des SOCKS Server" #: src/dopewars.c:269 msgid "The version of the SOCKS protocol to use (4 or 5)" msgstr "Die Version des SOCKS Protokolls (4 oder 5)" #: src/dopewars.c:272 msgid "Username for SOCKS5 authentication" msgstr "Benutzername SOCKS5 Authentifizierung" #: src/dopewars.c:275 msgid "Password for SOCKS5 authentication" msgstr "Passwort SOCKS5 Authentifizierung" #: src/dopewars.c:278 msgid "TRUE if server should report to a metaserver" msgstr "\"TRUE\" = Lokaler Server meldet sich beim MetaServer an." #: src/dopewars.c:281 msgid "Metaserver name to report/get server details to/from" msgstr "Metaserver Name um Server Details zu senden/erhalten" #: src/dopewars.c:284 msgid "Port for metaserver communication" msgstr "Port für MetaServer Kommunikation" #: src/dopewars.c:287 msgid "Name of a proxy for metaserver communication" msgstr "Proxyname für Metaserver Kommunikation" #: src/dopewars.c:290 msgid "Port for communicating with the proxy server" msgstr "Port für die Kommunikation mit dem Proxy" #: src/dopewars.c:293 msgid "Path of the script on the metaserver" msgstr "Pfad des CGI-Skriptes auf dem MetaServer" #: src/dopewars.c:296 msgid "Preferred hostname of your server machine" msgstr "Bevorzugter ServerName" #: src/dopewars.c:299 msgid "Authentication for LocalName with the metaserver" msgstr "Authentifizierung für LocalName mit MetaServer" #: src/dopewars.c:302 msgid "Server description, reported to the metaserver" msgstr "Server Beschreibung, die an den Metaserver gemeldet wird" #: src/dopewars.c:305 msgid "If TRUE, use SOCKS for metaserver communication" msgstr "TRUE = Socks für Metaserver Kommunikation benutzen" #: src/dopewars.c:308 msgid "Username for HTTP Basic authentication" msgstr "Benutzername für HTTP Basis Authentifizierung" #: src/dopewars.c:312 msgid "Password for HTTP Basic authentication" msgstr "Passwort für HTTP Basis Authentifizierung" #: src/dopewars.c:315 msgid "Username for HTTP Basic proxy authentication" msgstr "Benutzername für HTTP Basis Proxy Authentifizierung" #: src/dopewars.c:319 msgid "Password for HTTP Basic proxy authentication" msgstr "Passwort für HTTP Basis Proxy Authentifizierung" #: src/dopewars.c:324 msgid "If TRUE, the server minimizes to the System Tray" msgstr "Wenn TRUE minimiert der Server in der Taskleiste" #: src/dopewars.c:328 msgid "If TRUE, the server runs in the background" msgstr "TRUE = Server läuft im Hintergrund" #: src/dopewars.c:331 msgid "The command used to start your web browser" msgstr "Das Kommando zum Starten Ihres Web Browsers" #: src/dopewars.c:335 msgid "No. of game turns (if 0, game never ends)" msgstr "Anzahl der Spielrunden (0 = unendlich)" #: src/dopewars.c:338 msgid "Day of the month on which the game starts" msgstr "Tag des Monats an dem das Spiel startet" #: src/dopewars.c:341 msgid "Month in which the game starts" msgstr "Monat in dem das Spiel startet" #: src/dopewars.c:344 msgid "Year in which the game starts" msgstr "Jahr in dem das Spiel starten" #: src/dopewars.c:347 msgid "The currency symbol (e.g. $)" msgstr "Das Währungssymbol (z.B. $)" #: src/dopewars.c:350 msgid "If TRUE, the currency symbol precedes prices" msgstr "Wenn TRUE Währungssymbol dem Preis voranstellen" #: src/dopewars.c:353 msgid "File to write log messages to" msgstr "Dateiname in welche die Logs geschrieben werden sollen" #: src/dopewars.c:356 msgid "Controls the number of log messages produced" msgstr "Kontrolliert die Anzahl der erzeugten Log Nachrichten" #: src/dopewars.c:359 msgid "strftime() format string for log timestamps" msgstr "" #: src/dopewars.c:362 msgid "Random events are sanitized" msgstr "Zufallsereignisse" #: src/dopewars.c:365 msgid "TRUE if the value of bought drugs should be saved" msgstr "Wenn TRUE Wert der gekauften Drogen speichern" #: src/dopewars.c:368 msgid "Be verbose in processing config file" msgstr "Für die Fehlersuche hilfreiche Nachrichten erzeugen" #: src/dopewars.c:371 msgid "Number of locations in the game" msgstr "Anzahl der Orte im Spiel" #: src/dopewars.c:375 msgid "Number of types of cop in the game" msgstr "Anzahl der Polizisten im Spiel" #: src/dopewars.c:379 msgid "Number of guns in the game" msgstr "Anzahl der Waffen im Spiel" #: src/dopewars.c:383 msgid "Number of drugs in the game" msgstr "Anzahl der Drogen im Spiel" #: src/dopewars.c:387 msgid "Location of the Loan Shark" msgstr "Aufenthaltsort des Kredithais" #: src/dopewars.c:389 msgid "Location of the bank" msgstr "Aufenthaltsort der Bank" #: src/dopewars.c:392 msgid "Location of the gun shop" msgstr "Aufenthaltsort des Waffenladens" #: src/dopewars.c:395 msgid "Location of the pub" msgstr "Aufenthaltsort des Pubs" #: src/dopewars.c:398 msgid "Daily interest rate on the loan shark debt" msgstr "Täglicher Zins Satz ihres Kredites" #: src/dopewars.c:401 msgid "Daily interest rate on your bank balance" msgstr "Täglicher Zins Satz ihres Bankguthabens" #: src/dopewars.c:404 msgid "Name of the loan shark" msgstr "Name des Kredithais" #: src/dopewars.c:406 msgid "Name of the bank" msgstr "Name der Bank" #: src/dopewars.c:408 msgid "Name of the gun shop" msgstr "Name des Waffenladens" #: src/dopewars.c:410 msgid "Name of the pub" msgstr "Name des Pubs" #: src/dopewars.c:412 msgid "TRUE if sounds should be enabled" msgstr "Wenn TRUE Sounds aktiviert" #: src/dopewars.c:415 msgid "Sound file played for a gun \"hit\"" msgstr "Sound Datei TREFFER" #: src/dopewars.c:418 msgid "Sound file played for a gun \"miss\"" msgstr "Sound Datei MISSLUNGENDER SCHUSS" #: src/dopewars.c:421 msgid "Sound file played when guns are reloaded" msgstr "Sound Datei NACHLADEN" #: src/dopewars.c:424 msgid "Sound file played when an enemy bitch/deputy is killed" msgstr "Sound Datei wenn feindl. Hure/Deputy getötet wurde" #: src/dopewars.c:427 msgid "Sound file played when one of your bitches is killed" msgstr "Sound Datei wenn eigene Hure getötet wurde" #: src/dopewars.c:430 msgid "Sound file played when another player or cop is killed" msgstr "Sound Datei wenn anderer Spieler oder Cop getötet wird" #: src/dopewars.c:433 msgid "Sound file played when you are killed" msgstr "Sound Datei wenn Spieler getötet wird" #: src/dopewars.c:436 msgid "Sound file played when a player tries to escape, but fails" msgstr "Sound Datei ERFOLGLOSE FLUCHT eines Spielers" #: src/dopewars.c:439 msgid "Sound file played when you try to escape, but fail" msgstr "Sound Datei ERFOLGLOSE FLUCHT des Spielers" #: src/dopewars.c:442 msgid "Sound file played when a player successfully escapes" msgstr "Sound Datei ERFOLGREICHE FLUCHT eines Spielers" #: src/dopewars.c:445 msgid "Sound file played when you successfully escape" msgstr "Sound Datei ERFOLGREICHE FLUCHT des Spielers" #: src/dopewars.c:448 msgid "Sound file played on arriving at a new location" msgstr "Sound Datei ANKUNFT NEUER ORT" #: src/dopewars.c:451 msgid "Sound file played when a player sends a public chat message" msgstr "Sound Datei ÖFFENTLICHE CHAT NACHRICHT" #: src/dopewars.c:454 msgid "Sound file played when a player sends a private chat message" msgstr "Sound Datei PRIVATE CHAT NACHRICHT" #: src/dopewars.c:457 msgid "Sound file played when a player joins the game" msgstr "Sound Datei SPIELER BEITRITT" #: src/dopewars.c:460 msgid "Sound file played when a player leaves the game" msgstr "Sound Datei SPIELER AUSSTIEG" #: src/dopewars.c:463 msgid "Sound file played at the start of the game" msgstr "Sound Datei SPIELSTART" #: src/dopewars.c:466 msgid "Sound file played at the end of the game" msgstr "Sound Datei SPIEL ENDE" #: src/dopewars.c:469 msgid "Sort key for listing available drugs" msgstr "Taste für Auflistung vorhandener Drogen" #: src/dopewars.c:472 msgid "No. of seconds in which to return fire" msgstr "Sekundenanzahl für Erwiedern des Feuers" #: src/dopewars.c:475 msgid "Players are disconnected after this many seconds" msgstr "Spieler werden nach Ablauf dieser Sekunden getrennt" #: src/dopewars.c:478 msgid "Time in seconds for connections to be made or broken" msgstr "Sekundenanzahl um Verbindungen herzustellen oder zu beenden" #: src/dopewars.c:481 msgid "Maximum number of TCP/IP connections" msgstr "Maximale Anzahl der TCP/IP Verbindungen" #: src/dopewars.c:484 msgid "Seconds between turns of AI players" msgstr "Rundenabstand in Sekunden für KI Spieler" #: src/dopewars.c:487 msgid "Amount of cash that each player starts with" msgstr "Startkapital der Spieler" #: src/dopewars.c:490 msgid "Amount of debt that each player starts with" msgstr "Anfangsschulden der Spieler" #: src/dopewars.c:493 msgid "Name of each location" msgstr "Namen der Orte" #: src/dopewars.c:497 msgid "Police presence at each location (%)" msgstr "Polizeipräsenz (Orte) (%)" #: src/dopewars.c:501 msgid "Minimum number of drugs at each location" msgstr "Mindest Anzahl der Drogen an jedem Ort" #: src/dopewars.c:505 msgid "Maximum number of drugs at each location" msgstr "Maximal Anzahl der Drogen an jedem Ort" #: src/dopewars.c:509 msgid "% resistance to gunshots of each player" msgstr "% Treffer Wiederstandsfähigkeit der Spieler" #: src/dopewars.c:512 msgid "% resistance to gunshots of each bitch" msgstr "% Treffer Wiederstandsfähigkeit der Huren" #: src/dopewars.c:515 msgid "Name of each cop" msgstr "Name der Polizisten" #: src/dopewars.c:519 msgid "Name of each cop's deputy" msgstr "Name des Deputies" #: src/dopewars.c:523 msgid "Name of each cop's deputies" msgstr "Name der Deputies" #: src/dopewars.c:527 msgid "% resistance to gunshots of each cop" msgstr "% Treffer Wiederstandsfähigkeit jedes Polizisten" #: src/dopewars.c:531 msgid "% resistance to gunshots of each deputy" msgstr "% Treffer Wiederstandsfähigkeit jedes Deputies" #: src/dopewars.c:535 msgid "Attack penalty relative to a player" msgstr "Angriffsstrafe im Verhältnis zu einem Spieler" #: src/dopewars.c:539 msgid "Defend penalty relative to a player" msgstr "Verteidigungsstrafe im Verhältnis zu einem Spieler" #: src/dopewars.c:543 msgid "Minimum number of accompanying deputies" msgstr "Minimale Anzahl der begleitenden Deputies" #: src/dopewars.c:547 msgid "Maximum number of accompanying deputies" msgstr "Maximale Anzahl der begleitenden Deputies" #: src/dopewars.c:551 msgid "Zero-based index of the gun that cops are armed with" msgstr "" #: src/dopewars.c:555 msgid "Number of guns that each cop carries" msgstr "Anzahl der Waffen die jeder Polizist trägt" #: src/dopewars.c:559 msgid "Number of guns that each deputy carries" msgstr "Anzahl der Waffen die jeder Deputie trägt" #: src/dopewars.c:563 msgid "Name of each drug" msgstr "Name jeder Droge" #: src/dopewars.c:567 msgid "Minimum normal price of each drug" msgstr "Mindest Standard Preis jeder Droge" #: src/dopewars.c:571 msgid "Maximum normal price of each drug" msgstr "Maximal Standard Preis jeder Droge" #: src/dopewars.c:575 msgid "TRUE if this drug can be specially cheap" msgstr "TRUE wenn diese Droge extrem billig sein darf" #: src/dopewars.c:579 msgid "TRUE if this drug can be specially expensive" msgstr "TRUE wenn diese Droge extrem teuer sein darf" #: src/dopewars.c:583 msgid "Message displayed when this drug is specially cheap" msgstr "" "Nachricht die angezeigt wird wenn diese Droge besonders billig erhältlich ist" #: src/dopewars.c:587 src/dopewars.c:590 #, c-format msgid "Format string used for expensive drugs 50% of time" msgstr "" "Format String der für teure Drogen mit 50%iger Wahrscheinlichkeit benutzt " "wird" #: src/dopewars.c:593 msgid "Divider for drug price when it's specially cheap" msgstr "" "Teiler der für den Drogenpreis benutzt wird wenn dieser besonders billig ist" #: src/dopewars.c:597 msgid "Multiplier for specially expensive drug prices" msgstr "Multiplikationsfaktor bei extrem hohen Drogenpreisen" #: src/dopewars.c:600 msgid "Name of each gun" msgstr "Name jeder Waffe" #: src/dopewars.c:604 msgid "Price of each gun" msgstr "Preis jeder Waffe" #: src/dopewars.c:608 msgid "Space taken by each gun" msgstr "Platzverbrauch jeder Waffe" #: src/dopewars.c:612 msgid "Damage done by each gun" msgstr "Schaden jeder Waffe" #: src/dopewars.c:616 msgid "Word used to denote a single \"bitch\"" msgstr "Wie soll eine einzelne Hure bezeichnet werden?" #: src/dopewars.c:619 msgid "Word used to denote two or more \"bitches\"" msgstr "Wie sollen 2 oder mehrere Huren bezeichnet werden?" #: src/dopewars.c:622 msgid "Word used to denote a single gun or equivalent" msgstr "Wie soll eine einzelne oder gleichwertige Waffe bezeichnet werden?" #: src/dopewars.c:625 msgid "Word used to denote two or more guns" msgstr "Wie sollen 2 oder mehrere Waffen bezeichnet werden?" #: src/dopewars.c:628 msgid "Word used to denote a single drug or equivalent" msgstr "Wie soll eine einzelne oder gleichwertige Droge bezeichnet werden?" #: src/dopewars.c:631 msgid "Word used to denote two or more drugs" msgstr "Wie sollen 2 oder mehrere Drogen bezeichnet werden?" #: src/dopewars.c:634 msgid "strftime() format string for displaying the game turn" msgstr "strftime() Format String um den Spiel Zug anzuzeigen" #: src/dopewars.c:637 msgid "Cost for a bitch to spy on the enemy" msgstr "Geldbetrag den eine Hure verlangt damit sie demFeind nachspioniert" #: src/dopewars.c:640 msgid "Cost for a bitch to tipoff the cops to an enemy" msgstr "" "Geldbetrag den eine Hure verlangt um die Polizei auf einen Feind aufmerksam " "zu machen" #: src/dopewars.c:643 msgid "Minimum price to hire a bitch" msgstr "" "Minimaler Geldbetrag den eine Hure verlangt um angeheuert werden zu können" #: src/dopewars.c:646 msgid "Maximum price to hire a bitch" msgstr "" "Maximaler Geldbetrag den eine Hure verlangt um angeheuert werden zu können" #: src/dopewars.c:649 msgid "List of things which you overhear on the subway" msgstr "Liste der U-Bahn Ansagen" #: src/dopewars.c:652 msgid "Number of subway sayings" msgstr "Anzahl der U-Bahn Ansagen" #: src/dopewars.c:655 msgid "List of songs which you can hear playing" msgstr "Liste der Lieder die Du hören kannst" #: src/dopewars.c:658 msgid "Number of playing songs" msgstr "Anzahl der spielbaren Lieder" #: src/dopewars.c:661 msgid "List of things which you can stop to do" msgstr "Liste der Dinge die du machen kannst" #: src/dopewars.c:664 msgid "Number of things which you can stop to do" msgstr "Anzahl der Dinge die du machen kannst" #. Default list of songs that you can hear playing (N.B. this can be #. * overridden in the configuration file with the "Playing" variable) - #. * look for "You hear someone playing %s" to see how these are used. #: src/dopewars.c:674 msgid "`Are you Experienced` by Jimi Hendrix" msgstr "`Are you Experienced` von Jimi Hendrix" #: src/dopewars.c:675 msgid "`Cheeba Cheeba` by Tone Loc" msgstr "`Cheeba Cheeba` von Tone Loc" #: src/dopewars.c:676 msgid "`Comin` in to Los Angeles` by Arlo Guthrie" msgstr "`Comin` in to Los Angeles` von Arlo Guthrie" #: src/dopewars.c:677 msgid "`Commercial` by Spanky and Our Gang" msgstr "" #: src/dopewars.c:678 msgid "`Late in the Evening` by Paul Simon" msgstr "`Late in the Evening` von Paul Simon" #: src/dopewars.c:679 msgid "`Light Up` by Styx" msgstr "`Light Up` von Styx" #: src/dopewars.c:680 msgid "`Mexico` by Jefferson Airplane" msgstr "`Mexico` von Jefferson Airplane" #: src/dopewars.c:681 msgid "`One toke over the line` by Brewer & Shipley" msgstr "`One toke over the line` von Brewer & Shipley" #: src/dopewars.c:682 msgid "`The Smokeout` by Shel Silverstein" msgstr "`The Smokeout` von Shel Silverstein" #: src/dopewars.c:683 msgid "`White Rabbit` by Jefferson Airplane" msgstr "`White Rabbit` von Jefferson Airplane" #: src/dopewars.c:684 msgid "`Itchycoo Park` by Small Faces" msgstr "`Itchycoo Park` von Small Faces" #: src/dopewars.c:685 msgid "`White Punks on Dope` by the Tubes" msgstr "`White Punks on Dope` von den Tubes" #: src/dopewars.c:686 msgid "`Legend of a Mind` by the Moody Blues" msgstr "`Legend of a Mind` von Moody Blues" #: src/dopewars.c:687 msgid "`Eight Miles High` by the Byrds" msgstr "`Eight Miles High` von den Byrds" #: src/dopewars.c:688 msgid "`Acapulco Gold` by Riders of the Purple Sage" msgstr "`Acapulco Gold` von Riders of the Purple Sage" #: src/dopewars.c:689 msgid "`Kicks` by Paul Revere & the Raiders" msgstr "`Kicks` von Paul Revere & den Raiders" #: src/dopewars.c:690 msgid "the Nixon tapes" msgstr "" #: src/dopewars.c:691 msgid "`Legalize It` by Mojo Nixon & Skid Roper" msgstr "`Legalize It` von Mojo Nixon & Skid Roper" #. Default list of things which you can "stop to do" (random events that #. * cost you a little money). These can be overridden with the "StoppedTo" #. * variable in the configuration file. See the later string "You stopped #. * to %s." to see how these strings are used. #: src/dopewars.c:700 msgid "have a beer" msgstr "dein Bier zu trinken" #: src/dopewars.c:701 msgid "smoke a joint" msgstr "den Joint zu rauchen" #: src/dopewars.c:702 msgid "smoke a cigar" msgstr "deine Zigarre zu rauchen" #: src/dopewars.c:703 msgid "smoke a Djarum" msgstr "deine Bong zu rauchen" #: src/dopewars.c:704 msgid "smoke a cigarette" msgstr "deine Zigarette zu rauchen" #. Name of the first police officer to attack you #: src/dopewars.c:709 msgid "Officer Hardass" msgstr "Hauptmann Schleifer" #. Name of a single deputy of the first police officer #: src/dopewars.c:711 src/dopewars.c:715 msgid "deputy" msgstr "Deputy" #. Word used for more than one deputy of the first police officer #: src/dopewars.c:713 src/dopewars.c:715 msgid "deputies" msgstr "Deputies" #. Ditto, for the other police officers #: src/dopewars.c:715 msgid "Officer Bob" msgstr "Hauptmann Steiner" #: src/dopewars.c:717 msgid "Agent Smith" msgstr "Agent Schmidt" #: src/dopewars.c:717 msgid "cop" msgstr "Polizist" #: src/dopewars.c:717 msgid "cops" msgstr "Polizisten" #. The names of the default guns #: src/dopewars.c:722 msgid "Baretta" msgstr "Baretta" #: src/dopewars.c:723 msgid ".38 Special" msgstr "38er Spezial" #: src/dopewars.c:724 msgid "Ruger" msgstr "Ruger" #: src/dopewars.c:725 msgid "Saturday Night Special" msgstr "Samstag Nacht Spezial" #. The names of the default drugs, and the messages displayed when they #. * are specially cheap or expensive #: src/dopewars.c:731 msgid "Acid" msgstr "Acid" #: src/dopewars.c:732 msgid "The market is flooded with cheap home-made acid!" msgstr "" "Der Markt wird mit billigem selbst hergestelltem Acid geradezu überflutet" #: src/dopewars.c:733 msgid "Cocaine" msgstr "Kokain" #: src/dopewars.c:734 msgid "Hashish" msgstr "Haschisch" #: src/dopewars.c:735 msgid "The Marrakesh Express has arrived!" msgstr "Der Marrakesch Express ist da!" #: src/dopewars.c:736 msgid "Heroin" msgstr "Heroin" #: src/dopewars.c:737 msgid "Ludes" msgstr "Medikamente" #: src/dopewars.c:738 msgid "Rival drug dealers raided a pharmacy and are selling cheap ludes!" msgstr "" "Alter, gerade haben Drogen Dealer ne Apotheke geplündert und verschneiden " "den Stoff nun ziemlich billig" #: src/dopewars.c:739 msgid "MDA" msgstr "MDMA" #: src/dopewars.c:740 msgid "Opium" msgstr "Opium" #: src/dopewars.c:741 msgid "PCP" msgstr "PCP" #: src/dopewars.c:742 msgid "Peyote" msgstr "Peyote" #: src/dopewars.c:743 msgid "Shrooms" msgstr "Shrooms" #: src/dopewars.c:744 msgid "Speed" msgstr "Speed" #: src/dopewars.c:745 msgid "Weed" msgstr "Weed" #: src/dopewars.c:746 msgid "" "Columbian freighter dusted the Coast Guard! Weed prices have bottomed out!" msgstr "" "Kolumbianischer Frachter abgefangen. Weedpreise haben Tiefpunkt erreicht." #. The names of the default locations #: src/dopewars.c:754 msgid "Bronx" msgstr "Bronx" #: src/dopewars.c:755 msgid "Ghetto" msgstr "Ghetto" #: src/dopewars.c:756 msgid "Central Park" msgstr "Central Park" #: src/dopewars.c:757 msgid "Manhattan" msgstr "Manhattan" #: src/dopewars.c:758 msgid "Coney Island" msgstr "Coney Island" #: src/dopewars.c:759 msgid "Brooklyn" msgstr "Brooklyn" #: src/dopewars.c:760 msgid "Queens" msgstr "Queens" #: src/dopewars.c:761 msgid "Staten Island" msgstr "Staten Island" #. Messages displayed for drug busts, etc. #: src/dopewars.c:767 #, c-format msgid "Cops made a big %tde bust! Prices are outrageous!" msgstr "" "Die Polizei hat %tde-Lieferung an der Grenze abgepasst. Preise schießen in " "die Höhe." #: src/dopewars.c:768 #, c-format msgid "Addicts are buying %tde at ridiculous prices!" msgstr "Süchtige reißen dir %tde förmlich aus den Händen" #. Default list of things which the "lady on the subway" can tell you #. * (N.B. can be overridden with the "SubwaySaying" config. file #. * variable). Look for "the lady next to you" to see how these strings #. * are used. #: src/dopewars.c:778 msgid "Wouldn't it be funny if everyone suddenly quacked at once?" msgstr "Morgens ein Joint, und der Tag ist dein Freund" #: src/dopewars.c:779 msgid "The Pope was once Jewish, you know" msgstr "Der Papst war mal Jude, weißte?" #: src/dopewars.c:780 msgid "I'll bet you have some really interesting dreams" msgstr "Ich möchte wetten das du interessante Träume hast." #: src/dopewars.c:781 msgid "So I think I'm going to Amsterdam this year" msgstr "Ich denk ich besuch dieses Jahr mal wieder Amsterdam" #: src/dopewars.c:782 msgid "Son, you need a yellow haircut" msgstr "Mein Sohn, du brauchst mal nen neuen Haarschnitt" #: src/dopewars.c:783 msgid "I think it's wonderful what they're doing with incense these days" msgstr "Ist es nicht wundervoll was man heutzutage mit Düften anstellt?" #: src/dopewars.c:784 msgid "I wasn't always a woman, you know" msgstr "Weißte, ich war nicht immer ne Frau." #: src/dopewars.c:785 msgid "Does your mother know you're a dope dealer?" msgstr "Weiß Mami dass du mit Drogen handelst?" #: src/dopewars.c:786 msgid "Are you high on something?" msgstr "Stehst du auf irgendwas?" #: src/dopewars.c:787 msgid "Oh, you must be from California" msgstr "Oh, du musst aus Kalifornien kommen" #: src/dopewars.c:788 msgid "I used to be a hippie, myself" msgstr "I hab versucht ein Hippie zu sein" #: src/dopewars.c:789 msgid "There's nothing like having lots of money" msgstr "Es gibt kein befriedigenderes Gefühl als im Geld zu schwimmen nicht?" #: src/dopewars.c:790 msgid "You look like an aardvark!" msgstr "Du siehst aus wie ein Erdferkel!" #: src/dopewars.c:791 msgid "I don't believe in Ronald Reagan" msgstr "Ich glaube nicht an Ronald Reagan" #: src/dopewars.c:792 msgid "Courage! Bush is a noodle!" msgstr "Verbreite die Wahrheit! Bush ist ein Schimpanse!" #: src/dopewars.c:793 msgid "Haven't I seen you on TV?" msgstr "" "Was Gott durch Berge trennt, soll der Mensch durch Tunnel nicht verbinden!" #: src/dopewars.c:794 msgid "I think hemorrhoid commercials are really neat!" msgstr "Willst du eine Schokoladenzigarette mein Junge?" #: src/dopewars.c:795 msgid "We're winning the war for drugs!" msgstr "Wir werden die Sieger im Krieg der Drogen sein." #: src/dopewars.c:796 msgid "A day without dope is like night" msgstr "Ein Tag ohne Drogen ist so dunkel wie die Nacht" #: src/dopewars.c:798 #, no-c-format msgid "We only use 20% of our brains, so why not burn out the other 80%" msgstr "" "Wir benutzen ohne hin nur 20% unseres Gehirns, darum dröhnen wir uns auch " "die restlichen 80% zu" #: src/dopewars.c:799 msgid "I'm soliciting contributions for Zombies for Christ" msgstr "Ich bin .... dein Vater!" #: src/dopewars.c:800 msgid "I'd like to sell you an edible poodle" msgstr "Darf ich dir diesen hochgestylten Pudel andrehn?" #: src/dopewars.c:801 msgid "Winners don't do drugs... unless they do" msgstr "Gewinner nehmen keine Drogen .... solange sie eben keine nehmen" #: src/dopewars.c:802 msgid "Kill a cop for Christ!" msgstr "Bringe Thor ein Opfer, häute einen Polizisten" #: src/dopewars.c:803 msgid "I am the walrus!" msgstr "Ich bin ein Walross!" #: src/dopewars.c:804 msgid "Jesus loves you more than you will know" msgstr "Thor liebt dich mehr als Du glaubst." #: src/dopewars.c:805 msgid "I feel an unaccountable urge to dye my hair blue" msgstr "" "Mich überkommt das unbeschreibliche Verlangen meine Haare blau zu färben" #: src/dopewars.c:806 msgid "Wasn't Jane Fonda wonderful in Barbarella" msgstr "Gibs Aids keine Chance." #: src/dopewars.c:807 msgid "Just say No... well, maybe... ok, what the hell!" msgstr "Trau dich NEIN zu sagen .. naja vielleicht .. ok was solls!" #: src/dopewars.c:808 msgid "Would you like a jelly baby?" msgstr "Keine Macht den Drogen. ;)" #: src/dopewars.c:809 msgid "Drugs can be your friend!" msgstr "" "Drogen können Deine Freunde sein .. wenn du sonst keine hast ...ach da ist " "ja auch noch der Alkohol" #: src/dopewars.c:1880 #, c-format msgid "Unable to process configuration file %s, line %d" msgstr "Ausführen der Configdatei %s in Zeile %d abgebrochen" #: src/dopewars.c:1916 #, c-format msgid "Unable to open file %s" msgstr "Fehler beim Öffnen der Datei %s" #: src/dopewars.c:1980 msgid "" "Configuration can only be changed interactively when no\n" "players are logged on. Wait for all players to log off, or remove\n" "them with the push or kill commands, and try again." msgstr "" "Einstellungen können nur interaktiv geändert werden wenn keine\n" "Spieler eingeloggt sind. Warte bis alle Spieler ausgeloggt sind\n" "oder entferne sie mit dem push oder kill Kommando und versuche es dannnochmal" #: src/dopewars.c:2093 #, c-format msgid "Index into %s array should be between 1 and %d" msgstr "Index in array %s muss zwischen 1 und %d sein" #. Display of a numeric config. file variable - e.g. "NumDrug is 6" #: src/dopewars.c:2118 #, c-format msgid "%s is %d\n" msgstr "%s ist %d\n" #. Display of a boolean config. file variable - e.g. "DrugValue is #. * TRUE" #: src/dopewars.c:2123 #, c-format msgid "%s is %s\n" msgstr "%s ist %s\n" #. Display of a price config. file variable - e.g. "Bitch.MinPrice is #. * $200" #: src/dopewars.c:2129 msgid "%s is %P\n" msgstr "%s ist %P\n" #. Display of a string config. file variable - e.g. "LoanSharkName is #. * \"the loan shark\"" #: src/dopewars.c:2134 #, c-format msgid "%s is \"%s\"\n" msgstr "%s ist \"%s\"\n" #. Display of an indexed string list config. file variable - e.g. #. * "StoppedTo[1] is have a beer" #: src/dopewars.c:2140 #, c-format msgid "%s[%d] is %s\n" msgstr "%s[%d] ist %s\n" #. Display of the first part of an entire string list config. file #. * variable - e.g. "StoppedTo is { " (followed by "have a beer", #. * "smoke a joint" etc.) #: src/dopewars.c:2149 #, c-format msgid "%s is { " msgstr "%s ist { " #: src/dopewars.c:2204 #, c-format msgid "%s can be no smaller than %d - ignoring!" msgstr "" #: src/dopewars.c:2210 #, c-format msgid "%s can be no larger than %d - ignoring!" msgstr "" #: src/dopewars.c:2219 #, c-format msgid "Resized structure list to %d elements\n" msgstr "" #: src/dopewars.c:2257 msgid "expected a boolean value (one of 0, FALSE, 1, TRUE)" msgstr "" #. The currency symbol #: src/dopewars.c:2436 msgid "$" msgstr "" #. Translate this to "Currency.Prefix=FALSE" if you want your currency #. * symbol to follow all prices. #: src/dopewars.c:2440 msgid "Currency.Prefix=TRUE" msgstr "" #: src/dopewars.c:2567 msgid "" " -u, --plugin=FILE use sound plugin \"FILE\"\n" " " msgstr "" #: src/dopewars.c:2570 msgid "" " -u file use sound plugin \"file\"\n" "\t " msgstr "" #: src/dopewars.c:2574 #, c-format msgid "(%s available)\n" msgstr "" #: src/dopewars.c:2580 #, c-format msgid "dopewars version %s\n" msgstr "dopewars version %s\n" #. Usage information, printed when the user runs "dopewars -h" #. * (version with support for GNU long options) #: src/dopewars.c:2589 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b, --no-color, \"black and white\" - i.e. do not use pretty " "colours\n" " --no-colour (by default colours are used where available)\n" " -n, --single-player be boring and don't connect to any available " "dopewars\n" " servers (i.e. single player mode)\n" " -a, --antique \"antique\" dopewars - keep as closely to the " "original\n" " version as possible (no networking)\n" " -f, --scorefile=FILE specify a file to use as the high score table (by\n" " default %s/dopewars.sco is used)\n" " -o, --hostname=ADDR specify a hostname where the server for " "multiplayer\n" " dopewars can be found\n" " -s, --public-server run in server mode (note: see the -A option for\n" " configuring a server once it's running)\n" " -S, --private-server run a \"private\" server (do not notify the " "metaserver)\n" " -p, --port=PORT specify the network port to use (default: 7902)\n" " -g, --config-file=FILE specify the pathname of a dopewars configuration " "file;\n" " this file is read immediately when the -g " "option\n" " is encountered\n" " -r, --pidfile=FILE maintain pid file \"FILE\" while running the " "server\n" " -l, --logfile=FILE write log information to \"FILE\"\n" " -A, --admin connect to a locally-running server for " "administration\n" " -c, --ai-player create and run a computer player\n" " -w, --windowed-client force the use of a graphical (windowed)\n" " client (GTK+ or Win32)\n" " -t, --text-client force the use of a text-mode client (curses) (by\n" " default, a windowed client is used when " "possible)\n" " -P, --player=NAME set player name to \"NAME\"\n" " -C, --convert=FILE convert an \"old format\" score file to the new " "format\n" msgstr "" "Verwende: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"schwarz und weiß\" - benutze keine Farben\n" " -n verbinde zu keinem verfügbaren dopewars server\n" " (z.B. Einzelspieler-Modus)\n" " -a \"antik\" dopewars - emuliere original version \n" " -f datei spezifiziere Bestenlisten-Datei \n" " (standard: %s/dopewars.sco wird benutzt)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found (in human-readable - e.g. nowhere.com - format)\n" " -s run in server mode (note: for a \"non-interactive\" server, " "simply\n" " run as dopewars -s < /dev/null >> logfile & )\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p spezifiziere netzwerkport (standard: 7902)\n" " -g datei spezifiziere den pfad der dopewars konfiguration datei. \n" " -c erstelle und benutze einen KI Spieler\n" " -w benutze GUI (GTK+ oder Win32)\n" " -t benutze Text Modus (console) (curses)\n" " (wenn vorhanden wird der grafische Client als Standard " "benutzt)\n" " -h Zeige diese Hilfe an\n" " -v Zeige Version und beende\n" "\n" "dopewars steht unter dem Copyright (C) von Ben Webb 1998-2005 und ist " "veröffentlicht unter der GNU GPL\n" "Melde Programmierfehler dem Autor Ben Webb, benwebb@users.sf.net\n" "Melde Übersetzungsfehler an Eric Steiner, eric_st@aon.at\n" #: src/dopewars.c:2619 msgid "" " -h, --help display this help information\n" " -v, --version output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #. Usage information, printed when the user runs "dopewars -h" #. * (short options only version) #: src/dopewars.c:2626 #, fuzzy, c-format msgid "" "Usage: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"black and white\" - i.e. do not use pretty colours\n" " (by default colours are used where the terminal supports " "them)\n" " -n be boring and don't connect to any available dopewars servers\n" " (i.e. single player mode)\n" " -a \"antique\" dopewars - keep as closely to the original version " "as\n" " possible (no networking)\n" " -f file specify a file to use as the high score table\n" " (by default %s/dopewars.sco is used)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found\n" " -s run in server mode (note: see the -A option for configuring a\n" " server once it's running)\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p port specify the network port to use (default: 7902)\n" " -g file specify the pathname of a dopewars configuration file; this file\n" " is read immediately when the -g option is encountered\n" " -r file maintain pid file \"file\" while running the server\n" " -l file write log information to \"file\"\n" " -c create and run a computer player\n" " -w force the use of a graphical (windowed) client (GTK+ or Win32)\n" " -t force the use of a text-mode client (curses)\n" " (by default, a windowed client is used when possible)\n" " -P name set player name to \"name\"\n" " -C file convert an \"old format\" score file to the new format\n" " -A connect to a locally-running server for administration\n" msgstr "" "Verwende: dopewars [OPTION]...\n" "Drug dealing game based on \"Drug Wars\" by John E. Dell\n" " -b \"schwarz und weiß\" - benutzt keine Farben\n" " -n verbinde zu keinem verfügbaren dopewars server\n" " (z.B. Einzelspieler-Modus)\n" " -a \"antik\" dopewars - emuliere original version \n" " -f datei spezifiziere Bestenlisten-Datei \n" " (standard: %s/dopewars.sco wird benutzt)\n" " -o addr specify a hostname where the server for multiplayer dopewars\n" " can be found (in human-readable - e.g. nowhere.com - format)\n" " -s run in server mode (note: for a \"non-interactive\" server, " "simply\n" " run as dopewars -s < /dev/null >> logfile & )\n" " -S run a \"private\" server (i.e. do not notify the metaserver)\n" " -p spezifiziere netzwerkport (standard: 7902)\n" " -g datei spezifiziere den pfad der dopewars konfiguration datei. \n" " -c erstelle und verwende einen AI Spieler\n" " -w benutze GUI (GTK+ oder Win32)\n" " -t benutze text-modus klient (curses)\n" " (wenn vorhanden wird der GUI Client als Standard benutzt)\n" " -h Zeige diese Hilfe an\n" " -v Zeige Version und beende\n" "\n" "dopewars steht unter dem Copyright (C) von Ben Webb 1998-2005 und ist " "veröffentlicht unter der GNU GPL\n" "Melde Programmierfehler dem Autor Ben Webb, benwebb@users.sf.net\n" "Melde Übersetzungsfehler an Eric Steiner, eric_st@aon.at\n" #: src/dopewars.c:2655 msgid "" " -h display this help information\n" " -v output version information and exit\n" "\n" "dopewars is Copyright (C) Ben Webb 1998-2005, and released under the GNU " "GPL\n" "Report bugs to the author at benwebb@users.sf.net\n" msgstr "" #: src/dopewars.c:2917 msgid "" "No curses client available - rebuild the binary passing the\n" "--enable-curses-client option to configure, or use a windowed\n" "client (if available) instead!\n" msgstr "" "Es ist kein curses-Klient verfügbar - Du musst das binary mit der \n" "Option \"--enable-curses-client\" mit dem Programm \"configure\"\n" "neu kompilieren oder Du benutzt den GTK+-Klient falls er verfügbar ist.\n" #: src/dopewars.c:2937 msgid "" "No graphical client available - rebuild the binary\n" "passing the --enable-gui-client option to configure, or\n" "use the curses client (if available) instead!\n" msgstr "" "Es ist kein GTK+-Klient verfügbar - Du musst das binary mit der \n" "Option \"--enable-gui-client\" mit dem Programm \"configure\"\n" "neu kompilieren oder Du benutzt den curses-Klient falls er verfügbar ist.\n" #: src/dopewars.c:2983 #, fuzzy msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in admin mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" "Dieses Programm wurde ohne Netzwerkunterstützung kompiliert \n" " und kann dadurch nicht als KI Spieler eingesetzt werden.\n" "Neu kompilieren und --enable-networking bei ./configure angeben" #: src/dopewars.c:3004 src/winmain.c:342 msgid "" "This binary has been compiled without networking support, and thus cannot " "run\n" "in server mode. Recompile passing --enable-networking to the configure " "script.\n" msgstr "" #: src/curses_client/curses_client.c:272 msgid "English Translation Ben Webb" msgstr "Deutsche Übersetzung Eric Steiner" #. Curses client introduction screen #: src/curses_client/curses_client.c:280 msgid "D O P E W A R S" msgstr "D O P E W A R S" #: src/curses_client/curses_client.c:285 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an" msgstr "" "Dieses Spiel basiert auf dem alten Drug Wars Game von John E. Dell und ist" #: src/curses_client/curses_client.c:287 msgid "imaginary drug market. dopewars is an All-American game which features" msgstr "eine Simulation eines imaginären Drogen Marktes. Das Ziel ist es" #: src/curses_client/curses_client.c:289 msgid "buying, selling, and trying to get past the cops!" msgstr "Drogen zu kaufen und zu verkaufen und den Cops zu entwischen!" #: src/curses_client/curses_client.c:291 msgid "" "The first thing you need to do is pay off your debt to the Loan Shark. After" msgstr "" "Zuerst solltest du beim örtlichen Kredithai deine Schulden begleichen. Danach" #: src/curses_client/curses_client.c:293 msgid "that, your goal is to make as much money as possible (and stay alive)!" msgstr "solltest du dir in der Szene einen Namen machen indem du soviel Geld " #: src/curses_client/curses_client.c:295 msgid "You have one month of game time to make your fortune." msgstr "wie möglichst scheffelst und am Leben bleibst." #: src/curses_client/curses_client.c:297 #, fuzzy, c-format msgid "Version %-8s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" msgstr "Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net" #: src/curses_client/curses_client.c:300 msgid "dopewars is released under the GNU General Public Licence" msgstr "Drugwars wurde unter der GNU General Public Licence veröffentlicht" #: src/curses_client/curses_client.c:308 msgid "Icons and Graphics Ocelot Mantis" msgstr "Ikons und Grafiken Ocelot Mantis" #: src/curses_client/curses_client.c:309 msgid "Sounds Robin Kohli, 19.5degs.com" msgstr "Sounds Robin Kohli, 19.5degs.com" #: src/curses_client/curses_client.c:310 msgid "Drug Dealing and Research Dan Wolf" msgstr "Drogen Handel und Nachforschung Dan Wolf" #: src/curses_client/curses_client.c:311 msgid "Play Testing Phil Davis Owen Walsh" msgstr "Spieltests Phil Davis Owen Walsh" #: src/curses_client/curses_client.c:313 msgid "Extensive Play Testing Katherine Holt Caroline Moore" msgstr "Exessive Testspielen Katherine Holt Caroline Moore" #: src/curses_client/curses_client.c:315 msgid "Constructive Criticism Andrea Elliot-Smith Pete Winn" msgstr "Konstruktive Kritk Andrea Elliot-Smith Pete Winn" #: src/curses_client/curses_client.c:317 msgid "Unconstructive Criticism James Matthews" msgstr "Unkonstruktive Kritk James Matthews" #: src/curses_client/curses_client.c:319 msgid "For information on the command line options, type dopewars -h at your" msgstr "Für Informationen über die Startparameter gib dopewars -h an" #: src/curses_client/curses_client.c:321 msgid "" "Unix prompt. This will display a help screen, listing the available options." msgstr "" "deinem Unix Prompt ein. Dies listet dir alle verfügbaren Parameter auf." #. Prompts for hostname and port when selecting a server #. * manually #: src/curses_client/curses_client.c:347 msgid "Please enter the hostname and port of a dopewars server:-" msgstr "Bitte trage den Hostname und Port des Dopewars servers ein:-" #: src/curses_client/curses_client.c:348 msgid "Hostname: " msgstr "Rechnername: " #: src/curses_client/curses_client.c:352 msgid "Port: " msgstr "Port: " #: src/curses_client/curses_client.c:379 msgid "Please wait... attempting to contact metaserver..." msgstr "Bitte warten... Erstelle Verbindung zu Metaserver..." #. Printout of metaserver information in curses client #: src/curses_client/curses_client.c:437 #, c-format msgid "Server : %s" msgstr "Server : %s" #: src/curses_client/curses_client.c:439 #, c-format msgid "Port : %d" msgstr "Port : %d " #: src/curses_client/curses_client.c:441 #, c-format msgid "Version : %s" msgstr "Version : %s" #: src/curses_client/curses_client.c:444 #, c-format msgid "Players: -unknown- (maximum %d)" msgstr "Spieler: -unbekannt- (maximal %d)" #: src/curses_client/curses_client.c:447 #, c-format msgid "Players: %d (maximum %d)" msgstr "Spieler: %d (maximal %d)" #: src/curses_client/curses_client.c:451 #, c-format msgid "Up since : %s" msgstr "Online seit: %s" #: src/curses_client/curses_client.c:453 #, c-format msgid "Comment: %s" msgstr "Kommentar: %s" #: src/curses_client/curses_client.c:457 msgid "N>ext server; P>revious server; S>elect this server... " msgstr "N>ächster ; V>orheriger ; W>ähle diesen Server... " #. The three keys that are valid responses to the previous question - #. * if you translate them, keep the keys in the same order (N>ext, #. * P>revious, S>elect) as they are here, otherwise they'll do the #. * wrong things. #: src/curses_client/curses_client.c:463 msgid "NPS" msgstr "NVW" #: src/curses_client/curses_client.c:516 #, c-format msgid "Connected to SOCKS server %s..." msgstr "Verbinde zu SOCKS Server %s..." #: src/curses_client/curses_client.c:520 msgid "Authenticating with SOCKS server" msgstr "Authentifiziere bei SOCKS Server" #: src/curses_client/curses_client.c:523 #, c-format msgid "Asking SOCKS for connect to %s..." msgstr "Frage SOCKS für Verbindung zu %s..." #: src/curses_client/curses_client.c:546 #, c-format msgid "Proxy authentication required for realm %s" msgstr "Proxy Authentifzierung wird für Realm %s benötigt" #: src/curses_client/curses_client.c:550 #, c-format msgid "Authentication required for realm %s" msgstr "Authentifzierung wird für Realm %s benötigt" #: src/curses_client/curses_client.c:553 msgid "(Enter a blank username to cancel)" msgstr "(Benutzername für Abbrechen leer lassen)" #: src/curses_client/curses_client.c:556 src/curses_client/curses_client.c:575 msgid "User name: " msgstr "Benutzername: " #: src/curses_client/curses_client.c:558 src/curses_client/curses_client.c:577 msgid "Password: " msgstr "Passwort: " #: src/curses_client/curses_client.c:572 msgid "SOCKS authentication required (enter a blank username to cancel)" msgstr "" "SOCKS Authentifizierung benötigt (Benutzername für Abbrechen leer lassen)" #: src/curses_client/curses_client.c:671 msgid "Please wait... attempting to contact dopewars server..." msgstr "Bitten warten... Baue Verbindung zu Server auf..." #. Display of an error while contacting the metaserver #: src/curses_client/curses_client.c:682 msgid "Cannot get metaserver details" msgstr "Bekomme keine Details des Metaserver" #. Display of an error message while trying to contact a dopewars #. * server (the error message itself is displayed on the next #. * screen line) #: src/curses_client/curses_client.c:690 msgid "Could not start multiplayer dopewars" msgstr "Kann den Multiplayer-Modus nicht starten" #: src/curses_client/curses_client.c:698 msgid "Will you... C>onnect to a named dopewars server" msgstr "Öffne V>erbindug zu einem Server, " #: src/curses_client/curses_client.c:700 msgid " L>ist the servers on the metaserver, and select one" msgstr "L>iste Server des Metaserver auf," #: src/curses_client/curses_client.c:703 msgid "" " Q>uit (where you can start a server by typing \"dopewars -s\")" msgstr "möchtest Du das Spiel B>eenden" #: src/curses_client/curses_client.c:705 msgid " or P>lay single-player ? " msgstr " oder möchtest Du als E>inzelspieler spielen " #. Translate these 4 keys in line with the above options, keeping #. * the order the same (C>onnect, L>ist, Q>uit, P>lay single-player) #: src/curses_client/curses_client.c:710 msgid "CLQP" msgstr "VLBE" #. Display of shortcut keys and locations to jet to #: src/curses_client/curses_client.c:803 #, c-format msgid "%d. %tde" msgstr "" #. Prompt when the player chooses to "jet" to a new location #. Prompt in 'Jet' dialog #: src/curses_client/curses_client.c:810 src/gui_client/gtk_client.c:1464 msgid "Where to, dude ? " msgstr "Wohin, Kleiner ? " #: src/curses_client/curses_client.c:816 msgid "%/Location display/%tde" msgstr "" #. List of drugs that you can drop (%tde = "drugs" by #. * default) #: src/curses_client/curses_client.c:852 #, c-format msgid "You can't get any cash for the following carried %tde :" msgstr "Du kannst kein Geld für die folgenden Drogen kriegen %tde :" #: src/curses_client/curses_client.c:865 msgid "What do you want to drop? " msgstr "Was willst Du wegwerfen? " #: src/curses_client/curses_client.c:875 msgid "How many do you drop? " msgstr "Und wieviel davon? " #. Buy and sell prompts for dealing drugs or guns #: src/curses_client/curses_client.c:911 #: src/curses_client/curses_client.c:1395 msgid "What do you wish to buy? " msgstr "Was möchtest Du kaufen? " #: src/curses_client/curses_client.c:913 #: src/curses_client/curses_client.c:1347 msgid "What do you wish to sell? " msgstr "Was möchtest Du verkaufen? " #. Display of number of drugs you could buy and/or carry, when #. * buying drugs #: src/curses_client/curses_client.c:931 #, c-format msgid "You can afford %d, and can carry %d. " msgstr "Du kannst %d kaufen, und %d tragen. " #: src/curses_client/curses_client.c:934 msgid "How many do you buy? " msgstr "Wieviel möchtest Du kaufen? " #: src/curses_client/curses_client.c:947 #, c-format msgid "You have %d. " msgstr "Du hast %d. " #: src/curses_client/curses_client.c:950 msgid "How many do you sell? " msgstr "Wieviel willste verkaufen?" #: src/curses_client/curses_client.c:983 #, c-format msgid "Choose an errand to give one of your %tde..." msgstr "Wähle einen Auftrag für deine %tde..." #: src/curses_client/curses_client.c:989 msgid " S>py on another dealer (cost: %P)" msgstr " S>chicke Spion zu einem anderem Dealer (kosten: %P)" #: src/curses_client/curses_client.c:993 msgid " T>ip off the cops to another dealer (cost: %P)" msgstr " V>erpfeife ein anderen Dealer an die Cops (kosten: %P)" #: src/curses_client/curses_client.c:996 msgid " G>et stuffed" msgstr " B>edröhn dich" #: src/curses_client/curses_client.c:999 msgid "or C>ontact your spies and receive reports" msgstr "oder K>ontaktiere Spion" #: src/curses_client/curses_client.c:1001 msgid "or N>o errand ? " msgstr "oder tue N>ichts ? " #. Translate these 5 keys to match the above options, keeping the #. * original order the same (S>py, T>ip off, G>et stuffed, C>ontact spy, #. * N>o errand) #: src/curses_client/curses_client.c:1008 msgid "STGCN" msgstr "SVBKN" #: src/curses_client/curses_client.c:1013 msgid "Whom do you want to spy on? " msgstr "Über wen möchtest Du mehr erfahren? " #: src/curses_client/curses_client.c:1019 msgid "Whom do you want to tip the cops off to? " msgstr "Wen möchtest Du los werden? " #. Prompt for confirmation of sacking a bitch #: src/curses_client/curses_client.c:1026 msgid " Are you sure? " msgstr " Bist Du sicher? " #. The two keys that are valid for answering Yes/No - if you #. * translate them, keep them in the same order - i.e. "Yes" before #. * "No" #: src/curses_client/curses_client.c:1031 #: src/curses_client/curses_client.c:1054 #: src/curses_client/curses_client.c:2711 msgid "YN" msgstr "JN" #: src/curses_client/curses_client.c:1052 msgid "Are you sure you want to quit? " msgstr "Willst Du wirklich schon gehen? " #. Prompt for player to change his/her name #: src/curses_client/curses_client.c:1065 msgid "New name: " msgstr "Neuer Name: " #: src/curses_client/curses_client.c:1132 msgid "You have been pushed from the server. Reverting to single player mode." msgstr "Du wurdest vom Server geworfen. Kehre zum Einzelspieler-Modus zurück." #: src/curses_client/curses_client.c:1142 msgid "The server has terminated. Reverting to single player mode." msgstr "" "Verbindung zum Server unterbrochen! Kehre zum Einzelspieler-Modus zurück" #: src/curses_client/curses_client.c:1162 src/gui_client/gtk_client.c:505 #: src/serverside.c:450 #, c-format msgid "%s joins the game!" msgstr "%s betritt das Spiel!" #: src/curses_client/curses_client.c:1169 src/gui_client/gtk_client.c:514 #, c-format msgid "%s has left the game." msgstr "%s hat das Spiel verlassen" #. Displayed when a player changes his/her name #: src/curses_client/curses_client.c:1177 #, c-format msgid "%s will now be known as %s." msgstr "%s ist nun bekannt als %s." #: src/curses_client/curses_client.c:1199 msgid "S U B W A Y" msgstr "U - B A H N" #: src/curses_client/curses_client.c:1206 #: src/curses_client/curses_client.c:2012 src/gui_client/gtk_client.c:1225 msgid "%/Current location/%tde" msgstr "%/Derzeitiger Aufenthaltsort/%tde" #: src/curses_client/curses_client.c:1248 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it." msgstr "Leider benutzt schon jemand anders \"deinen\" Namen. Bitte ändere Ihn" #: src/curses_client/curses_client.c:1275 msgid "H I G H S C O R E S" msgstr "B E S T E N L I S T E" #. Error - player tried to sell guns that he/she doesn't have #. * (%tde="guns" by default) #: src/curses_client/curses_client.c:1339 src/gui_client/gtk_client.c:1827 #, c-format msgid "You don't have any %tde to sell!" msgstr "Du hast keine %tde zum verkaufen!" #. Error - player tried to sell some guns that he/she doesn't have #: src/curses_client/curses_client.c:1358 src/gui_client/gtk_client.c:1848 msgid "You don't have any to sell!" msgstr "Du hast nix zum verkaufen!" #. Error - player tried to buy more guns #. * than his/her bitches can carry (1st #. * %tde="bitches", 2nd %tde="guns" by #. * default) #: src/curses_client/curses_client.c:1386 src/gui_client/gtk_client.c:1833 #, c-format msgid "You'll need more %tde to carry any more %tde!" msgstr "Du brauchst mehr %tde Platz um noch was zu tragen %tde!" #. Error - player tried to buy a gun that he/she doesn't have #. * space for (%tde="gun" by default) #: src/curses_client/curses_client.c:1407 src/gui_client/gtk_client.c:1839 #, c-format msgid "You don't have enough space to carry that %tde!" msgstr "Du hast nicht genug Platz um die %tde zu tragen!" #. Error - player tried to buy a gun that he/she can't afford #. * (%tde="gun" by default) #: src/curses_client/curses_client.c:1417 src/gui_client/gtk_client.c:1844 #, c-format msgid "You don't have enough cash to buy that %tde!" msgstr "Du hast nicht genug Kohle für die %tde!" #. Prompt for actions in the gun shop #: src/curses_client/curses_client.c:1457 msgid "Will you B>uy, S>ell, or L>eave? " msgstr "Willst Du E>inkaufen, V>erkaufen, oder G>ehen? " #. Translate these three keys in line with the above options, keeping #. * the order (B>uy, S>ell, L>eave) the same - you can change the #. * wording of the prompt, but if you change the order in this key #. * list, the keys will do the wrong things! #: src/curses_client/curses_client.c:1467 msgid "BSL" msgstr "EVG" #: src/curses_client/curses_client.c:1490 msgid "How much money do you pay back? " msgstr "Wieviel Geld möchtest Du zurückzahlen?" #. Error - player doesn't have enough money to pay back the loan #. Error - player has tried to put more money into the bank than #. * he/she has #: src/curses_client/curses_client.c:1501 #: src/curses_client/curses_client.c:1547 src/gui_client/gtk_client.c:2550 msgid "You don't have that much money!" msgstr "Soviel Kohle hast Du nicht!" #. Prompt for dealing with the bank in the curses client #: src/curses_client/curses_client.c:1526 msgid "Do you want to D>eposit money, W>ithdraw money, or L>eave ? " msgstr "Möchtest Du E>inzahlen, A>bheben, oder die Bank V>erlassen? " #. Make sure you keep the order the same if you translate these keys! #. * (D>eposit, W>ithdraw, L>eave) #: src/curses_client/curses_client.c:1532 msgid "DWL" msgstr "EAV" #. Prompt for putting money in or taking money out of the bank #: src/curses_client/curses_client.c:1536 msgid "How much money? " msgstr "Wieviel Moneten?" #. Error - player has tried to withdraw more money from the bank #. * than there is in the account #: src/curses_client/curses_client.c:1552 msgid "There isn't that much money in the bank..." msgstr "Ein Bänker spricht: \"Soviel Geld haben Sie nicht.\"" #. Expansions of the single-letter keypresses for the benefit of the #. * user. i.e. "Yes" is printed for the key "Y" etc. You should indicate #. * to the user which letter in the word corresponds to the keypress, by #. * capitalising it or similar. #: src/curses_client/curses_client.c:1586 msgid "Y:Yes" msgstr "J:Ja" #: src/curses_client/curses_client.c:1586 msgid "N:No" msgstr "N:Nein" #: src/curses_client/curses_client.c:1586 msgid "R:Run" msgstr "R:Rennen" #: src/curses_client/curses_client.c:1587 msgid "F:Fight" msgstr "K:Kämpfen" #: src/curses_client/curses_client.c:1587 msgid "A:Attack" msgstr "A:Angriff" #: src/curses_client/curses_client.c:1587 msgid "E:Evade" msgstr "V:Verschwinden" #: src/curses_client/curses_client.c:1700 msgid "Press any key..." msgstr "Drück mal 'ne Taste..." #. Title of the "Messages" window in the curses client #: src/curses_client/curses_client.c:1963 msgid "Messages (-/+ scrolls up/down)" msgstr "" #. Title of the "Stats" window in the curses client #: src/curses_client/curses_client.c:1973 src/gui_client/gtk_client.c:2300 msgid "Stats" msgstr "Statistik" #. Display of the player's cash in the stats window (careful to keep the #. * formatting if you change the length of the "Cash" word) #: src/curses_client/curses_client.c:1979 msgid "Cash %17P" msgstr "Bargeld %14P" #. Display of the total number of guns carried (%Tde="Guns" by default) #: src/curses_client/curses_client.c:1983 msgid "%-19Tde%3d" msgstr "" #. Display of the player's health #: src/curses_client/curses_client.c:1988 #, c-format msgid "Health %3d" msgstr "Gesundheit %3d" #. Display of the player's bank balance #: src/curses_client/curses_client.c:1992 msgid "Bank %17P" msgstr "Konto %16P" #. Display of the player's debt #: src/curses_client/curses_client.c:1998 msgid "Debt %17P" msgstr "Schulden %13P" #: src/curses_client/curses_client.c:2004 #, c-format msgid "Space %6d" msgstr "Platz %6d" #. Display of the player's number of bitches, and available space #. * (%Tde="Bitches" by default) #: src/curses_client/curses_client.c:2008 msgid "%Tde %3d Space %6d" msgstr "%Tde %3d Platz %6d" #: src/curses_client/curses_client.c:2021 msgid "Trenchcoat" msgstr "Mantel" #. Title of the "drugs" window (the only important bit in this #. * string is the "%Tde" which is "Drugs" by default; the %/.../ part #. * is ignored, so you don't need to translate it; see doc/i18n.html) #. #: src/curses_client/curses_client.c:2027 msgid "%/Stats: Drugs/%Tde" msgstr "%/Stats: Drogen/%Tde" #: src/curses_client/curses_client.c:2035 msgid "%-7tde %3d @ %P" msgstr "" #. Display of carried drugs (%tde="Opium", etc. by default) #: src/curses_client/curses_client.c:2042 #, c-format msgid "%-7tde %3d" msgstr "" #. Title of the "guns" window (the only important bit in this string #. * is the "%Tde" which is "Guns" by default) #: src/curses_client/curses_client.c:2052 msgid "%/Stats: Guns/%Tde" msgstr "%/Stats: Waffen/%Tde" #. Display of carried guns (%tde="Baretta", etc. by default) #: src/curses_client/curses_client.c:2057 #, c-format msgid "%-22tde %3d" msgstr "" #: src/curses_client/curses_client.c:2082 #, c-format msgid "Spy reports for %s" msgstr "Spion berichtet %s" #. Message displayed with a spy's list of drugs (%Tde="Drugs" by #. * default) #: src/curses_client/curses_client.c:2088 msgid "%/Spy: Drugs/%Tde..." msgstr "%/Spion: Drogen/%Tde..." #. Message displayed with a spy's list of guns (%Tde="Guns" by default) #: src/curses_client/curses_client.c:2096 msgid "%/Spy: Guns/%Tde..." msgstr "%/Spion: Waffen/%Tde..." #: src/curses_client/curses_client.c:2124 msgid "No other players are currently logged on!" msgstr "Tja, Du bist alleine auf der Welt!" #: src/curses_client/curses_client.c:2129 msgid "Players currently logged on:-" msgstr "Eingeloggte Mitspieler -+>" #. Display of drug prices (%tde="drugs" by default) #: src/curses_client/curses_client.c:2279 #, c-format msgid "Hey dude, the prices of %tde here are:" msgstr "Hey Kleiner, die %tde Preise von hier:" #. List of individual drug names for selection (%tde="Opium" etc. #. * by default) #: src/curses_client/curses_client.c:2288 msgid "%c. %-10tde %8P" msgstr "" #: src/curses_client/curses_client.c:2332 msgid "Cannot install SIGWINCH interrupt handler!" msgstr "" #: src/curses_client/curses_client.c:2349 msgid "Hey dude, what's your name? " msgstr "Hey Kleiner, wie heißt Du? " #. Prompts for "normal" actions in curses client #: src/curses_client/curses_client.c:2393 msgid "Will you B>uy" msgstr "Willst Du E>inkaufen" #: src/curses_client/curses_client.c:2395 msgid ", S>ell" msgstr ", V>erkaufen" #: src/curses_client/curses_client.c:2397 msgid ", D>rop" msgstr ", W>egwerfen" #: src/curses_client/curses_client.c:2399 msgid ", T>alk, P>age" msgstr ", S>prechen, F>lüstern" #: src/curses_client/curses_client.c:2400 msgid ", L>ist" msgstr ", L>iste" #: src/curses_client/curses_client.c:2403 msgid ", G>ive" msgstr ", A>ktion" #: src/curses_client/curses_client.c:2406 msgid ", F>ight" msgstr ", K>ämpfen" #: src/curses_client/curses_client.c:2408 msgid ", J>et" msgstr ", R>eisen" #: src/curses_client/curses_client.c:2410 msgid ", or Q>uit? " msgstr ", oder B>eenden? " #. Prompts for actions during fights in curses client #: src/curses_client/curses_client.c:2419 msgid "Do you " msgstr "Willst Du " #: src/curses_client/curses_client.c:2422 msgid "F>ight, " msgstr "K>ämpfen, " #: src/curses_client/curses_client.c:2424 msgid "S>tand, " msgstr "S>tehen bleiben, " #: src/curses_client/curses_client.c:2428 msgid "R>un, " msgstr "R>ennen, " #. (%tde = "drugs" by default here) #: src/curses_client/curses_client.c:2431 #, c-format msgid "D>eal %tde, " msgstr "H>andeln %tde, " #: src/curses_client/curses_client.c:2432 msgid "or Q>uit? " msgstr "oder B>eenden? " #: src/curses_client/curses_client.c:2497 msgid "Connection to server lost! Reverting to single player mode" msgstr "" "Verbindung zum Server unterbrochen! Kehre zurück in Einzelspieler-Modus" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (B>uy, S>ell, D>rop, T>alk, P>age, #. * L>ist, G>ive errand, F>ight, J>et, Q>uit) #: src/curses_client/curses_client.c:2522 msgid "BSDTPLGFJQ" msgstr "EVWSFLAKRB" #. N.B. You must keep the order of these keys the same as the #. * original when you translate (D>eal drugs, R>un, F>ight, S>tand, #. * Q>uit) #: src/curses_client/curses_client.c:2528 msgid "DRFSQ" msgstr "HRKSE" #: src/curses_client/curses_client.c:2560 msgid "List what? P>layers or S>cores? " msgstr "Zeige S>pieler oder P>unkte? " #. P>layers, S>cores #: src/curses_client/curses_client.c:2562 msgid "PS" msgstr "SP" #: src/curses_client/curses_client.c:2575 msgid "Whom do you want to page (talk privately to) ? " msgstr "Wen möchtest Du etwas zuflüstern ? " #. Prompt for sending player-player messages #: src/curses_client/curses_client.c:2581 #: src/curses_client/curses_client.c:2595 msgid "Talk: " msgstr "Sprich: " #: src/curses_client/curses_client.c:2710 msgid "Play again? " msgstr "Möchtest Du nochmal spielen? " #. The names of the the menus and their items in the GTK+ client #: src/gui_client/gtk_client.c:159 msgid "/_Game" msgstr "/_Spiel" #: src/gui_client/gtk_client.c:160 msgid "/Game/_New..." msgstr "/Spiel/_Neu..." #: src/gui_client/gtk_client.c:161 msgid "/Game/_Abandon..." msgstr "/Spiel/_Abbrechen..." #: src/gui_client/gtk_client.c:162 msgid "/Game/_Options..." msgstr "/Spiel/_Einstellungen..." #: src/gui_client/gtk_client.c:163 msgid "/Game/Enable _sound" msgstr "/Spiel/Sound" #: src/gui_client/gtk_client.c:164 msgid "/Game/_Quit..." msgstr "/Spiel/_Ende..." #: src/gui_client/gtk_client.c:165 msgid "/_Talk" msgstr "/_Mitteilung" #: src/gui_client/gtk_client.c:166 msgid "/Talk/To _All..." msgstr "/Mitteilung/An _Alle..." #: src/gui_client/gtk_client.c:167 msgid "/Talk/To _Player..." msgstr "/Mitteilung/An _Spieler..." #: src/gui_client/gtk_client.c:168 msgid "/_List" msgstr "/_Anzeigen" #: src/gui_client/gtk_client.c:169 msgid "/List/_Players..." msgstr "/Anzeigen/der _Spieler..." #: src/gui_client/gtk_client.c:170 msgid "/List/_Scores..." msgstr "/Anzeigen/der _Punkte..." #: src/gui_client/gtk_client.c:171 msgid "/List/_Inventory..." msgstr "/Anzeigen/des _Inventars..." #: src/gui_client/gtk_client.c:172 msgid "/_Errands" msgstr "/_Aktionen" #: src/gui_client/gtk_client.c:173 msgid "/Errands/_Spy..." msgstr "/Aktionen/_Spionieren..." #: src/gui_client/gtk_client.c:174 msgid "/Errands/_Tipoff..." msgstr "/Aktionen/_Verpfeifen..." #: src/gui_client/gtk_client.c:178 msgid "/Errands/_Get spy reports..." msgstr "/Aktionen/_Lese Spionagereport..." #: src/gui_client/gtk_client.c:179 msgid "/_Help" msgstr "/_Hilfe" #: src/gui_client/gtk_client.c:180 msgid "/Help/_About..." msgstr "/Hilfe/_Über..." #. Titles of the message boxes for warnings and errors #: src/gui_client/gtk_client.c:194 msgid "Warning" msgstr "Warnung" #: src/gui_client/gtk_client.c:195 msgid "Error" msgstr "Fehler" #: src/gui_client/gtk_client.c:196 msgid "Message" msgstr "Nachricht" #. Prompt in 'quit game' dialog #: src/gui_client/gtk_client.c:230 src/gui_client/gtk_client.c:246 #: src/gui_client/gtk_client.c:255 src/gui_client/gtk_client.c:277 msgid "Abandon current game?" msgstr "Willst du das aktuelle Spiel abbrechen?" #. Title of 'quit game' dialog #: src/gui_client/gtk_client.c:232 src/gui_client/gtk_client.c:247 msgid "Quit Game" msgstr "Verlasse Spiel" #. Title of 'stop game to start a new game' dialog #: src/gui_client/gtk_client.c:257 msgid "Start new game" msgstr "Starte neues Spiel" #. Title of 'abandon game' dialog #: src/gui_client/gtk_client.c:279 msgid "Abandon game" msgstr "Spiel Abbrechen" #. Title of inventory window #: src/gui_client/gtk_client.c:319 msgid "Inventory" msgstr "Inventar" #. The network connection to the server was dropped unexpectedly #: src/gui_client/gtk_client.c:398 msgid "Connection to server lost - switching to single player mode" msgstr "Verbindung zum Server verloren - wechsle in Einzelspieler-Modus" #. The server admin has asked us to leave - so warn the user, and do #. * so #: src/gui_client/gtk_client.c:465 msgid "" "You have been pushed from the server.\n" "Switching to single player mode." msgstr "" "Du wurdest vom Server geworfen.\n" "Kehre in Einzelspieler-Modus zurück." #. The server has sent us notice that it is shutting down #: src/gui_client/gtk_client.c:473 msgid "" "The server has terminated.\n" "Switching to single player mode." msgstr "" "Verbindung zu Server unterbrochen!\n" "Kehre zurück in Einzelspieler-Modus" #. Message displayed when the player "jets" to a new location #: src/gui_client/gtk_client.c:532 #, c-format msgid "Jetting to %tde" msgstr "Reise => %tde" #. Text for the Errands/Sack Bitch menu item #: src/gui_client/gtk_client.c:543 msgid "%/Sack Bitch menu item/S_ack %Tde..." msgstr "" #. Text to update the Errands/Spy menu item with the price for spying #: src/gui_client/gtk_client.c:552 msgid "_Spy (%P)" msgstr "_Spion (%P)" #. Text to update the Errands/Tipoff menu item with the price for a #. * tipoff #: src/gui_client/gtk_client.c:558 msgid "_Tipoff (%P)" msgstr "_Verpfeife (%P)" #. Title of the GTK+ high score dialog #: src/gui_client/gtk_client.c:617 msgid "High Scores" msgstr "B E S T E N L I S T E" #. Error - the high score from the server is invalid #: src/gui_client/gtk_client.c:674 src/gui_client/gtk_client.c:706 msgid "Corrupt high score!" msgstr "Fehlerhafte Bestenliste!" # src/gtk_client.c:737 #: src/gui_client/gtk_client.c:912 msgid "Fight" msgstr "Kämpfen" #. Button for closing the "Fight" dialog and going back to dealing drugs #. * (%Tde = "Drugs" by default) #: src/gui_client/gtk_client.c:953 msgid "_Deal %Tde" msgstr "_Dealen %Tde" #. Button for shooting at other players in the "Fight" dialog, or for #. * popping up the "Fight" dialog from the main window #: src/gui_client/gtk_client.c:960 src/gui_client/gtk_client.c:1886 #: src/gui_client/gtk_client.c:2161 msgid "_Fight" msgstr "_Kämpfen" #. Button to stand and take it in the "Fight" dialog #: src/gui_client/gtk_client.c:964 msgid "_Stand" msgstr "_Stehen bleiben" #. Button to run from combat in the "Fight" dialog #: src/gui_client/gtk_client.c:968 src/gui_client/gtk_client.c:1885 msgid "_Run" msgstr "_Rennen" #. Display of number of bitches or deputies during combat #. * (%tde="bitches" or "deputies" (etc.) by default) #: src/gui_client/gtk_client.c:1034 msgid "%/Combat: Bitches/%d %tde" msgstr "%/Kampf: Huren/%d %tde" #: src/gui_client/gtk_client.c:1039 msgid "(Left)" msgstr "(Links)" #: src/gui_client/gtk_client.c:1041 msgid "(Dead)" msgstr "(Tot)" #: src/gui_client/gtk_client.c:1043 #, c-format msgid "Health: %d" msgstr "Gesundheit: %d" #. Display of the current player's name during combat #: src/gui_client/gtk_client.c:1060 msgid "You" msgstr "Du" #. Display of carried guns in GTK+ client status window (%Tde="Guns" by #. * default) #: src/gui_client/gtk_client.c:1249 msgid "%/GTK Stats: Guns/%Tde" msgstr "%/GTK Stats: Waffen/%Tde" #. Display of number of bitches in GTK+ client status window #. * (%Tde="Bitches" by default) #: src/gui_client/gtk_client.c:1257 msgid "%/GTK Stats: Bitches/%Tde" msgstr "%/GTK Stats: Huren/%Tde" #: src/gui_client/gtk_client.c:1348 msgid "%/Inventory drug name/%tde" msgstr "" #: src/gui_client/gtk_client.c:1352 #, fuzzy msgid "%/Inventory gun name/%tde" msgstr "Inventar" #. Title of 'Jet' dialog #: src/gui_client/gtk_client.c:1451 msgid "Jet to location" msgstr "Reise zu Ort" #: src/gui_client/gtk_client.c:1494 msgid "%/Location to jet to/%tde" msgstr "%/Reiseziel/%tde" #. Display of locations in 'Jet' window (%tde="The Bronx" etc. by #. * default) #: src/gui_client/gtk_client.c:1503 #, c-format msgid "_%c. %tde" msgstr "" #. Display of the current price of the selected drug in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1539 msgid "at %P" msgstr "für %P" #. Display of current inventory of the selected drug in 'Deal Drugs' #. * dialog (%tde="Opium" etc. by default) #: src/gui_client/gtk_client.c:1546 #, c-format msgid "You are currently carrying %d %tde" msgstr "Zur Zeit trägst Du %d %tde" #. Available space for drugs in 'Deal Drugs' dialog #: src/gui_client/gtk_client.c:1553 #, c-format msgid "Available space: %d" msgstr "Verfügbarer Platz: %d" #. Number of the selected drug that you can afford in 'Deal Drugs' #. * dialog #: src/gui_client/gtk_client.c:1566 #, c-format msgid "You can afford %d" msgstr "Du kannst %d kaufen" #: src/gui_client/gtk_client.c:1627 src/gui_client/gtk_client.c:1793 msgid "Buy" msgstr "Einkaufen" #: src/gui_client/gtk_client.c:1629 src/gui_client/gtk_client.c:1795 msgid "Sell" msgstr "Verkaufen" #: src/gui_client/gtk_client.c:1631 src/gui_client/gtk_client.c:1797 msgid "Drop" msgstr "Wegwerfen" #: src/gui_client/gtk_client.c:1706 msgid "%/DealDrugs drug name/%tde" msgstr "" #. Prompts for action in the "deal drugs" dialog #: src/gui_client/gtk_client.c:1740 msgid "Buy how many?" msgstr "Wieviel Einkaufen?" #: src/gui_client/gtk_client.c:1742 msgid "Sell how many?" msgstr "Wieviel Verkaufen?" #: src/gui_client/gtk_client.c:1744 msgid "Drop how many?" msgstr "Wieviel Wegwerfen?" #: src/gui_client/gtk_client.c:1817 #, c-format msgid "Buy %tde" msgstr "Kaufen %tde" #: src/gui_client/gtk_client.c:1819 #, c-format msgid "Sell %tde" msgstr "Verkaufen %tde" #: src/gui_client/gtk_client.c:1821 #, c-format msgid "Drop %tde" msgstr "Wegwerfen %tde" #. Button titles that correspond to the single-keypress options provided #. * by the curses client (e.g. _Yes corresponds to 'Y' etc.) #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:50 msgid "_Yes" msgstr "_Ja" #: src/gui_client/gtk_client.c:1885 src/gtkport/gtkport.c:51 msgid "_No" msgstr "_Nein" #: src/gui_client/gtk_client.c:1886 msgid "_Attack" msgstr "_Angriff" #: src/gui_client/gtk_client.c:1886 msgid "_Evade" msgstr "_Verschwinden" #. Title of the 'ask player a question' dialog #: src/gui_client/gtk_client.c:1913 msgid "Question" msgstr "Frage" #. Available space label in GTK+ client status display #: src/gui_client/gtk_client.c:2101 msgid "Space" msgstr "Platz" #. Player's cash label in GTK+ client status display #: src/gui_client/gtk_client.c:2108 msgid "Cash" msgstr "Bargeld" #. Player's debt label in GTK+ client status display #: src/gui_client/gtk_client.c:2115 msgid "Debt" msgstr "Schulden" #. Player's bank balance label in GTK+ client status display #: src/gui_client/gtk_client.c:2122 msgid "Bank" msgstr "Konto" #. Player's health label in GTK+ client status display #: src/gui_client/gtk_client.c:2139 msgid "Health" msgstr "Gesundheit" #. Caption of 'Jet' button in main window #: src/gui_client/gtk_client.c:2164 msgid "_Jet!" msgstr "_Reisen!" #. Title of main window in GTK+ client #: src/gui_client/gtk_client.c:2270 src/winmain.c:364 src/winmain.c:373 msgid "dopewars" msgstr "dopewars" #. Credits labels in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2394 msgid "English Translation" msgstr "Deutsche Übersetzung" #: src/gui_client/gtk_client.c:2394 msgid "Ben Webb" msgstr "Eric Steiner" #: src/gui_client/gtk_client.c:2395 msgid "Icons and graphics" msgstr "Icons und Grafiken" #: src/gui_client/gtk_client.c:2396 src/gui_client/optdialog.c:1003 msgid "Sounds" msgstr "" #: src/gui_client/gtk_client.c:2397 msgid "Drug Dealing and Research" msgstr "Drogen Handel und Nachforschung" #: src/gui_client/gtk_client.c:2398 msgid "Play Testing" msgstr "Spiel Test" #: src/gui_client/gtk_client.c:2399 msgid "Extensive Play Testing" msgstr "Exzessives Spiel Testen" #: src/gui_client/gtk_client.c:2401 msgid "Constructive Criticism" msgstr "Konstruktive Kritik" #: src/gui_client/gtk_client.c:2403 msgid "Unconstructive Criticism" msgstr "Unkonstruktive Kritik" #. Title of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2411 msgid "About dopewars" msgstr "Über Dopewars" #. Main content of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2422 msgid "" "Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an\n" "imaginary drug market. dopewars is an All-American game which features\n" "buying, selling, and trying to get past the cops!\n" "\n" "The first thing you need to do is pay off your debt to the Loan Shark. " "After\n" "that, your goal is to make as much money as possible (and stay alive)! You\n" "have one month of game time to make your fortune.\n" msgstr "" "Drogenkrieg basiert auf John E. Dell's Spiel 'Drug Wars'.\n" "Das Spiel simuliert einen imaginären Drogenmarkt, mit allen\n" "Dingen die man so gerne macht, wie zum Beispiel: \n" "Einkaufen, Verkaufen und versuchen nicht von der Polizei erwischt zu " "werden.\n" "\n" "Als erstes sollte man seine Schulden beim Kredithai begleichen.\n" "Danach ist es das Ziel soviel Geld wie möglich zu verdienen und\n" "natürlich am Leben zu bleiben. Man hat dafür _nur_ einen Monat Zeit.\n" #. Version and copyright notice in GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2435 #, c-format msgid "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "dopewars is released under the GNU General Public Licence\n" msgstr "" "Version %s Copyright (C) 1998-2005 Ben Webb benwebb@users.sf.net\n" "Dopewars wurde unter der GNU General Public Licence veröffentlicht.\n" #. Label at the bottom of GTK+ 'about' dialog #: src/gui_client/gtk_client.c:2465 msgid "" "\n" "For information on the command line options, type dopewars -h at your\n" "Unix prompt. This will display a help screen, listing the available " "options.\n" msgstr "" "\n" "Für Informationen über Kommando Optionen, gib 'dopewars -h' in deiner \n" "UNIX-shell ein. Die Hilfe Übersicht wird dir dann angezeigt.\n" #: src/gui_client/gtk_client.c:2472 msgid "Local HTML documentation" msgstr "" #. Title of loan shark dialog - (%Tde="The Loan Shark" by default) #: src/gui_client/gtk_client.c:2528 src/gui_client/gtk_client.c:2580 msgid "%/LoanShark window title/%Tde" msgstr "%/Kredithai Fenstertitel/%Tde" #. Title of bank dialog - (%Tde="The Bank" by default) #: src/gui_client/gtk_client.c:2535 src/gui_client/gtk_client.c:2584 msgid "%/BankName window title/%Tde" msgstr "%/BankName Fenstertitel/%Tde" #: src/gui_client/gtk_client.c:2544 msgid "You must enter a positive amount of money!" msgstr "Sie müssen einen positiven Geldbetrag eingeben!" #: src/gui_client/gtk_client.c:2547 msgid "There isn't that much money available..." msgstr "Ein Bänker spricht: \"Soviel Geld haben Sie nicht.\"" #. Display of player's cash in bank or loan shark dialog #: src/gui_client/gtk_client.c:2600 msgid "Cash: %P" msgstr "Bargeld: %P" #. Display of player's debt in loan shark dialog #: src/gui_client/gtk_client.c:2606 msgid "Debt: %P" msgstr "Schulden: %P" #. Display of player's bank balance in bank dialog #: src/gui_client/gtk_client.c:2609 msgid "Bank: %P" msgstr "Konto: %P" #. Prompt for paying back a loan #: src/gui_client/gtk_client.c:2617 msgid "Pay back:" msgstr "Zurückzahlen:" #. Radio button selected if you want to pay money into the bank #: src/gui_client/gtk_client.c:2621 msgid "Deposit" msgstr "Einzahlen" #. Radio button selected if you want to withdraw money from the bank #: src/gui_client/gtk_client.c:2627 msgid "Withdraw" msgstr "Abheben" #. Button to pay back the entire loan/debt #: src/gui_client/gtk_client.c:2658 msgid "Pay all" msgstr "Bezahle alles" #. Title of player list dialog #: src/gui_client/gtk_client.c:2689 msgid "Player List" msgstr "Spieler Liste" #. Title of talk dialog #: src/gui_client/gtk_client.c:2789 msgid "Talk to player(s)" msgstr "Rede mit Spieler(n)" #. Checkbutton set if you want to talk to all players #: src/gui_client/gtk_client.c:2809 msgid "Talk to all players" msgstr "Rede mit allen Spielern" #. Prompt for you to enter the message to be sent to other players #: src/gui_client/gtk_client.c:2815 msgid "Message:-" msgstr "Nachricht:-" #. Button to send a message to other players #: src/gui_client/gtk_client.c:2830 msgid "Send" msgstr "Senden" #. Title of dialog to select a player to spy on #: src/gui_client/gtk_client.c:2934 msgid "Spy On Player" msgstr "Spioniere anderen Spieler aus" #. Informative text for "spy on player" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2938 #, c-format msgid "" "Please choose the player to spy on. Your %tde will\n" "then offer his services to the player, and if successful,\n" "you will be able to view the player's stats with the\n" "\"Get spy reports\" menu. Remember that the %tde will leave\n" "you, so any %tde or %tde that he's carrying may be lost!" msgstr "" "Bitte wähle einen Spieler aus den Du ausspionieren möchtest.\n" "Deine %tde wird dann dem anderen Spieler ihre Dienste anbieten,\n" "und wenn sie erfolgreich ist, kannst du Dir die Statistik deines\n" "Kontrahenten im \"Spion Report\" Menu anschauen\n" "Aber Vorsicht %tde wird dich verlassen und %tde oder %tde mitnehmen." #. Title of dialog to select a player to tip the cops off to #: src/gui_client/gtk_client.c:2953 msgid "Tip Off The Cops" msgstr "Gib der Polizei einen Tipp" #. Informative text for "tip off cops" dialog. (%tde = "bitch", #. * "bitch", "guns", "drugs", respectively, by default) #: src/gui_client/gtk_client.c:2957 #, fuzzy, c-format msgid "" "Please choose the player to tip off the cops to. Your %tde will\n" "help the cops to attack that player, and then report back to you\n" "on the encounter. Remember that the %tde will leave you temporarily,\n" "so any %tde or %tde that he's carrying may be lost!" msgstr "" "Bitte wähle einen Spieler den Du an die Bullen verpfeiffen möchtest.\n" "Deine %tde wird der Polizei helfen Deinen Kontrahenten zu finden,\n" "aber keine Angst sie wird nach getaner Arbeit zurückkehren." #. Title of dialog to sack a bitch (%Tde = "Bitch" by default) #: src/gui_client/gtk_client.c:3008 msgid "%/Sack Bitch dialog title/Sack %Tde" msgstr "" #. Confirmation message for sacking a bitch. (%tde = "guns", "drugs", #. * "bitch", respectively, by default) #: src/gui_client/gtk_client.c:3013 #, c-format msgid "" "Are you sure? (Any %tde or %tde carried\n" "by this %tde may be lost!)" msgstr "" "Bist Du sicher? (Alles %tde oder %tde getragenes\n" "%tde geht verloren!)" #. Column titles for display of drugs/guns carried or available for #. * purchase #: src/gui_client/gtk_client.c:3041 src/gui_client/optdialog.c:630 msgid "Name" msgstr "Name" #: src/gui_client/gtk_client.c:3042 src/gui_client/optdialog.c:767 msgid "Price" msgstr "Preis" #: src/gui_client/gtk_client.c:3043 msgid "Number" msgstr "Anzahl" #. Button titles for buying/selling/dropping guns or drugs #: src/gui_client/gtk_client.c:3046 msgid "_Buy ->" msgstr "_Einkaufen ->" #: src/gui_client/gtk_client.c:3047 msgid "<- _Sell" msgstr "<- _Verkaufen" #: src/gui_client/gtk_client.c:3048 msgid "_Drop <-" msgstr "_Wegwerfen <-" #. Title of the display of available drugs/guns (%Tde = "Guns" or #. * "Drugs" by default) #: src/gui_client/gtk_client.c:3055 msgid "%Tde here" msgstr "%Tde hier" #. Title of the display of carried drugs/guns (%Tde = "Guns" or "Drugs" #. * by default) #: src/gui_client/gtk_client.c:3061 msgid "%Tde carried" msgstr "%Tde dabei" #. Title of dialog for changing a player's name #: src/gui_client/gtk_client.c:3161 msgid "Change Name" msgstr "Ändere Name" #. Informational text to prompt the player to change his/her name #: src/gui_client/gtk_client.c:3174 msgid "" "Unfortunately, somebody else is already using \"your\" name. Please change " "it:-" msgstr "Leider benutzt schon jemand anders \"deinen\" Namen, ändere Ihn bitte." #. Title of 'gun shop' dialog in GTK+ client (%Tde="Dan's House of Guns" #. * by default) #: src/gui_client/gtk_client.c:3219 msgid "%/GTK GunShop window title/%Tde" msgstr "%/GTK Waffenladen Fenstertitel/%Tde" #. Title of window to display reports from spies with other players #: src/gui_client/gtk_client.c:3286 msgid "Spy reports" msgstr "Spion berichtet" #: src/gui_client/optdialog.c:384 #, c-format msgid "New %s" msgstr "Neu %s" #: src/gui_client/optdialog.c:560 msgid "Select sound file" msgstr "Sound Datei auswählen" #: src/gui_client/optdialog.c:674 msgid "New" msgstr "Neu" #: src/gui_client/optdialog.c:680 msgid "Delete" msgstr "Löschen" #: src/gui_client/optdialog.c:690 msgid "Up" msgstr "Hoch" #: src/gui_client/optdialog.c:698 msgid "Down" msgstr "Runter" #: src/gui_client/optdialog.c:753 msgid "Police presence" msgstr "Polizei Presenz" #: src/gui_client/optdialog.c:754 msgid "Minimum no. of drugs" msgstr "Minimale Drogenanzahl" #: src/gui_client/optdialog.c:755 msgid "Maximum no. of drugs" msgstr "Maximale Drogenanzahl" #: src/gui_client/optdialog.c:759 msgid "Minimum normal price" msgstr "Minimaler Normalpreis" #: src/gui_client/optdialog.c:760 msgid "Maximum normal price" msgstr "Maximaler Normalpreis" #: src/gui_client/optdialog.c:761 msgid "Can be specially cheap" msgstr "Preis kann extrem fallen" #: src/gui_client/optdialog.c:762 msgid "Cheap string" msgstr "" #: src/gui_client/optdialog.c:763 msgid "Can be specially expensive" msgstr "Preis kann extrem steigen" #: src/gui_client/optdialog.c:768 msgid "Inventory space" msgstr "Inventar" #: src/gui_client/optdialog.c:769 msgid "Damage" msgstr "" #: src/gui_client/optdialog.c:773 msgid "Name of one deputy" msgstr "" #: src/gui_client/optdialog.c:774 msgid "Name of several deputies" msgstr "" #: src/gui_client/optdialog.c:775 msgid "Minimum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:776 msgid "Maximum no. of deputies" msgstr "" #: src/gui_client/optdialog.c:777 msgid "Cop armour" msgstr "" #: src/gui_client/optdialog.c:778 msgid "Deputy armour" msgstr "" #: src/gui_client/optdialog.c:786 msgid "Options" msgstr "Einstellungen" #: src/gui_client/optdialog.c:802 msgid "Remove drug references" msgstr "Entferne Drogen Referenzen" #: src/gui_client/optdialog.c:806 msgid "Unicode config file" msgstr "" #: src/gui_client/optdialog.c:812 msgid "Game length (turns)" msgstr "Spiellänge (Runde)" #: src/gui_client/optdialog.c:818 msgid "Starting cash" msgstr "Startgeld" #: src/gui_client/optdialog.c:824 msgid "Starting debt" msgstr "Startschulden" #: src/gui_client/optdialog.c:830 msgid "Currency symbol" msgstr "Währungssymbol" #: src/gui_client/optdialog.c:835 msgid "Symbol prefixes prices" msgstr "" #: src/gui_client/optdialog.c:838 msgid "Name of one bitch" msgstr "" #: src/gui_client/optdialog.c:844 msgid "Name of several bitches" msgstr "" #: src/gui_client/optdialog.c:851 msgid "Web browser" msgstr "" #: src/gui_client/optdialog.c:859 msgid "General" msgstr "" #: src/gui_client/optdialog.c:865 msgid "Locations" msgstr "" #: src/gui_client/optdialog.c:880 msgid "Expensive string 1" msgstr "" #: src/gui_client/optdialog.c:886 msgid "Expensive string 2" msgstr "" #: src/gui_client/optdialog.c:893 msgid "Drugs" msgstr "Drogen" #: src/gui_client/optdialog.c:898 msgid "Guns" msgstr "Waffen" #: src/gui_client/optdialog.c:903 msgid "Cops" msgstr "Polizisten" #: src/gui_client/optdialog.c:911 msgid "Server reports to metaserver" msgstr "" #: src/gui_client/optdialog.c:915 msgid "Minimize to System Tray" msgstr "" #: src/gui_client/optdialog.c:919 msgid "Metaserver hostname" msgstr "" #: src/gui_client/optdialog.c:925 src/gui_client/optdialog.c:937 #: src/gui_client/newgamedia.c:463 src/gui_client/newgamedia.c:542 msgid "Port" msgstr "Port" #: src/gui_client/optdialog.c:931 msgid "Web proxy hostname" msgstr "" #: src/gui_client/optdialog.c:943 msgid "Script path" msgstr "" #: src/gui_client/optdialog.c:949 src/gui_client/newgamedia.c:466 msgid "Comment" msgstr "Kommentar" #: src/gui_client/optdialog.c:955 msgid "MOTD (welcome message)" msgstr "" #. Column titles of metaserver information #: src/gui_client/optdialog.c:962 src/gui_client/newgamedia.c:462 #: src/gui_client/newgamedia.c:514 src/gui_client/newgamedia.c:563 msgid "Server" msgstr "Server" #: src/gui_client/optdialog.c:968 msgid "Sound name" msgstr "" #: src/gui_client/optdialog.c:969 msgid "Description" msgstr "" #: src/gui_client/optdialog.c:984 msgid "Sound file" msgstr "" #: src/gui_client/optdialog.c:991 msgid "Browse..." msgstr "" #: src/gui_client/optdialog.c:996 msgid "Play" msgstr "" #: src/gui_client/newgamedia.c:75 msgid "You can't start the game without giving a name first!" msgstr "" #. Title of 'New Game' dialog #: src/gui_client/newgamedia.c:76 src/gui_client/newgamedia.c:487 msgid "New Game" msgstr "Neues Spiel" #: src/gui_client/newgamedia.c:84 msgid "Status: Waiting for user input" msgstr "Status: Warte auf Benutzereingabe" #: src/gui_client/newgamedia.c:104 src/AIPlayer.c:72 msgid "Connection closed by remote host" msgstr "Verbindung wurde durch remote Rechner geschlossen" #: src/gui_client/newgamedia.c:110 #, c-format msgid "Status: Could not connect to metaserver (%s)" msgstr "Status: Kann auf Metaserver (%s) nicht zugreifen" #: src/gui_client/newgamedia.c:115 #, c-format msgid "Status: Could not connect (%s)" msgstr "Status: Kann keine Verbindung zu %s herstellen" #. Message displayed during the attempted connect to a dopewars server #. Message displayed during the attempted connect to the metaserver #: src/gui_client/newgamedia.c:144 src/gui_client/newgamedia.c:364 #, c-format msgid "Status: Attempting to contact %s..." msgstr "Status: Versuche Verbindung zu %s herzustellen..." #. Displayed if we don't know how many players are logged on to a #. * server #: src/gui_client/newgamedia.c:212 msgid "Unknown" msgstr "Unbekannt" #. e.g. "5 of 20" means 5 players are logged on to a server, out of #. * a maximum of 20 #: src/gui_client/newgamedia.c:216 #, c-format msgid "%d of %d" msgstr "%d von %d" #. Tell the user that we've successfully connected to a SOCKS server, #. * and are now ready to tell it to initiate the "real" connection #: src/gui_client/newgamedia.c:262 #, c-format msgid "Status: Connected to SOCKS server %s..." msgstr "Status: Verbinde mit SOCKS server %s..." #. Tell the user that the SOCKS server is asking us for a username #. * and password #: src/gui_client/newgamedia.c:270 msgid "Status: Authenticating with SOCKS server" msgstr "Status: Authentifizieren mit SOCKS server" #. Tell the user that all necessary SOCKS authentication has been #. * completed, and now we're going to try to have it connect to #. * the final destination #: src/gui_client/newgamedia.c:277 #, c-format msgid "Status: Asking SOCKS for connect to %s..." msgstr "Status: Frage SOCKS um zu %s zu verbinden..." #: src/gui_client/newgamedia.c:286 msgid "Status: Obtaining server information from metaserver..." msgstr "" #: src/gui_client/newgamedia.c:464 msgid "Version" msgstr "Version" #: src/gui_client/newgamedia.c:465 msgid "Players" msgstr "Spieler" #. Prompt for player's name in 'New #. * Game' dialog #: src/gui_client/newgamedia.c:500 msgid "Hey dude, what's your _name?" msgstr "Hey Kleiner, wie heißt Du? " #. Prompt for hostname to connect to in GTK+ new game dialog #: src/gui_client/newgamedia.c:523 msgid "Host name" msgstr "Rechnername" #. Button to connect to a named dopewars server #: src/gui_client/newgamedia.c:555 src/gui_client/newgamedia.c:619 msgid "_Connect" msgstr "_Verbinde" #. Title of 'New Game' dialog notebook tab for single-player mode #: src/gui_client/newgamedia.c:568 src/gui_client/newgamedia.c:590 msgid "Single player" msgstr "Einzelspieler" #. Checkbox to activate 'antique mode' in single-player games #: src/gui_client/newgamedia.c:575 msgid "_Antique mode" msgstr "_Antiker Modus" #. Button to start a new single-player (standalone, non-network) game #: src/gui_client/newgamedia.c:583 msgid "_Start single-player game" msgstr "_Starte Einzelspieler Spiel" #. Title of Metaserver frame in New Game dialog #: src/gui_client/newgamedia.c:595 src/gui_client/newgamedia.c:632 msgid "Metaserver" msgstr "MetaServer" #. Title of dialog for authenticating with a #. * proxy server #: src/gui_client/newgamedia.c:717 msgid "Proxy Authentication Required" msgstr "Proxy Authentifizierung benötigt" #. Title of dialog for authenticating with a web server #: src/gui_client/newgamedia.c:720 msgid "Authentication Required" msgstr "Authentifizierung benötigt" #: src/gui_client/newgamedia.c:836 msgid "SOCKS Authentication Required" msgstr "SOCKS Authentifizierung benötigt" #: src/gtkport/gtkport.c:46 msgid "_OK" msgstr "_OK" #: src/gtkport/gtkport.c:47 msgid "_Close" msgstr "_Schließen" #: src/gtkport/gtkport.c:48 msgid "_Cancel" msgstr "_Abbrechen" #: src/gtkport/gtkport.c:49 msgid "_Refresh" msgstr "" #: src/gtkport/gtkport.c:52 msgid "_Help" msgstr "_Hilfe" #. Informational comment placed at the start of the Windows log file #. * (this is used for messages printed during processing of the config #. * files - under Unix these are just printed to stdout) #: src/winmain.c:290 msgid "" "# This is the dopewars startup log, containing any\n" "# informative messages resulting from configuration\n" "# file processing and the like.\n" "\n" msgstr "" #. Title of dopewars server window (if used) #: src/winmain.c:331 src/serverside.c:1717 msgid "dopewars server" msgstr "Dopewars Server" #. Title of the Windows window used for AI player output #: src/winmain.c:352 msgid "dopewars AI" msgstr "Drogenkrieg AI" #. Things that can "happen" to your spies - look for strings containing #. * "The spy %s!" to see how these strings are used. #: src/serverside.c:73 msgid "escaped" msgstr "entkommen" #: src/serverside.c:73 msgid "defected" msgstr "erwischt" #: src/serverside.c:73 msgid "was shot" msgstr "wurde getroffen" #. The two keys that are valid answers to the Attack/Evade question. If #. * you wish to translate them, do so in the same order as they given here. #. * You will also need to translate the answers given by the clients. #: src/serverside.c:79 msgid "AE" msgstr "" #. Help on various general server commands #: src/serverside.c:121 #, fuzzy, c-format msgid "" "dopewars server version %s commands and settings\n" "\n" "help Displays this help screen\n" "list Lists all players logged on\n" "push Politely asks the named player to leave\n" "kill Abruptly breaks the connection with the named " "player\n" "msg: Send message to all players\n" "save Save current configuration to the named file\n" "quit Gracefully quit, after notifying all players\n" "= Sets the named variable to the given value\n" " Displays the value of the named variable\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Valid variables are listed below:-\n" "\n" msgstr "" "Dopewars Server - Version %s Kommandos und Einstellungen\n" "\n" "help Zeigt den Hilfebildschirm an\n" "list Listet alle Spiele die gerade Online sind auf.\n" "push Bittet den Spieler zu gehen.\n" "kill Zwingt den Spieler den Server zu verlassen\n" "msg: Sende Nachricht an alle Spieler\n" "quit Freundliches Ende, nach Benachrichtigung aller " "Spieler\n" "= Setzt Variable nach Inhalt \n" " Zeigt den Inhalt der Variable an\n" "[x].= Sets the named variable in the given list,\n" " index x, to the given value\n" "[x]. Displays the value of the named list variable\n" "\n" "Verfügbare Variablen werden hier aufgelistet :-\n" "\n" #: src/serverside.c:166 #, c-format msgid "Failed to connect to metaserver at %s:%u (%s)" msgstr "Konnte nicht zu Metaserver verbinden %s:%u (%s)" #: src/serverside.c:182 msgid "" "Using MetaServer.Proxy.User and MetaServer.Proxy.Password for HTTP proxy " "authentication" msgstr "Benutzen Metaserver.Proxy Daten zur HTTP Proxy Authentifizierung" #: src/serverside.c:186 msgid "" "Unable to authenticate with HTTP proxy; please set MetaServer.Proxy.User and " "MetaServer.Proxy.Password variables" msgstr "" #: src/serverside.c:195 msgid "" "Using MetaServer.Auth.User and MetaServer.Auth.Password for HTTP " "authentication" msgstr "" #: src/serverside.c:199 msgid "" "Unable to authenticate with HTTP server; please set MetaServer.Auth.User and " "MetaServer.Auth.Password variables" msgstr "" #: src/serverside.c:210 msgid "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication" msgstr "" #: src/serverside.c:241 msgid "" "Attempt to connect to metaserver too frequently - waiting for next timeout" msgstr "" #: src/serverside.c:301 #, c-format msgid "Waiting for connect to metaserver at %s:%u..." msgstr "Warte auf Verbindung zu Metaserver %s:%u..." #: src/serverside.c:370 msgid "" "You appear to be using an extremely old (version 1.4.x) client.^While this " "will probably work, many of the newer features^will be unsupported. Get the " "latest version from the^dopewars website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:379 msgid "" "Warning: your client is too old to support all of this^server's features. " "For the full \"experience\", get^the latest version of dopewars from " "the^website, http://dopewars.sourceforge.net/." msgstr "" #: src/serverside.c:465 #, c-format msgid "MaxClients (%d) exceeded - dropping connection" msgstr "MaxKlients (%d) erreicht - verwerfe Verbindung" #. Message sent to a player if the #. * server is full #: src/serverside.c:471 msgid "" "Sorry, but this server has a limit of 1 player, which has been reached." "^Please try connecting again later." msgstr "" "Sorry, aber hier dürfen max. %d %s spielen.^Bitte versuchs später nochmal." #. Message sent to a player if the #. * server is full #: src/serverside.c:478 #, c-format msgid "" "Sorry, but this server has a limit of %d players, which has been reached." "^Please try connecting again later." msgstr "" "Sorry, aber hier dürfen max. %d %s spielen.^Bitte versuchs später nochmal." #. A player changed their name during the game (unusual, and not #. * really properly supported anyway) - notify all players of the #. * change #: src/serverside.c:494 #, c-format msgid "%s will now be known as %s" msgstr "%s ist nun bekannt als %s" #. Message displayed when a player reaches their maximum number of #. * turns #: src/serverside.c:522 msgid "Your dealing time is up..." msgstr "Deine Zeit als Dealer ist vorbei..." #. A player has tried to jet to a new location, but we don't allow #. * them to. (e.g. they're still fighting someone, or they're #. * supposed to be dead) #: src/serverside.c:541 #, c-format msgid "%s: DENIED jet to %s" msgstr "%s: VERWEIGERT Reise zu %s" #: src/serverside.c:598 #, c-format msgid "%s now spying on %s" msgstr "%s spioniert nun bei %s" #: src/serverside.c:607 #, c-format msgid "%s spy on %s: DENIED" msgstr "%s spion bei %s: VERWEIGERT" #: src/serverside.c:613 #, c-format msgid "%s tipped off the cops to %s" msgstr "%s hat %s bei den Cops verraten" #: src/serverside.c:622 #, c-format msgid "%s tipoff about %s: DENIED" msgstr "%s verpfeifft %s: VERWEIGERT" #: src/serverside.c:638 #, c-format msgid "Unknown message: %s:%c:%s:%s" msgstr "Unbekannte Nachricht: %s:%c:%s:%s" #: src/serverside.c:800 #, c-format msgid "Maintaining pid file %s" msgstr "Pflege PID Datei %s" #: src/serverside.c:806 #, c-format msgid "Cannot create pid file %s: %s" msgstr "Kann PID Datei nicht erstellen %s: %s" #: src/serverside.c:855 #, c-format msgid "Cannot create server (listening) socket (%s) Aborting." msgstr "" #: src/serverside.c:873 #, c-format msgid "Cannot bind to port %u (%s) Aborting." msgstr "Kann nicht auf Port %u (%s) starten. Breche ab." #: src/serverside.c:881 msgid "Cannot listen to network socket. Aborting." msgstr "Kann nicht am Netzwerksockeln horchen. Breche ab." #: src/serverside.c:887 #, c-format msgid "" "dopewars server version %s ready and waiting for connections on port %d." msgstr "" "dopewars server version %s klar und wartet auf verbindungen auf port %d." #. Warning messages displayed if we fail to trap various signals #: src/serverside.c:900 msgid "Cannot install SIGUSR1 interrupt handler!" msgstr "Kann SIGUSR1 nicht installieren, breche ab" #: src/serverside.c:906 msgid "Cannot install SIGHUP interrupt handler!" msgstr "Kann SIGHUP nicht installieren, breche ab" #: src/serverside.c:912 msgid "Cannot install SIGINT interrupt handler!" msgstr "Kann SIGINT nicht installieren, breche ab" #: src/serverside.c:915 msgid "Cannot install SIGTERM interrupt handler!" msgstr "Kann SIGTERM nicht installieren, breche ab" #: src/serverside.c:920 msgid "Cannot install pipe handler!" msgstr "Kann pipe handler nicht installieren" #: src/serverside.c:977 #, c-format msgid "Configuration file saved OK as %s\n" msgstr "" #: src/serverside.c:1011 msgid "Users currently logged on:-\n" msgstr "Eingelogte Spieler:-\n" #: src/serverside.c:1019 msgid "No users currently logged on!\n" msgstr "Du bist ganz allein auf der Welt!\n" #: src/serverside.c:1023 #, c-format msgid "Pushing %s\n" msgstr "Drücke %s\n" #: src/serverside.c:1026 src/serverside.c:1037 msgid "No such user!\n" msgstr "Kein solcher Benutzer!\n" #. The named user has been removed from the server following #. * a "kill" command #: src/serverside.c:1032 #, c-format msgid "%s killed\n" msgstr "%s getötet\n" #: src/serverside.c:1039 msgid "Unknown command - try \"help\" for help...\n" msgstr "Unbekanntes Kommando - versuch mal \"help\" für Hilfe...\n" #: src/serverside.c:1058 #, c-format msgid "got connection from %s" msgstr "bekommt Verbindung von %s" #: src/serverside.c:1071 msgid "dopewars server terminating." msgstr "Der Server wurde beendet." #: src/serverside.c:1080 #, c-format msgid "%s leaves the server!" msgstr "%s verlässt den Server!" #: src/serverside.c:1194 msgid "" "Could not set up Unix domain socket for admin connections - check " "permissions on /tmp!" msgstr "" #: src/serverside.c:1277 #, c-format msgid "" "dopewars server version %s ready for admin commands; try \"help\" for help" msgstr "" #: src/serverside.c:1280 msgid "New admin connection" msgstr "Neue Admin verbindung" #: src/serverside.c:1291 #, c-format msgid "Admin command: %s" msgstr "Admin Befehl: %s" #: src/serverside.c:1297 msgid "Admin connection closed" msgstr "Admin Verbindung geschlossen" #: src/serverside.c:1599 src/serverside.c:1618 src/serverside.c:1625 #: src/serverside.c:1759 msgid "Failed to set NT Service status" msgstr "Kann NT Dienst Status nicht setzen" #: src/serverside.c:1605 msgid "Failed to post service notification message" msgstr "" #: src/serverside.c:1614 msgid "Failed to register service handler" msgstr "Kann Dienst handler nicht registrieren" #: src/serverside.c:1640 msgid "Failed to start NT Service" msgstr "Kann NT Dienst nicht starten" #: src/serverside.c:1728 msgid "Command:" msgstr "Befehl:" #: src/serverside.c:1937 #, c-format msgid "Error reading scores from %s." msgstr "Fehler: Kann die Bestenliste %s nicht lesen" #: src/serverside.c:1942 #, c-format msgid "" "The high score file %s has been converted to the new format.\n" "A backup of the old file has been created as %s.\n" msgstr "" #: src/serverside.c:1950 #, c-format msgid "" "Cannot create backup (%s) of the\n" "high score file: %s." msgstr "" "Kann keine Sicherheitskopie (%s) der\n" "Bestenlistendatei (%s) erstellen." #: src/serverside.c:1959 #, c-format msgid "Cannot open high score file %s: %s." msgstr "Kann Bestenlistendatei nicht öffnen %s: %s." #: src/serverside.c:2064 #, c-format msgid "" "Cannot open high score file %s.\n" "(%s.) Either ensure you have permissions to access\n" "this file and directory, or specify an alternate high score file with the\n" "-f command line option." msgstr "" "Kann Bestenliste %s nicht öffnen. (%s)\n" "Bitte prüfe nach ob Du überhaupt die Rechte für die Datei hast oder\n" "spezifiziere ein alternative 'Bestenlisten' Datei mit der -f kommandozeilen " "option." #: src/serverside.c:2078 #, c-format msgid "" "%s does not appear to be a valid\n" "high score file - please check it. If it is a high score file\n" "from an older version of dopewars, then first convert it to the\n" "new format by running \"dopewars -C %s\"\n" "from the command line." msgstr "" #: src/serverside.c:2088 msgid "" "Errors were encountered during the reading of the configuration file.\n" "As as result, some settings may not work as expected. Please consult the\n" "file \"dopewars-log.txt\" for further details." msgstr "" #: src/serverside.c:2093 msgid "" "Errors were encountered during the reading of the configuration\n" "file. As a result, some settings may not work as expected. Please see the\n" "messages on standard output for further details." msgstr "" #: src/serverside.c:2166 #, c-format msgid "Unable to read high score file %s" msgstr "Fehler: Kann die Bestenliste %s nicht lesen" #: src/serverside.c:2192 msgid "Congratulations! You made the high scores!" msgstr "Fantastisch! Du hast Dir einen Platz auf der Bestenliste verdient!" #: src/serverside.c:2205 msgid "You didn't even make the high score table..." msgstr "Tja, besser spielen dann gibs auch nen Eintrag." #: src/serverside.c:2226 #, c-format msgid "Unable to write high score file %s" msgstr "Kann Bestenliste %s nicht schreiben" #: src/serverside.c:2253 msgid "(R.I.P.)" msgstr "(R.I.P.)" #: src/serverside.c:2296 #, c-format msgid "%s: Tipoff from %s" msgstr "%s: Verpfiffen von %s" #: src/serverside.c:2304 #, c-format msgid "%s: Spy offered by %s" msgstr "%s: Spion angeboten durch %s" #: src/serverside.c:2318 #, c-format msgid "One of your %tde was spying for %s.^The spy %s!" msgstr "Einer deiner %tde hat für %s gearbeitet.^%s, der Verräter !" #: src/serverside.c:2327 #, c-format msgid "Your spy working with %s has been discovered!^The spy %s!" msgstr "Dein Spion der für %s arbeitete wurde aufgedeckt!^Der Spion %s!" #: src/serverside.c:2361 #, c-format msgid "The lady next to you on the subway said,^ \"%s\"%s" msgstr "Die Lady neben Dir in der U-Bahn spricht,^\"%s\"%s" #: src/serverside.c:2365 msgid "^ (at least, you -think- that's what she said)" msgstr "^ (Zumindest kam es dir so vor als hätte Sie das gesagt)" #: src/serverside.c:2368 #, c-format msgid "You hear someone playing %s" msgstr "Du hörst jemanden %s spielen" #: src/serverside.c:2377 src/serverside.c:2386 src/serverside.c:2395 #: src/serverside.c:2404 #, c-format msgid "YN^Would you like to visit %tde?" msgstr "YN^Möchtest Du %tde besuchen?" #: src/serverside.c:2416 msgid "YN^^Would you like to hire a %tde for %P?" msgstr "YN^^Willst Du eine %tde für %P anheuern?" #: src/serverside.c:2429 #, c-format msgid "%s^%s is already here!^Do you Attack, or Evade?" msgstr "%s^%s ist anwesend!^Willst Du Angreifen, oder Ausweichen?" #: src/serverside.c:2498 msgid "No cops or guns!" msgstr "Keine Polizei oder Waffen!" #: src/serverside.c:2504 msgid "Cops cannot attack other cops!" msgstr "Cops können keine anderen Cops angreifen" #: src/serverside.c:2546 msgid "Players are already in a fight!" msgstr "Spieler kämpfen bereits!" #: src/serverside.c:2548 msgid "Players are already in separate fights!" msgstr "Spieler sind bereits in verschieden Kämpfen!" #: src/serverside.c:2553 msgid "Cannot start fight - no guns to use!" msgstr "Kann nicht kämpfen - Keine Waffen verfügbar!" #: src/serverside.c:2782 src/serverside.c:3045 msgid "You're dead! Game over." msgstr "Du hauchst dein Leben aus! Game over." #: src/serverside.c:2977 #, c-format msgid "%s: tipoff by %s finished OK." msgstr "%s: Verrat von %s erledigt OK." #: src/serverside.c:2983 #, c-format msgid "Following your tipoff, the cops ambushed %s, who was shot dead!" msgstr "" "Nach deinem Tip haben die Cops %s gefunden, er wurde leider erschossen." #: src/serverside.c:2987 #, c-format msgid "Following your tipoff, the cops ambushed %s, who escaped with %d %tde. " msgstr "" "Nach deinem Tip haben die Cops %s gefunden, Leider, konnte %d entkommen mit %" "tde." #: src/serverside.c:3053 msgid "YN^Do you pay a doctor %P to sew you up?" msgstr "YN^Willst du dem Doktor %P bezahlen um Dich zu heilen?" #: src/serverside.c:3082 msgid "You were mugged in the subway!" msgstr "Du wurdest in der U-Bahn ausgeraubt!" #: src/serverside.c:3094 #, c-format msgid "You meet a friend! He gives you %d %tde." msgstr "Du triffst einen Freund! Er gibt dir %d %tde." #: src/serverside.c:3100 #, c-format msgid "You meet a friend! You give him %d %tde." msgstr "Du triffst einen Freund! Du gibst ihm %d %tde." #. Debugging message: we would normally have a random drug-related #. * event here, but "Sanitized" mode is turned on #: src/serverside.c:3113 msgid "Sanitized away a RandomOffer" msgstr "" #: src/serverside.c:3118 #, c-format msgid "" "Police dogs chase you for %d blocks! You dropped some %tde! That's a drag, " "man!" msgstr "" "Polizeihunde verfolgen dich für %d block! Du hast ein wenig %tde weggeworfen!" #: src/serverside.c:3135 #, c-format msgid "You find %d %tde on a dead dude in the subway!" msgstr "Du findest %d %tde bei einem toten Penner in der U-Bahn!" #: src/serverside.c:3150 #, c-format msgid "Your mama made brownies with some of your %tde! They were great!" msgstr "Deine Ma hat aus deinem %tde Brownies gemacht! Die waren super!" #: src/serverside.c:3160 msgid "" "YN^There is some weed that smells like paraquat here!^It looks good! Will " "you smoke it? " msgstr "YN^Irgendwas riecht hier gut!^Sieht gut aus! Willst Du es rauchen?" #: src/serverside.c:3167 #, c-format msgid "You stopped to %s." msgstr "Plötzlich hörst du auf %s." #: src/serverside.c:3192 msgid "YN^Would you like to buy a bigger trenchcoat for %P?" msgstr "YN^Möchtest Du einen größeren Trenchcoat für %P kaufen?" #: src/serverside.c:3199 msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" msgstr "YN^Hey Kumpel! Ich trage %tde für %P. Ya oder Nein" #: src/serverside.c:3212 msgid "YN^Would you like to buy a %tde for %P?" msgstr "YN^Willst Du eine %tde für %P kaufen?" #: src/serverside.c:3355 src/serverside.c:3465 #, c-format msgid "%s: offer was on behalf of %s" msgstr "%s: Angebot war im Interesse von %s" #: src/serverside.c:3358 #, c-format msgid "%s has accepted your %tde!^Use the G key to contact your spy." msgstr "%s hat deine %tde angenommen !^Kontaktiere deinen Spion." #: src/serverside.c:3410 msgid "" "You hallucinated for three days on the wildest trip you ever imagined!^Then " "you died because your brain disintegrated!" msgstr "" "Du hast den wildesten Trip deines Lebens. Und dann bist du gestorben, weil " "Dein Gehirn es nicht mehr ausghalten hat. ;)" #: src/serverside.c:3436 #, c-format msgid "Too late - %s has just left!" msgstr "Zu Spät - %s hat sich verpisst!" #: src/serverside.c:3468 #, c-format msgid "%s has rejected your %tde!" msgstr "%s hat deine %tde abgelehnt!" #: src/serverside.c:3523 #, c-format msgid "The cops spot you dropping %tde!" msgstr "Die Cops haben dich gesehen als du %tde wegwerfen wolltest" #: src/serverside.c:3756 msgid "Sending pending updates to the metaserver..." msgstr "Sende update an Metaserver..." #: src/serverside.c:3761 msgid "Sending reminder message to the metaserver..." msgstr "Sende Erinnerungsnachricht an Metaserver..." #: src/serverside.c:3770 msgid "Player removed due to idle timeout" msgstr "Spieler entfernt, Idle Timeout" #: src/serverside.c:3783 msgid "Player removed due to connect timeout" msgstr "Spieler entfernt, Timeout bei Verbindungsaufbau" #: src/error.c:68 msgid "(Error cannot be displayed in UTF-8)" msgstr "" #: src/error.c:126 msgid "Connection dropped due to full buffer" msgstr "" #: src/error.c:133 #, c-format msgid "Internal error code %d" msgstr "Interner Fehler %d" #. These are the explanations of the various #. * Windows Sockets error codes #: src/error.c:158 msgid "WinSock has not been properly initialised" msgstr "WinSock wurde nicht initialisiert" #: src/error.c:159 msgid "Network subsystem is not ready" msgstr "Netzwerksubsysten ist nicht bereit" #: src/error.c:160 msgid "WinSock version not supported" msgstr "WinSock Version wird nicht unterstützt" #: src/error.c:161 msgid "The network subsystem has failed" msgstr "Das Netzwerksubsystem ist fehlgeschlagen" #: src/error.c:162 msgid "Address already in use" msgstr "Adresse wird bereits benutzt" #: src/error.c:163 msgid "Cannot reach the network" msgstr "Kann Netzwerk nicht erreichen" #: src/error.c:164 msgid "The connection timed out" msgstr "Verbindungstimeout" #: src/error.c:165 msgid "Out of file descriptors" msgstr "" #: src/error.c:166 msgid "Out of buffer space" msgstr "" #: src/error.c:167 msgid "Operation not supported" msgstr "" #: src/error.c:168 msgid "Connection aborted due to failure" msgstr "Verbindung wegen eines Fehlers abgebrochen" #: src/error.c:169 msgid "Connection reset by remote host" msgstr "Verbindung durch Remote Rechner beendet" #: src/error.c:170 msgid "Connection refused" msgstr "Verbindung abgelehnt" #: src/error.c:171 msgid "Address family not supported" msgstr "Adressenfamilie nicht unterstützt" #: src/error.c:172 msgid "Protocol not supported" msgstr "Protokoll nicht unterstützt" #: src/error.c:173 msgid "Socket type not supported" msgstr "Sockeltyp nicht unterstützt" #. These are the explanations of the various name server error codes #: src/error.c:174 src/error.c:212 msgid "Host not found" msgstr "Rechner nicht gefunden" #: src/error.c:175 src/error.c:213 msgid "Temporary name server error - try again later" msgstr "Temporärer DNS Fehler - Versuchen sie es später nochmal" #: src/error.c:176 msgid "Failed to contact nameserver" msgstr "Kann mit Metaserver nicht verbinden" #: src/error.c:177 msgid "Valid name, but no DNS data record present" msgstr "Gültiger Name, aber kein DNS Datensatz vorhanden" #: src/error.c:183 #, c-format msgid "Network error code %d" msgstr "Netzwerkfehler code %d" #: src/error.c:220 #, c-format msgid "Name server error code %d" msgstr "DNS Fehler code %d" #: src/message.c:420 #, c-format msgid "Internal metaserver error \"%s\"" msgstr "Interner Metaserver Fehler \"%s\"" #: src/message.c:424 #, c-format msgid "Bad metaserver reply \"%s\"" msgstr "Falsche Metaserverantwort \"%s\"" #: src/message.c:428 #, c-format msgid "Unknown metaserver error code %d" msgstr "Unbekannter Metaserver Fehlercode %d" #: src/message.c:1167 msgid "Do you run?" msgstr "Willst Du wegrennen?" #: src/message.c:1170 msgid "Do you run, or fight?" msgstr "Willst Du Rennen, oder Fighten?" #: src/message.c:1369 msgid "pitifully armed" msgstr "kaum bewaffnet" #: src/message.c:1370 msgid "lightly armed" msgstr "leicht bewaffnet" #: src/message.c:1371 msgid "moderately well armed" msgstr "gut bewaffnet" #: src/message.c:1372 msgid "heavily armed" msgstr "schwer bewaffnet" #: src/message.c:1372 msgid "armed to the teeth" msgstr "bis an die Zähne bewaffnet" #: src/message.c:1376 #, c-format msgid "%s - %s - is chasing you, man!" msgstr "%s - %s - verfolgt dich Mann!" #: src/message.c:1380 #, c-format msgid "%s and %d %tde - %s - are chasing you, man!" msgstr "%s und %d %tde - %s - verfolgen dich Mann!" #: src/message.c:1384 #, c-format msgid "%s arrives with %d %tde, %s!" msgstr "%s trifft ein mit %d %tde, %s!" #: src/message.c:1391 #, c-format msgid "%s stands and takes it" msgstr "%s steht rum und kriegts voll ab." #: src/message.c:1393 msgid "You stand there like a dummy." msgstr "Du bleibst stehen und spielst Zielscheibe" #: src/message.c:1398 #, c-format msgid "%s tries to get away, but fails." msgstr "%s versucht erfolglos zu fliehen." #: src/message.c:1401 msgid "Panic! You can't get away!" msgstr "Oh Gott! Du kommst nicht weg!" #: src/message.c:1410 #, c-format msgid "%s has got away to %tde!" msgstr "%s ist geflohen nach %tde!" #: src/message.c:1413 #, c-format msgid "%s has got away!" msgstr "%s ist abgehauen!" #: src/message.c:1416 msgid "You got away!" msgstr "Du entkommst!" #: src/message.c:1422 msgid "Guns reloaded..." msgstr "Waffen nachgeladen..." #: src/message.c:1427 #, c-format msgid "%s shoots at %s... and misses!" msgstr "%s schießt auf %s... und verfehlt!" #: src/message.c:1430 #, c-format msgid "%s shoots at you... and misses!" msgstr "%s schießt auf dich... und verfehlt!" #: src/message.c:1433 #, c-format msgid "You missed %s!" msgstr "Du triffst %s nicht!" #: src/message.c:1439 #, c-format msgid "%s shoots %s dead." msgstr "%s erschießt %s." #: src/message.c:1442 #, c-format msgid "%s shoots at %s and kills a %tde!" msgstr "%s schießt auf %s und tötet eine %tde!" #: src/message.c:1445 #, c-format msgid "%s shoots at %s." msgstr "%s schießt auf %s." #: src/message.c:1450 #, c-format msgid "%s wasted you, man! What a drag!" msgstr "" #: src/message.c:1454 #, c-format msgid "%s shoots at you... and kills a %tde!" msgstr "%s schießt auf dich und tötet eine %tde!" #: src/message.c:1457 #, c-format msgid "%s hits you, man!" msgstr "%s trifft Dich!" #: src/message.c:1461 #, c-format msgid "You killed %s!" msgstr "Du triffst und tötest %s" #: src/message.c:1463 #, c-format msgid "You hit %s, and killed a %tde!" msgstr "Du triffst %s und tötest %tde!" #: src/message.c:1466 #, c-format msgid "You hit %s!" msgstr "Du schießt, und triffst %s!" #: src/message.c:1469 msgid " You find %P on the body!" msgstr "Du findest %P in der Leiche!" #: src/message.c:1471 msgid " You loot the body!" msgstr "Du plünderst die verdammte Leiche!" #: src/network.c:103 #, c-format msgid "Cannot initialise WinSock (%s)!" msgstr "" #. SOCKS version 5 error messages #: src/network.c:379 msgid "SOCKS server general failure" msgstr "" #: src/network.c:380 msgid "Connection denied by SOCKS ruleset" msgstr "" #: src/network.c:381 msgid "SOCKS: Network unreachable" msgstr "" #: src/network.c:382 msgid "SOCKS: Host unreachable" msgstr "" #: src/network.c:383 msgid "SOCKS: Connection refused" msgstr "" #: src/network.c:384 msgid "SOCKS: TTL expired" msgstr "" #: src/network.c:385 msgid "SOCKS: Command not supported" msgstr "" #: src/network.c:386 msgid "SOCKS: Address type not supported" msgstr "" #: src/network.c:387 msgid "SOCKS server rejected all offered methods" msgstr "" #: src/network.c:388 msgid "Unknown SOCKS address type returned" msgstr "" #: src/network.c:389 msgid "SOCKS authentication failed" msgstr "" #: src/network.c:390 msgid "SOCKS authentication cancelled by user" msgstr "" #. SOCKS version 4 error messages #: src/network.c:393 msgid "SOCKS: Request rejected or failed" msgstr "" #: src/network.c:394 msgid "SOCKS: Rejected - unable to contact identd" msgstr "" #: src/network.c:396 msgid "SOCKS: Rejected - identd reports different user-id" msgstr "" #. SOCKS errors due to protocol violations #: src/network.c:399 msgid "Unknown SOCKS reply code" msgstr "" #: src/network.c:400 msgid "Unknown SOCKS reply version code" msgstr "" #: src/network.c:401 msgid "Unknown SOCKS server version" msgstr "" #: src/network.c:407 #, c-format msgid "SOCKS error code %d" msgstr "" #. Various HTTP error messages #: src/network.c:434 msgid "Number of tries exceeded" msgstr "" #: src/network.c:437 #, c-format msgid "Bad auth header: %s" msgstr "" #: src/network.c:440 #, c-format msgid "Bad redirect: %s" msgstr "" #: src/network.c:443 #, c-format msgid "Invalid HTTP status line: %s" msgstr "" #: src/network.c:447 msgid "403: forbidden" msgstr "" #: src/network.c:450 msgid "404: page not found" msgstr "" #: src/network.c:453 msgid "401: HTTP authentication failed" msgstr "" #: src/network.c:456 msgid "407: HTTP proxy authentication failed" msgstr "" #: src/network.c:460 msgid "Bad redirect message from server" msgstr "" #: src/network.c:464 #, c-format msgid "Unknown HTTP error %d" msgstr "" #: src/network.c:466 #, c-format msgid "%d: redirect error" msgstr "" #: src/network.c:468 #, c-format msgid "%d: HTTP client error" msgstr "" #: src/network.c:470 #, c-format msgid "%d: HTTP server error" msgstr "" #: src/admin.c:52 #, c-format msgid "" "Attempting to connect to local dopewars server via Unix domain\n" " socket %s...\n" msgstr "" #: src/admin.c:70 msgid "" "Connection established; use Ctrl-D to close your session.\n" "\n" msgstr "" #: src/configfile.c:238 msgid "Could not determine local config file to write to" msgstr "Kann lokale Konfigurationsdatei nicht finden" #: src/configfile.c:250 #, c-format msgid "Could not open file %s: %s" msgstr "Kann Datei nicht öffnen %s: %s" #: src/AIPlayer.c:76 #, c-format msgid "" "Could not connect to dopewars server\n" "(%s)\n" "AI Player terminating abnormally." msgstr "" "Kann keine Verbindung zu dopewars server (%s) herstellen\n" " KI Spieler unnormal beendet." #: src/AIPlayer.c:89 msgid "Connection established\n" msgstr "Verbindung erstellt.\n" #: src/AIPlayer.c:109 #, c-format msgid "Connected to SOCKS server %s...\n" msgstr "" #: src/AIPlayer.c:112 msgid "Authenticating with SOCKS server\n" msgstr "" #: src/AIPlayer.c:115 #, c-format msgid "Asking SOCKS for connect to %s...\n" msgstr "" #: src/AIPlayer.c:126 msgid "" "Using Socks.Auth.User and Socks.Auth.Password for SOCKS5 authentication\n" msgstr "" #: src/AIPlayer.c:153 #, c-format msgid "AI Player started; attempting to contact server at %s:%d..." msgstr "KI Spieler gestartet; erstelle Verbindung zu Server %s auf port %d ..." #: src/AIPlayer.c:214 msgid "AI Player terminated OK.\n" msgstr "KI Spieler beendet OK.\n" #: src/AIPlayer.c:219 msgid "Connection to server lost!\n" msgstr "Verbindung zu Server verloren!\n" #: src/AIPlayer.c:244 #, c-format msgid "Using name %s\n" msgstr "Benutze Name %s\n" #: src/AIPlayer.c:326 msgid "Players in this game:-\n" msgstr "Spieler im Spiel:-\n" #: src/AIPlayer.c:352 #, c-format msgid "%s joins the game.\n" msgstr "%s betritt das Spiel.\n" #: src/AIPlayer.c:356 #, c-format msgid "%s has left the game.\n" msgstr "%s verlässt das Spiel.\n" #: src/AIPlayer.c:360 msgid "Jetting to %tde with %P cash and %P debt\n" msgstr "Reise von %tde mit %P Bargeld und %P Schulden\n" #: src/AIPlayer.c:384 msgid "AI Player killed. Terminating normally.\n" msgstr "KI Spieler wurde getötet. Beende normal.\n" #: src/AIPlayer.c:405 msgid "Game time is up. Leaving game.\n" msgstr "Spielzeit ist um. Verlasse Spiel.\n" #: src/AIPlayer.c:408 msgid "AI Player pushed from the server.\n" msgstr "KI Spieler wurde vom Server geworfen.\n" #: src/AIPlayer.c:411 msgid "The server has terminated.\n" msgstr "Der Server wurde beendet.\n" #: src/AIPlayer.c:480 msgid "Selling %d %tde at %P\n" msgstr "Verkaufe %d %tde in %P\n" #: src/AIPlayer.c:495 msgid "Buying %d %tde at %P\n" msgstr "Kaufe %d %tde für %P\n" #: src/AIPlayer.c:528 msgid "Buying a %tde for %P at the gun shop\n" msgstr "Kaufe eine %tde für %P im Waffenladen\n" #: src/AIPlayer.c:579 msgid "Debt of %P paid off to loan shark\n" msgstr "%P Schulden an den Kredithai zurück gezahlt.\n" #: src/AIPlayer.c:611 #, c-format msgid "Loan shark located at %s\n" msgstr "Kredithai ist in %s\n" #: src/AIPlayer.c:619 #, c-format msgid "Gun shop located at %s\n" msgstr "Waffenladen ist in%s\n" #: src/AIPlayer.c:627 #, c-format msgid "Pub located at %s\n" msgstr "Pub ist in %s\n" #: src/AIPlayer.c:642 #, c-format msgid "Bank located at %s\n" msgstr "Bank ist in %s\n" #. Random messages to send from the AI player to other players #: src/AIPlayer.c:671 msgid "Call yourselves drug dealers?" msgstr "Ihr wollt Drogendealer sein?" #: src/AIPlayer.c:672 msgid "A trained monkey could do better..." msgstr "Selbst ein trainierter Affe könnte das besser" #: src/AIPlayer.c:673 msgid "Think you're hard enough to deal with the likes of me?" msgstr "Denkste Du bist hart genug um mit mir zu handeln?" #: src/AIPlayer.c:674 msgid "Zzzzz... are you dealing in candy or what?" msgstr "Zzzzz... Handelst du mit Schokoriegeln oder was?" #: src/AIPlayer.c:675 msgid "Reckon I'll just have to shoot you for your own good." msgstr "Kleiner, ich werde dich töten. Es ist ja nur zu deinem besten." #: src/AIPlayer.c:690 msgid "" "This binary has been compiled without networking support, and thus cannot " "act as an AI player.\n" "Recompile passing --enable-networking to the configure script." msgstr "" "Dieses Programm wurde ohne Netzwerkunterstützung kompiliert \n" " und kann dadurch nicht als KI Spieler eingesetzt werden.\n" "Neu kompilieren und --enable-networking bei ./configure angeben" #: src/sound.c:190 #, c-format msgid "" "Invalid plugin \"%s\" selected.\n" "(%s available; now using \"%s\".)" msgstr "" dopewars-1.5.12/po/POTFILES.in0000644001565000007070000000057007506110170012544 00000000000000# List of source files containing translatable strings src/dopewars.c src/util.c src/curses_client/curses_client.c src/gui_client/gtk_client.c src/gui_client/optdialog.c src/gui_client/newgamedia.c src/gtkport/gtkport.c src/cursesport/cursesport.c src/winmain.c src/serverside.c src/error.c src/message.c src/network.c src/admin.c src/configfile.c src/AIPlayer.c src/sound.c dopewars-1.5.12/configure.in0000644001565000007070000003472510355323245012700 00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT(src/dopewars.c) dnl Initialise automake AM_INIT_AUTOMAKE(dopewars,1.5.12) dnl Write configuration defines into config.h AM_CONFIG_HEADER(config.h) dnl We need this for the Darwin test, plus gettext uses it anyway AC_CANONICAL_HOST dnl Checks for programs. AC_PROG_CC AC_ISC_POSIX AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_LIBTOOL dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h stdlib.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_HEADER_TIME AC_STRUCT_TM dnl Fix Apple's stupid C preprocessor case "$host_os" in darwin*) CPPFLAGS="$CPPFLAGS -no-cpp-precomp" esac HAVE_FIXED_GTK="no" dnl Process client options AC_ARG_ENABLE(gui-client, [ --enable-gui-client include graphical client (GTK+/Win32)], [ GUI_CLIENT="$enableval" ],[ GUI_CLIENT="probe" ]) AC_ARG_ENABLE(curses-client, [ --enable-curses-client include curses client], [ CURSES_CLIENT="$enableval" ],[ CURSES_CLIENT="probe" ]) AC_ARG_ENABLE(gui-server, [ --enable-gui-server use a simple GTK+/Win32 GUI for the server], [ GUI_SERVER="$enableval" ],[ GUI_SERVER="probe" ]) AC_ARG_ENABLE(glib2, [ --disable-glib2 use GLib/GTK+ 1.x, even if 2.x is found], [ USE_GLIB2="$enableval" ],[ USE_GLIB2="yes" ]) AC_ARG_WITH(esd, [ --without-esd do not support ESD sound output], [ USE_ESD="$withval" ], [ USE_ESD="probe" ]) AC_ARG_WITH(sdl, [ --without-sdl do not support SDL sound output], [ USE_SDL="$withval" ], [ USE_SDL="probe" ]) ESD=no SDL=no dnl Test for Cygwin environment AC_CYGWIN dnl Let the user override this with the --enable-nativewin32 option AC_ARG_ENABLE(nativewin32, [ --enable-nativewin32 build a native Win32 binary under Cygwin], [ CYGWIN="$enableval" ]) if test "$CYGWIN" = "yes" ; then AC_MSG_RESULT([Configuring for native Win32 binary under Cygwin]) AC_DEFINE(CYGWIN, 1, [Define if building under the Cygwin environment]) dnl This flag allows linking with MSVC-generated DLLs. -fnative-struct was dnl used by gcc 2, and -mms-bitfields by gcc 3, so it is tested for here. bkp_CFLAGS="$CFLAGS" AC_MSG_CHECKING(for compiler MSVC compatibility flag) CFLAGS="$CFLAGS -mms-bitfields" AC_COMPILE_IFELSE([ AC_LANG_PROGRAM() ], [ mscompat="-mms-bitfields" ], [ mscompat="-fnative-struct" ]) AC_MSG_RESULT($mscompat) CFLAGS="$bkp_CFLAGS" dnl Libraries and flags dnl N.B. -mno-cygwin is included in CPPFLAGS so the right headers dnl are detected (in /usr/include/mingw/ rather than /usr/include) dnl later on - e.g. sys/param.h isn't in mingw. CFLAGS="$CFLAGS -mwindows $mscompat" CPPFLAGS="$CPPFLAGS -mno-cygwin" LIBS="$LIBS -lwsock32 -lcomctl32 -lmpr" LDFLAGS="$LDFLAGS -mno-cygwin" AM_PATH_GLIB_2_0(2.0.0, , [AC_MSG_ERROR(GLib is required)]) AC_DEFINE(HAVE_GLIB2, 1, [Do we have GLIB 2.0 ?]) dnl We need to compile and then link in the Windows resources WNDRES="dopewars.res" AC_SUBST(WNDRES) dnl Add support for the Windows multimedia system SOUND_LIBS="$SOUND_LIBS -lwinmm" PLUGOBJS="$PLUGOBJS plugins/sound_winmm.o" AC_DEFINE(HAVE_WINMM, 1, [Do we have the Windows multimedia system?]) dnl The gtkport implementation works just fine dnl for gtk_entry_set_visibility() HAVE_FIXED_GTK="yes" dnl Use graphical server by default if test "$GUI_SERVER" = "probe"; then GUI_SERVER="yes" fi dnl Read high score files, docs and locale files from current directory datadir="." localstatedir="." else AC_MSG_RESULT([Configuring for Unix binary]) dnl On true Unix systems, test for valid curses-like libraries if test "$CURSES_CLIENT" != "no" ; then AC_CHECK_LIB(ncurses,newterm) if test "$ac_cv_lib_ncurses_newterm" = "no" ; then AC_CHECK_LIB(curses,newterm) if test "$ac_cv_lib_curses_newterm" = "no" ; then AC_CHECK_LIB(cur_colr,newterm) if test "$ac_cv_lib_cur_colr_newterm" = "no" ; then if test "$CURSES_CLIENT" = "yes" ; then AC_MSG_ERROR(Cannot find any curses-type library) else AC_MSG_WARN(Cannot find any curses-type library) CURSES_CLIENT="no" fi fi fi fi fi gtk2_found="probe" if test "$GUI_CLIENT" != "no" -o "$GUI_SERVER" != "no"; then if test "$USE_GLIB2" = "yes" ; then AM_PATH_GTK_2_0(2.0.0,gtk2_found="yes",gtk2_found="no") fi if test "$gtk2_found" = "yes" ; then HAVE_FIXED_GTK="yes" else gtk_found="no" AM_PATH_GTK(1.2.0,gtk_found="yes") if test "$gtk_found" = "no" ; then if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then AC_MSG_ERROR(Cannot find GTK+) else AC_MSG_WARN(Cannot find GTK+) GUI_CLIENT="no" GUI_SERVER="no" fi else AC_MSG_CHECKING([for non-buggy GTK+ ( >= 1.2.10 )]) dnl Versions older than 1.2.10 are buggy if test "$gtk_config_major_version" -gt 1 ; then HAVE_FIXED_GTK="yes" elif test "$gtk_config_major_version" -eq 1 ; then if test "$gtk_config_minor_version" -gt 2 ; then dnl We assume all 1.3.x releases are OK HAVE_FIXED_GTK="yes" elif test "$gtk_config_minor_version" -eq 2 -a \ "$gtk_config_micro_version" -ge 10 ; then HAVE_FIXED_GTK="yes" fi fi AC_MSG_RESULT([$HAVE_FIXED_GTK]) fi fi fi dnl We NEED glib; N.B. don't link against glib2 if we're using GTK+1 glib2_found="no" if test "$USE_GLIB2" = "yes" -a "$gtk2_found" != "no"; then AM_PATH_GLIB_2_0(2.0.0, glib2_found="yes") fi if test "$glib2_found" = "no" ; then AM_PATH_GLIB(1.2.0, , [AC_MSG_ERROR(Cannot find glib - aborting)]) else AC_DEFINE(HAVE_GLIB2, 1, [Do we have GLIB 2.0 ?]) fi dnl Add esound support if available if test "$USE_ESD" != "no"; then AM_PATH_ESD(0.0.20, ESD=yes) if test "$ESD" = "yes"; then SOUND_CFLAGS="$SOUND_CFLAGS $ESD_CFLAGS" SOUND_LIBS="$SOUND_LIBS $ESD_LIBS" PLUGOBJS="$PLUGOBJS plugins/sound_esd.o" AC_SUBST(ESD_LIBS) AC_DEFINE(HAVE_ESD, 1, [Do we have the ESD sound library?]) elif test "$USE_ESD" = "yes"; then AC_MSG_ERROR(Cannot find ESD library) fi fi dnl Add SDL_mixer sound support if available if test "$USE_SDL" != "no"; then SDL_ALL=no AM_PATH_SDL(1.0.0, SDL=yes) if test "$SDL" = "yes"; then headers=no libs=no AC_CHECK_HEADER(SDL/SDL_mixer.h, headers=yes) AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, libs=yes) if test "$libs" = "yes"; then if test "$headers" = "yes"; then SOUND_CFLAGS="$SOUND_CFLAGS $SDL_CFLAGS" SDL_LIBS="$SDL_LIBS -lSDL_mixer" SOUND_LIBS="$SOUND_LIBS $SDL_LIBS" PLUGOBJS="$PLUGOBJS plugins/sound_sdl.o" AC_SUBST(SDL_LIBS) AC_DEFINE(HAVE_SDL_MIXER, 1, [Do we have the SDL_mixer sound library?]) SDL_ALL=yes fi fi fi if test "$USE_SDL" = "yes" -a "$SDL_ALL" = "no"; then AC_MSG_ERROR(Cannot find SDL library) fi fi dnl Use console server by default if test "$GUI_SERVER" = "probe"; then GUI_SERVER="no" fi dnl Some systems use int rather than socklen_t as an argument to getsockopt AC_MSG_CHECKING([for socklen_t data type]) AC_TRY_COMPILE([#include #include ],[socklen_t val], [AC_MSG_RESULT([yes]) AC_DEFINE(HAVE_SOCKLEN_T, 1, [Do we have the socklen_t data type?])], [AC_MSG_RESULT([no])]) fi AM_CONDITIONAL(ESD, test "$ESD" = "yes") AM_CONDITIONAL(SDL, test "$SDL" = "yes") dnl If probing was unsuccessful, these will be set to "no"; therefore, dnl if still set to "probe" then everything worked, so set to "yes" if test "$GUI_CLIENT" = "probe"; then GUI_CLIENT="yes" fi if test "$CURSES_CLIENT" = "probe"; then CURSES_CLIENT="yes" fi dnl Do i18n stuff ALL_LINGUAS="de pl pt_BR fr fr_CA nn es es_ES" AM_GNU_GETTEXT if test "$gt_cv_func_gettext_libintl" = "yes"; then LIBS="-lintl $LIBS" fi if test "$GUI_CLIENT" = "yes" ; then AC_DEFINE(GUI_CLIENT, 1, [Use the graphical client?]) fi if test "$CURSES_CLIENT" = "yes" ; then AC_DEFINE(CURSES_CLIENT, 1, [Use the (n)curses client?]) fi if test "$GUI_SERVER" = "yes" ; then AC_DEFINE(GUI_SERVER, 1, [Use a graphical server?]) fi if test "$HAVE_FIXED_GTK" = "yes" ; then AC_DEFINE(HAVE_FIXED_GTK, 1, [Do we have GTK+ with a non-buggy gtk_entry_set_visibility() ? (i.e. >= 1.2.10)]) fi dnl Can we use a long long datatype for price_t ? AC_CHECK_SIZEOF(long long) dnl Checks for library functions. AC_FUNC_MEMCMP AC_FUNC_SETVBUF_REVERSED AC_FUNC_STRFTIME AC_CHECK_FUNCS(strdup strstr getopt getopt_long fork) dnl Enable plugins only if we can find the dlopen function, and dnl the user does not disable them with --disable-plugins or --disable-shared AC_ARG_ENABLE(plugins, [ --enable-plugins use dynamically-loaded sound modules], [ plugins="$enableval" ],[ plugins="probe" ]) if test "$enable_shared" = "no" ; then plugins="no" fi if test "$plugins" != "no" ; then AC_SEARCH_LIBS(dlopen, dl) AC_CHECK_FUNC(dlopen, [plugins="yes"], [plugins="no"]) fi if test "$plugins" = "yes" ; then AC_DEFINE(PLUGINS, 1, [Define if using dynamically-loaded sound modules]) plugindir="${libdir}/dopewars" AC_SUBST(plugindir) DP_EXPAND_DIR(PLUGINDIR, '${plugindir}') AC_DEFINE_UNQUOTED(PLUGINDIR, "$PLUGINDIR", [The directory containing the plugins]) PLUGOBJS="" else PLUGLIBS="$SOUND_LIBS" AC_SUBST(PLUGLIBS) fi AC_SUBST(PLUGOBJS) AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes") dnl Enable networking by default under Win32, but on Unix systems dnl make it dependent on the availability of select and socket network="no" if test "$CYGWIN" = "yes" ; then network="yes" else dnl Check for socket and select even if networking gets manually dnl disabled below, since select is used if available for dnl millisecond sleeping AC_SEARCH_LIBS(socket,socket) AC_SEARCH_LIBS(gethostbyname,nsl socket) AC_CHECK_FUNCS(socket gethostbyname select) if test "$ac_cv_func_select" = "yes" ; then if test "$ac_cv_func_socket" = "yes" ; then if test "$ac_cv_func_gethostbyname" = "yes" ; then network="yes" fi fi fi fi dnl Let the user override this with the --enable-networking option AC_ARG_ENABLE(networking, [ --enable-networking dopewars will use TCP/IP to connect to servers], [ network="$enableval" ]) dnl Inform the user of the status of networking if test "$network" = "yes" ; then AC_DEFINE(NETWORKING, 1, [Define if dopewars should use TCP/IP networking to connect to servers]) fi AC_ARG_ENABLE(strict, [ --enable-strict if using gcc, enable extra warnings above -Wall], [ extrawarnings="$enableval" ]) dnl Enable full warnings if using gcc if test -n "$GCC"; then if test "$extrawarnings" = "yes" ; then CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wcast-qual -Wcast-align -Wsign-compare -Waggregate-return -Wredundant-decls -Wnested-externs -Wunused" else CFLAGS="$CFLAGS -Wall" fi fi dnl Tell dopewars where the high scores, docs and locale files are DP_EXPAND_DIR(DPSCOREDIR, '${localstatedir}') AC_DEFINE_UNQUOTED(DPSCOREDIR, "$DPSCOREDIR", [The directory containing the high score file]) AC_SUBST(DPSCOREDIR) DP_EXPAND_DIR(DPDATADIR, '${datadir}') AC_DEFINE_UNQUOTED(DPDATADIR, "$DPDATADIR", [The directory containing the docs and sounds]) AC_SUBST(DPDATADIR) localedir=${datadir}/locale AC_SUBST(localedir) DP_EXPAND_DIR(LOCALEDIR, '${localedir}') AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [The directory containing locale files]) dnl Add in the required clients AM_CONDITIONAL(GUI_CLIENT, test "$GUI_CLIENT" = "yes") if test "$GUI_CLIENT" = "yes" ; then GUILIB="gui_client/libguiclient.a" AC_SUBST(GUILIB) fi AM_CONDITIONAL(CURSES_CLIENT, test "$CURSES_CLIENT" = "yes") if test "$CURSES_CLIENT" = "yes" ; then CURSESLIB="curses_client/libcursesclient.a" AC_SUBST(CURSESLIB) fi dnl Compile in the gtkport stuff for any kind of GUI AM_CONDITIONAL(GTKPORT, test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes") if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then GTKPORTLIB="gtkport/libgtkport.a" AC_SUBST(GTKPORTLIB) fi dnl Compile in the cursesport stuff for the curses client only AM_CONDITIONAL(CURSESPORT, test "$CURSES_CLIENT" = "yes") if test "$CURSES_CLIENT" = "yes" ; then CURSESPORTLIB="cursesport/libcursesport.a" AC_SUBST(CURSESPORTLIB) fi AC_SUBST(SOUND_CFLAGS) AC_SUBST(SOUND_LIBS) AC_OUTPUT([ Makefile src/Makefile src/gui_client/Makefile src/curses_client/Makefile src/gtkport/Makefile src/cursesport/Makefile src/plugins/Makefile sounds/Makefile sounds/19.5degs/Makefile doc/Makefile doc/help/Makefile intl/Makefile dopewars.spec doc/dopewars.6 po/Makefile.in], [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile]) echo echo "dopewars has been configured as follows:" echo if test "$CYGWIN" = "yes" ; then echo "Building native Windows (Win32) version" else echo "Building Unix version" fi echo echo "CLIENTS" if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then echo " - No clients will be compiled (binary will be server/AI only)" else if test "$CURSES_CLIENT" = "yes" ; then echo " - Text-mode (curses) client" fi if test "$GUI_CLIENT" = "yes" ; then echo " - Graphical (GTK+ or Win32) client" fi fi echo if test "$network" = "yes" ; then echo "TCP/IP networking support enabled for multi-player games" echo echo "SERVER" if test "$GUI_SERVER" = "yes" ; then echo " - Graphical server" else echo " - Text-mode server" fi else echo "Networking support DISABLED; single-player mode only" fi if test "$GUI_SERVER" = "yes" -o "$GUI_CLIENT" = "yes" ; then if test "$HAVE_FIXED_GTK" = "no" ; then cat < #include #include #include #include #ifdef LIBBZ2 # include "bzlib/bzlib.h" #else # include "zlib/zlib.h" #endif #include #include "contid.h" #include "guifunc.h" #include "util.h" typedef enum { DL_INTRO = 0, DL_LICENCE, DL_SHORTCUTS, DL_INSTALLDIR, DL_DOINSTALL, DL_NUM } DialogType; InstData *idata; HWND mainDlg[DL_NUM]; DialogType CurrentDialog; HINSTANCE hInst = NULL; char *oldversion = NULL; BOOL services_supported, have_admin_rights, install_all_users; DWORD WINAPI DoInstall(LPVOID lpParam); static void GetWinText(char **text, HWND hWnd); static void FillFolderList(void); /* * Does this OS version support NT services? If so, do we have the * necessary (administrator) rights to use them? */ void ServiceCheck(BOOL *hasServices, BOOL *isAdmin) { SC_HANDLE scManager; scManager = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE); if (scManager) { *hasServices = *isAdmin = TRUE; CloseServiceHandle(scManager); } else if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) { *hasServices = *isAdmin = FALSE; } else { *hasServices = TRUE; *isAdmin = FALSE; } } BOOL InstallService(InstData *idata) { SC_HANDLE scManager, scService; HKEY key; bstr *str; static char keyprefix[] = "SYSTEM\\ControlSet001\\Services\\"; NTService *service; service = idata->service; if (!service) return FALSE; scManager = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE); if (!scManager) { DisplayError("Cannot connect to service manager", TRUE, FALSE); return FALSE; } str = bstr_new(); bstr_assign(str, idata->installdir); bstr_appendpath(str, service->exe); scService = CreateService(scManager, service->name, service->display, SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS, SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL, str->text, NULL, NULL, NULL, NULL, NULL); if (!scService) { DisplayError("Cannot create service", TRUE, FALSE); bstr_free(str, TRUE); return FALSE; } bstr_assign(str, keyprefix); bstr_append(str, service->name); if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, str->text, 0, KEY_WRITE, &key) == ERROR_SUCCESS) { RegSetValueEx(key, "Description", 0, REG_SZ, service->description, strlen(service->description)); RegCloseKey(key); } CloseServiceHandle(scService); CloseServiceHandle(scManager); return TRUE; } /* * Checks that the install directory exists, and creates it if it does not. * Returns TRUE if the directory is OK. */ BOOL CheckCreateDir(void) { char *instdir; GetWinText(&idata->installdir, GetDlgItem(mainDlg[DL_INSTALLDIR], ED_INSTDIR)); instdir = idata->installdir; if (SetCurrentDirectory(instdir)) { return TRUE; } else { if (MessageBox(mainDlg[CurrentDialog], "The install directory does not exist.\n" "Create it?", "Install Directory", MB_YESNO) == IDYES) { if (CreateWholeDirectory(instdir)) { return TRUE; } else { DisplayError("Could not create directory", TRUE, FALSE); } } return FALSE; } } void ShowNewDialog(DialogType NewDialog) { RECT DeskRect, OurRect; int newX, newY; HWND hWnd; HANDLE hThread; DWORD threadID; if (NewDialog < 0 || NewDialog >= DL_NUM) return; if (NewDialog > CurrentDialog) { switch (CurrentDialog) { case DL_INSTALLDIR: if (!CheckCreateDir()) return; break; case DL_INTRO: install_all_users = (services_supported && IsDlgButtonChecked(mainDlg[DL_INTRO], RB_ALLUSERS) == BST_CHECKED); FillFolderList(); break; default: break; } } hWnd = mainDlg[NewDialog]; if (GetWindowRect(hWnd, &OurRect) && GetWindowRect(GetDesktopWindow(), &DeskRect)) { newX = (DeskRect.left + DeskRect.right + OurRect.left - OurRect.right) / 2; newY = (DeskRect.top + DeskRect.bottom + OurRect.top - OurRect.bottom) / 2; SetWindowPos(hWnd, HWND_TOP, newX, newY, 0, 0, SWP_NOSIZE); } ShowWindow(hWnd, SW_SHOW); if (CurrentDialog != DL_NUM) ShowWindow(mainDlg[CurrentDialog], SW_HIDE); CurrentDialog = NewDialog; if (NewDialog == DL_DOINSTALL) { hThread = CreateThread(NULL, 0, DoInstall, NULL, 0, &threadID); } } int CALLBACK BrowseCallback(HWND hwnd, UINT msg, LPARAM lParam, LPARAM lpData) { switch (msg) { case BFFM_INITIALIZED: SendMessage(hwnd, BFFM_SETSELECTION, TRUE, (LPARAM)idata->installdir); break; } return 0; } void SelectInstDir(HWND parent) { BROWSEINFO bi = { 0 }; TCHAR path[MAX_PATH]; LPITEMIDLIST pidl; IMalloc *imalloc = 0; if (SUCCEEDED(SHGetMalloc(&imalloc))) { bi.lpszTitle = "Pick a directory"; bi.pszDisplayName = path; bi.ulFlags = BIF_STATUSTEXT | BIF_RETURNONLYFSDIRS; bi.lpfn = BrowseCallback; pidl = SHBrowseForFolder(&bi); if (pidl) { if (SHGetPathFromIDList(pidl, path)) { bfree(idata->installdir); idata->installdir = bstrdup(path); SendDlgItemMessage(mainDlg[DL_INSTALLDIR], ED_INSTDIR, WM_SETTEXT, 0, (LPARAM)idata->installdir); } imalloc->lpVtbl->Free(imalloc, pidl); } imalloc->lpVtbl->Release(imalloc); } } void ConditionalExit(HWND hWnd) { if (MessageBox(hWnd, "This will exit without installing any new software on " "your machine.\nAre you sure you want to quit?\n\n(You can " "continue the installation at a\nlater date simply by " "running this program again.)", "Exit Install", MB_YESNO | MB_ICONQUESTION) == IDYES) { PostQuitMessage(0); } } void UpdateStartMenuFolder(void) { char *buf; HWND folderlist; LRESULT lres; int selind; folderlist = GetDlgItem(mainDlg[DL_SHORTCUTS], LB_FOLDLIST); if (!folderlist) return; lres = SendMessage(folderlist, LB_GETCURSEL, 0, 0); if (lres == LB_ERR) return; selind = (int)lres; lres = SendMessage(folderlist, LB_GETTEXTLEN, (WPARAM)selind, 0); if (lres == LB_ERR) return; buf = bmalloc(lres + 1); lres = SendMessage(folderlist, LB_GETTEXT, (WPARAM)selind, (LPARAM)buf); if (lres != LB_ERR) { SendDlgItemMessage(mainDlg[DL_SHORTCUTS], ED_FOLDER, WM_SETTEXT, 0, (LPARAM)buf); } bfree(buf); } BOOL CALLBACK MainDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { case WM_INITDIALOG: return TRUE; case WM_COMMAND: if (HIWORD(wParam) == BN_CLICKED && lParam) { switch (LOWORD(wParam)) { case BT_CANCEL: ConditionalExit(hWnd); break; case BT_NEXT: ShowNewDialog(CurrentDialog + 1); break; case BT_BACK: ShowNewDialog(CurrentDialog - 1); break; case BT_FINISH: PostQuitMessage(0); break; case BT_BROWSE: SelectInstDir(hWnd); break; } } else if (HIWORD(wParam) == LBN_SELCHANGE && lParam && LOWORD(wParam) == LB_FOLDLIST) { UpdateStartMenuFolder(); } break; case WM_CLOSE: ConditionalExit(hWnd); return TRUE; } return FALSE; } LPVOID GetResource(LPCTSTR resname, LPCTSTR restype) { HRSRC hrsrc; HGLOBAL hglobal; LPVOID respt; hrsrc = FindResource(NULL, resname, restype); if (!hrsrc) DisplayError("Could not find resource", TRUE, TRUE); hglobal = LoadResource(NULL, hrsrc); if (!hglobal) DisplayError("Could not load resource", TRUE, TRUE); respt = LockResource(hglobal); if (!respt) DisplayError("Could not lock resource", TRUE, TRUE); return respt; } InstData *ReadInstData() { InstFiles *lastinst = NULL, *lastextra = NULL, *lastkeep = NULL; InstLink *lastmenu = NULL, *lastdesktop = NULL; char *instdata, *pt, *filename, *line2, *line3, *line4; bstr *idir; DWORD filesize; InstData *idata; instdata = GetResource(MAKEINTRESOURCE(0), "INSTLIST"); if (!instdata) return NULL; pt = instdata; idata = bmalloc(sizeof(InstData)); idata->flags = 0; idata->service = NULL; idata->totalsize = atol(pt); pt += strlen(pt) + 1; idata->product = bstrdup(pt); pt += strlen(pt) + 1; idir = bstr_new(); bstr_assign_progfilesdir(idir); bstr_appendpath(idir, pt); idata->installdir = idir->text; bstr_free(idir, FALSE); pt += strlen(pt) + 1; idata->startmenudir = bstrdup(pt); pt += strlen(pt) + 1; while (1) { filename = pt; pt += strlen(pt) + 1; if (filename[0]) { filesize = atol(pt); pt += strlen(pt) + 1; AddInstFiles(filename, filesize, &lastinst, &idata->instfiles); } else break; } while (1) { filename = pt; pt += strlen(pt) + 1; if (filename[0]) { filesize = atol(pt); pt += strlen(pt) + 1; AddInstFiles(filename, filesize, &lastextra, &idata->extrafiles); } else break; } while (1) { filename = pt; pt += strlen(pt) + 1; if (filename[0]) { line2 = pt; pt += strlen(pt) + 1; line3 = pt; pt += strlen(pt) + 1; AddInstLink(filename, line2, line3, &lastmenu, &idata->startmenu); } else break; } while (1) { filename = pt; pt += strlen(pt) + 1; if (filename[0]) { line2 = pt; pt += strlen(pt) + 1; line3 = pt; pt += strlen(pt) + 1; AddInstLink(filename, line2, line3, &lastdesktop, &idata->desktop); } else break; } filename = pt; pt += strlen(pt) + 1; if (filename[0]) { line2 = pt; pt += strlen(pt) + 1; line3 = pt; pt += strlen(pt) + 1; line4 = pt; pt += strlen(pt) + 1; AddServiceDetails(filename, line2, line3, line4, &idata->service); } while (1) { filename = pt; pt += strlen(pt) + 1; if (filename[0]) { filesize = atol(pt); pt += strlen(pt) + 1; AddInstFiles(filename, filesize, &lastkeep, &idata->keepfiles); } else break; } return idata; } #define BUFFER_SIZE (32*1024) char *GetFirstFile(InstFiles *filelist, DWORD totalsize) { DWORD bufsiz; char *inbuf, *outbuf; int status; #ifdef LIBBZ2 bz_stream z; #else z_stream z; #endif if (!filelist) return NULL; inbuf = GetResource(MAKEINTRESOURCE(1), "INSTFILE"); if (!inbuf) return NULL; bufsiz = filelist->filesize; outbuf = bmalloc(bufsiz + 1); #ifdef LIBBZ2 z.bzalloc = NULL; z.bzfree = NULL; z.opaque = NULL; BZ2_bzDecompressInit(&z, 0, 0); #else z.zalloc = Z_NULL; z.zfree = Z_NULL; z.opaque = Z_NULL; inflateInit(&z); #endif z.next_in = inbuf; z.avail_in = totalsize; z.next_out = outbuf; z.avail_out = bufsiz; while (1) { #ifdef LIBBZ2 status = BZ2_bzDecompress(&z); if ((status != BZ_OK && status != BZ_STREAM_END) || z.avail_out == 0) { break; } #else status = inflate(&z, Z_SYNC_FLUSH); if ((status != Z_OK && status != Z_STREAM_END) || z.avail_out == 0) { break; } #endif } #ifdef LIBBZ2 BZ2_bzDecompressEnd(&z); #else inflateEnd(&z); #endif outbuf[bufsiz] = '\0'; return outbuf; } BOOL OpenNextOutput(HANDLE *fout, InstFiles *filelist, InstFiles *keepfiles, InstFiles **listpt, DWORD *fileleft, HANDLE logf, BOOL *skipfile) { char *filename, *sep; bstr *str; InstFiles *keeppt; DWORD bytes_written; *skipfile = FALSE; if (*fout) CloseHandle(*fout); *fout = INVALID_HANDLE_VALUE; str = bstr_new(); if (*listpt) { if (!WriteFile (logf, (*listpt)->filename, strlen((*listpt)->filename) + 1, &bytes_written, NULL)) { printf("Write error\n"); } bstr_setlength(str, 0); bstr_append_long(str, (*listpt)->filesize); if (!WriteFile(logf, str->text, str->length + 1, &bytes_written, NULL)) { printf("Write error\n"); } *listpt = (*listpt)->next; } else *listpt = filelist; if (*listpt) { filename = (*listpt)->filename; sep = strrchr(filename, '\\'); if (sep) { *sep = '\0'; CreateWholeDirectory(filename); *sep = '\\'; } keeppt = keepfiles; while (keeppt && strcmp(keeppt->filename, filename) != 0) keeppt = keeppt->next; /* If the file is already installed (filesize!=0), then skip it */ if (keeppt && keeppt->filesize != 0) { *fout = INVALID_HANDLE_VALUE + 1; /* Make sure the handle is valid */ *skipfile = TRUE; } else { *fout = CreateFile(filename, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL); bstr_assign(str, "Installing file: "); bstr_append(str, filename); bstr_append(str, " (size "); bstr_append_long(str, (*listpt)->filesize); bstr_append(str, ")"); SendDlgItemMessage(mainDlg[DL_DOINSTALL], ST_FILELIST, WM_SETTEXT, 0, (LPARAM)str->text); if (*fout == INVALID_HANDLE_VALUE) { bstr_assign(str, "Cannot create file "); bstr_append(str, filename); DisplayError(str->text, TRUE, FALSE); } } *fileleft = (*listpt)->filesize; } bstr_free(str, TRUE); return (*fout != INVALID_HANDLE_VALUE); } HRESULT CreateLink(LPCSTR origPath, LPSTR linkArgs, LPSTR workDir, LPSTR linkPath, LPSTR linkDesc) { HRESULT hres; IShellLink *psl; IPersistFile *ppf; WORD wsz[MAX_PATH]; hres = CoCreateInstance(&CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, &IID_IShellLink, (void **)&psl); if (SUCCEEDED(hres)) { psl->lpVtbl->SetPath(psl, origPath); if (workDir) psl->lpVtbl->SetWorkingDirectory(psl, workDir); if (linkDesc) psl->lpVtbl->SetDescription(psl, linkDesc); if (linkArgs) psl->lpVtbl->SetArguments(psl, linkArgs); hres = psl->lpVtbl->QueryInterface(psl, &IID_IPersistFile, (void **)&ppf); if (SUCCEEDED(hres)) { MultiByteToWideChar(CP_ACP, 0, linkPath, -1, wsz, MAX_PATH); hres = ppf->lpVtbl->Save(ppf, wsz, TRUE); ppf->lpVtbl->Release(ppf); } else { DisplayError("Cannot write shortcut", FALSE, FALSE); } psl->lpVtbl->Release(psl); } else { DisplayError("Cannot create shortcut", FALSE, FALSE); } return hres; } void GetWinText(char **text, HWND hWnd) { int textlen; bfree(*text); *text = NULL; if (!hWnd) return; textlen = GetWindowTextLength(hWnd) + 1; if (!textlen) return; *text = bmalloc(textlen); if (!GetWindowText(hWnd, *text, textlen)) { bfree(*text); *text = NULL; } } void CreateLinks(char *linkdir, InstLink *linkpt) { bstr *linkpath, *origfile; linkpath = bstr_new(); origfile = bstr_new(); for (; linkpt; linkpt = linkpt->next) { bstr_assign(linkpath, linkdir); bstr_appendpath(linkpath, linkpt->linkfile); bstr_assign(origfile, idata->installdir); bstr_appendpath(origfile, linkpt->origfile); CreateLink(origfile->text, linkpt->args, idata->installdir, linkpath->text, NULL); } } void SetupShortcuts(HANDLE fout) { char *startmenu, *desktop; BOOL dodesktop; startmenu = GetStartMenuDir(install_all_users, idata); desktop = GetDesktopDir(); dodesktop = (IsDlgButtonChecked(mainDlg[DL_SHORTCUTS], CB_DESKTOP) == BST_CHECKED); if (startmenu) { if (CreateDirectory(startmenu, NULL)) { CreateLinks(startmenu, idata->startmenu); WriteLinkList(fout, idata->startmenu); } else { DisplayError("Could not create Start Menu directory", TRUE, FALSE); WriteLinkList(fout, NULL); } } else { WriteLinkList(fout, NULL); } if (dodesktop && desktop) { CreateLinks(desktop, idata->desktop); WriteLinkList(fout, idata->desktop); } else { WriteLinkList(fout, NULL); } bfree(startmenu); bfree(desktop); } void SetupUninstall() { HKEY key; DWORD disp; bstr *str, *uninstexe, *link; BOOL haveuninstall = FALSE; char *startmenu; InstFiles *listpt; for (listpt = idata->instfiles; listpt; listpt = listpt->next) { if (strcmp(listpt->filename, "uninstall.exe") == 0) { haveuninstall = TRUE; break; } } if (!haveuninstall) return; str = bstr_new(); uninstexe = bstr_new(); link = bstr_new(); bstr_assign(str, UninstallKey); bstr_appendpath(str, idata->product); if (RegCreateKeyEx(HKEY_LOCAL_MACHINE, str->text, 0, NULL, 0, KEY_WRITE, NULL, &key, &disp) == ERROR_SUCCESS) { RegSetValueEx(key, "DisplayName", 0, REG_SZ, idata->product, strlen(idata->product)); bstr_assign_windir(str); bstr_appendpath(str, UninstallEXE); bstr_append_c(str, ' '); bstr_append(str, idata->product); RegSetValueEx(key, "UninstallString", 0, REG_SZ, str->text, str->length); bstr_assign(str, idata->installdir); RegSetValueEx(key, "InstallDirectory", 0, REG_SZ, str->text, str->length); RegCloseKey(key); } else { DisplayError("Cannot create registry key for uninstall", TRUE, FALSE); } bstr_assign_windir(str); bstr_appendpath(str, "bw-uninstall.exe"); DeleteFile(str->text); bstr_assign(uninstexe, idata->installdir); bstr_appendpath(uninstexe, "uninstall.exe"); if (!MoveFile(uninstexe->text, str->text)) { DisplayError("Unable to create uninstall program", TRUE, FALSE); } DeleteFile(uninstexe->text); startmenu = GetStartMenuDir(install_all_users, idata); bstr_assign(link, startmenu); bstr_appendpath(link, "Uninstall "); bstr_append(link, idata->product); bstr_append(link, ".LNK"); CreateLink(str->text, idata->product, NULL, link->text, NULL); bstr_free(link, TRUE); bstr_free(uninstexe, TRUE); bstr_free(str, TRUE); bfree(startmenu); } void StartRemoveOldVersion(char *oldversion, InstData *idata, InstData **oldidata, HWND hwnd) { InstData *old; bstr *str; char *oldidir, *startmenu, *desktop; HANDLE fin; *oldidata = NULL; if (!oldversion) return; oldidir = GetInstallDir(oldversion); if (!SetCurrentDirectory(oldidir)) { str = bstr_new(); bstr_assign(str, "Could not access old version's install directory "); bstr_append(str, oldidir); DisplayError(str->text, TRUE, TRUE); } fin = CreateFile("install.log", GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); if (fin) { old = ReadOldInstData(fin, oldversion, oldidir); CloseHandle(fin); DeleteFile("install.log"); RemoveService(old->service); DeleteFileList(old->instfiles, hwnd, idata->keepfiles); DeleteFileList(old->extrafiles, hwnd, idata->keepfiles); startmenu = GetStartMenuDir(old->flags & IF_ALLUSERS, old); desktop = GetDesktopDir(); DeleteLinkList(startmenu, old->startmenu, hwnd); DeleteLinkList(desktop, old->desktop, hwnd); RemoveUninstall(startmenu, oldversion, FALSE); bfree(startmenu); bfree(desktop); *oldidata = old; } } void FinishRemoveOldVersion(char *oldversion, InstData *idata, InstData *oldidata) { InstFiles *keeppt; bstr *str; char *desktop, *startmenu; if (!oldidata) return; desktop = GetDesktopDir(); str = bstr_new(); /* If we're installing into a different directory, move config. files * etc. from the old directory to the new one */ if (strcmp(oldidata->installdir, idata->installdir) != 0 && SetCurrentDirectory(oldidata->installdir)) { for (keeppt = idata->keepfiles; keeppt; keeppt = keeppt->next) { if (keeppt->filesize != 0) { bstr_assign(str, idata->installdir); bstr_appendpath(str, keeppt->filename); if (CopyFile(keeppt->filename, str->text, FALSE)) { DeleteFile(keeppt->filename); } } } SetCurrentDirectory(desktop); /* Make sure we're not in the * install dir */ if (!RemoveWholeDirectory(oldidata->installdir)) { bstr_assign(str, "Could not remove old install directory:\n"); bstr_append(str, oldidata->installdir); bstr_append(str, "\nYou may wish to manually remove it later."); DisplayError(str->text, FALSE, FALSE); } } if (strcmp(idata->startmenudir, oldidata->startmenudir) != 0) { SetCurrentDirectory(desktop); /* Make sure we're not in the menu * dir */ startmenu = GetStartMenuDir(oldidata->flags & IF_ALLUSERS, oldidata); if (!RemoveWholeDirectory(startmenu)) { bstr_assign(str, "Could not remove old Start Menu directory:\n"); bstr_append(str, startmenu); bstr_append(str, "\nYou may wish to manually remove it later."); DisplayError(str->text, FALSE, FALSE); } bfree(startmenu); } /* Remove the old registry key */ bstr_assign(str, UninstallKey); bstr_appendpath(str, oldversion); RegDeleteKey(HKEY_LOCAL_MACHINE, str->text); bfree(desktop); bstr_free(str, TRUE); FreeInstData(oldidata, TRUE); oldversion = NULL; /* This is freed by FreeInstData */ } DWORD WINAPI DoInstall(LPVOID lpParam) { HANDLE fout, logf, fin; DWORD bytes_written, fileleft; BOOL skipfile, service_installed; char *inbuf, *outbuf; int status, count; #ifdef LIBBZ2 bz_stream z; #else z_stream z; #endif InstFiles *listpt; InstData *oldidata; /* Steal the filesize attribute to mark that these files are not already * installed */ for (listpt = idata->keepfiles; listpt; listpt = listpt->next) { listpt->filesize = 0; } StartRemoveOldVersion(oldversion, idata, &oldidata, GetDlgItem(mainDlg[DL_DOINSTALL], ST_FILELIST)); inbuf = GetResource(MAKEINTRESOURCE(1), "INSTFILE"); if (!inbuf) return 0; GetWinText(&idata->startmenudir, GetDlgItem(mainDlg[DL_SHORTCUTS], ED_FOLDER)); if (!SetCurrentDirectory(idata->installdir)) { DisplayError("Cannot access install directory", TRUE, TRUE); } /* Check for already-installed files */ for (listpt = idata->keepfiles; listpt; listpt = listpt->next) { fin = CreateFile(listpt->filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); if (fin != INVALID_HANDLE_VALUE) { CloseHandle(fin); listpt->filesize = 1; } } logf = CreateFile("install.log", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL); if (!WriteFile(logf, idata->startmenudir, strlen(idata->startmenudir) + 1, &bytes_written, NULL)) { printf("Write error\n"); } fout = INVALID_HANDLE_VALUE; listpt = NULL; OpenNextOutput(&fout, idata->instfiles, idata->keepfiles, &listpt, &fileleft, logf, &skipfile); outbuf = bmalloc(BUFFER_SIZE); #ifdef LIBBZ2 z.bzalloc = NULL; z.bzfree = NULL; z.opaque = NULL; BZ2_bzDecompressInit(&z, 0, 0); #else z.zalloc = Z_NULL; z.zfree = Z_NULL; z.opaque = Z_NULL; inflateInit(&z); #endif z.avail_in = idata->totalsize; z.next_in = inbuf; z.next_out = outbuf; z.avail_out = BUFFER_SIZE; while (1) { #ifdef LIBBZ2 status = BZ2_bzDecompress(&z); if (status == BZ_OK || status == BZ_STREAM_END) { #else status = inflate(&z, Z_SYNC_FLUSH); if (status == Z_OK || status == Z_STREAM_END) { #endif count = BUFFER_SIZE - z.avail_out; z.next_out = outbuf; while (count >= fileleft) { if (fileleft && !skipfile && !WriteFile(fout, z.next_out, fileleft, &bytes_written, NULL)) { printf("Write error\n"); } count -= fileleft; z.next_out += fileleft; if (!OpenNextOutput(&fout, idata->instfiles, idata->keepfiles, &listpt, &fileleft, logf, &skipfile)) break; } if (fout == INVALID_HANDLE_VALUE) break; if (count && !skipfile && !WriteFile(fout, z.next_out, count, &bytes_written, NULL)) { printf("Write error\n"); } fileleft -= count; z.next_out = outbuf; z.avail_out = BUFFER_SIZE; } #ifdef LIBBZ2 if (status != BZ_OK) { break; } #else if (status != Z_OK) { break; } #endif } #ifdef LIBBZ2 BZ2_bzDecompressEnd(&z); #else inflateEnd(&z); #endif if (!skipfile) CloseHandle(fout); outbuf[0] = '\0'; if (!WriteFile(logf, outbuf, 1, &bytes_written, NULL)) { printf("Write error\n"); } bfree(outbuf); WriteFileList(logf, idata->extrafiles); FinishRemoveOldVersion(oldversion, idata, oldidata); if (services_supported) { service_installed = InstallService(idata); } else { service_installed = FALSE; } if (service_installed) { MessageBox(mainDlg[CurrentDialog], "The dopewars server has been installed as an NT Service, " "and configured\nfor manual startup. To start or stop this " "service, or to configure it to run\nautomatically when " "you turn on your computer, see the \"Services\" application\n" "from Control Panel. You can also run an interactive server " "by using\nthe \"dopewars server\" shortcut from the desktop " "and/or Start Menu.", "Service Installed", MB_ICONINFORMATION | MB_OK); } CoInitialize(NULL); SetupShortcuts(logf); SetupUninstall(); CoUninitialize(); WriteServiceDetails(logf, service_installed ? idata->service : NULL); if (install_all_users) { idata->flags |= IF_ALLUSERS; } WriteInstFlags(logf, idata->flags); CloseHandle(logf); SetFileAttributes("install.log", FILE_ATTRIBUTE_HIDDEN); ShowWindow(GetDlgItem(mainDlg[DL_DOINSTALL], ST_COMPLETE), SW_SHOW); ShowWindow(GetDlgItem(mainDlg[DL_DOINSTALL], ST_EXIT), SW_SHOW); EnableWindow(GetDlgItem(mainDlg[DL_DOINSTALL], BT_FINISH), TRUE); return 0; } void FillFolderList(void) { HANDLE findfile; WIN32_FIND_DATA finddata; bstr *str; char *startdir; HWND folderlist; folderlist = GetDlgItem(mainDlg[DL_SHORTCUTS], LB_FOLDLIST); if (!folderlist) return; SendMessage(folderlist, LB_RESETCONTENT, 0, 0); str = bstr_new(); startdir = GetStartMenuTopDir(install_all_users); bstr_assign(str, startdir); bfree(startdir); bstr_appendpath(str, "Programs\\*"); findfile = FindFirstFile(str->text, &finddata); if (findfile != INVALID_HANDLE_VALUE) { while (1) { if (finddata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY && strcmp(finddata.cFileName, ".") != 0 && strcmp(finddata.cFileName, "..") != 0) { SendMessage(folderlist, LB_ADDSTRING, 0, (LPARAM)finddata.cFileName); } if (!FindNextFile(findfile, &finddata)) break; } FindClose(findfile); } bstr_free(str, TRUE); } BOOL CheckAdminRights(void) { return (!services_supported || have_admin_rights || MessageBox(NULL, "To successfully install all components of this " "program Administrator\nrights are required, and you " "do not appear to have them. Do you want\nto attempt " "to continue the installation anyway?", "Administrator rights not found", MB_YESNO | MB_DEFBUTTON2) == IDYES); } BOOL CheckExistingInstall(InstData *idata) { bstr *str; char *sep, *prodname, *prodversion; char *subkey; int sublen; DWORD sublencp; HKEY key; DWORD ind; FILETIME ftime; BOOL retval = TRUE; str = bstr_new(); bstr_assign(str, UninstallKey); bstr_appendpath(str, idata->product); /* Split product into name and version */ sep = strrchr(idata->product, '-'); if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, str->text, 0, KEY_READ, &key) == ERROR_SUCCESS) { RegCloseKey(key); if (MessageBox(NULL, "This program appears to already be installed.\n" "Are you sure you want to go ahead and install it anyway?", idata->product, MB_YESNO) == IDNO) retval = FALSE; } else if (sep) { *sep = '\0'; prodversion = sep + 1; prodname = bstrdup(idata->product); *sep = '-'; sublencp = sublen = strlen(idata->product) + 30; subkey = bmalloc(sublen); if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, UninstallKey, 0, KEY_READ, &key) == ERROR_SUCCESS) { ind = 0; while (RegEnumKeyEx(key, ind++, subkey, &sublencp, NULL, NULL, NULL, &ftime) == ERROR_SUCCESS) { sublencp = sublen; sep = strrchr(subkey, '-'); if (sep) { *sep = '\0'; if (strcmp(subkey, prodname) == 0) { bstr_assign(str, "You are trying to install "); bstr_append(str, idata->product); bstr_append(str, ".\nHowever, version "); bstr_append(str, sep + 1); bstr_append(str, " appears to already be installed.\n" "Do you want to replace the existing version with " "this one?\n(If you answer \"No\", and continue, " "both versions will be installed.)"); if (MessageBox(NULL, str->text, "Existing version", MB_YESNO) == IDYES) { *sep = '-'; oldversion = bstrdup(subkey); } break; } } } RegCloseKey(key); } bfree(prodname); bfree(subkey); } bstr_free(str, TRUE); return retval; } BOOL SetDefaultInstall(void) { HWND dlg; dlg = mainDlg[DL_INTRO]; if (services_supported) { CheckRadioButton(dlg, RB_ALLUSERS, RB_ONEUSER, have_admin_rights ? RB_ALLUSERS : RB_ONEUSER); } else { ShowWindow(GetDlgItem(dlg, RB_ALLUSERS), SW_HIDE); ShowWindow(GetDlgItem(dlg, RB_ONEUSER), SW_HIDE); } return have_admin_rights; } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { MSG msg; int i; BOOL Handled; char *licence; InitCommonControls(); hInst = hInstance; if (!hPrevInstance) RegisterSepClass(hInstance); for (i = 0; i < DL_NUM; i++) { mainDlg[i] = CreateDialog(hInst, MAKEINTRESOURCE(i + 1), NULL, MainDlgProc); } ServiceCheck(&services_supported, &have_admin_rights); install_all_users = SetDefaultInstall(); CheckDlgButton(mainDlg[DL_SHORTCUTS], CB_DESKTOP, BST_CHECKED); EnableWindow(GetDlgItem(mainDlg[DL_DOINSTALL], BT_FINISH), FALSE); ShowWindow(GetDlgItem(mainDlg[DL_DOINSTALL], ST_COMPLETE), SW_HIDE); ShowWindow(GetDlgItem(mainDlg[DL_DOINSTALL], ST_EXIT), SW_HIDE); idata = ReadInstData(); SendDlgItemMessage(mainDlg[DL_SHORTCUTS], ED_FOLDER, WM_SETTEXT, 0, (LPARAM)idata->startmenudir); SendDlgItemMessage(mainDlg[DL_INSTALLDIR], ED_INSTDIR, WM_SETTEXT, 0, (LPARAM)idata->installdir); licence = GetFirstFile(idata->instfiles, idata->totalsize); if (licence) { SendDlgItemMessage(mainDlg[DL_LICENCE], ED_LICENCE, WM_SETTEXT, 0, (LPARAM)licence); bfree(licence); } for (i = 0; i < DL_NUM; i++) SetGuiFont(mainDlg[i]); if (CheckAdminRights() && CheckExistingInstall(idata)) { CurrentDialog = DL_NUM; ShowNewDialog(DL_INTRO); while (GetMessage(&msg, NULL, 0, 0)) { Handled = FALSE; for (i = 0; i < DL_NUM && !Handled; i++) { Handled = IsDialogMessage(mainDlg[i], &msg); } if (!Handled) { TranslateMessage(&msg); DispatchMessage(&msg); } } } FreeInstData(idata, FALSE); return 0; } #ifdef LIBBZ2 void bz_internal_error(int errcode) { } #endif dopewars-1.5.12/win32/Makefile0000644001565000007070000000351107545622467012775 00000000000000# Use these flags to use libbz2 for compression #LIBZ = bzlib/libbz2.a #COMPFLAGS = -DLIBBZ2 # Use these flags to use libz for compression LIBZ = zlib/libz.a COMPFLAGS = CFLAGS = -Wall -mno-cygwin ${COMPFLAGS} all: setup makeinstall uninstall clean: /bin/rm -f *.o *.res uninstall.exe setup.exe makeinstall.exe core *~ /bin/rm -f installfiles.z manifest setup: setup.o util.o guifunc.o setup.res gcc ${CFLAGS} -mwindows -o setup setup.o util.o guifunc.o setup.res ${LIBZ} -lcomctl32 -lole32 -luuid strip setup.exe uninstall: uninstall.o util.o guifunc.o uninstall.res gcc ${CFLAGS} -mwindows -o uninstall uninstall.o util.o guifunc.o uninstall.res strip uninstall.exe uninstall.o: uninstall.c util.h guifunc.h gcc ${CFLAGS} -c uninstall.c uninstall.res: uninstall.rc windres -O coff -o uninstall.res uninstall.rc setup.o: setup.c contid.h util.h guifunc.h gcc ${CFLAGS} -c setup.c util.o: util.c util.h gcc ${CFLAGS} -c util.c guifunc.o: guifunc.c guifunc.h gcc ${CFLAGS} -c guifunc.c manifest installfiles.z: filelist makeinstall uninstall sed -e 's/LICENCE/licence.txt/' < ../doc/index.html > index.html sed -e 's/LICENCE/licence.txt/' < ../doc/developer.html > developer.html sed -e 's/example-cfg/example-cfg.txt/' < ../doc/configfile.html > configfile.html awk '{gsub(/\f/, ""); print $$0."\r"}' < ../LICENCE > licence.txt awk '{print $$0."\r"}' < ../README > readme.txt awk '{print $$0."\r"}' < ../doc/example-cfg > example-cfg.txt ./makeinstall /bin/rm -f index.html configfile.html developer.html licence.txt /bin/rm -f example-cfg.txt readme.txt setup.res: setup.rc dialogs.rc contid.h manifest installfiles.z windres -O coff -o setup.res setup.rc makeinstall: makeinstall.o util.o gcc ${CFLAGS} -o makeinstall makeinstall.o util.o ${LIBZ} makeinstall.o: makeinstall.c util.h gcc ${CFLAGS} -c makeinstall.c dopewars-1.5.12/win32/contid.h0000644001565000007070000000070207427315567012764 00000000000000#define BT_BACK 201 #define BT_NEXT 202 #define BT_CANCEL 203 #define BT_FINISH 204 #define BT_BROWSE 205 #define ED_LICENCE 206 #define ST_FILELIST 207 #define ST_COMPLETE 208 #define ST_EXIT 209 #define ED_FOLDER 210 #define LB_FOLDLIST 211 #define CB_DESKTOP 212 #define ED_INSTDIR 213 #define ST_DELSTAT 214 #define ST_DELDONE 215 #define BT_DELOK 216 #define RB_ALLUSERS 217 #define RB_ONEUSER 218 dopewars-1.5.12/win32/uninstall.manifest0000644001565000007070000000124707540057401015063 00000000000000 dopewars drug dealing game uninstall program dopewars-1.5.12/win32/bzlib/0000777001565000007070000000000010355323330012477 500000000000000dopewars-1.5.12/win32/bzlib/README.bzlib0000644001565000007070000000074007544047175014415 00000000000000If you are intending to build the Win32 installer for dopewars, then place the bzlib distribution (from http://sources.redhat.com/bzip2/) into this directory. The installer expects to statically link with the file libbz2.a in this directory; the libbz2.a file included in the Cygwin distribution should _not_ be used, as this requires the CYGWIN.DLL file, which is not a standard Windows DLL. Use the Makefile.nocygwin file to compile bzlib, as this adds in the -mno-cygwin flag. dopewars-1.5.12/win32/bzlib/Makefile.nocygwin0000644001565000007070000000131007542051114015704 00000000000000 SHELL=/bin/sh # To assist in cross-compiling CC=gcc AR=ar RANLIB=ranlib LDFLAGS= # Suitably paranoid flags to avoid bugs in gcc-2.7 BIGFILES=-D_FILE_OFFSET_BITS=64 CFLAGS=-mno-cygwin -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce -DBZ_NO_STDIO $(BIGFILES) # Where you want it installed when you do 'make install' PREFIX=/usr OBJS= blocksort.o \ huffman.o \ crctable.o \ randtable.o \ compress.o \ decompress.o \ bzlib.o libbz2.a: $(OBJS) rm -f libbz2.a $(AR) cq libbz2.a $(OBJS) @if ( test -f $(RANLIB) -o -f /usr/bin/ranlib -o \ -f /bin/ranlib -o -f /usr/ccs/bin/ranlib ) ; then \ echo $(RANLIB) libbz2.a ; \ $(RANLIB) libbz2.a ; \ fi dopewars-1.5.12/win32/setup.rc0000644001565000007070000000020507545622467013020 00000000000000#include 1 24 "setup.manifest" 0 INSTLIST "manifest" 1 INSTFILE "installfiles.z" #include "dialogs.rc" dopewars-1.5.12/win32/dialogs.rc0000644001565000007070000001325510355323021013264 00000000000000#include "contid.h" 1 DIALOG 17, 40, 239, 162 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "dopewars-1.5.12 installation" BEGIN CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2 CONTROL "< &Back", BT_BACK, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_TABSTOP, 105, 143, 39, 13 PUSHBUTTON "&Next >", BT_NEXT, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP PUSHBUTTON "&Cancel", BT_CANCEL, 191, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP LTEXT "Welcome to the dopewars-1.5.12 installation program.\nThis program will install dopewars-1.5.12 on your computer.", -1, 22, 14, 195, 17, WS_CHILD | WS_VISIBLE | WS_GROUP LTEXT "Use the ""Back"" and ""Next"" buttons at the bottom of the dialog to control the installation. You can quit at any time using the ""Cancel"" button.", -1, 22, 50, 195, 25, WS_CHILD | WS_VISIBLE | WS_GROUP LTEXT "Newer versions of this program, when available, can be obtained from the dopewars website, http://dopewars.sf.net/", -1, 22, 84, 195, 18, WS_CHILD | WS_VISIBLE | WS_GROUP CONTROL "Install for &all users (requires admin rights)", RB_ALLUSERS, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 28, 108, 110, 8 CONTROL "Install for c&urrent user only", RB_ONEUSER, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 28, 120, 108, 8 END 2 DIALOG 17, 40, 239, 162 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "License" BEGIN CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2 PUSHBUTTON "< &Back", BT_BACK, 105, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP PUSHBUTTON "&Next >", BT_NEXT, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP PUSHBUTTON "&Cancel", BT_CANCEL, 191, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP LTEXT "dopewars is released under the terms of the GNU General Public License (GPL). Please take a moment to review the terms of this license before continuing.", -1, 22, 14, 195, 25, WS_CHILD | WS_VISIBLE | WS_GROUP CONTROL "", ED_LICENCE, "EDIT", ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | WS_VSCROLL, 22, 45, 195, 75 END 4 DIALOG 17, 40, 239, 162 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Installation directory" BEGIN CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2 PUSHBUTTON "< &Back", BT_BACK, 105, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP PUSHBUTTON "&Next >", BT_NEXT, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP PUSHBUTTON "&Cancel", BT_CANCEL, 191, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP LTEXT "dopewars will be installed into the directory given below.", -1, 22, 14, 195, 9, WS_CHILD | WS_VISIBLE | WS_GROUP LTEXT "To install in this directory, select ""Next"".", -1, 22, 33, 195, 9, WS_CHILD | WS_VISIBLE | WS_GROUP LTEXT "To install in a different directory, enter the new directory into the box below, using the ""Browse"" button if necessary.", -1, 22, 51, 195, 35, WS_CHILD | WS_VISIBLE | WS_GROUP GROUPBOX "Destination directory", 105, 22, 84, 195, 35, WS_CHILD | WS_VISIBLE | WS_TABSTOP CONTROL "", ED_INSTDIR, "EDIT", ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 27, 99, 142, 10 PUSHBUTTON "B&rowse...", BT_BROWSE, 173, 98, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP END 5 DIALOG 17, 40, 239, 162 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Installing..." BEGIN CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2 CONTROL "< &Back", BT_BACK, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_TABSTOP, 105, 143, 39, 13 PUSHBUTTON "&Finish", BT_FINISH, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP CONTROL "&Cancel", BT_CANCEL, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_TABSTOP, 191, 143, 39, 13 LTEXT "Please wait while all program files are installed.", -1, 22, 14, 195, 12, WS_CHILD | WS_VISIBLE | WS_GROUP LTEXT "Installing file:", ST_FILELIST, 22, 38, 195, 16, WS_CHILD | WS_VISIBLE | WS_GROUP LTEXT "dopewars installation is complete. Click the ""Finish"" button to leave the installation program.", ST_COMPLETE, 22, 63, 195, 18, WS_CHILD | WS_GROUP LTEXT "Don't forget to check the dopewars website, http://dopewars.sf.net/, for further information and for newer versions of this software. Hope you enjoy the game!", ST_EXIT, 22, 92, 195, 26, WS_CHILD | WS_GROUP END mainicon ICON "setup.ico" 3 DIALOG 17, 40, 239, 162 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Shortcuts" BEGIN LTEXT "Program icons will be added to the Program Folder on the Start Menu shown below. You can enter a new folder name, or select one from the Existing Folders list.", -1, 22, 7, 195, 25, WS_CHILD | WS_VISIBLE | WS_GROUP LTEXT "&Program Folder:", -1, 22, 35, 68, 8, WS_CHILD | WS_VISIBLE | WS_GROUP CONTROL "", ED_FOLDER, "EDIT", ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 22, 45, 195, 10 LTEXT "E&xisting Folders:", -1, 22, 61, 92, 8, WS_CHILD | WS_VISIBLE | WS_GROUP CONTROL "", LB_FOLDLIST, "LISTBOX", LBS_NOTIFY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 22, 71, 195, 46 CONTROL "C&reate desktop icons as well", CB_DESKTOP, "BUTTON", BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 22, 121, 110, 10 CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2 PUSHBUTTON "< &Back", BT_BACK, 105, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP PUSHBUTTON "&Next >", BT_NEXT, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP PUSHBUTTON "&Cancel", BT_CANCEL, 191, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP END dopewars-1.5.12/win32/util.h0000644001565000007070000001117710137122016012442 00000000000000/************************************************************************ * util.h Shared functions for Win32 installer programs * * Copyright (C) 2001-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #include typedef struct _bstr { char *text; unsigned length; /* Length of current text, NOT including * terminating null */ unsigned bufsiz; /* Size of the allocated memory buffer */ } bstr; typedef struct _InstFiles { char *filename; DWORD filesize; struct _InstFiles *next; } InstFiles; typedef struct _InstLink { char *linkfile; char *origfile; char *args; struct _InstLink *next; } InstLink; typedef struct _NTService { char *name; char *display; char *description; char *exe; } NTService; typedef enum { IF_ALLUSERS = 1 } InstFlags; typedef struct _InstData { char *product; char *installdir, *startmenudir; DWORD totalsize; NTService *service; InstFiles *instfiles; InstFiles *extrafiles; InstFiles *keepfiles; InstLink *startmenu; InstLink *desktop; InstFlags flags; } InstData; extern const char *UninstallKey; extern const char *UninstallEXE; void *bmalloc(UINT numbytes); void bfree(void *pt); void *brealloc(void *pt, UINT numbytes); char *bstrdup(char *str); bstr *bstr_new(void); void bstr_free(bstr *str, BOOL free_text); void bstr_expandby(bstr *str, unsigned extralength); void bstr_setlength(bstr *str, unsigned length); void bstr_assign(bstr *str, const char *text); void bstr_append(bstr *str, const char *text); void bstr_appendpath(bstr *str, const char *text); void bstr_append_c(bstr *str, const char ch); void bstr_append_long(bstr *str, const long val); void bstr_append_windir(bstr *str); void bstr_append_curdir(bstr *str); void bstr_assign_windir(bstr *str); void bstr_assign_curdir(bstr *str); void bstr_assign_progfilesdir(bstr *str); void bstr_append_progfilesdir(bstr *str); void DisplayError(const char *errtext, BOOL addsyserr, BOOL fatal); void AddInstFiles(char *filename, DWORD filesize, InstFiles **lastpt, InstFiles **firstpt); void AddInstLink(char *linkfile, char *origfile, char *args, InstLink **lastpt, InstLink **firstpt); void FreeLinkList(InstLink *linklist, BOOL freepts); void FreeFileList(InstFiles *filelist, BOOL freepts); void FreeInstData(InstData *idata, BOOL freepts); void AddServiceDetails(char *servicename, char *servicedisp, char *servicedesc, char *serviceexe, NTService **service); void FreeServiceDetails(NTService *service, BOOL freepts); void WriteServiceDetails(HANDLE fout, NTService *service); void WriteInstFlags(HANDLE fout, InstFlags flags); void WriteLinkList(HANDLE fout, InstLink *listpt); void WriteFileList(HANDLE fout, InstFiles *listpt); char *GetStartMenuTopDir(BOOL AllUsers); char *GetStartMenuDir(BOOL AllUsers, InstData *idata); char *GetDesktopDir(void); BOOL CreateWholeDirectory(char *path); BOOL RemoveWholeDirectory(char *path); void DeleteLinkList(char *dir, InstLink *listpt, HWND hwnd); void DeleteFileList(InstFiles *listpt, HWND hwnd, InstFiles *keepfiles); InstData *ReadOldInstData(HANDLE fin, char *product, char *installdir); char *GetInstallDir(char *product); void RemoveService(NTService *service); void RemoveUninstall(char *startmenu, char *product, BOOL delexe); dopewars-1.5.12/win32/uninstall.c0000644001565000007070000001407110137122016013465 00000000000000/************************************************************************ * uninstall.c Simple Win32 uninstaller for dopewars * * Copyright (C) 2001-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #include #include #include #include #include "contid.h" #include "guifunc.h" #include "util.h" HINSTANCE hInst; HWND mainDlg; char *product; char *GetProduct(void) { char *product; product = strrchr(GetCommandLine(), ' '); if (product && strlen(product + 1) > 0) return bstrdup(++product); else { DisplayError("This program should be called with a product ID", FALSE, TRUE); ExitProcess(1); } } DWORD WINAPI DoUninstall(LPVOID lpParam) { InstData *idata; HANDLE fin; HWND delstat; bstr *str; char *startmenu, *desktop, *installdir; installdir = GetInstallDir(product); if (!SetCurrentDirectory(installdir)) { str = bstr_new(); bstr_assign(str, "Could not access install directory "); bstr_append(str, installdir); DisplayError(str->text, TRUE, TRUE); /* Pointless to try to free the bstr, since DisplayError ends the * process */ } fin = CreateFile("install.log", GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); if (fin) { idata = ReadOldInstData(fin, product, installdir); CloseHandle(fin); DeleteFile("install.log"); RemoveService(idata->service); delstat = GetDlgItem(mainDlg, ST_DELSTAT); DeleteFileList(idata->instfiles, delstat, NULL); DeleteFileList(idata->extrafiles, delstat, NULL); startmenu = GetStartMenuDir(idata->flags & IF_ALLUSERS, idata); desktop = GetDesktopDir(); DeleteLinkList(startmenu, idata->startmenu, delstat); DeleteLinkList(desktop, idata->desktop, delstat); RemoveUninstall(startmenu, product, TRUE); SetCurrentDirectory(desktop); /* Just make sure we're not in the * install directory any more */ str = bstr_new(); if (!RemoveWholeDirectory(installdir)) { bstr_assign(str, "Could not remove install directory:\n"); bstr_append(str, installdir); bstr_append(str, "\nYou may wish to manually remove it later."); DisplayError(str->text, FALSE, FALSE); } if (!RemoveWholeDirectory(startmenu)) { bstr_assign(str, "Could not remove Start Menu directory:\n"); bstr_append(str, startmenu); bstr_append(str, "\nYou may wish to manually remove it later."); DisplayError(str->text, FALSE, FALSE); } bstr_assign(str, UninstallKey); bstr_appendpath(str, product); RegDeleteKey(HKEY_LOCAL_MACHINE, str->text); bstr_free(str, TRUE); bfree(startmenu); bfree(desktop); FreeInstData(idata, TRUE); } else { bfree(product); bfree(installdir); /* Normally FreeInstData frees these */ str = bstr_new(); bstr_assign(str, "Could not read install.log from "); bstr_append(str, installdir); DisplayError(str->text, TRUE, TRUE); /* Pointless to try to free the bstr, since DisplayError ends the * process */ } ShowWindow(GetDlgItem(mainDlg, ST_DELDONE), SW_SHOW); EnableWindow(GetDlgItem(mainDlg, BT_DELOK), TRUE); SetFocus(GetDlgItem(mainDlg, BT_DELOK)); return 0; } BOOL CALLBACK MainDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { HANDLE hThread; DWORD threadID; static BOOL startedun = FALSE; switch (msg) { case WM_INITDIALOG: return TRUE; case WM_SHOWWINDOW: if (wParam && !startedun) { startedun = TRUE; hThread = CreateThread(NULL, 0, DoUninstall, NULL, 0, &threadID); } return TRUE; case WM_COMMAND: if (HIWORD(wParam) == BN_CLICKED && LOWORD(wParam) == BT_DELOK && lParam) { PostQuitMessage(0); return TRUE; } break; case WM_CLOSE: PostQuitMessage(0); return TRUE; } return FALSE; } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { MSG msg; bstr *str; product = GetProduct(); str = bstr_new(); bstr_assign(str, "Are you sure you want to uninstall "); bstr_append(str, product); bstr_append(str, " ?"); if (MessageBox(NULL, str->text, "Uninstall", MB_YESNO) == IDNO) return (1); bstr_free(str, TRUE); hInst = hInstance; if (!hPrevInstance) RegisterSepClass(hInstance); mainDlg = CreateDialog(hInstance, MAKEINTRESOURCE(1), NULL, MainDlgProc); SetGuiFont(mainDlg); EnableWindow(GetDlgItem(mainDlg, BT_DELOK), FALSE); ShowWindow(mainDlg, SW_SHOW); ShowWindow(GetDlgItem(mainDlg, ST_DELDONE), SW_HIDE); while (GetMessage(&msg, NULL, 0, 0)) { if (!IsDialogMessage(mainDlg, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return 0; } dopewars-1.5.12/win32/makeinstall.c0000644001565000007070000002267310137122016013767 00000000000000/************************************************************************ * makeinstall.c Program to create install data for setup.c * * Copyright (C) 2001-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #include #include #include #ifdef LIBBZ2 # include "bzlib/bzlib.h" #else # include "zlib/zlib.h" #endif #include "util.h" char *read_line(HANDLE hin) { char *buf; int bufsize = 32, strind = 0; DWORD bytes_read; buf = bmalloc(bufsize); while (1) { if (!ReadFile(hin, &buf[strind], 1, &bytes_read, NULL)) { printf("Read error\n"); break; } if (bytes_read == 0) { buf[strind] = '\0'; break; } else if (buf[strind] == '\r') continue; else if (buf[strind] == '\n') { buf[strind++] = '\0'; break; } else { strind++; if (strind >= bufsize) { bufsize *= 2; buf = brealloc(buf, bufsize); } } } if (strind == 0) { bfree(buf); return NULL; } else return buf; } InstData *ReadInstallData() { HANDLE fin; char *line, *line2, *line3, *line4; InstFiles *lastinst = NULL, *lastextra = NULL, *lastkeep = NULL; InstLink *lastmenu = NULL, *lastdesktop = NULL; InstData *idata; int i; enum { S_PRODUCT = 0, S_INSTDIR, S_INSTALL, S_EXTRA, S_KEEP, S_STARTMENUDIR, S_STARTMENU, S_DESKTOP, S_NTSERVICE, S_NONE } section = S_NONE; char *titles[S_NONE] = { "[product]", "[instdir]", "[install]", "[extrafiles]", "[keepfiles]", "[startmenudir]", "[startmenu]", "[desktop]", "[NT Service]" }; idata = bmalloc(sizeof(InstData)); idata->installdir = idata->startmenudir = NULL; idata->instfiles = idata->extrafiles = idata->keepfiles = NULL; idata->startmenu = idata->desktop = NULL; idata->service = NULL; fin = CreateFile("filelist", GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); if (fin != INVALID_HANDLE_VALUE) { while (1) { line = read_line(fin); if (!line) break; if (line[0] == '\0') { bfree(line); continue; } for (i = S_PRODUCT; i < S_NONE; i++) { if (strcmp(line, titles[i]) == 0) { section = i; break; } } if (i < S_NONE) { bfree(line); continue; } switch (section) { case S_NONE: printf("Bad line %s\n", line); exit(EXIT_FAILURE); case S_PRODUCT: printf("product ID = %s\n", line); idata->product = line; break; case S_INSTDIR: printf("install dir = %s\n", line); idata->installdir = line; break; case S_STARTMENUDIR: printf("start menu dir = %s\n", line); idata->startmenudir = line; break; case S_INSTALL: AddInstFiles(line, 0, &lastinst, &idata->instfiles); break; case S_EXTRA: AddInstFiles(line, 0, &lastextra, &idata->extrafiles); break; case S_KEEP: AddInstFiles(line, 0, &lastkeep, &idata->keepfiles); break; case S_STARTMENU: line2 = read_line(fin); line3 = read_line(fin); printf("start menu entry = %s/%s/%s\n", line, line2, line3); AddInstLink(line, line2, line3, &lastmenu, &idata->startmenu); break; case S_NTSERVICE: line2 = read_line(fin); line3 = read_line(fin); line4 = read_line(fin); printf("NT Service = %s/%s/%s/%s\n", line, line2, line3, line4); AddServiceDetails(line, line2, line3, line4, &idata->service); break; case S_DESKTOP: line2 = read_line(fin); line3 = read_line(fin); printf("desktop entry = %s/%s/%s\n", line, line2, line3); AddInstLink(line, line2, line3, &lastdesktop, &idata->desktop); break; } } CloseHandle(fin); } if (idata->installdir && idata->startmenudir && idata->product) { return idata; } else { printf("No directories specified\n"); exit(EXIT_FAILURE); } } #define BUFFER_SIZE (32*1024) #define COMPRESSION 9 void OpenNextFile(InstFiles *filelist, InstFiles **listpt, HANDLE *fin) { char *filename, *sep; if (*fin) CloseHandle(*fin); *fin = NULL; if (!*listpt) *listpt = filelist; else *listpt = (*listpt)->next; if (*listpt) { filename = (*listpt)->filename; sep = strstr(filename, " -> "); if (sep) *sep = '\0'; *fin = CreateFile(filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); if (sep) strcpy(filename, sep + 4); if (*fin == INVALID_HANDLE_VALUE) printf("Cannot open file: %s\n", filename); } } int main() { HANDLE fout, fin; DWORD bytes_read, bytes_written; InstData *idata; InstFiles *filept; char *inbuf, *outbuf; int status, count; bstr *str; #ifdef LIBBZ2 bz_stream z; #else z_stream z; #endif idata = ReadInstallData(); fout = CreateFile("installfiles.z", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL); outbuf = bmalloc(BUFFER_SIZE); inbuf = bmalloc(BUFFER_SIZE); #ifdef LIBBZ2 z.bzalloc = NULL; z.bzfree = NULL; z.opaque = NULL; BZ2_bzCompressInit(&z, COMPRESSION, 0, 30); #else z.zalloc = Z_NULL; z.zfree = Z_NULL; z.opaque = Z_NULL; deflateInit(&z, COMPRESSION); #endif z.avail_in = 0; z.next_out = outbuf; z.avail_out = BUFFER_SIZE; filept = NULL; fin = NULL; OpenNextFile(idata->instfiles, &filept, &fin); if (fin == INVALID_HANDLE_VALUE) { return 1; } while (fin != INVALID_HANDLE_VALUE) { if (z.avail_in == 0) { z.next_in = inbuf; bytes_read = 0; while (!bytes_read && fin) { if (!ReadFile(fin, inbuf, BUFFER_SIZE, &bytes_read, NULL)) { printf("Read error\n"); break; } filept->filesize += bytes_read; if (!bytes_read) OpenNextFile(idata->instfiles, &filept, &fin); } z.avail_in = bytes_read; } #ifdef LIBBZ2 status = BZ2_bzCompress(&z, z.avail_in == 0 ? BZ_FINISH : BZ_RUN); #else status = deflate(&z, z.avail_in == 0 ? Z_FINISH : Z_NO_FLUSH); #endif count = BUFFER_SIZE - z.avail_out; if (!WriteFile(fout, outbuf, count, &bytes_written, NULL)) { printf("Write error\n"); } z.next_out = outbuf; z.avail_out = BUFFER_SIZE; #ifdef LIBBZ2 if (status == BZ_STREAM_END) { break; } else if (status != BZ_RUN_OK && status != BZ_FINISH_OK) { printf("Unexpected bzlib status: %d\n", status); break; } #else if (status == Z_STREAM_END) { break; } else if (status != Z_OK) { printf("Unexpected libz status: %d\n", status); break; } #endif } #ifdef LIBBZ2 printf("Written compressed data: raw %d, compressed %d\n", z.total_in_lo32, z.total_out_lo32); bytes_written = z.total_out_lo32; BZ2_bzCompressEnd(&z); #else printf("Written compressed data: raw %ld, compressed %ld\n", z.total_in, z.total_out); bytes_written = z.total_out; deflateEnd(&z); #endif CloseHandle(fout); fout = CreateFile("manifest", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL); if (fout == INVALID_HANDLE_VALUE) printf("Cannot create file list\n"); str = bstr_new(); bstr_setlength(str, 0); bstr_append_long(str, bytes_written); if (!WriteFile(fout, str->text, str->length + 1, &bytes_written, NULL)) { printf("Write error\n"); } if (!WriteFile(fout, idata->product, strlen(idata->product) + 1, &bytes_written, NULL)) { printf("Write error\n"); } if (!WriteFile(fout, idata->installdir, strlen(idata->installdir) + 1, &bytes_written, NULL)) { printf("Write error\n"); } if (!WriteFile (fout, idata->startmenudir, strlen(idata->startmenudir) + 1, &bytes_written, NULL)) { printf("Write error\n"); } WriteFileList(fout, idata->instfiles); WriteFileList(fout, idata->extrafiles); WriteLinkList(fout, idata->startmenu); WriteLinkList(fout, idata->desktop); WriteServiceDetails(fout, idata->service); WriteFileList(fout, idata->keepfiles); CloseHandle(fout); bfree(inbuf); bfree(outbuf); FreeInstData(idata, TRUE); return 0; } #ifdef LIBBZ2 void bz_internal_error(int errcode) { printf("bzip error %d\n", errcode); } #endif dopewars-1.5.12/win32/filelist0000644001565000007070000000537410355323021013055 00000000000000[product] dopewars-1.5.12 [instdir] dopewars-1.5.12 [NT Service] dopewars-server dopewars server Server for the drug-dealing game "dopewars" dopewars.exe -N [install] licence.txt uninstall.exe ../doc/aiplayer.html -> aiplayer.html ../doc/clientplay.html -> clientplay.html ../doc/commandline.html -> commandline.html ../doc/contribute.html -> contribute.html configfile.html ../doc/credits.html -> credits.html developer.html ../doc/i18n.html -> i18n.html index.html ../doc/installation.html -> installation.html ../doc/metaserver.html -> metaserver.html ../doc/protocol.html -> protocol.html ../doc/server.html -> server.html ../doc/servercommands.html -> servercommands.html ../doc/windows.html -> windows.html ../doc/help/general.html -> help\general.html ../doc/help/locations.html -> help\locations.html ../doc/help/drugs.html -> help\drugs.html ../doc/help/guns.html -> help\guns.html ../doc/help/cops.html -> help\cops.html ../doc/help/server.html -> help\server.html ../doc/help/sounds.html -> help\sounds.html ../../auxdope/dopewars-config.txt -> dopewars-config.txt ../src/dopewars.exe -> dopewars.exe ../../auxdope/iconv.dll -> iconv.dll ../../auxdope/intl.dll -> intl.dll ../../auxdope/libglib-2.0-0.dll -> libglib-2.0-0.dll readme.txt example-cfg.txt ../po/pt_BR.gmo -> locale\pt_BR\LC_MESSAGES\dopewars.mo ../po/fr.gmo -> locale\fr\LC_MESSAGES\dopewars.mo ../po/de.gmo -> locale\de\LC_MESSAGES\dopewars.mo ../po/pl.gmo -> locale\pl\LC_MESSAGES\dopewars.mo ../po/nn.gmo -> locale\nn\LC_MESSAGES\dopewars.mo ../po/es.gmo -> locale\es\LC_MESSAGES\dopewars.mo ../sounds/19.5degs/bye.wav -> sounds\19.5degs\bye.wav ../sounds/19.5degs/colt.wav -> sounds\19.5degs\colt.wav ../sounds/19.5degs/die.wav -> sounds\19.5degs\die.wav ../sounds/19.5degs/gun.wav -> sounds\19.5degs\gun.wav ../sounds/19.5degs/jet.wav -> sounds\19.5degs\jet.wav ../sounds/19.5degs/losebitch.wav -> sounds\19.5degs\losebitch.wav ../sounds/19.5degs/message.wav -> sounds\19.5degs\message.wav ../sounds/19.5degs/murmur.wav -> sounds\19.5degs\murmur.wav ../sounds/19.5degs/punch.wav -> sounds\19.5degs\punch.wav ../sounds/19.5degs/run.wav -> sounds\19.5degs\run.wav ../sounds/19.5degs/shotdown.wav -> sounds\19.5degs\shotdown.wav ../sounds/19.5degs/train.wav -> sounds\19.5degs\train.wav [extrafiles] dopewars-log.txt dopewars.sco [keepfiles] dopewars-config.txt dopewars-log.txt dopewars.sco [startmenudir] dopewars-1.5.12 [startmenu] dopewars.lnk dopewars.exe dopewars server.lnk dopewars.exe -s text-mode dopewars.lnk dopewars.exe -t dopewars AI player.lnk dopewars.exe -c dopewars command line options.lnk dopewars.exe -h dopewars help.lnk index.html dopewars configuration file.lnk dopewars-config.txt dopewars example config.lnk example-cfg.txt [desktop] dopewars.lnk dopewars.exe dopewars server.lnk dopewars.exe -s dopewars-1.5.12/win32/zlib/0000777001565000007070000000000010355323330012335 500000000000000dopewars-1.5.12/win32/zlib/README.zlib0000644001565000007070000000066207545622467014120 00000000000000If you are intending to build the Win32 installer for dopewars, then place the zlib distribution into this directory. The installer expects to statically link with the file libz.a in this directory; the libz.a file included in the Cygwin distribution should _not_ be used, as this requires the CYGWIN.DLL file, which is not a standard Windows DLL. Use the Makefile.nocygwin file to compile zlib, as this adds in the -mno-cygwin flag. dopewars-1.5.12/win32/zlib/Makefile.nocygwin0000644001565000007070000001006110137241530015542 00000000000000# Makefile for zlib # Copyright (C) 1995-2003 Jean-loup Gailly. # For conditions of distribution and use, see copyright notice in zlib.h # To compile and test, type: # ./configure; make test # The call of configure is optional if you don't have special requirements # If you wish to build zlib as a shared library, use: ./configure -s # To use the asm code, type: # cp contrib/asm?86/match.S ./match.S # make LOC=-DASMV OBJA=match.o # To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type: # make install # To install in $HOME instead of /usr/local, use: # make install prefix=$HOME CC=cc -mno-cygwin CFLAGS=-O #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 #CFLAGS=-g -DDEBUG #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ # -Wstrict-prototypes -Wmissing-prototypes LDFLAGS=libz.a LDSHARED=$(CC) CPP=$(CC) -E LIBS=libz.a SHAREDLIB=libz.so SHAREDLIBV=libz.so.1.2.1 SHAREDLIBM=libz.so.1 AR=ar rc RANLIB=ranlib TAR=tar SHELL=/bin/sh EXE= prefix = /usr/local exec_prefix = ${prefix} libdir = ${exec_prefix}/lib includedir = ${prefix}/include mandir = ${prefix}/share/man man3dir = ${mandir}/man3 OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ zutil.o inflate.o infback.o inftrees.o inffast.o OBJA = # to use the asm code: make OBJA=match.o TEST_OBJS = example.o minigzip.o all: example$(EXE) minigzip$(EXE) check: test test: all @LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \ echo hello world | ./minigzip | ./minigzip -d || \ echo ' *** minigzip test FAILED ***' ; \ if ./example; then \ echo ' *** zlib test OK ***'; \ else \ echo ' *** zlib test FAILED ***'; \ fi libz.a: $(OBJS) $(OBJA) $(AR) $@ $(OBJS) $(OBJA) -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 match.o: match.S $(CPP) match.S > _match.s $(CC) -c _match.s mv _match.o match.o rm -f _match.s $(SHAREDLIBV): $(OBJS) $(LDSHARED) -o $@ $(OBJS) rm -f $(SHAREDLIB) $(SHAREDLIBM) ln -s $@ $(SHAREDLIB) ln -s $@ $(SHAREDLIBM) example$(EXE): example.o $(LIBS) $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) minigzip$(EXE): minigzip.o $(LIBS) $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) install: $(LIBS) -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi -@if [ ! -d $(includedir) ]; then mkdir -p $(includedir); fi -@if [ ! -d $(libdir) ]; then mkdir -p $(libdir); fi -@if [ ! -d $(man3dir) ]; then mkdir -p $(man3dir); fi cp zlib.h zconf.h $(includedir) chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h cp $(LIBS) $(libdir) cd $(libdir); chmod 755 $(LIBS) -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 cd $(libdir); if test -f $(SHAREDLIBV); then \ rm -f $(SHAREDLIB) $(SHAREDLIBM); \ ln -s $(SHAREDLIBV) $(SHAREDLIB); \ ln -s $(SHAREDLIBV) $(SHAREDLIBM); \ (ldconfig || true) >/dev/null 2>&1; \ fi cp zlib.3 $(man3dir) chmod 644 $(man3dir)/zlib.3 # The ranlib in install is needed on NeXTSTEP which checks file times # ldconfig is for Linux uninstall: cd $(includedir); \ cd $(libdir); rm -f libz.a; \ if test -f $(SHAREDLIBV); then \ rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \ fi cd $(man3dir); rm -f zlib.3 mostlyclean: clean clean: rm -f *.o *~ example$(EXE) minigzip$(EXE) \ libz.* foo.gz so_locations \ _match.s maketree contrib/infback9/*.o maintainer-clean: distclean distclean: clean cp -p Makefile.in Makefile cp -p zconf.in.h zconf.h rm -f .DS_Store tags: etags *.[ch] depend: makedepend -- $(CFLAGS) -- *.[ch] # DO NOT DELETE THIS LINE -- make depend depends on it. adler32.o: zlib.h zconf.h compress.o: zlib.h zconf.h crc32.o: crc32.h zlib.h zconf.h deflate.o: deflate.h zutil.h zlib.h zconf.h example.o: zlib.h zconf.h gzio.o: zutil.h zlib.h zconf.h inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inftrees.o: zutil.h zlib.h zconf.h inftrees.h minigzip.o: zlib.h zconf.h trees.o: deflate.h zutil.h zlib.h zconf.h trees.h uncompr.o: zlib.h zconf.h zutil.o: zutil.h zlib.h zconf.h dopewars-1.5.12/win32/uninstall.rc0000644001565000007070000000111307540057401013651 00000000000000#include #include "contid.h" 1 24 "uninstall.manifest" mainicon ICON "setup.ico" 1 DIALOG 17, 40, 190, 115 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Uninstall" BEGIN CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 8, 88, 174, 2 DEFPUSHBUTTON "OK", BT_DELOK, 75, 96, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP LTEXT "Deleting file: dopewars.exe", ST_DELSTAT, 15, 14, 159, 17, WS_CHILD | WS_VISIBLE | WS_GROUP LTEXT "All files successfully uninstalled.", ST_DELDONE, 15, 51, 159, 25, WS_CHILD | WS_VISIBLE | WS_GROUP END dopewars-1.5.12/win32/README0000644001565000007070000000100207352674223012177 00000000000000This directory contains the code for a simple Windows install/uninstall package. The "makeinstall" program takes a list of files (in "filelist") to install, and produces a compressed copy of these files, which are placed into the resources of the "setup" program. This program installs the listed files to a target machine, and sets up the necessary registry keys for the "uninstall" program to then be able to remove those files again. The only file that should need to be distributed, therefore, is "setup.exe". dopewars-1.5.12/win32/setup.manifest0000644001565000007070000000123707540057401014211 00000000000000 dopewars drug dealing game setup program dopewars-1.5.12/win32/guifunc.c0000644001565000007070000000717710137122016013125 00000000000000/************************************************************************ * guifunc.c GUI-specific shared functions for installer * * Copyright (C) 2001-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #include #include "guifunc.h" static LRESULT CALLBACK GtkSepProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { PAINTSTRUCT ps; HPEN oldpen, dkpen, ltpen; RECT rect; HDC hDC; if (msg == WM_PAINT) { if (GetUpdateRect(hwnd, NULL, TRUE)) { BeginPaint(hwnd, &ps); GetClientRect(hwnd, &rect); hDC = ps.hdc; ltpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DHILIGHT)); dkpen = CreatePen(PS_SOLID, 0, (COLORREF)GetSysColor(COLOR_3DSHADOW)); if (rect.right > rect.bottom) { oldpen = SelectObject(hDC, dkpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.right, rect.top); SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left, rect.top + 1, NULL); LineTo(hDC, rect.right, rect.top + 1); } else { oldpen = SelectObject(hDC, dkpen); MoveToEx(hDC, rect.left, rect.top, NULL); LineTo(hDC, rect.left, rect.bottom); SelectObject(hDC, ltpen); MoveToEx(hDC, rect.left + 1, rect.top, NULL); LineTo(hDC, rect.left + 1, rect.bottom); } SelectObject(hDC, oldpen); DeleteObject(ltpen); DeleteObject(dkpen); EndPaint(hwnd, &ps); } return TRUE; } else return DefWindowProc(hwnd, msg, wParam, lParam); } void RegisterSepClass(HINSTANCE hInstance) { WNDCLASS wc; wc.style = CS_HREDRAW | CS_VREDRAW; wc.lpfnWndProc = GtkSepProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(1 + COLOR_BTNFACE); wc.lpszMenuName = NULL; wc.lpszClassName = "WC_GTKSEP"; RegisterClass(&wc); } static BOOL CALLBACK enumFunc(HWND hWnd, LPARAM lParam) { HFONT GuiFont; GuiFont = (HFONT)lParam; SendMessage(hWnd, WM_SETFONT, (WPARAM)GuiFont, MAKELPARAM(FALSE, 0)); return TRUE; } void SetGuiFont(HWND hWnd) { HFONT GuiFont; GuiFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT); if (GuiFont) EnumChildWindows(hWnd, enumFunc, (LPARAM)GuiFont); } dopewars-1.5.12/win32/setup.ico0000644001565000007070000000137607352674223013171 00000000000000 è( @€€€€€€€€€€ÀÀÀ€€€ÿÿÿÿÿÿÿÿÿÿÿÿ‡ww€wx÷ˆÿÿˆ‡wˆw€ÿÿ‡€ûûûûÿÿ‡xˆˆˆˆ€ÿÿ‡w€ÿÿ‡w€ÿÿ‡w€LÌÌGw€€¿¿¿¸ˆˆLÌÌDw€ˆˆˆ€ˆˆ€LÌÌDG€ˆp‡÷ˆxˆLÌÌDD€ˆxˆ€LÌÌD@ˆwwwwwxˆ€ÿÿD@wÿÿÿÿÿøˆ€ÿÿ@ˆˆˆˆˆˆ‡ˆ€ˆxˆˆwð@ˆx€‡‡wˆÿˆwwwwx‡€xwpˆˆ€wÿÿÿÿx€ˆ€÷‡ÿÿpˆˆˆx€pÿÿpLÌÌÌx€ðˆˆŒÌÌÌÌx€€€ÌÌÌÌÌx€€ÌÌÌÌÌx€€ÎÌÌÌÌx€€ÎÌÌÌÌx€€ÌÌÌÌÌx€€x€ˆˆˆˆˆˆx€wwwwwwwx€ÿÿÿÿÿÿÿø€‡wwwwww€ˆˆˆˆˆˆˆ€À?À?€ÀÀÀàÀðÀÿÿÀÿÿÀÀÀÀÀÀÀ€€Âãóÿÿÿÿÿÿÿÿ€ÿÀÿàdopewars-1.5.12/win32/guifunc.h0000644001565000007070000000316210137122016013120 00000000000000/************************************************************************ * guifunc.h GUI-specific shared functions for installer * * Copyright (C) 2001-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #include void RegisterSepClass(HINSTANCE hInstance); void SetGuiFont(HWND hWnd); dopewars-1.5.12/win32/util.c0000644001565000007070000005141510137241526012444 00000000000000/************************************************************************ * util.c Shared functions for Win32 installer programs * * Copyright (C) 2001-2004 Ben Webb * * Email: benwebb@users.sf.net * * WWW: http://dopewars.sourceforge.net/ * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA. * ************************************************************************/ #include #include #include #include #include "util.h" const char *UninstallKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"; const char *UninstallEXE = "bw-uninstall.exe"; static void bstr_append_dir(bstr *str, BOOL windir); void *bmalloc(UINT numbytes) { HLOCAL localpt; if (numbytes <= 0) numbytes = 1; localpt = LocalAlloc(LMEM_FIXED, numbytes); if (localpt) return (void *)localpt; else { DisplayError("Could not allocate memory: ", TRUE, TRUE); ExitProcess(1); } } void bfree(void *pt) { if (!pt) return; if (LocalFree((HLOCAL) pt)) { DisplayError("Could not free memory: ", TRUE, TRUE); } } void *brealloc(void *pt, UINT numbytes) { UINT numcp; void *newpt; if (!pt && numbytes) return bmalloc(numbytes); else if (pt && !numbytes) { bfree(pt); } else if (pt && numbytes) { newpt = bmalloc(numbytes); memset(newpt, 0, numbytes); numcp = LocalSize((HLOCAL) pt); if (numbytes < numcp) numcp = numbytes; memcpy((char *)newpt, (char *)pt, numcp); bfree(pt); return newpt; } return NULL; } char *bstrdup(char *str) { char *newstr; if (str) { newstr = bmalloc(strlen(str) + 1); strcpy(newstr, str); } else { newstr = bmalloc(1); newstr[0] = '\0'; } return newstr; } bstr *bstr_new(void) { bstr *str; str = bmalloc(sizeof(bstr)); str->bufsiz = 64; str->length = 0; str->text = bmalloc(str->bufsiz); str->text[0] = '\0'; return str; } void bstr_free(bstr *str, BOOL free_text) { if (free_text) bfree(str->text); bfree(str); } void bstr_expandby(bstr *str, unsigned extralength) { if (str->bufsiz >= str->length + 1 + extralength) return; while (str->bufsiz < str->length + 1 + extralength) str->bufsiz *= 2; str->text = brealloc(str->text, str->bufsiz); } void bstr_setlength(bstr *str, unsigned length) { if (length <= str->length) { str->length = length; str->text[length] = '\0'; } else { bstr_expandby(str, length - str->length); } } void bstr_assign(bstr *str, const char *text) { if (text) { bstr_setlength(str, strlen(text)); strcpy(str->text, text); str->length = strlen(text); } else { bstr_setlength(str, 0); } } void bstr_append(bstr *str, const char *text) { if (!text) return; bstr_expandby(str, strlen(text)); strcat(str->text, text); str->length += strlen(text); } void bstr_appendpath(bstr *str, const char *text) { if (str->length && str->text[str->length - 1] != '\\') { bstr_append_c(str, '\\'); } bstr_append(str, text); } void bstr_append_c(bstr *str, char ch) { bstr_expandby(str, 1); str->text[str->length] = ch; str->length++; str->text[str->length] = '\0'; } /* We can be pretty confident that this is enough space for an integer */ #define MAX_LENGTH_INT 80 void bstr_append_long(bstr *str, long val) { char tmpbuf[MAX_LENGTH_INT]; sprintf(tmpbuf, "%ld", val); bstr_append(str, tmpbuf); } void bstr_append_windir(bstr *str) { bstr_append_dir(str, TRUE); } void bstr_append_curdir(bstr *str) { bstr_append_dir(str, FALSE); } void bstr_assign_windir(bstr *str) { bstr_setlength(str, 0); bstr_append_windir(str); } void bstr_assign_curdir(bstr *str) { bstr_setlength(str, 0); bstr_append_curdir(str); } void bstr_assign_progfilesdir(bstr *str) { bstr_setlength(str, 0); bstr_append_progfilesdir(str); } void bstr_append_progfilesdir(bstr *str) { HKEY key; static const char *subkey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion"; static const char *subval = "ProgramFilesDir"; DWORD keylen, keytype; BOOL ok = FALSE; if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, subkey, 0, KEY_READ, &key) == ERROR_SUCCESS) { if (RegQueryValueEx(key, subval, NULL, &keytype, NULL, &keylen) == ERROR_SUCCESS && keytype == REG_SZ) { char *progfiledir = bmalloc(keylen); if (RegQueryValueEx(key, subval, NULL, &keytype, progfiledir, &keylen) == ERROR_SUCCESS) { bstr_append(str, progfiledir); ok = TRUE; } bfree(progfiledir); } RegCloseKey(key); } if (!ok) { bstr_append(str, "C:\\Program Files"); } } void bstr_append_dir(bstr *str, BOOL windir) { unsigned spaceleft; UINT retval; int tries; spaceleft = str->bufsiz - str->length; /* spaceleft includes the * null */ for (tries = 0; tries < 5; tries++) { if (windir) { retval = GetWindowsDirectory(str->text + str->length, spaceleft); } else { retval = GetCurrentDirectory(spaceleft, str->text + str->length); } if (retval == 0) DisplayError("Cannot get directory: ", TRUE, TRUE); if (retval <= spaceleft - 1) { str->length += retval; break; } bstr_expandby(str, retval); /* Let's err on the side of caution */ spaceleft = str->bufsiz - str->length; } if (tries >= 5) DisplayError("Cannot get directory: ", TRUE, TRUE); } void DisplayError(const char *errtext, BOOL addsyserr, BOOL fatal) { DWORD syserr; bstr *str; LPTSTR lpMsgBuf; syserr = GetLastError(); str = bstr_new(); bstr_assign(str, errtext); if (addsyserr) { bstr_append(str, "; "); bstr_append_long(str, syserr); bstr_append(str, ": "); FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, syserr, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&lpMsgBuf, 0, NULL); bstr_append(str, lpMsgBuf); LocalFree(lpMsgBuf); } MessageBox(NULL, str->text, fatal ? "Fatal Error" : "Error", MB_OK | MB_ICONSTOP); if (fatal) ExitProcess(1); } void AddInstFiles(char *filename, DWORD filesize, InstFiles **lastpt, InstFiles **firstpt) { InstFiles *newpt; newpt = bmalloc(sizeof(InstFiles)); if (*lastpt) { (*lastpt)->next = newpt; } else { *firstpt = newpt; } *lastpt = newpt; newpt->next = NULL; newpt->filename = filename; newpt->filesize = filesize; } void AddInstLink(char *linkfile, char *origfile, char *args, InstLink **lastpt, InstLink **firstpt) { InstLink *newpt; newpt = bmalloc(sizeof(InstLink)); if (*lastpt) { (*lastpt)->next = newpt; } else { *firstpt = newpt; } *lastpt = newpt; newpt->next = NULL; newpt->linkfile = linkfile; newpt->origfile = origfile; newpt->args = args; } void FreeLinkList(InstLink *linklist, BOOL freepts) { InstLink *thispt, *nextpt; thispt = linklist; while (thispt) { nextpt = thispt->next; if (freepts) { bfree(thispt->linkfile); bfree(thispt->origfile); bfree(thispt->args); } bfree(thispt); thispt = nextpt; } } void FreeFileList(InstFiles *filelist, BOOL freepts) { InstFiles *thispt, *nextpt; thispt = filelist; while (thispt) { nextpt = thispt->next; if (freepts) bfree(thispt->filename); bfree(thispt); thispt = nextpt; } } void AddServiceDetails(char *servicename, char *servicedisp, char *servicedesc, char *serviceexe, NTService **service) { *service = bmalloc(sizeof(NTService)); (*service)->name = servicename; (*service)->display = servicedisp; (*service)->description = servicedesc; (*service)->exe = serviceexe; } void FreeServiceDetails(NTService *service, BOOL freepts) { if (!service) return; if (freepts) { bfree(service->name); bfree(service->display); bfree(service->description); bfree(service->exe); } bfree(service); } void FreeInstData(InstData *idata, BOOL freepts) { FreeFileList(idata->instfiles, freepts); FreeFileList(idata->extrafiles, freepts); FreeFileList(idata->keepfiles, freepts); FreeLinkList(idata->startmenu, freepts); FreeLinkList(idata->desktop, freepts); FreeServiceDetails(idata->service, freepts); bfree(idata->product); bfree(idata->installdir); bfree(idata->startmenudir); bfree(idata); } void WriteInstFlags(HANDLE fout, InstFlags flags) { DWORD bytes_written; char str[3]; str[0] = (char)flags; if (!WriteFile(fout, str, 1, &bytes_written, NULL)) { printf("Write error\n"); } } void WriteServiceDetails(HANDLE fout, NTService *service) { DWORD bytes_written; char str[] = ""; if (!service) { if (!WriteFile(fout, str, strlen(str) + 1, &bytes_written, NULL)) { printf("Write error\n"); } } else { if (!WriteFile(fout, service->name, strlen(service->name) + 1, &bytes_written, NULL)) { printf("Write error\n"); } if (!WriteFile(fout, service->display, strlen(service->display) + 1, &bytes_written, NULL)) { printf("Write error\n"); } if (!WriteFile (fout, service->description, strlen(service->description) + 1, &bytes_written, NULL)) { printf("Write error\n"); } if (!WriteFile(fout, service->exe, strlen(service->exe) + 1, &bytes_written, NULL)) { printf("Write error\n"); } } } void WriteLinkList(HANDLE fout, InstLink *listpt) { char str[] = ""; DWORD bytes_written; for (; listpt; listpt = listpt->next) { if (!WriteFile(fout, listpt->linkfile, strlen(listpt->linkfile) + 1, &bytes_written, NULL)) { printf("Write error\n"); } if (!WriteFile(fout, listpt->origfile, strlen(listpt->origfile) + 1, &bytes_written, NULL)) { printf("Write error\n"); } if (!WriteFile(fout, listpt->args, strlen(listpt->args) + 1, &bytes_written, NULL)) { printf("Write error\n"); } } if (!WriteFile(fout, str, strlen(str) + 1, &bytes_written, NULL)) { printf("Write error\n"); } } void WriteFileList(HANDLE fout, InstFiles *listpt) { bstr *str; DWORD bytes_written; str = bstr_new(); for (; listpt; listpt = listpt->next) { if (!WriteFile(fout, listpt->filename, strlen(listpt->filename) + 1, &bytes_written, NULL)) { printf("Write error\n"); } bstr_setlength(str, 0); bstr_append_long(str, listpt->filesize); if (!WriteFile(fout, str->text, str->length + 1, &bytes_written, NULL)) { printf("Write error\n"); } } bstr_assign(str, ""); if (!WriteFile(fout, str->text, str->length + 1, &bytes_written, NULL)) { printf("Write error\n"); } bstr_free(str, TRUE); } static char *GetSpecialDir(int dirtype) { LPITEMIDLIST pidl; LPMALLOC pmalloc; char szDir[MAX_PATH]; BOOL doneOK = FALSE; if (SUCCEEDED(SHGetMalloc(&pmalloc))) { if (SUCCEEDED(SHGetSpecialFolderLocation(NULL, dirtype, &pidl))) { if (SHGetPathFromIDList(pidl, szDir)) doneOK = TRUE; pmalloc->lpVtbl->Free(pmalloc, pidl); } pmalloc->lpVtbl->Release(pmalloc); } return (doneOK ? bstrdup(szDir) : NULL); } char *GetStartMenuTopDir(BOOL AllUsers) { return GetSpecialDir(AllUsers ? CSIDL_COMMON_STARTMENU : CSIDL_STARTMENU); } char *GetDesktopDir(void) { return GetSpecialDir(CSIDL_DESKTOPDIRECTORY); } char *GetStartMenuDir(BOOL AllUsers, InstData *idata) { bstr *str; char *topdir, *retval; topdir = GetStartMenuTopDir(AllUsers); str = bstr_new(); bstr_assign(str, topdir); bfree(topdir); bstr_appendpath(str, "Programs"); bstr_appendpath(str, idata->startmenudir); retval = str->text; bstr_free(str, FALSE); return retval; } BOOL CreateWholeDirectory(char *path) { char *pt; if (!path) return FALSE; /* We may as well try the easy way first */ if (CreateDirectory(path, NULL)) return TRUE; /* \\machine\share notation */ if (strlen(path) > 2 && path[0] == '\\' && path[1] == '\\') { pt = &path[2]; /* Skip initial "\\" */ while (*pt && *pt != '\\') pt++; /* Skip the machine name */ /* X: notation */ } else if (strlen(path) > 2 && path[1] == ':') { pt = &path[2]; /* Skip the X: part */ } else { pt = path; } while (*pt) { pt++; if (*pt == '\\') { *pt = '\0'; if (!CreateDirectory(path, NULL) && GetLastError() != ERROR_ALREADY_EXISTS) { *pt = '\\'; return FALSE; } *pt = '\\'; } } return (CreateDirectory(path, NULL) || GetLastError() == ERROR_ALREADY_EXISTS); } BOOL RemoveWholeDirectory(char *path) { char *pt; BOOL retval; if (!path || !RemoveDirectory(path)) return FALSE; for (pt = &path[strlen(path) - 2]; pt > path; pt--) { if (*pt == '\\') { *pt = '\0'; retval = RemoveDirectory(path); *pt = '\\'; if (!retval) break; } } return TRUE; } void RemoveService(NTService *service) { SC_HANDLE scManager, scService; SERVICE_STATUS status; if (!service) return; scManager = OpenSCManager(NULL, NULL, GENERIC_READ); if (!scManager) { DisplayError("Cannot connect to service manager", TRUE, FALSE); return; } scService = OpenService(scManager, service->name, DELETE | SERVICE_STOP); if (!scService) { DisplayError("Cannot open service", TRUE, FALSE); } else { if (!ControlService(scService, SERVICE_CONTROL_STOP, &status) && GetLastError() != ERROR_SERVICE_NOT_ACTIVE) { DisplayError("Cannot stop service", TRUE, FALSE); } if (!DeleteService(scService)) { DisplayError("Cannot delete service", TRUE, FALSE); } CloseServiceHandle(scService); } CloseServiceHandle(scManager); } char *read_line0(HANDLE hin) { char *buf; int bufsize = 32, strind = 0; DWORD bytes_read; buf = bmalloc(bufsize); while (1) { if (!ReadFile(hin, &buf[strind], 1, &bytes_read, NULL)) { printf("Read error\n"); break; } if (bytes_read == 0) { buf[strind] = '\0'; break; } else if (buf[strind] == '\0') break; else { strind++; if (strind >= bufsize) { bufsize *= 2; buf = brealloc(buf, bufsize); } } } if (strind == 0) { bfree(buf); return NULL; } else return buf; } InstLink *ReadLinkList(HANDLE fin) { InstLink *first = NULL, *listpt = NULL, *newpt; char *linkfile, *origfile, *args; while (1) { linkfile = read_line0(fin); if (!linkfile) break; origfile = read_line0(fin); args = read_line0(fin); if (!origfile) DisplayError("Corrupt install.log", FALSE, TRUE); newpt = bmalloc(sizeof(InstLink)); if (listpt) listpt->next = newpt; else first = newpt; listpt = newpt; newpt->next = NULL; newpt->linkfile = linkfile; newpt->origfile = origfile; newpt->args = args; } return first; } InstFlags ReadInstFlags(HANDLE fin) { DWORD bytes_read; char buf[3]; buf[0] = 0; if (!ReadFile(fin, buf, 1, &bytes_read, NULL)) { printf("Read error\n"); } return (InstFlags)buf[0]; } NTService *ReadServiceDetails(HANDLE fin) { NTService *service = NULL; char *name, *disp, *desc, *exe; name = read_line0(fin); if (name) { disp = read_line0(fin); desc = read_line0(fin); exe = read_line0(fin); if (!disp || !desc || !exe) { DisplayError("Corrupt install.log", FALSE, TRUE); } else { AddServiceDetails(name, disp, desc, exe, &service); } } return service; } InstFiles *ReadFileList(HANDLE fin) { InstFiles *first = NULL, *listpt = NULL, *newpt; char *filename, *filesize; while (1) { filename = read_line0(fin); if (!filename) break; filesize = read_line0(fin); if (!filesize) DisplayError("Corrupt install.log", FALSE, TRUE); newpt = bmalloc(sizeof(InstFiles)); if (listpt) listpt->next = newpt; else first = newpt; listpt = newpt; newpt->next = NULL; newpt->filename = filename; newpt->filesize = atol(filesize); bfree(filesize); } return first; } char *GetInstallDir(char *product) { HKEY key; bstr *str; DWORD keytype, keylen; char *installdir; str = bstr_new(); bstr_assign(str, UninstallKey); bstr_appendpath(str, product); if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, str->text, 0, KEY_ALL_ACCESS, &key) != ERROR_SUCCESS) { DisplayError("Could not open registry", FALSE, TRUE); } if (RegQueryValueEx(key, "InstallDirectory", NULL, &keytype, NULL, &keylen) != ERROR_SUCCESS || keytype != REG_SZ) { DisplayError("Could not query registry key", FALSE, TRUE); } installdir = bmalloc(keylen); if (RegQueryValueEx(key, "InstallDirectory", NULL, &keytype, installdir, &keylen) != ERROR_SUCCESS) { DisplayError("Could not get registry key value", FALSE, TRUE); } RegCloseKey(key); bstr_free(str, TRUE); return installdir; } InstData *ReadOldInstData(HANDLE fin, char *product, char *installdir) { InstData *idata; idata = bmalloc(sizeof(InstData)); idata->product = product; idata->installdir = installdir; idata->startmenudir = read_line0(fin); idata->instfiles = ReadFileList(fin); idata->extrafiles = ReadFileList(fin); idata->keepfiles = NULL; idata->startmenu = ReadLinkList(fin); idata->desktop = ReadLinkList(fin); idata->service = ReadServiceDetails(fin); idata->flags = ReadInstFlags(fin); return idata; } void DeleteFileList(InstFiles *listpt, HWND hwnd, InstFiles *keepfiles) { bstr *str; char *sep; InstFiles *keeppt; str = bstr_new(); for (; listpt; listpt = listpt->next) { keeppt = keepfiles; while (keeppt && strcmp(keeppt->filename, listpt->filename) != 0) { keeppt = keeppt->next; } if (keeppt) { keeppt->filesize = 1; /* Mark that this file is already * installed */ } else { bstr_assign(str, "Deleting file: "); bstr_append(str, listpt->filename); SendMessage(hwnd, WM_SETTEXT, 0, (LPARAM)str->text); DeleteFile(listpt->filename); sep = strrchr(listpt->filename, '\\'); if (sep) { *sep = '\0'; RemoveWholeDirectory(listpt->filename); *sep = '\\'; } } } bstr_free(str, TRUE); } void DeleteLinkList(char *dir, InstLink *listpt, HWND hwnd) { bstr *str; str = bstr_new(); if (SetCurrentDirectory(dir)) { for (; listpt; listpt = listpt->next) { bstr_assign(str, "Deleting shortcut: "); bstr_append(str, listpt->linkfile); SendMessage(hwnd, WM_SETTEXT, 0, (LPARAM)str->text); DeleteFile(listpt->linkfile); } } else { bstr_assign(str, "Could not find shortcut directory "); bstr_append(str, dir); DisplayError(str->text, TRUE, FALSE); } bstr_free(str, TRUE); } void RemoveUninstall(char *startmenu, char *product, BOOL delexe) { bstr *inipath, *uninstpath, *uninstlink; inipath = bstr_new(); uninstpath = bstr_new(); uninstlink = bstr_new(); bstr_assign(uninstlink, startmenu); bstr_appendpath(uninstlink, "Uninstall "); bstr_append(uninstlink, product); bstr_append(uninstlink, ".LNK"); DeleteFile(uninstlink->text); if (delexe) { bstr_assign_windir(inipath); bstr_assign(uninstpath, inipath->text); bstr_appendpath(inipath, "wininit.ini"); bstr_appendpath(uninstpath, UninstallEXE); if (!WritePrivateProfileString("Renane", "NUL", uninstpath->text, inipath->text)) { DisplayError("Cannot write to wininit.ini: ", TRUE, FALSE); } } bstr_free(uninstlink, TRUE); bstr_free(uninstpath, TRUE); bstr_free(inipath, TRUE); } dopewars-1.5.12/intl/0000777001565000007070000000000010355323330011401 500000000000000dopewars-1.5.12/intl/libgettext.h0000644001565000007070000000356107366603610013660 00000000000000/* Convenience header for conditional use of GNU . Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option. */ #if ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include #else # define gettext(Msgid) (Msgid) # define dgettext(Domainname, Msgid) (Msgid) # define dcgettext(Domainname, Msgid, Category) (Msgid) # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2)) # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2)) # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((N) == 1 ? (char *) (Msgid1) : (char *) (Msgid2)) # define textdomain(Domainname) ((char *) (Domainname)) # define bindtextdomain(Domainname, Dirname) ((char *) (Dirname)) # define bind_textdomain_codeset(Domainname, Codeset) ((char *) (Codeset)) #endif /* For automatical extraction of messages sometimes no real translation is needed. Instead the string itself is the result. */ #define gettext_noop(Str) (Str) #endif /* _LIBGETTEXT_H */ dopewars-1.5.12/intl/localcharset.c0000644001565000007070000001534307366603610014145 00000000000000/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by Bruno Haible . */ #ifdef HAVE_CONFIG_H # include #endif #if HAVE_STDDEF_H # include #endif #include #if HAVE_STRING_H # include #else # include #endif #if HAVE_STDLIB_H # include #endif #if defined _WIN32 || defined __WIN32__ # undef WIN32 /* avoid warning on mingw32 */ # define WIN32 #endif #ifndef WIN32 # if HAVE_LANGINFO_CODESET # include # else # if HAVE_SETLOCALE # include # endif # endif #else /* WIN32 */ # define WIN32_LEAN_AND_MEAN # include #endif #ifndef DIRECTORY_SEPARATOR # define DIRECTORY_SEPARATOR '/' #endif #ifndef ISSLASH # define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR) #endif /* The following static variable is declared 'volatile' to avoid a possible multithread problem in the function get_charset_aliases. If we are running in a threaded environment, and if two threads initialize 'charset_aliases' simultaneously, both will produce the same value, and everything will be ok if the two assignments to 'charset_aliases' are atomic. But I don't know what will happen if the two assignments mix. */ #if __STDC__ != 1 # define volatile /* empty */ #endif /* Pointer to the contents of the charset.alias file, if it has already been read, else NULL. Its format is: ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */ static char * volatile charset_aliases; /* Return a pointer to the contents of the charset.alias file. */ static const char * get_charset_aliases () { char *cp; cp = charset_aliases; if (cp == NULL) { #ifndef WIN32 FILE *fp; const char *dir = LIBDIR; const char *base = "charset.alias"; char *file_name; /* Concatenate dir and base into freshly allocated file_name. */ { size_t dir_len = strlen (dir); size_t base_len = strlen (base); int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); file_name = (char *) malloc (dir_len + add_slash + base_len + 1); if (file_name != NULL) { memcpy (file_name, dir, dir_len); if (add_slash) file_name[dir_len] = DIRECTORY_SEPARATOR; memcpy (file_name + dir_len + add_slash, base, base_len + 1); } } if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) /* Out of memory or file not found, treat it as empty. */ cp = ""; else { /* Parse the file's contents. */ int c; char buf1[50+1]; char buf2[50+1]; char *res_ptr = NULL; size_t res_size = 0; size_t l1, l2; for (;;) { c = getc (fp); if (c == EOF) break; if (c == '\n' || c == ' ' || c == '\t') continue; if (c == '#') { /* Skip comment, to end of line. */ do c = getc (fp); while (!(c == EOF || c == '\n')); if (c == EOF) break; continue; } ungetc (c, fp); if (fscanf(fp, "%50s %50s", buf1, buf2) < 2) break; l1 = strlen (buf1); l2 = strlen (buf2); if (res_size == 0) { res_size = l1 + 1 + l2 + 1; res_ptr = malloc (res_size + 1); } else { res_size += l1 + 1 + l2 + 1; res_ptr = realloc (res_ptr, res_size + 1); } if (res_ptr == NULL) { /* Out of memory. */ res_size = 0; break; } strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); strcpy (res_ptr + res_size - (l2 + 1), buf2); } fclose (fp); if (res_size == 0) cp = ""; else { *(res_ptr + res_size) = '\0'; cp = res_ptr; } } if (file_name != NULL) free (file_name); #else /* WIN32 */ /* To avoid the troubles of installing a separate file in the same directory as the DLL and of retrieving the DLL's directory at runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" "CP1361" "\0" "JOHAB" "\0"; #endif charset_aliases = cp; } return cp; } /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ #ifdef STATIC STATIC #endif const char * locale_charset () { const char *codeset; const char *aliases; #ifndef WIN32 # if HAVE_LANGINFO_CODESET /* Most systems support nl_langinfo (CODESET) nowadays. */ codeset = nl_langinfo (CODESET); # else /* On old systems which lack it, use setlocale or getenv. */ const char *locale = NULL; /* But most old systems don't have a complete set of locales. Some (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't use setlocale here; it would return "C" when it doesn't support the locale name the user has set. */ # if HAVE_SETLOCALE && 0 locale = setlocale (LC_CTYPE, NULL); # endif if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } } /* On some old systems, one used to set locale = "iso8859_1". On others, you set it to "language_COUNTRY.charset". In any case, we resolve it through the charset.alias file. */ codeset = locale; # endif #else /* WIN32 */ static char buf[2 + 10 + 1]; /* Win32 has a function returning the locale's codepage as a number. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; #endif if (codeset == NULL) /* The canonical name cannot be determined. */ codeset = ""; /* Resolve alias. */ for (aliases = get_charset_aliases (); *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 || (aliases[0] == '*' && aliases[1] == '\0')) { codeset = aliases + strlen (aliases) + 1; break; } return codeset; } dopewars-1.5.12/intl/dcgettext.c0000644001565000007070000000337707366603610013500 00000000000000/* Implementation of the dcgettext(3) function. Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCGETTEXT __dcgettext # define DCIGETTEXT __dcigettext #else # define DCGETTEXT dcgettext__ # define DCIGETTEXT dcigettext__ #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCGETTEXT (domainname, msgid, category) const char *domainname; const char *msgid; int category; { return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dcgettext, dcgettext); #endif dopewars-1.5.12/intl/plural.c0000644001565000007070000010006407366603610012773 00000000000000 /* A Bison parser, made from plural.y by GNU Bison version 1.28 */ #define YYBISON 1 /* Identify Bison output. */ #define yyparse __gettextparse #define yylex __gettextlex #define yyerror __gettexterror #define yylval __gettextlval #define yychar __gettextchar #define yydebug __gettextdebug #define yynerrs __gettextnerrs #define EQUOP2 257 #define CMPOP2 258 #define ADDOP2 259 #define MULOP2 260 #define NUMBER 261 #line 1 "plural.y" /* Expression parsing for plural form selection. Copyright (C) 2000, 2001 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* The bison generated parser uses alloca. AIX 3 forces us to put this declaration at the beginning of the file. The declaration in bison's skeleton file comes too late. This must come before because may include arbitrary system headers. */ #if defined _AIX && !defined __GNUC__ #pragma alloca #endif #ifdef HAVE_CONFIG_H # include #endif #include #include "gettextP.h" /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define FREE_EXPRESSION __gettext_free_exp #else # define FREE_EXPRESSION gettext_free_exp__ # define __gettextparse gettextparse__ #endif #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg #line 52 "plural.y" typedef union { unsigned long int num; enum operator op; struct expression *exp; } YYSTYPE; #line 58 "plural.y" /* Prototypes for local functions. */ static struct expression *new_exp PARAMS ((int nargs, enum operator op, struct expression * const *args)); static inline struct expression *new_exp_0 PARAMS ((enum operator op)); static inline struct expression *new_exp_1 PARAMS ((enum operator op, struct expression *right)); static struct expression *new_exp_2 PARAMS ((enum operator op, struct expression *left, struct expression *right)); static inline struct expression *new_exp_3 PARAMS ((enum operator op, struct expression *bexp, struct expression *tbranch, struct expression *fbranch)); static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); static void yyerror PARAMS ((const char *str)); /* Allocation of expressions. */ static struct expression * new_exp (nargs, op, args) int nargs; enum operator op; struct expression * const *args; { int i; struct expression *newp; /* If any of the argument could not be malloc'ed, just return NULL. */ for (i = nargs - 1; i >= 0; i--) if (args[i] == NULL) goto fail; /* Allocate a new expression. */ newp = (struct expression *) malloc (sizeof (*newp)); if (newp != NULL) { newp->nargs = nargs; newp->operation = op; for (i = nargs - 1; i >= 0; i--) newp->val.args[i] = args[i]; return newp; } fail: for (i = nargs - 1; i >= 0; i--) FREE_EXPRESSION (args[i]); return NULL; } static inline struct expression * new_exp_0 (op) enum operator op; { return new_exp (0, op, NULL); } static inline struct expression * new_exp_1 (op, right) enum operator op; struct expression *right; { struct expression *args[1]; args[0] = right; return new_exp (1, op, args); } static struct expression * new_exp_2 (op, left, right) enum operator op; struct expression *left; struct expression *right; { struct expression *args[2]; args[0] = left; args[1] = right; return new_exp (2, op, args); } static inline struct expression * new_exp_3 (op, bexp, tbranch, fbranch) enum operator op; struct expression *bexp; struct expression *tbranch; struct expression *fbranch; { struct expression *args[3]; args[0] = bexp; args[1] = tbranch; args[2] = fbranch; return new_exp (3, op, args); } #include #ifndef __cplusplus #ifndef __STDC__ #define const #endif #endif #define YYFINAL 27 #define YYFLAG -32768 #define YYNTBASE 16 #define YYTRANSLATE(x) ((unsigned)(x) <= 261 ? yytranslate[x] : 18) static const char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 2, 2, 2, 2, 5, 2, 14, 15, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 12, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 6, 7, 8, 9, 11 }; #if YYDEBUG != 0 static const short yyprhs[] = { 0, 0, 2, 8, 12, 16, 20, 24, 28, 32, 35, 37, 39 }; static const short yyrhs[] = { 17, 0, 17, 3, 17, 12, 17, 0, 17, 4, 17, 0, 17, 5, 17, 0, 17, 6, 17, 0, 17, 7, 17, 0, 17, 8, 17, 0, 17, 9, 17, 0, 10, 17, 0, 13, 0, 11, 0, 14, 17, 15, 0 }; #endif #if YYDEBUG != 0 static const short yyrline[] = { 0, 177, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 226 }; #endif #if YYDEBUG != 0 || defined (YYERROR_VERBOSE) static const char * const yytname[] = { "$","error","$undefined.","'?'","'|'", "'&'","EQUOP2","CMPOP2","ADDOP2","MULOP2","'!'","NUMBER","':'","'n'","'('","')'", "start","exp", NULL }; #endif static const short yyr1[] = { 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17 }; static const short yyr2[] = { 0, 1, 5, 3, 3, 3, 3, 3, 3, 2, 1, 1, 3 }; static const short yydefact[] = { 0, 0, 11, 10, 0, 1, 9, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 3, 4, 5, 6, 7, 8, 0, 2, 0, 0, 0 }; static const short yydefgoto[] = { 25, 5 }; static const short yypact[] = { -9, -9,-32768,-32768, -9, 34,-32768, 11, -9, -9, -9, -9, -9, -9, -9,-32768, 24, 39, 43, 16, 26, -3,-32768, -9, 34, 21, 53,-32768 }; static const short yypgoto[] = {-32768, -1 }; #define YYLAST 53 static const short yytable[] = { 6, 1, 2, 7, 3, 4, 14, 16, 17, 18, 19, 20, 21, 22, 8, 9, 10, 11, 12, 13, 14, 26, 24, 12, 13, 14, 15, 8, 9, 10, 11, 12, 13, 14, 13, 14, 23, 8, 9, 10, 11, 12, 13, 14, 10, 11, 12, 13, 14, 11, 12, 13, 14, 27 }; static const short yycheck[] = { 1, 10, 11, 4, 13, 14, 9, 8, 9, 10, 11, 12, 13, 14, 3, 4, 5, 6, 7, 8, 9, 0, 23, 7, 8, 9, 15, 3, 4, 5, 6, 7, 8, 9, 8, 9, 12, 3, 4, 5, 6, 7, 8, 9, 5, 6, 7, 8, 9, 6, 7, 8, 9, 0 }; #define YYPURE 1 /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ #line 3 "/home/haible/gnu/arch/linuxlibc6/share/bison.simple" /* This file comes from bison-1.28. */ /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ /* This is the parser code that is written into each bison parser when the %semantic_parser declaration is not specified in the grammar. It was written by Richard Stallman by simplifying the hairy parser used when %semantic_parser is specified. */ #ifndef YYSTACK_USE_ALLOCA #ifdef alloca #define YYSTACK_USE_ALLOCA #else /* alloca not defined */ #ifdef __GNUC__ #define YYSTACK_USE_ALLOCA #define alloca __builtin_alloca #else /* not GNU C. */ #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) #define YYSTACK_USE_ALLOCA #include #else /* not sparc */ /* We think this test detects Watcom and Microsoft C. */ /* This used to test MSDOS, but that is a bad idea since that symbol is in the user namespace. */ #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) #if 0 /* No need for malloc.h, which pollutes the namespace; instead, just don't use alloca. */ #include #endif #else /* not MSDOS, or __TURBOC__ */ #if defined(_AIX) /* I don't know what this was needed for, but it pollutes the namespace. So I turned it off. rms, 2 May 1997. */ /* #include */ #pragma alloca #define YYSTACK_USE_ALLOCA #else /* not MSDOS, or __TURBOC__, or _AIX */ #if 0 #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, and on HPUX 10. Eventually we can turn this on. */ #define YYSTACK_USE_ALLOCA #define alloca __builtin_alloca #endif /* __hpux */ #endif #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc */ #endif /* not GNU C */ #endif /* alloca not defined */ #endif /* YYSTACK_USE_ALLOCA not defined */ #ifdef YYSTACK_USE_ALLOCA #define YYSTACK_ALLOC alloca #else #define YYSTACK_ALLOC malloc #endif /* Note: there must be only one dollar sign in this file. It is replaced by the list of actions, each action as one case of the switch. */ #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY -2 #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(token, value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { yychar = (token), yylval = (value); \ yychar1 = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { yyerror ("syntax error: cannot back up"); YYERROR; } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 #ifndef YYPURE #define YYLEX yylex() #endif #ifdef YYPURE #ifdef YYLSP_NEEDED #ifdef YYLEX_PARAM #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) #else #define YYLEX yylex(&yylval, &yylloc) #endif #else /* not YYLSP_NEEDED */ #ifdef YYLEX_PARAM #define YYLEX yylex(&yylval, YYLEX_PARAM) #else #define YYLEX yylex(&yylval) #endif #endif /* not YYLSP_NEEDED */ #endif /* If nonreentrant, generate the variables here */ #ifndef YYPURE int yychar; /* the lookahead symbol */ YYSTYPE yylval; /* the semantic value of the */ /* lookahead symbol */ #ifdef YYLSP_NEEDED YYLTYPE yylloc; /* location data for the lookahead */ /* symbol */ #endif int yynerrs; /* number of parse errors so far */ #endif /* not YYPURE */ #if YYDEBUG != 0 int yydebug; /* nonzero means print parse trace */ /* Since this is uninitialized, it does not stop multiple parsers from coexisting. */ #endif /* YYINITDEPTH indicates the initial size of the parser's stacks */ #ifndef YYINITDEPTH #define YYINITDEPTH 200 #endif /* YYMAXDEPTH is the maximum size the stacks can grow to (effective only if the built-in stack extension method is used). */ #if YYMAXDEPTH == 0 #undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH #define YYMAXDEPTH 10000 #endif /* Define __yy_memcpy. Note that the size argument should be passed with type unsigned int, because that is what the non-GCC definitions require. With GCC, __builtin_memcpy takes an arg of type size_t, but it can handle unsigned int. */ #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ #define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) #else /* not GNU C or C++ */ #ifndef __cplusplus /* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */ static void __yy_memcpy (to, from, count) char *to; char *from; unsigned int count; { register char *f = from; register char *t = to; register int i = count; while (i-- > 0) *t++ = *f++; } #else /* __cplusplus */ /* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */ static void __yy_memcpy (char *to, char *from, unsigned int count) { register char *t = to; register char *f = from; register int i = count; while (i-- > 0) *t++ = *f++; } #endif #endif #line 217 "/home/haible/gnu/arch/linuxlibc6/share/bison.simple" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. It should actually point to an object. Grammar actions can access the variable by casting it to the proper pointer type. */ #ifdef YYPARSE_PARAM #ifdef __cplusplus #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM #define YYPARSE_PARAM_DECL #else /* not __cplusplus */ #define YYPARSE_PARAM_ARG YYPARSE_PARAM #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; #endif /* not __cplusplus */ #else /* not YYPARSE_PARAM */ #define YYPARSE_PARAM_ARG #define YYPARSE_PARAM_DECL #endif /* not YYPARSE_PARAM */ /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ #ifdef YYPARSE_PARAM int yyparse (void *); #else int yyparse (void); #endif #endif int yyparse(YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL { register int yystate; register int yyn; register short *yyssp; register YYSTYPE *yyvsp; int yyerrstatus; /* number of tokens to shift before error messages enabled */ int yychar1 = 0; /* lookahead token as an internal (translated) token number */ short yyssa[YYINITDEPTH]; /* the state stack */ YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ short *yyss = yyssa; /* refer to the stacks thru separate pointers */ YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ #ifdef YYLSP_NEEDED YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else #define YYPOPSTACK (yyvsp--, yyssp--) #endif int yystacksize = YYINITDEPTH; int yyfree_stacks = 0; #ifdef YYPURE int yychar; YYSTYPE yylval; int yynerrs; #ifdef YYLSP_NEEDED YYLTYPE yylloc; #endif #endif YYSTYPE yyval; /* the variable used to return */ /* semantic values from the action */ /* routines */ int yylen; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Starting parse\n"); #endif yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss - 1; yyvsp = yyvs; #ifdef YYLSP_NEEDED yylsp = yyls; #endif /* Push a new state, which is found in yystate . */ /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yynewstate: *++yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { /* Give user a chance to reallocate the stack */ /* Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; short *yyss1 = yyss; #ifdef YYLSP_NEEDED YYLTYPE *yyls1 = yyls; #endif /* Get the current used size of the three stacks, in elements. */ int size = yyssp - yyss + 1; #ifdef yyoverflow /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. */ #ifdef YYLSP_NEEDED /* This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow("parser stack overflow", &yyss1, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yyls1, size * sizeof (*yylsp), &yystacksize); #else yyoverflow("parser stack overflow", &yyss1, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yystacksize); #endif yyss = yyss1; yyvs = yyvs1; #ifdef YYLSP_NEEDED yyls = yyls1; #endif #else /* no yyoverflow */ /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) { yyerror("parser stack overflow"); if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 2; } yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; #ifndef YYSTACK_USE_ALLOCA yyfree_stacks = 1; #endif yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); __yy_memcpy ((char *)yyss, (char *)yyss1, size * (unsigned int) sizeof (*yyssp)); yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * (unsigned int) sizeof (*yyvsp)); #ifdef YYLSP_NEEDED yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); __yy_memcpy ((char *)yyls, (char *)yyls1, size * (unsigned int) sizeof (*yylsp)); #endif #endif /* no yyoverflow */ yyssp = yyss + size - 1; yyvsp = yyvs + size - 1; #ifdef YYLSP_NEEDED yylsp = yyls + size - 1; #endif #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Stack size increased to %d\n", yystacksize); #endif if (yyssp >= yyss + yystacksize - 1) YYABORT; } #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Entering state %d\n", yystate); #endif goto yybackup; yybackup: /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ /* yyresume: */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYFLAG) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* yychar is either YYEMPTY or YYEOF or a valid token in external form. */ if (yychar == YYEMPTY) { #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Reading a token: "); #endif yychar = YYLEX; } /* Convert token to internal form (in yychar1) for indexing tables with */ if (yychar <= 0) /* This means end of input. */ { yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Now at end of input.\n"); #endif } else { yychar1 = YYTRANSLATE(yychar); #if YYDEBUG != 0 if (yydebug) { fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); /* Give the individual parser a way to print the precise meaning of a token, for further debugging info. */ #ifdef YYPRINT YYPRINT (stderr, yychar, yylval); #endif fprintf (stderr, ")\n"); } #endif } yyn += yychar1; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) goto yydefault; yyn = yytable[yyn]; /* yyn is what to do for this token type in this state. Negative => reduce, -yyn is rule number. Positive => shift, yyn is new state. New state is final state => don't bother to shift, just return success. 0, or most negative number => error. */ if (yyn < 0) { if (yyn == YYFLAG) goto yyerrlab; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrlab; if (yyn == YYFINAL) YYACCEPT; /* Shift the lookahead token. */ #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); #endif /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; #ifdef YYLSP_NEEDED *++yylsp = yylloc; #endif /* count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate; /* Do the default action for the current state. */ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; /* Do a reduction. yyn is the number of a rule to reduce with. */ yyreduce: yylen = yyr2[yyn]; if (yylen > 0) yyval = yyvsp[1-yylen]; /* implement default value of the action */ #if YYDEBUG != 0 if (yydebug) { int i; fprintf (stderr, "Reducing via rule %d (line %d), ", yyn, yyrline[yyn]); /* Print the symbols being reduced, and their result. */ for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) fprintf (stderr, "%s ", yytname[yyrhs[i]]); fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); } #endif switch (yyn) { case 1: #line 178 "plural.y" { if (yyvsp[0].exp == NULL) YYABORT; ((struct parse_args *) arg)->res = yyvsp[0].exp; ; break;} case 2: #line 186 "plural.y" { yyval.exp = new_exp_3 (qmop, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp); ; break;} case 3: #line 190 "plural.y" { yyval.exp = new_exp_2 (lor, yyvsp[-2].exp, yyvsp[0].exp); ; break;} case 4: #line 194 "plural.y" { yyval.exp = new_exp_2 (land, yyvsp[-2].exp, yyvsp[0].exp); ; break;} case 5: #line 198 "plural.y" { yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); ; break;} case 6: #line 202 "plural.y" { yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); ; break;} case 7: #line 206 "plural.y" { yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); ; break;} case 8: #line 210 "plural.y" { yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); ; break;} case 9: #line 214 "plural.y" { yyval.exp = new_exp_1 (lnot, yyvsp[0].exp); ; break;} case 10: #line 218 "plural.y" { yyval.exp = new_exp_0 (var); ; break;} case 11: #line 222 "plural.y" { if ((yyval.exp = new_exp_0 (num)) != NULL) yyval.exp->val.num = yyvsp[0].num; ; break;} case 12: #line 227 "plural.y" { yyval.exp = yyvsp[-1].exp; ; break;} } /* the action file gets copied in in place of this dollarsign */ #line 543 "/home/haible/gnu/arch/linuxlibc6/share/bison.simple" yyvsp -= yylen; yyssp -= yylen; #ifdef YYLSP_NEEDED yylsp -= yylen; #endif #if YYDEBUG != 0 if (yydebug) { short *ssp1 = yyss - 1; fprintf (stderr, "state stack now"); while (ssp1 != yyssp) fprintf (stderr, " %d", *++ssp1); fprintf (stderr, "\n"); } #endif *++yyvsp = yyval; #ifdef YYLSP_NEEDED yylsp++; if (yylen == 0) { yylsp->first_line = yylloc.first_line; yylsp->first_column = yylloc.first_column; yylsp->last_line = (yylsp-1)->last_line; yylsp->last_column = (yylsp-1)->last_column; yylsp->text = 0; } else { yylsp->last_line = (yylsp+yylen-1)->last_line; yylsp->last_column = (yylsp+yylen-1)->last_column; } #endif /* Now "shift" the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTBASE] + *yyssp; if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTBASE]; goto yynewstate; yyerrlab: /* here on detecting error */ if (! yyerrstatus) /* If not already recovering from an error, report this error. */ { ++yynerrs; #ifdef YYERROR_VERBOSE yyn = yypact[yystate]; if (yyn > YYFLAG && yyn < YYLAST) { int size = 0; char *msg; int x, count; count = 0; /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ for (x = (yyn < 0 ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) size += strlen(yytname[x]) + 15, count++; msg = (char *) malloc(size + 15); if (msg != 0) { strcpy(msg, "parse error"); if (count < 5) { count = 0; for (x = (yyn < 0 ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) { strcat(msg, count == 0 ? ", expecting `" : " or `"); strcat(msg, yytname[x]); strcat(msg, "'"); count++; } } yyerror(msg); free(msg); } else yyerror ("parse error; also virtual memory exceeded"); } else #endif /* YYERROR_VERBOSE */ yyerror("parse error"); } goto yyerrlab1; yyerrlab1: /* here on error raised explicitly by an action */ if (yyerrstatus == 3) { /* if just tried and failed to reuse lookahead token after an error, discard it. */ /* return failure if at end of input */ if (yychar == YYEOF) YYABORT; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); #endif yychar = YYEMPTY; } /* Else will try to reuse lookahead token after shifting the error token. */ yyerrstatus = 3; /* Each real token shifted decrements this */ goto yyerrhandle; yyerrdefault: /* current state does not do anything special for the error token. */ #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ if (yyn) goto yydefault; #endif yyerrpop: /* pop the current state because it cannot handle the error token */ if (yyssp == yyss) YYABORT; yyvsp--; yystate = *--yyssp; #ifdef YYLSP_NEEDED yylsp--; #endif #if YYDEBUG != 0 if (yydebug) { short *ssp1 = yyss - 1; fprintf (stderr, "Error: state stack now"); while (ssp1 != yyssp) fprintf (stderr, " %d", *++ssp1); fprintf (stderr, "\n"); } #endif yyerrhandle: yyn = yypact[yystate]; if (yyn == YYFLAG) goto yyerrdefault; yyn += YYTERROR; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) goto yyerrdefault; yyn = yytable[yyn]; if (yyn < 0) { if (yyn == YYFLAG) goto yyerrpop; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrpop; if (yyn == YYFINAL) YYACCEPT; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Shifting error token, "); #endif *++yyvsp = yylval; #ifdef YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; yyacceptlab: /* YYACCEPT comes here. */ if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 0; yyabortlab: /* YYABORT comes here. */ if (yyfree_stacks) { free (yyss); free (yyvs); #ifdef YYLSP_NEEDED free (yyls); #endif } return 1; } #line 232 "plural.y" void internal_function FREE_EXPRESSION (exp) struct expression *exp; { if (exp == NULL) return; /* Handle the recursive case. */ switch (exp->nargs) { case 3: FREE_EXPRESSION (exp->val.args[2]); /* FALLTHROUGH */ case 2: FREE_EXPRESSION (exp->val.args[1]); /* FALLTHROUGH */ case 1: FREE_EXPRESSION (exp->val.args[0]); /* FALLTHROUGH */ default: break; } free (exp); } static int yylex (lval, pexp) YYSTYPE *lval; const char **pexp; { const char *exp = *pexp; int result; while (1) { if (exp[0] == '\0') { *pexp = exp; return YYEOF; } if (exp[0] != ' ' && exp[0] != '\t') break; ++exp; } result = *exp++; switch (result) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { unsigned long int n = result - '0'; while (exp[0] >= '0' && exp[0] <= '9') { n *= 10; n += exp[0] - '0'; ++exp; } lval->num = n; result = NUMBER; } break; case '=': if (exp[0] == '=') { ++exp; lval->op = equal; result = EQUOP2; } else result = YYERRCODE; break; case '!': if (exp[0] == '=') { ++exp; lval->op = not_equal; result = EQUOP2; } break; case '&': case '|': if (exp[0] == result) ++exp; else result = YYERRCODE; break; case '<': if (exp[0] == '=') { ++exp; lval->op = less_or_equal; } else lval->op = less_than; result = CMPOP2; break; case '>': if (exp[0] == '=') { ++exp; lval->op = greater_or_equal; } else lval->op = greater_than; result = CMPOP2; break; case '*': lval->op = mult; result = MULOP2; break; case '/': lval->op = divide; result = MULOP2; break; case '%': lval->op = module; result = MULOP2; break; case '+': lval->op = plus; result = ADDOP2; break; case '-': lval->op = minus; result = ADDOP2; break; case 'n': case '?': case ':': case '(': case ')': /* Nothing, just return the character. */ break; case ';': case '\n': case '\0': /* Be safe and let the user call this function again. */ --exp; result = YYEOF; break; default: result = YYERRCODE; #if YYDEBUG != 0 --exp; #endif break; } *pexp = exp; return result; } static void yyerror (str) const char *str; { /* Do nothing. We don't print error messages here. */ } dopewars-1.5.12/intl/config.charset0000755001565000007070000003173707366603610014165 00000000000000#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2001 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. # # The table consists of lines of the form # ALIAS CANONICAL # # ALIAS is the (system dependent) result of "nl_langinfo (CODESET)". # ALIAS is compared in a case sensitive way. # # CANONICAL is the GNU canonical name for this character encoding. # It must be an encoding supported by libiconv. Support by GNU libc is # also desirable. CANONICAL is case insensitive. Usually an upper case # MIME charset name is preferred. # The current list of GNU canonical charset names is as follows. # # name used by which systems a MIME name? # ASCII, ANSI_X3.4-1968 glibc solaris freebsd # ISO-8859-1 glibc aix hpux irix osf solaris freebsd yes # ISO-8859-2 glibc aix hpux irix osf solaris freebsd yes # ISO-8859-3 glibc yes # ISO-8859-4 osf solaris freebsd yes # ISO-8859-5 glibc aix hpux irix osf solaris freebsd yes # ISO-8859-6 glibc aix hpux solaris yes # ISO-8859-7 glibc aix hpux irix osf solaris yes # ISO-8859-8 glibc aix hpux osf solaris yes # ISO-8859-9 glibc aix hpux irix osf solaris yes # ISO-8859-13 glibc # ISO-8859-15 glibc aix osf solaris freebsd # KOI8-R glibc solaris freebsd yes # KOI8-U glibc freebsd yes # CP437 dos # CP775 dos # CP850 aix osf dos # CP852 dos # CP855 dos # CP856 aix # CP857 dos # CP861 dos # CP862 dos # CP864 dos # CP865 dos # CP866 freebsd dos # CP869 dos # CP874 win32 dos # CP922 aix # CP932 aix win32 dos # CP943 aix # CP949 osf win32 dos # CP950 win32 dos # CP1046 aix # CP1124 aix # CP1129 aix # CP1250 win32 # CP1251 glibc win32 # CP1252 aix win32 # CP1253 win32 # CP1254 win32 # CP1255 win32 # CP1256 win32 # CP1257 win32 # GB2312 glibc aix hpux irix solaris freebsd yes # EUC-JP glibc aix hpux irix osf solaris freebsd yes # EUC-KR glibc aix hpux irix osf solaris freebsd yes # EUC-TW glibc aix hpux irix osf solaris # BIG5 glibc aix hpux osf solaris freebsd yes # BIG5HKSCS glibc # GBK aix osf win32 dos # GB18030 glibc # SJIS hpux osf solaris freebsd # JOHAB glibc win32 # TIS-620 glibc aix hpux osf solaris # VISCII glibc yes # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux # HP-HEBREW8 hpux # HP-TURKISH8 hpux # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf # UTF-8 glibc aix hpux osf solaris yes # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). # # Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications # must understand both names and treat them as equivalent. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM host="$1" os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'` echo "# This file contains a table of character encoding aliases," echo "# suitable for operating system '${os}'." echo "# It was automatically generated from config.charset." # List of references, updated during installation: echo "# Packages using this file: " case "$os" in linux* | *-gnu*) # With glibc-2.1 or newer, we don't need any canonicalization, # because glibc has iconv and both glibc and libiconv support all # GNU canonical names directly. Therefore, the Makefile does not # need to install the alias file at all. # The following applies only to glibc-2.0.x and older libcs. echo "ISO_646.IRV:1983 ASCII" ;; aix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "IBM-850 CP850" echo "IBM-856 CP856" echo "IBM-921 ISO-8859-13" echo "IBM-922 CP922" echo "IBM-932 CP932" echo "IBM-943 CP943" echo "IBM-1046 CP1046" echo "IBM-1124 CP1124" echo "IBM-1129 CP1129" echo "IBM-1252 CP1252" echo "IBM-eucCN GB2312" echo "IBM-eucJP EUC-JP" echo "IBM-eucKR EUC-KR" echo "IBM-eucTW EUC-TW" echo "big5 BIG5" echo "GBK GBK" echo "TIS-620 TIS-620" echo "UTF-8 UTF-8" ;; hpux*) echo "iso88591 ISO-8859-1" echo "iso88592 ISO-8859-2" echo "iso88595 ISO-8859-5" echo "iso88596 ISO-8859-6" echo "iso88597 ISO-8859-7" echo "iso88598 ISO-8859-8" echo "iso88599 ISO-8859-9" echo "iso885915 ISO-8859-15" echo "roman8 HP-ROMAN8" echo "arabic8 HP-ARABIC8" echo "greek8 HP-GREEK8" echo "hebrew8 HP-HEBREW8" echo "turkish8 HP-TURKISH8" echo "kana8 HP-KANA8" echo "tis620 TIS-620" echo "big5 BIG5" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "hp15CN GB2312" #echo "ccdc ?" # what is this? echo "SJIS SJIS" echo "utf8 UTF-8" ;; irix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" ;; osf*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "cp850 CP850" echo "big5 BIG5" echo "dechanyu DEC-HANYU" echo "dechanzi GB2312" echo "deckanji DEC-KANJI" echo "deckorean EUC-KR" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "GBK GBK" echo "KSC5601 CP949" echo "sdeckanji EUC-JP" echo "SJIS SJIS" echo "TACTIS TIS-620" echo "UTF-8 UTF-8" ;; solaris*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "koi8-r KOI8-R" echo "BIG5 BIG5" echo "gb2312 GB2312" echo "cns11643 EUC-TW" echo "5601 EUC-KR" echo "eucJP EUC-JP" echo "PCK SJIS" echo "TIS620.2533 TIS-620" #echo "sun_eu_greek ?" # what is this? echo "UTF-8 UTF-8" ;; freebsd*) # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" echo "US-ASCII ASCII" for l in la_LN lt_LN; do echo "$l.ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do echo "$l.ISO_8859-1 ISO-8859-1" echo "$l.DIS_8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do echo "$l.ISO_8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO_8859-4 ISO-8859-4" done for l in ru_RU ru_SU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO_8859-5 ISO-8859-5" echo "$l.CP866 CP866" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SJIS" echo "ja_JP.Shift_JIS SJIS" echo "ko_KR.EUC EUC-KR" ;; beos*) # BeOS has a single locale, and it has UTF-8 encoding. echo "* UTF-8" ;; msdosdjgpp*) # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "#" echo "# The encodings given here may not all be correct." echo "# If you find that the encoding given for your language and" echo "# country is not the one your DOS machine actually uses, just" echo "# correct it in this file, and send a mail to" echo "# Juan Manuel Guerrero " echo "# and Bruno Haible ." echo "#" echo "C ASCII" # ISO-8859-1 languages echo "ca CP850" echo "ca_ES CP850" echo "da CP865" # not CP850 ?? echo "da_DK CP865" # not CP850 ?? echo "de CP850" echo "de_AT CP850" echo "de_CH CP850" echo "de_DE CP850" echo "en CP850" echo "en_AU CP850" # not CP437 ?? echo "en_CA CP850" echo "en_GB CP850" echo "en_NZ CP437" echo "en_US CP437" echo "en_ZA CP850" # not CP437 ?? echo "es CP850" echo "es_AR CP850" echo "es_BO CP850" echo "es_CL CP850" echo "es_CO CP850" echo "es_CR CP850" echo "es_CU CP850" echo "es_DO CP850" echo "es_EC CP850" echo "es_ES CP850" echo "es_GT CP850" echo "es_HN CP850" echo "es_MX CP850" echo "es_NI CP850" echo "es_PA CP850" echo "es_PY CP850" echo "es_PE CP850" echo "es_SV CP850" echo "es_UY CP850" echo "es_VE CP850" echo "et CP850" echo "et_EE CP850" echo "eu CP850" echo "eu_ES CP850" echo "fi CP850" echo "fi_FI CP850" echo "fr CP850" echo "fr_BE CP850" echo "fr_CA CP850" echo "fr_CH CP850" echo "fr_FR CP850" echo "ga CP850" echo "ga_IE CP850" echo "gd CP850" echo "gd_GB CP850" echo "gl CP850" echo "gl_ES CP850" echo "id CP850" # not CP437 ?? echo "id_ID CP850" # not CP437 ?? echo "is CP861" # not CP850 ?? echo "is_IS CP861" # not CP850 ?? echo "it CP850" echo "it_CH CP850" echo "it_IT CP850" echo "lt CP775" echo "lt_LT CP775" echo "lv CP775" echo "lv_LV CP775" echo "nb CP865" # not CP850 ?? echo "nb_NO CP865" # not CP850 ?? echo "nl CP850" echo "nl_BE CP850" echo "nl_NL CP850" echo "nn CP865" # not CP850 ?? echo "nn_NO CP865" # not CP850 ?? echo "no CP865" # not CP850 ?? echo "no_NO CP865" # not CP850 ?? echo "pt CP850" echo "pt_BR CP850" echo "pt_PT CP850" echo "sv CP850" echo "sv_SE CP850" # ISO-8859-2 languages echo "cs CP852" echo "cs_CZ CP852" echo "hr CP852" echo "hr_HR CP852" echo "hu CP852" echo "hu_HU CP852" echo "pl CP852" echo "pl_PL CP852" echo "ro CP852" echo "ro_RO CP852" echo "sk CP852" echo "sk_SK CP852" echo "sl CP852" echo "sl_SI CP852" echo "sq CP852" echo "sq_AL CP852" echo "sr CP852" # CP852 or CP866 or CP855 ?? echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? # ISO-8859-3 languages echo "mt CP850" echo "mt_MT CP850" # ISO-8859-5 languages echo "be CP866" echo "be_BE CP866" echo "bg CP866" # not CP855 ?? echo "bg_BG CP866" # not CP855 ?? echo "mk CP866" # not CP855 ?? echo "mk_MK CP866" # not CP855 ?? echo "ru KOI8-R" # not CP866 ?? echo "ru_RU KOI8-R" # not CP866 ?? # ISO-8859-6 languages echo "ar CP864" echo "ar_AE CP864" echo "ar_DZ CP864" echo "ar_EG CP864" echo "ar_IQ CP864" echo "ar_IR CP864" echo "ar_JO CP864" echo "ar_KW CP864" echo "ar_MA CP864" echo "ar_OM CP864" echo "ar_QA CP864" echo "ar_SA CP864" echo "ar_SY CP864" # ISO-8859-7 languages echo "el CP869" echo "el_GR CP869" # ISO-8859-8 languages echo "he CP862" echo "he_IL CP862" # ISO-8859-9 languages echo "tr CP857" echo "tr_TR CP857" # Japanese echo "ja CP932" echo "ja_JP CP932" # Chinese echo "zh_CN GBK" echo "zh_TW CP950" # not CP938 ?? # Korean echo "kr CP949" # not CP934 ?? echo "kr_KR CP949" # not CP934 ?? # Thai echo "th CP874" echo "th_TH CP874" # Other echo "eo CP850" echo "eo_EO CP850" ;; esac dopewars-1.5.12/intl/dngettext.c0000644001565000007070000000355207366603610013506 00000000000000/* Implementation of the dngettext(3) function. Copyright (C) 1995-1997, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DNGETTEXT __dngettext # define DCNGETTEXT __dcngettext #else # define DNGETTEXT dngettext__ # define DCNGETTEXT dcngettext__ #endif /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale and skip message according to the plural form. */ char * DNGETTEXT (domainname, msgid1, msgid2, n) const char *domainname; const char *msgid1; const char *msgid2; unsigned long int n; { return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dngettext, dngettext); #endif dopewars-1.5.12/intl/VERSION0000644001565000007070000000005107366603610012373 00000000000000GNU gettext library from gettext-0.10.38 dopewars-1.5.12/intl/gettext.h0000644001565000007070000000600507366603610013165 00000000000000/* Description of GNU message catalog format: general file layout. Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _GETTEXT_H #define _GETTEXT_H 1 #if HAVE_LIMITS_H || _LIBC # include #endif /* @@ end of prolog @@ */ /* The magic number of the GNU message catalog format. */ #define _MAGIC 0x950412de #define _MAGIC_SWAPPED 0xde120495 /* Revision number of the currently used .mo (binary) file format. */ #define MO_REVISION_NUMBER 0 /* The following contortions are an attempt to use the C preprocessor to determine an unsigned integral type that is 32 bits wide. An alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but as of version autoconf-2.13, the AC_CHECK_SIZEOF macro doesn't work when cross-compiling. */ #if __STDC__ # define UINT_MAX_32_BITS 4294967295U #else # define UINT_MAX_32_BITS 0xFFFFFFFF #endif /* If UINT_MAX isn't defined, assume it's a 32-bit type. This should be valid for all systems GNU cares about because that doesn't include 16-bit systems, and only modern systems (that certainly have ) have 64+-bit integral types. */ #ifndef UINT_MAX # define UINT_MAX UINT_MAX_32_BITS #endif #if UINT_MAX == UINT_MAX_32_BITS typedef unsigned nls_uint32; #else # if USHRT_MAX == UINT_MAX_32_BITS typedef unsigned short nls_uint32; # else # if ULONG_MAX == UINT_MAX_32_BITS typedef unsigned long nls_uint32; # else /* The following line is intended to throw an error. Using #error is not portable enough. */ "Cannot determine unsigned 32-bit data type." # endif # endif #endif /* Header for binary .mo file format. */ struct mo_file_header { /* The magic number. */ nls_uint32 magic; /* The revision number of the file format. */ nls_uint32 revision; /* The number of strings pairs. */ nls_uint32 nstrings; /* Offset of table with start offsets of original strings. */ nls_uint32 orig_tab_offset; /* Offset of table with start offsets of translation strings. */ nls_uint32 trans_tab_offset; /* Size of hashing table. */ nls_uint32 hash_tab_size; /* Offset of first hashing entry. */ nls_uint32 hash_tab_offset; }; struct string_desc { /* Length of addressed string. */ nls_uint32 length; /* Offset of string in file. */ nls_uint32 offset; }; /* @@ begin of epilog @@ */ #endif /* gettext.h */ dopewars-1.5.12/intl/dcigettext.c0000644001565000007070000010225307366605037013647 00000000000000/* Implementation of the internal dcigettext function. Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif #include #ifndef errno extern int errno; #endif #ifndef __set_errno # define __set_errno(val) errno = (val) #endif #include #include #include #if !HAVE_STRCHR && !defined _LIBC # ifndef strchr # define strchr index # endif #endif #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include #if defined HAVE_SYS_PARAM_H || defined _LIBC # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include "hash-string.h" /* Thread safetyness. */ #ifdef _LIBC # include #else /* Provide dummy implementation if this is outside glibc. */ # define __libc_lock_define_initialized(CLASS, NAME) # define __libc_lock_lock(NAME) # define __libc_lock_unlock(NAME) # define __libc_rwlock_define_initialized(CLASS, NAME) # define __libc_rwlock_rdlock(NAME) # define __libc_rwlock_unlock(NAME) #endif /* Alignment of types. */ #if defined __GNUC__ && __GNUC__ >= 2 # define alignof(TYPE) __alignof__ (TYPE) #else # define alignof(TYPE) \ ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2) #endif /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_default_domain _nl_default_default_domain__ # define _nl_current_default_domain _nl_current_default_domain__ # define _nl_default_dirname _nl_default_dirname__ # define _nl_domain_bindings _nl_domain_bindings__ #endif /* Some compilers, like SunOS4 cc, don't have offsetof in . */ #ifndef offsetof # define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define getcwd __getcwd # ifndef stpcpy # define stpcpy __stpcpy # endif # define tfind __tfind #else # if !defined HAVE_GETCWD char *getwd (); # define getcwd(buf, max) getwd (buf) # else char *getcwd (); # endif # ifndef HAVE_STPCPY static char *stpcpy PARAMS ((char *dest, const char *src)); # endif # ifndef HAVE_MEMPCPY static void *mempcpy PARAMS ((void *dest, const void *src, size_t n)); # endif #endif /* Amount to increase buffer size by in each try. */ #define PATH_INCR 32 /* The following is from pathmax.h. */ /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define PATH_MAX but might cause redefinition warnings when sys/param.h is later included (as on MORE/BSD 4.3). */ #if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__) # include #endif #ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 255 #endif #if !defined PATH_MAX && defined _PC_PATH_MAX # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) #endif /* Don't include sys/param.h if it already has been. */ #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN # include #endif #if !defined PATH_MAX && defined MAXPATHLEN # define PATH_MAX MAXPATHLEN #endif #ifndef PATH_MAX # define PATH_MAX _POSIX_PATH_MAX #endif /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, it may be concatenated to a directory pathname. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. */ #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ /* Win32, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) # define IS_PATH_WITH_DIR(P) \ (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) #endif /* XPG3 defines the result of `setlocale (category, NULL)' as: ``Directs `setlocale()' to query `category' and return the current setting of `local'.'' However it does not specify the exact format. Neither do SUSV2 and ISO C 99. So we can use this feature only on selected systems (e.g. those using GNU C Library). */ #if defined _LIBC || (defined __GNU_LIBRARY__ && __GNU_LIBRARY__ >= 2) # define HAVE_LOCALE_NULL #endif /* This is the type used for the search tree where known translations are stored. */ struct known_translation_t { /* Domain in which to search. */ char *domainname; /* The category. */ int category; /* State of the catalog counter at the point the string was found. */ int counter; /* Catalog where the string was found. */ struct loaded_l10nfile *domain; /* And finally the translation. */ const char *translation; size_t translation_length; /* Pointer to the string in question. */ char msgid[ZERO]; }; /* Root of the search tree with known translations. We can use this only if the system provides the `tsearch' function family. */ #if defined HAVE_TSEARCH || defined _LIBC # include static void *root; # ifdef _LIBC # define tsearch __tsearch # endif /* Function to compare two entries in the table of known translations. */ static int transcmp PARAMS ((const void *p1, const void *p2)); static int transcmp (p1, p2) const void *p1; const void *p2; { const struct known_translation_t *s1; const struct known_translation_t *s2; int result; s1 = (const struct known_translation_t *) p1; s2 = (const struct known_translation_t *) p2; result = strcmp (s1->msgid, s2->msgid); if (result == 0) { result = strcmp (s1->domainname, s2->domainname); if (result == 0) /* We compare the category last (though this is the cheapest operation) since it is hopefully always the same (namely LC_MESSAGES). */ result = s1->category - s2->category; } return result; } #endif /* Name of the default domain used for gettext(3) prior any call to textdomain(3). The default value for this is "messages". */ const char _nl_default_default_domain[] = "messages"; /* Value used as the default domain for gettext(3). */ const char *_nl_current_default_domain = _nl_default_default_domain; /* Contains the default location of the message catalogs. */ const char _nl_default_dirname[] = LOCALEDIR; /* List with bindings of specific domains created by bindtextdomain() calls. */ struct binding *_nl_domain_bindings; /* Prototypes for local functions. */ static char *plural_lookup PARAMS ((struct loaded_l10nfile *domain, unsigned long int n, const char *translation, size_t translation_len)) internal_function; static unsigned long int plural_eval PARAMS ((struct expression *pexp, unsigned long int n)) internal_function; static const char *category_to_name PARAMS ((int category)) internal_function; static const char *guess_category_value PARAMS ((int category, const char *categoryname)) internal_function; /* For those loosing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA /* Nothing has to be done. */ # define ADD_BLOCK(list, address) /* nothing */ # define FREE_BLOCKS(list) /* nothing */ #else struct block_list { void *address; struct block_list *next; }; # define ADD_BLOCK(list, addr) \ do { \ struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ /* If we cannot get a free block we cannot add the new element to \ the list. */ \ if (newp != NULL) { \ newp->address = (addr); \ newp->next = (list); \ (list) = newp; \ } \ } while (0) # define FREE_BLOCKS(list) \ do { \ while (list != NULL) { \ struct block_list *old = list; \ list = list->next; \ free (old); \ } \ } while (0) # undef alloca # define alloca(size) (malloc (size)) #endif /* have alloca */ #ifdef _LIBC /* List of blocks allocated for translations. */ typedef struct transmem_list { struct transmem_list *next; char data[ZERO]; } transmem_block_t; static struct transmem_list *transmem_list; #else typedef unsigned char transmem_block_t; #endif /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCIGETTEXT __dcigettext #else # define DCIGETTEXT dcigettext__ #endif /* Lock variable to protect the global data in the gettext implementation. */ #ifdef _LIBC __libc_rwlock_define_initialized (, _nl_state_lock) #endif /* Checking whether the binaries runs SUID must be done and glibc provides easier methods therefore we make a difference here. */ #ifdef _LIBC # define ENABLE_SECURE __libc_enable_secure # define DETERMINE_SECURE #else # ifndef HAVE_GETUID # define getuid() 0 # endif # ifndef HAVE_GETGID # define getgid() 0 # endif # ifndef HAVE_GETEUID # define geteuid() getuid() # endif # ifndef HAVE_GETEGID # define getegid() getgid() # endif static int enable_secure; # define ENABLE_SECURE (enable_secure == 1) # define DETERMINE_SECURE \ if (enable_secure == 0) \ { \ if (getuid () != geteuid () || getgid () != getegid ()) \ enable_secure = 1; \ else \ enable_secure = -1; \ } #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale and, if PLURAL is nonzero, search over string depending on the plural form determined by N. */ char * DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category) const char *domainname; const char *msgid1; const char *msgid2; int plural; unsigned long int n; int category; { #ifndef HAVE_ALLOCA struct block_list *block_list = NULL; #endif struct loaded_l10nfile *domain; struct binding *binding; const char *categoryname; const char *categoryvalue; char *dirname, *xdomainname; char *single_locale; char *retval; size_t retlen; int saved_errno; #if defined HAVE_TSEARCH || defined _LIBC struct known_translation_t *search; struct known_translation_t **foundp = NULL; size_t msgid_len; #endif size_t domainname_len; /* If no real MSGID is given return NULL. */ if (msgid1 == NULL) return NULL; __libc_rwlock_rdlock (_nl_state_lock); /* If DOMAINNAME is NULL, we are interested in the default domain. If CATEGORY is not LC_MESSAGES this might not make much sense but the definition left this undefined. */ if (domainname == NULL) domainname = _nl_current_default_domain; #if defined HAVE_TSEARCH || defined _LIBC msgid_len = strlen (msgid1) + 1; /* Try to find the translation among those which we found at some time. */ search = (struct known_translation_t *) alloca (offsetof (struct known_translation_t, msgid) + msgid_len); memcpy (search->msgid, msgid1, msgid_len); search->domainname = (char *) domainname; search->category = category; foundp = (struct known_translation_t **) tfind (search, &root, transcmp); if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr) { /* Now deal with plural. */ if (plural) retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation, (*foundp)->translation_length); else retval = (char *) (*foundp)->translation; __libc_rwlock_unlock (_nl_state_lock); return retval; } #endif /* Preserve the `errno' value. */ saved_errno = errno; /* See whether this is a SUID binary or not. */ DETERMINE_SECURE; /* First find matching binding. */ for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding == NULL) dirname = (char *) _nl_default_dirname; else if (IS_ABSOLUTE_PATH (binding->dirname)) dirname = binding->dirname; else { /* We have a relative path. Make it absolute now. */ size_t dirname_len = strlen (binding->dirname) + 1; size_t path_max; char *ret; path_max = (unsigned int) PATH_MAX; path_max += 2; /* The getcwd docs say to do this. */ for (;;) { dirname = (char *) alloca (path_max + dirname_len); ADD_BLOCK (block_list, dirname); __set_errno (0); ret = getcwd (dirname, path_max); if (ret != NULL || errno != ERANGE) break; path_max += path_max / 2; path_max += PATH_INCR; } if (ret == NULL) { /* We cannot get the current working directory. Don't signal an error but simply return the default string. */ FREE_BLOCKS (block_list); __set_errno (saved_errno); return (plural == 0 ? (char *) msgid1 /* Use the Germanic plural rule. */ : n == 1 ? (char *) msgid1 : (char *) msgid2); } stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname); } /* Now determine the symbolic name of CATEGORY and its value. */ categoryname = category_to_name (category); categoryvalue = guess_category_value (category, categoryname); domainname_len = strlen (domainname); xdomainname = (char *) alloca (strlen (categoryname) + domainname_len + 5); ADD_BLOCK (block_list, xdomainname); stpcpy (mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"), domainname, domainname_len), ".mo"); /* Creating working area. */ single_locale = (char *) alloca (strlen (categoryvalue) + 1); ADD_BLOCK (block_list, single_locale); /* Search for the given string. This is a loop because we perhaps got an ordered list of languages to consider for the translation. */ while (1) { /* Make CATEGORYVALUE point to the next element of the list. */ while (categoryvalue[0] != '\0' && categoryvalue[0] == ':') ++categoryvalue; if (categoryvalue[0] == '\0') { /* The whole contents of CATEGORYVALUE has been searched but no valid entry has been found. We solve this situation by implicitly appending a "C" entry, i.e. no translation will take place. */ single_locale[0] = 'C'; single_locale[1] = '\0'; } else { char *cp = single_locale; while (categoryvalue[0] != '\0' && categoryvalue[0] != ':') *cp++ = *categoryvalue++; *cp = '\0'; /* When this is a SUID binary we must not allow accessing files outside the dedicated directories. */ if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale)) /* Ingore this entry. */ continue; } /* If the current locale value is C (or POSIX) we don't load a domain. Return the MSGID. */ if (strcmp (single_locale, "C") == 0 || strcmp (single_locale, "POSIX") == 0) { FREE_BLOCKS (block_list); __libc_rwlock_unlock (_nl_state_lock); __set_errno (saved_errno); return (plural == 0 ? (char *) msgid1 /* Use the Germanic plural rule. */ : n == 1 ? (char *) msgid1 : (char *) msgid2); } /* Find structure describing the message catalog matching the DOMAINNAME and CATEGORY. */ domain = _nl_find_domain (dirname, single_locale, xdomainname, binding); if (domain != NULL) { retval = _nl_find_msg (domain, binding, msgid1, &retlen); if (retval == NULL) { int cnt; for (cnt = 0; domain->successor[cnt] != NULL; ++cnt) { retval = _nl_find_msg (domain->successor[cnt], binding, msgid1, &retlen); if (retval != NULL) { domain = domain->successor[cnt]; break; } } } if (retval != NULL) { /* Found the translation of MSGID1 in domain DOMAIN: starting at RETVAL, RETLEN bytes. */ FREE_BLOCKS (block_list); __set_errno (saved_errno); #if defined HAVE_TSEARCH || defined _LIBC if (foundp == NULL) { /* Create a new entry and add it to the search tree. */ struct known_translation_t *newp; newp = (struct known_translation_t *) malloc (offsetof (struct known_translation_t, msgid) + msgid_len + domainname_len + 1); if (newp != NULL) { newp->domainname = mempcpy (newp->msgid, msgid1, msgid_len); memcpy (newp->domainname, domainname, domainname_len + 1); newp->category = category; newp->counter = _nl_msg_cat_cntr; newp->domain = domain; newp->translation = retval; newp->translation_length = retlen; /* Insert the entry in the search tree. */ foundp = (struct known_translation_t **) tsearch (newp, &root, transcmp); if (foundp == NULL || __builtin_expect (*foundp != newp, 0)) /* The insert failed. */ free (newp); } } else { /* We can update the existing entry. */ (*foundp)->counter = _nl_msg_cat_cntr; (*foundp)->domain = domain; (*foundp)->translation = retval; (*foundp)->translation_length = retlen; } #endif /* Now deal with plural. */ if (plural) retval = plural_lookup (domain, n, retval, retlen); __libc_rwlock_unlock (_nl_state_lock); return retval; } } } /* NOTREACHED */ } char * internal_function _nl_find_msg (domain_file, domainbinding, msgid, lengthp) struct loaded_l10nfile *domain_file; struct binding *domainbinding; const char *msgid; size_t *lengthp; { struct loaded_domain *domain; size_t act; char *result; size_t resultlen; if (domain_file->decided == 0) _nl_load_domain (domain_file, domainbinding); if (domain_file->data == NULL) return NULL; domain = (struct loaded_domain *) domain_file->data; /* Locate the MSGID and its translation. */ if (domain->hash_size > 2 && domain->hash_tab != NULL) { /* Use the hashing table. */ nls_uint32 len = strlen (msgid); nls_uint32 hash_val = hash_string (msgid); nls_uint32 idx = hash_val % domain->hash_size; nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); while (1) { nls_uint32 nstr = W (domain->must_swap, domain->hash_tab[idx]); if (nstr == 0) /* Hash table entry is empty. */ return NULL; /* Compare msgid with the original string at index nstr-1. We compare the lengths with >=, not ==, because plural entries are represented by strings with an embedded NUL. */ if (W (domain->must_swap, domain->orig_tab[nstr - 1].length) >= len && (strcmp (msgid, domain->data + W (domain->must_swap, domain->orig_tab[nstr - 1].offset)) == 0)) { act = nstr - 1; goto found; } if (idx >= domain->hash_size - incr) idx -= domain->hash_size - incr; else idx += incr; } /* NOTREACHED */ } else { /* Try the default method: binary search in the sorted array of messages. */ size_t top, bottom; bottom = 0; top = domain->nstrings; while (bottom < top) { int cmp_val; act = (bottom + top) / 2; cmp_val = strcmp (msgid, (domain->data + W (domain->must_swap, domain->orig_tab[act].offset))); if (cmp_val < 0) top = act; else if (cmp_val > 0) bottom = act + 1; else goto found; } /* No translation was found. */ return NULL; } found: /* The translation was found at index ACT. If we have to convert the string to use a different character set, this is the time. */ result = ((char *) domain->data + W (domain->must_swap, domain->trans_tab[act].offset)); resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1; #if defined _LIBC || HAVE_ICONV if (domain->codeset_cntr != (domainbinding != NULL ? domainbinding->codeset_cntr : 0)) { /* The domain's codeset has changed through bind_textdomain_codeset() since the message catalog was initialized or last accessed. We have to reinitialize the converter. */ _nl_free_domain_conv (domain); _nl_init_domain_conv (domain_file, domain, domainbinding); } if ( # ifdef _LIBC domain->conv != (__gconv_t) -1 # else # if HAVE_ICONV domain->conv != (iconv_t) -1 # endif # endif ) { /* We are supposed to do a conversion. First allocate an appropriate table with the same structure as the table of translations in the file, where we can put the pointers to the converted strings in. There is a slight complication with plural entries. They are represented by consecutive NUL terminated strings. We handle this case by converting RESULTLEN bytes, including NULs. */ if (domain->conv_tab == NULL && ((domain->conv_tab = (char **) calloc (domain->nstrings, sizeof (char *))) == NULL)) /* Mark that we didn't succeed allocating a table. */ domain->conv_tab = (char **) -1; if (__builtin_expect (domain->conv_tab == (char **) -1, 0)) /* Nothing we can do, no more memory. */ goto converted; if (domain->conv_tab[act] == NULL) { /* We haven't used this string so far, so it is not translated yet. Do this now. */ /* We use a bit more efficient memory handling. We allocate always larger blocks which get used over time. This is faster than many small allocations. */ __libc_lock_define_initialized (static, lock) # define INITIAL_BLOCK_SIZE 4080 static unsigned char *freemem; static size_t freemem_size; const unsigned char *inbuf; unsigned char *outbuf; int malloc_count; # ifndef _LIBC transmem_block_t *transmem_list = NULL; # endif __libc_lock_lock (lock); inbuf = (const unsigned char *) result; outbuf = freemem + sizeof (size_t); malloc_count = 0; while (1) { transmem_block_t *newmem; # ifdef _LIBC size_t non_reversible; int res; if (freemem_size < sizeof (size_t)) goto resize_freemem; res = __gconv (domain->conv, &inbuf, inbuf + resultlen, &outbuf, outbuf + freemem_size - sizeof (size_t), &non_reversible); if (res == __GCONV_OK || res == __GCONV_EMPTY_INPUT) break; if (res != __GCONV_FULL_OUTPUT) { __libc_lock_unlock (lock); goto converted; } inbuf = result; # else # if HAVE_ICONV const char *inptr = (const char *) inbuf; size_t inleft = resultlen; char *outptr = (char *) outbuf; size_t outleft; if (freemem_size < sizeof (size_t)) goto resize_freemem; outleft = freemem_size - sizeof (size_t); if (iconv (domain->conv, (ICONV_CONST char **) &inptr, &inleft, &outptr, &outleft) != (size_t) (-1)) { outbuf = (unsigned char *) outptr; break; } if (errno != E2BIG) { __libc_lock_unlock (lock); goto converted; } # endif # endif resize_freemem: /* We must allocate a new buffer or resize the old one. */ if (malloc_count > 0) { ++malloc_count; freemem_size = malloc_count * INITIAL_BLOCK_SIZE; newmem = (transmem_block_t *) realloc (transmem_list, freemem_size); # ifdef _LIBC if (newmem != NULL) transmem_list = transmem_list->next; else { struct transmem_list *old = transmem_list; transmem_list = transmem_list->next; free (old); } # endif } else { malloc_count = 1; freemem_size = INITIAL_BLOCK_SIZE; newmem = (transmem_block_t *) malloc (freemem_size); } if (__builtin_expect (newmem == NULL, 0)) { freemem = NULL; freemem_size = 0; __libc_lock_unlock (lock); goto converted; } # ifdef _LIBC /* Add the block to the list of blocks we have to free at some point. */ newmem->next = transmem_list; transmem_list = newmem; freemem = newmem->data; freemem_size -= offsetof (struct transmem_list, data); # else transmem_list = newmem; freemem = newmem; # endif outbuf = freemem + sizeof (size_t); } /* We have now in our buffer a converted string. Put this into the table of conversions. */ *(size_t *) freemem = outbuf - freemem - sizeof (size_t); domain->conv_tab[act] = (char *) freemem; /* Shrink freemem, but keep it aligned. */ freemem_size -= outbuf - freemem; freemem = outbuf; freemem += freemem_size & (alignof (size_t) - 1); freemem_size = freemem_size & ~ (alignof (size_t) - 1); __libc_lock_unlock (lock); } /* Now domain->conv_tab[act] contains the translation of all the plural variants. */ result = domain->conv_tab[act] + sizeof (size_t); resultlen = *(size_t *) domain->conv_tab[act]; } converted: /* The result string is converted. */ #endif /* _LIBC || HAVE_ICONV */ *lengthp = resultlen; return result; } /* Look up a plural variant. */ static char * internal_function plural_lookup (domain, n, translation, translation_len) struct loaded_l10nfile *domain; unsigned long int n; const char *translation; size_t translation_len; { struct loaded_domain *domaindata = (struct loaded_domain *) domain->data; unsigned long int index; const char *p; index = plural_eval (domaindata->plural, n); if (index >= domaindata->nplurals) /* This should never happen. It means the plural expression and the given maximum value do not match. */ index = 0; /* Skip INDEX strings at TRANSLATION. */ p = translation; while (index-- > 0) { #ifdef _LIBC p = __rawmemchr (p, '\0'); #else p = strchr (p, '\0'); #endif /* And skip over the NUL byte. */ p++; if (p >= translation + translation_len) /* This should never happen. It means the plural expression evaluated to a value larger than the number of variants available for MSGID1. */ return (char *) translation; } return (char *) p; } /* Function to evaluate the plural expression and return an index value. */ static unsigned long int internal_function plural_eval (pexp, n) struct expression *pexp; unsigned long int n; { switch (pexp->nargs) { case 0: switch (pexp->operation) { case var: return n; case num: return pexp->val.num; default: break; } /* NOTREACHED */ break; case 1: { /* pexp->operation must be lnot. */ unsigned long int arg = plural_eval (pexp->val.args[0], n); return ! arg; } case 2: { unsigned long int leftarg = plural_eval (pexp->val.args[0], n); if (pexp->operation == lor) return leftarg || plural_eval (pexp->val.args[1], n); else if (pexp->operation == land) return leftarg && plural_eval (pexp->val.args[1], n); else { unsigned long int rightarg = plural_eval (pexp->val.args[1], n); switch (pexp->operation) { case mult: return leftarg * rightarg; case divide: return leftarg / rightarg; case module: return leftarg % rightarg; case plus: return leftarg + rightarg; case minus: return leftarg - rightarg; case less_than: return leftarg < rightarg; case greater_than: return leftarg > rightarg; case less_or_equal: return leftarg <= rightarg; case greater_or_equal: return leftarg >= rightarg; case equal: return leftarg == rightarg; case not_equal: return leftarg != rightarg; default: break; } } /* NOTREACHED */ break; } case 3: { /* pexp->operation must be qmop. */ unsigned long int boolarg = plural_eval (pexp->val.args[0], n); return plural_eval (pexp->val.args[boolarg ? 1 : 2], n); } } /* NOTREACHED */ return 0; } /* Return string representation of locale CATEGORY. */ static const char * internal_function category_to_name (category) int category; { const char *retval; switch (category) { #ifdef LC_COLLATE case LC_COLLATE: retval = "LC_COLLATE"; break; #endif #ifdef LC_CTYPE case LC_CTYPE: retval = "LC_CTYPE"; break; #endif #ifdef LC_MONETARY case LC_MONETARY: retval = "LC_MONETARY"; break; #endif #ifdef LC_NUMERIC case LC_NUMERIC: retval = "LC_NUMERIC"; break; #endif #ifdef LC_TIME case LC_TIME: retval = "LC_TIME"; break; #endif #ifdef LC_MESSAGES case LC_MESSAGES: retval = "LC_MESSAGES"; break; #endif #ifdef LC_RESPONSE case LC_RESPONSE: retval = "LC_RESPONSE"; break; #endif #ifdef LC_ALL case LC_ALL: /* This might not make sense but is perhaps better than any other value. */ retval = "LC_ALL"; break; #endif default: /* If you have a better idea for a default value let me know. */ retval = "LC_XXX"; } return retval; } /* Guess value of current locale from value of the environment variables. */ static const char * internal_function guess_category_value (category, categoryname) int category; const char *categoryname; { const char *language; const char *retval; /* The highest priority value is the `LANGUAGE' environment variable. But we don't use the value if the currently selected locale is the C locale. This is a GNU extension. */ language = getenv ("LANGUAGE"); if (language != NULL && language[0] == '\0') language = NULL; /* We have to proceed with the POSIX methods of looking to `LC_ALL', `LC_xxx', and `LANG'. On some systems this can be done by the `setlocale' function itself. */ #if defined _LIBC || (defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL) retval = setlocale (category, NULL); #else /* Setting of LC_ALL overwrites all other. */ retval = getenv ("LC_ALL"); if (retval == NULL || retval[0] == '\0') { /* Next comes the name of the desired category. */ retval = getenv (categoryname); if (retval == NULL || retval[0] == '\0') { /* Last possibility is the LANG environment variable. */ retval = getenv ("LANG"); if (retval == NULL || retval[0] == '\0') /* We use C as the default domain. POSIX says this is implementation defined. */ return "C"; } } #endif return language != NULL && strcmp (retval, "C") != 0 ? language : retval; } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (dest, src) char *dest; const char *src; { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif #if !_LIBC && !HAVE_MEMPCPY static void * mempcpy (dest, src, n) void *dest; const void *src; size_t n; { return (void *) ((char *) memcpy (dest, src, n) + n); } #endif #ifdef _LIBC /* If we want to free all resources we have to do some work at program's end. */ static void __attribute__ ((unused)) free_mem (void) { void *old; while (_nl_domain_bindings != NULL) { struct binding *oldp = _nl_domain_bindings; _nl_domain_bindings = _nl_domain_bindings->next; if (oldp->dirname != _nl_default_dirname) /* Yes, this is a pointer comparison. */ free (oldp->dirname); free (oldp->codeset); free (oldp); } if (_nl_current_default_domain != _nl_default_default_domain) /* Yes, again a pointer comparison. */ free ((char *) _nl_current_default_domain); /* Remove the search tree with the known translations. */ __tdestroy (root, free); root = NULL; while (transmem_list != NULL) { old = transmem_list; transmem_list = transmem_list->next; free (old); } } text_set_element (__libc_subfreeres, free_mem); #endif dopewars-1.5.12/intl/ChangeLog0000644001565000007070000000011007366603610013071 000000000000002001-05-23 GNU * Version 0.10.38 released. dopewars-1.5.12/intl/l10nflist.c0000644001565000007070000002431707366603610013316 00000000000000/* Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Tell glibc's to provide a prototype for stpcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #if !HAVE_STRCHR && !defined _LIBC # ifndef strchr # define strchr index # endif #endif #if defined _LIBC || defined HAVE_ARGZ_H # include #endif #include #include #include #include "loadinfo.h" /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # ifndef stpcpy # define stpcpy(dest, src) __stpcpy(dest, src) # endif #else # ifndef HAVE_STPCPY static char *stpcpy PARAMS ((char *dest, const char *src)); # endif #endif /* Define function which are usually not available. */ #if !defined _LIBC && !defined HAVE___ARGZ_COUNT /* Returns the number of strings in ARGZ. */ static size_t argz_count__ PARAMS ((const char *argz, size_t len)); static size_t argz_count__ (argz, len) const char *argz; size_t len; { size_t count = 0; while (len > 0) { size_t part_len = strlen (argz); argz += part_len + 1; len -= part_len + 1; count++; } return count; } # undef __argz_count # define __argz_count(argz, len) argz_count__ (argz, len) #endif /* !_LIBC && !HAVE___ARGZ_COUNT */ #if !defined _LIBC && !defined HAVE___ARGZ_STRINGIFY /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's except the last into the character SEP. */ static void argz_stringify__ PARAMS ((char *argz, size_t len, int sep)); static void argz_stringify__ (argz, len, sep) char *argz; size_t len; int sep; { while (len > 0) { size_t part_len = strlen (argz); argz += part_len; len -= part_len + 1; if (len > 0) *argz++ = sep; } } # undef __argz_stringify # define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep) #endif /* !_LIBC && !HAVE___ARGZ_STRINGIFY */ #if !defined _LIBC && !defined HAVE___ARGZ_NEXT static char *argz_next__ PARAMS ((char *argz, size_t argz_len, const char *entry)); static char * argz_next__ (argz, argz_len, entry) char *argz; size_t argz_len; const char *entry; { if (entry) { if (entry < argz + argz_len) entry = strchr (entry, '\0') + 1; return entry >= argz + argz_len ? NULL : (char *) entry; } else if (argz_len > 0) return argz; else return 0; } # undef __argz_next # define __argz_next(argz, len, entry) argz_next__ (argz, len, entry) #endif /* !_LIBC && !HAVE___ARGZ_NEXT */ /* Return number of bits set in X. */ static int pop PARAMS ((int x)); static inline int pop (x) int x; { /* We assume that no more than 16 bits are used. */ x = ((x & ~0x5555) >> 1) + (x & 0x5555); x = ((x & ~0x3333) >> 2) + (x & 0x3333); x = ((x >> 4) + x) & 0x0f0f; x = ((x >> 8) + x) & 0xff; return x; } struct loaded_l10nfile * _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, filename, do_allocate) struct loaded_l10nfile **l10nfile_list; const char *dirlist; size_t dirlist_len; int mask; const char *language; const char *territory; const char *codeset; const char *normalized_codeset; const char *modifier; const char *special; const char *sponsor; const char *revision; const char *filename; int do_allocate; { char *abs_filename; struct loaded_l10nfile *last = NULL; struct loaded_l10nfile *retval; char *cp; size_t entries; int cnt; /* Allocate room for the full file name. */ abs_filename = (char *) malloc (dirlist_len + strlen (language) + ((mask & TERRITORY) != 0 ? strlen (territory) + 1 : 0) + ((mask & XPG_CODESET) != 0 ? strlen (codeset) + 1 : 0) + ((mask & XPG_NORM_CODESET) != 0 ? strlen (normalized_codeset) + 1 : 0) + (((mask & XPG_MODIFIER) != 0 || (mask & CEN_AUDIENCE) != 0) ? strlen (modifier) + 1 : 0) + ((mask & CEN_SPECIAL) != 0 ? strlen (special) + 1 : 0) + (((mask & CEN_SPONSOR) != 0 || (mask & CEN_REVISION) != 0) ? (1 + ((mask & CEN_SPONSOR) != 0 ? strlen (sponsor) + 1 : 0) + ((mask & CEN_REVISION) != 0 ? strlen (revision) + 1 : 0)) : 0) + 1 + strlen (filename) + 1); if (abs_filename == NULL) return NULL; retval = NULL; last = NULL; /* Construct file name. */ memcpy (abs_filename, dirlist, dirlist_len); __argz_stringify (abs_filename, dirlist_len, PATH_SEPARATOR); cp = abs_filename + (dirlist_len - 1); *cp++ = '/'; cp = stpcpy (cp, language); if ((mask & TERRITORY) != 0) { *cp++ = '_'; cp = stpcpy (cp, territory); } if ((mask & XPG_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, codeset); } if ((mask & XPG_NORM_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, normalized_codeset); } if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0) { /* This component can be part of both syntaces but has different leading characters. For CEN we use `+', else `@'. */ *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@'; cp = stpcpy (cp, modifier); } if ((mask & CEN_SPECIAL) != 0) { *cp++ = '+'; cp = stpcpy (cp, special); } if ((mask & (CEN_SPONSOR | CEN_REVISION)) != 0) { *cp++ = ','; if ((mask & CEN_SPONSOR) != 0) cp = stpcpy (cp, sponsor); if ((mask & CEN_REVISION) != 0) { *cp++ = '_'; cp = stpcpy (cp, revision); } } *cp++ = '/'; stpcpy (cp, filename); /* Look in list of already loaded domains whether it is already available. */ last = NULL; for (retval = *l10nfile_list; retval != NULL; retval = retval->next) if (retval->filename != NULL) { int compare = strcmp (retval->filename, abs_filename); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It's not in the list. */ retval = NULL; break; } last = retval; } if (retval != NULL || do_allocate == 0) { free (abs_filename); return retval; } retval = (struct loaded_l10nfile *) malloc (sizeof (*retval) + (__argz_count (dirlist, dirlist_len) * (1 << pop (mask)) * sizeof (struct loaded_l10nfile *))); if (retval == NULL) return NULL; retval->filename = abs_filename; retval->decided = (__argz_count (dirlist, dirlist_len) != 1 || ((mask & XPG_CODESET) != 0 && (mask & XPG_NORM_CODESET) != 0)); retval->data = NULL; if (last == NULL) { retval->next = *l10nfile_list; *l10nfile_list = retval; } else { retval->next = last->next; last->next = retval; } entries = 0; /* If the DIRLIST is a real list the RETVAL entry corresponds not to a real file. So we have to use the DIRLIST separation mechanism of the inner loop. */ cnt = __argz_count (dirlist, dirlist_len) == 1 ? mask - 1 : mask; for (; cnt >= 0; --cnt) if ((cnt & ~mask) == 0 && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0) && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0)) { /* Iterate over all elements of the DIRLIST. */ char *dir = NULL; while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir)) != NULL) retval->successor[entries++] = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, filename, 1); } retval->successor[entries] = NULL; return retval; } /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. The return value is dynamically allocated and has to be freed by the caller. */ const char * _nl_normalize_codeset (codeset, name_len) const char *codeset; size_t name_len; { int len = 0; int only_digit = 1; char *retval; char *wp; size_t cnt; for (cnt = 0; cnt < name_len; ++cnt) if (isalnum (codeset[cnt])) { ++len; if (isalpha (codeset[cnt])) only_digit = 0; } retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1); if (retval != NULL) { if (only_digit) wp = stpcpy (retval, "iso"); else wp = retval; for (cnt = 0; cnt < name_len; ++cnt) if (isalpha (codeset[cnt])) *wp++ = tolower (codeset[cnt]); else if (isdigit (codeset[cnt])) *wp++ = codeset[cnt]; *wp = '\0'; } return (const char *) retval; } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (dest, src) char *dest; const char *src; { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif dopewars-1.5.12/intl/loadinfo.h0000644001565000007070000000643107366603610013277 00000000000000/* Copyright (C) 1996-1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _LOADINFO_H #define _LOADINFO_H 1 #ifndef PARAMS # if __STDC__ # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif #ifndef internal_function # define internal_function #endif /* Tell the compiler when a conditional or integer expression is almost always true or almost always false. */ #ifndef HAVE_BUILTIN_EXPECT # define __builtin_expect(expr, val) (expr) #endif /* Separator in PATH like lists of pathnames. */ #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ /* Win32, OS/2, DOS */ # define PATH_SEPARATOR ';' #else /* Unix */ # define PATH_SEPARATOR ':' #endif /* Encoding of locale name parts. */ #define CEN_REVISION 1 #define CEN_SPONSOR 2 #define CEN_SPECIAL 4 #define XPG_NORM_CODESET 8 #define XPG_CODESET 16 #define TERRITORY 32 #define CEN_AUDIENCE 64 #define XPG_MODIFIER 128 #define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE) #define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER) struct loaded_l10nfile { const char *filename; int decided; const void *data; struct loaded_l10nfile *next; struct loaded_l10nfile *successor[1]; }; /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. The return value is dynamically allocated and has to be freed by the caller. */ extern const char *_nl_normalize_codeset PARAMS ((const char *codeset, size_t name_len)); extern struct loaded_l10nfile * _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list, const char *dirlist, size_t dirlist_len, int mask, const char *language, const char *territory, const char *codeset, const char *normalized_codeset, const char *modifier, const char *special, const char *sponsor, const char *revision, const char *filename, int do_allocate)); extern const char *_nl_expand_alias PARAMS ((const char *name)); /* normalized_codeset is dynamically allocated and has to be freed by the caller. */ extern int _nl_explode_name PARAMS ((char *name, const char **language, const char **modifier, const char **territory, const char **codeset, const char **normalized_codeset, const char **special, const char **sponsor, const char **revision)); extern char *_nl_find_language PARAMS ((const char *name)); #endif /* loadinfo.h */ dopewars-1.5.12/intl/gettextP.h0000644001565000007070000001675307366603610013320 00000000000000/* Header describing internals of libintl library. Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _GETTEXTP_H #define _GETTEXTP_H #include /* Get size_t. */ #ifdef _LIBC # include "../iconv/gconv_int.h" #else # if HAVE_ICONV # include # endif #endif #include "loadinfo.h" #include "gettext.h" /* Get nls_uint32. */ /* @@ end of prolog @@ */ #ifndef PARAMS # if __STDC__ # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif #ifndef internal_function # define internal_function #endif /* Tell the compiler when a conditional or integer expression is almost always true or almost always false. */ #ifndef HAVE_BUILTIN_EXPECT # define __builtin_expect(expr, val) (expr) #endif #ifndef W # define W(flag, data) ((flag) ? SWAP (data) : (data)) #endif #ifdef _LIBC # include # define SWAP(i) bswap_32 (i) #else static inline nls_uint32 SWAP (i) nls_uint32 i; { return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); } #endif /* This is the representation of the expressions to determine the plural form. */ struct expression { int nargs; /* Number of arguments. */ enum operator { /* Without arguments: */ var, /* The variable "n". */ num, /* Decimal number. */ /* Unary operators: */ lnot, /* Logical NOT. */ /* Binary operators: */ mult, /* Multiplication. */ divide, /* Division. */ module, /* Module operation. */ plus, /* Addition. */ minus, /* Subtraction. */ less_than, /* Comparison. */ greater_than, /* Comparison. */ less_or_equal, /* Comparison. */ greater_or_equal, /* Comparison. */ equal, /* Comparision for equality. */ not_equal, /* Comparision for inequality. */ land, /* Logical AND. */ lor, /* Logical OR. */ /* Ternary operators: */ qmop /* Question mark operator. */ } operation; union { unsigned long int num; /* Number value for `num'. */ struct expression *args[3]; /* Up to three arguments. */ } val; }; /* This is the data structure to pass information to the parser and get the result in a thread-safe way. */ struct parse_args { const char *cp; struct expression *res; }; /* The representation of an opened message catalog. */ struct loaded_domain { const char *data; int use_mmap; size_t mmap_size; int must_swap; nls_uint32 nstrings; struct string_desc *orig_tab; struct string_desc *trans_tab; nls_uint32 hash_size; nls_uint32 *hash_tab; int codeset_cntr; #ifdef _LIBC __gconv_t conv; #else # if HAVE_ICONV iconv_t conv; # endif #endif char **conv_tab; struct expression *plural; unsigned long int nplurals; }; /* We want to allocate a string at the end of the struct. But ISO C doesn't allow zero sized arrays. */ #ifdef __GNUC__ # define ZERO 0 #else # define ZERO 1 #endif /* A set of settings bound to a message domain. Used to store settings from bindtextdomain() and bind_textdomain_codeset(). */ struct binding { struct binding *next; char *dirname; int codeset_cntr; /* Incremented each time codeset changes. */ char *codeset; char domainname[ZERO]; }; /* A counter which is incremented each time some previous translations become invalid. This variable is part of the external ABI of the GNU libintl. */ extern int _nl_msg_cat_cntr; struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname, char *__locale, const char *__domainname, struct binding *__domainbinding)) internal_function; void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain, struct binding *__domainbinding)) internal_function; void _nl_unload_domain PARAMS ((struct loaded_domain *__domain)) internal_function; const char *_nl_init_domain_conv PARAMS ((struct loaded_l10nfile *__domain_file, struct loaded_domain *__domain, struct binding *__domainbinding)) internal_function; void _nl_free_domain_conv PARAMS ((struct loaded_domain *__domain)) internal_function; char *_nl_find_msg PARAMS ((struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *msgid, size_t *lengthp)) internal_function; #ifdef _LIBC extern char *__gettext PARAMS ((const char *__msgid)); extern char *__dgettext PARAMS ((const char *__domainname, const char *__msgid)); extern char *__dcgettext PARAMS ((const char *__domainname, const char *__msgid, int __category)); extern char *__ngettext PARAMS ((const char *__msgid1, const char *__msgid2, unsigned long int __n)); extern char *__dngettext PARAMS ((const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int n)); extern char *__dcngettext PARAMS ((const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category)); extern char *__dcigettext PARAMS ((const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category)); extern char *__textdomain PARAMS ((const char *__domainname)); extern char *__bindtextdomain PARAMS ((const char *__domainname, const char *__dirname)); extern char *__bind_textdomain_codeset PARAMS ((const char *__domainname, const char *__codeset)); #else extern char *gettext__ PARAMS ((const char *__msgid)); extern char *dgettext__ PARAMS ((const char *__domainname, const char *__msgid)); extern char *dcgettext__ PARAMS ((const char *__domainname, const char *__msgid, int __category)); extern char *ngettext__ PARAMS ((const char *__msgid1, const char *__msgid2, unsigned long int __n)); extern char *dngettext__ PARAMS ((const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n)); extern char *dcngettext__ PARAMS ((const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category)); extern char *dcigettext__ PARAMS ((const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category)); extern char *textdomain__ PARAMS ((const char *__domainname)); extern char *bindtextdomain__ PARAMS ((const char *__domainname, const char *__dirname)); extern char *bind_textdomain_codeset__ PARAMS ((const char *__domainname, const char *__codeset)); #endif #ifdef _LIBC extern void __gettext_free_exp PARAMS ((struct expression *exp)) internal_function; extern int __gettextparse PARAMS ((void *arg)); #else extern void gettext_free_exp__ PARAMS ((struct expression *exp)) internal_function; extern int gettextparse__ PARAMS ((void *arg)); #endif /* @@ begin of epilog @@ */ #endif /* gettextP.h */ dopewars-1.5.12/intl/hash-string.h0000644001565000007070000000342007366603610013726 00000000000000/* Description of GNU message catalog format: string hashing function. Copyright (C) 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* @@ end of prolog @@ */ #ifndef PARAMS # if __STDC__ # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #endif /* We assume to have `unsigned long int' value with at least 32 bits. */ #define HASHWORDBITS 32 /* Defines the so called `hashpjw' function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.] */ static unsigned long int hash_string PARAMS ((const char *__str_param)); static inline unsigned long int hash_string (str_param) const char *str_param; { unsigned long int hval, g; const char *str = str_param; /* Compute the hash value for the given string. */ hval = 0; while (*str != '\0') { hval <<= 4; hval += (unsigned long int) *str++; g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4)); if (g != 0) { hval ^= g >> (HASHWORDBITS - 8); hval ^= g; } } return hval; } dopewars-1.5.12/intl/intl-compat.c0000644001565000007070000001113507366603610013723 00000000000000/* intl-compat.c - Stub functions to call gettext functions from GNU gettext Library. Copyright (C) 1995, 2000, 2001 Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "libgnuintl.h" #include "gettextP.h" /* @@ end of prolog @@ */ /* This file redirects the gettext functions (without prefix or suffix) to those defined in the included GNU gettext library (with "__" suffix). It is compiled into libintl when the included GNU gettext library is configured --with-included-gettext. This redirection works also in the case that the system C library or the system libintl library contain gettext/textdomain/... functions. If it didn't, we would need to add preprocessor level redirections to libgnuintl.h of the following form: # define gettext gettext__ # define dgettext dgettext__ # define dcgettext dcgettext__ # define ngettext ngettext__ # define dngettext dngettext__ # define dcngettext dcngettext__ # define textdomain textdomain__ # define bindtextdomain bindtextdomain__ # define bind_textdomain_codeset bind_textdomain_codeset__ How does this redirection work? There are two cases. A. When libintl.a is linked into an executable, it works because functions defined in the executable always override functions in the shared libraries. B. When libintl.so is used, it works because 1. those systems defining gettext/textdomain/... in the C library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer) are ELF systems and define these symbols as weak, thus explicitly letting other shared libraries override it. 2. those systems defining gettext/textdomain/... in a standalone libintl.so library (namely, Solaris 2.3 and newer) have this shared library in /usr/lib, and the linker will search /usr/lib *after* the directory where the GNU gettext library is installed. A third case, namely when libintl.a is linked into a shared library whose name is not libintl.so, is not supported. In this case, on Solaris, when -lintl precedes the linker option for the shared library containing GNU gettext, the system's gettext would indeed override the GNU gettext. Anyone doing this kind of stuff must be clever enough to 1. compile libintl.a with -fPIC, 2. remove -lintl from his linker command line. */ #undef gettext #undef dgettext #undef dcgettext #undef ngettext #undef dngettext #undef dcngettext #undef textdomain #undef bindtextdomain #undef bind_textdomain_codeset char * gettext (msgid) const char *msgid; { return gettext__ (msgid); } char * dgettext (domainname, msgid) const char *domainname; const char *msgid; { return dgettext__ (domainname, msgid); } char * dcgettext (domainname, msgid, category) const char *domainname; const char *msgid; int category; { return dcgettext__ (domainname, msgid, category); } char * ngettext (msgid1, msgid2, n) const char *msgid1; const char *msgid2; unsigned long int n; { return ngettext__ (msgid1, msgid2, n); } char * dngettext (domainname, msgid1, msgid2, n) const char *domainname; const char *msgid1; const char *msgid2; unsigned long int n; { return dngettext__ (domainname, msgid1, msgid2, n); } char * dcngettext (domainname, msgid1, msgid2, n, category) const char *domainname; const char *msgid1; const char *msgid2; unsigned long int n; int category; { return dcngettext__ (domainname, msgid1, msgid2, n, category); } char * textdomain (domainname) const char *domainname; { return textdomain__ (domainname); } char * bindtextdomain (domainname, dirname) const char *domainname; const char *dirname; { return bindtextdomain__ (domainname, dirname); } char * bind_textdomain_codeset (domainname, codeset) const char *domainname; const char *codeset; { return bind_textdomain_codeset__ (domainname, codeset); } dopewars-1.5.12/intl/dcngettext.c0000644001565000007070000000351207366603610013645 00000000000000/* Implementation of the dcngettext(3) function. Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCNGETTEXT __dcngettext # define DCIGETTEXT __dcigettext #else # define DCNGETTEXT dcngettext__ # define DCIGETTEXT dcigettext__ #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCNGETTEXT (domainname, msgid1, msgid2, n, category) const char *domainname; const char *msgid1; const char *msgid2; unsigned long int n; int category; { return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dcngettext, dcngettext); #endif dopewars-1.5.12/intl/gettext.c0000644001565000007070000000350607366603610013163 00000000000000/* Implementation of gettext(3) function. Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define __need_NULL # include #else # include /* Just for NULL. */ #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define GETTEXT __gettext # define DCGETTEXT __dcgettext #else # define GETTEXT gettext__ # define DCGETTEXT dcgettext__ #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * GETTEXT (msgid) const char *msgid; { return DCGETTEXT (NULL, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__gettext, gettext); #endif dopewars-1.5.12/intl/finddomain.c0000644001565000007070000001311307366603610013602 00000000000000/* Handle list of needed message catalogs Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* List of already loaded domains. */ static struct loaded_l10nfile *_nl_loaded_domains; /* Return a data structure describing the message catalog described by the DOMAINNAME and CATEGORY parameters with respect to the currently established bindings. */ struct loaded_l10nfile * internal_function _nl_find_domain (dirname, locale, domainname, domainbinding) const char *dirname; char *locale; const char *domainname; struct binding *domainbinding; { struct loaded_l10nfile *retval; const char *language; const char *modifier; const char *territory; const char *codeset; const char *normalized_codeset; const char *special; const char *sponsor; const char *revision; const char *alias_value; int mask; /* LOCALE can consist of up to four recognized parts for the XPG syntax: language[_territory[.codeset]][@modifier] and six parts for the CEN syntax: language[_territory][+audience][+special][,[sponsor][_revision]] Beside the first part all of them are allowed to be missing. If the full specified locale is not found, the less specific one are looked for. The various parts will be stripped off according to the following order: (1) revision (2) sponsor (3) special (4) codeset (5) normalized codeset (6) territory (7) audience/modifier */ /* If we have already tested for this locale entry there has to be one data set in the list of loaded domains. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, 0, locale, NULL, NULL, NULL, NULL, NULL, NULL, NULL, domainname, 0); if (retval != NULL) { /* We know something about this locale. */ int cnt; if (retval->decided == 0) _nl_load_domain (retval, domainbinding); if (retval->data != NULL) return retval; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided == 0) _nl_load_domain (retval->successor[cnt], domainbinding); if (retval->successor[cnt]->data != NULL) break; } return cnt >= 0 ? retval : NULL; /* NOTREACHED */ } /* See whether the locale value is an alias. If yes its value *overwrites* the alias name. No test for the original value is done. */ alias_value = _nl_expand_alias (locale); if (alias_value != NULL) { #if defined _LIBC || defined HAVE_STRDUP locale = strdup (alias_value); if (locale == NULL) return NULL; #else size_t len = strlen (alias_value) + 1; locale = (char *) malloc (len); if (locale == NULL) return NULL; memcpy (locale, alias_value, len); #endif } /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_' and `@' if we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ mask = _nl_explode_name (locale, &language, &modifier, &territory, &codeset, &normalized_codeset, &special, &sponsor, &revision); /* Create all possible locale entries which might be interested in generalization. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, mask, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, domainname, 1); if (retval == NULL) /* This means we are out of core. */ return NULL; if (retval->decided == 0) _nl_load_domain (retval, domainbinding); if (retval->data == NULL) { int cnt; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided == 0) _nl_load_domain (retval->successor[cnt], domainbinding); if (retval->successor[cnt]->data != NULL) break; } } /* The room for an alias was dynamically allocated. Free it now. */ if (alias_value != NULL) free (locale); /* The space for normalized_codeset is dynamically allocated. Free it. */ if (mask & XPG_NORM_CODESET) free ((void *) normalized_codeset); return retval; } #ifdef _LIBC static void __attribute__ ((unused)) free_mem (void) { struct loaded_l10nfile *runp = _nl_loaded_domains; while (runp != NULL) { struct loaded_l10nfile *here = runp; if (runp->data != NULL) _nl_unload_domain ((struct loaded_domain *) runp->data); runp = runp->next; free ((char *) here->filename); free (here); } } text_set_element (__libc_subfreeres, free_mem); #endif dopewars-1.5.12/intl/loadmsgcat.c0000644001565000007070000003512607366603610013620 00000000000000/* Load needed message catalogs. Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #ifdef _LIBC # include # include #endif #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || (defined _LIBC && defined _POSIX_MAPPED_FILES) # include # undef HAVE_MMAP # define HAVE_MMAP 1 #else # undef HAVE_MMAP #endif #include "gettext.h" #include "gettextP.h" #ifdef _LIBC # include "../locale/localeinfo.h" #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ISO C functions. This is required by the standard because some ISO C functions will require linking with this object file and the name space must not be polluted. */ # define open __open # define close __close # define read __read # define mmap __mmap # define munmap __munmap #endif /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define PLURAL_PARSE __gettextparse #else # define PLURAL_PARSE gettextparse__ #endif /* For those losing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA # define freea(p) /* nothing */ #else # define alloca(n) malloc (n) # define freea(p) free (p) #endif /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in . */ #if !defined O_BINARY && defined _O_BINARY /* For MSC-compatible compilers. */ # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif #ifdef __BEOS__ /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif /* On reasonable systems, binary I/O is the default. */ #ifndef O_BINARY # define O_BINARY 0 #endif /* We need a sign, whether a new catalog was loaded, which can be associated with all translations. This is important if the translations are cached by one of GCC's features. */ int _nl_msg_cat_cntr; #if (defined __GNUC__ && !defined __APPLE_CC__) \ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) /* These structs are the constant expression for the germanic plural form determination. It represents the expression "n != 1". */ static const struct expression plvar = { .nargs = 0, .operation = var, }; static const struct expression plone = { .nargs = 0, .operation = num, .val = { .num = 1 } }; static struct expression germanic_plural = { .nargs = 2, .operation = not_equal, .val = { .args = { [0] = (struct expression *) &plvar, [1] = (struct expression *) &plone } } }; # define INIT_GERMANIC_PLURAL() #else /* For compilers without support for ISO C 99 struct/union initializers: Initialization at run-time. */ static struct expression plvar; static struct expression plone; static struct expression germanic_plural; static void init_germanic_plural () { if (plone.val.num == 0) { plvar.nargs = 0; plvar.operation = var; plone.nargs = 0; plone.operation = num; plone.val.num = 1; germanic_plural.nargs = 2; germanic_plural.operation = not_equal; germanic_plural.val.args[0] = &plvar; germanic_plural.val.args[1] = &plone; } } # define INIT_GERMANIC_PLURAL() init_germanic_plural () #endif /* Initialize the codeset dependent parts of an opened message catalog. Return the header entry. */ const char * internal_function _nl_init_domain_conv (domain_file, domain, domainbinding) struct loaded_l10nfile *domain_file; struct loaded_domain *domain; struct binding *domainbinding; { /* Find out about the character set the file is encoded with. This can be found (in textual form) in the entry "". If this entry does not exist or if this does not contain the `charset=' information, we will assume the charset matches the one the current locale and we don't have to perform any conversion. */ char *nullentry; size_t nullentrylen; /* Preinitialize fields, to avoid recursion during _nl_find_msg. */ domain->codeset_cntr = (domainbinding != NULL ? domainbinding->codeset_cntr : 0); #ifdef _LIBC domain->conv = (__gconv_t) -1; #else # if HAVE_ICONV domain->conv = (iconv_t) -1; # endif #endif domain->conv_tab = NULL; /* Get the header entry. */ nullentry = _nl_find_msg (domain_file, domainbinding, "", &nullentrylen); if (nullentry != NULL) { #if defined _LIBC || HAVE_ICONV const char *charsetstr; charsetstr = strstr (nullentry, "charset="); if (charsetstr != NULL) { size_t len; char *charset; const char *outcharset; charsetstr += strlen ("charset="); len = strcspn (charsetstr, " \t\n"); charset = (char *) alloca (len + 1); # if defined _LIBC || HAVE_MEMPCPY *((char *) mempcpy (charset, charsetstr, len)) = '\0'; # else memcpy (charset, charsetstr, len); charset[len] = '\0'; # endif /* The output charset should normally be determined by the locale. But sometimes the locale is not used or not correctly set up, so we provide a possibility for the user to override this. Moreover, the value specified through bind_textdomain_codeset overrides both. */ if (domainbinding != NULL && domainbinding->codeset != NULL) outcharset = domainbinding->codeset; else { outcharset = getenv ("OUTPUT_CHARSET"); if (outcharset == NULL || outcharset[0] == '\0') { # ifdef _LIBC outcharset = (*_nl_current[LC_CTYPE])->values[_NL_ITEM_INDEX (CODESET)].string; # else # if HAVE_ICONV extern const char *locale_charset (void); outcharset = locale_charset (); # endif # endif } } # ifdef _LIBC /* We always want to use transliteration. */ outcharset = norm_add_slashes (outcharset, "TRANSLIT"); charset = norm_add_slashes (charset, NULL); if (__gconv_open (outcharset, charset, &domain->conv, GCONV_AVOID_NOCONV) != __GCONV_OK) domain->conv = (__gconv_t) -1; # else # if HAVE_ICONV /* When using GNU libiconv, we want to use transliteration. */ # if _LIBICONV_VERSION >= 0x0105 len = strlen (outcharset); { char *tmp = (char *) alloca (len + 10 + 1); memcpy (tmp, outcharset, len); memcpy (tmp + len, "//TRANSLIT", 10 + 1); outcharset = tmp; } # endif domain->conv = iconv_open (outcharset, charset); # if _LIBICONV_VERSION >= 0x0105 freea (outcharset); # endif # endif # endif freea (charset); } #endif /* _LIBC || HAVE_ICONV */ } return nullentry; } /* Frees the codeset dependent parts of an opened message catalog. */ void internal_function _nl_free_domain_conv (domain) struct loaded_domain *domain; { if (domain->conv_tab != NULL && domain->conv_tab != (char **) -1) free (domain->conv_tab); #ifdef _LIBC if (domain->conv != (__gconv_t) -1) __gconv_close (domain->conv); #else # if HAVE_ICONV if (domain->conv != (iconv_t) -1) iconv_close (domain->conv); # endif #endif } /* Load the message catalogs specified by FILENAME. If it is no valid message catalog do nothing. */ void internal_function _nl_load_domain (domain_file, domainbinding) struct loaded_l10nfile *domain_file; struct binding *domainbinding; { int fd; size_t size; #ifdef _LIBC struct stat64 st; #else struct stat st; #endif struct mo_file_header *data = (struct mo_file_header *) -1; int use_mmap = 0; struct loaded_domain *domain; const char *nullentry; domain_file->decided = 1; domain_file->data = NULL; /* Note that it would be useless to store domainbinding in domain_file because domainbinding might be == NULL now but != NULL later (after a call to bind_textdomain_codeset). */ /* If the record does not represent a valid locale the FILENAME might be NULL. This can happen when according to the given specification the locale file name is different for XPG and CEN syntax. */ if (domain_file->filename == NULL) return; /* Try to open the addressed file. */ fd = open (domain_file->filename, O_RDONLY | O_BINARY); if (fd == -1) return; /* We must know about the size of the file. */ if ( #ifdef _LIBC __builtin_expect (fstat64 (fd, &st) != 0, 0) #else __builtin_expect (fstat (fd, &st) != 0, 0) #endif || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0) || __builtin_expect (size < sizeof (struct mo_file_header), 0)) { /* Something went wrong. */ close (fd); return; } #ifdef HAVE_MMAP /* Now we are ready to load the file. If mmap() is available we try this first. If not available or it failed we try to load it. */ data = (struct mo_file_header *) mmap (NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); if (__builtin_expect (data != (struct mo_file_header *) -1, 1)) { /* mmap() call was successful. */ close (fd); use_mmap = 1; } #endif /* If the data is not yet available (i.e. mmap'ed) we try to load it manually. */ if (data == (struct mo_file_header *) -1) { size_t to_read; char *read_ptr; data = (struct mo_file_header *) malloc (size); if (data == NULL) return; to_read = size; read_ptr = (char *) data; do { long int nb = (long int) read (fd, read_ptr, to_read); if (nb <= 0) { #ifdef EINTR if (nb == -1 && errno == EINTR) continue; #endif close (fd); return; } read_ptr += nb; to_read -= nb; } while (to_read > 0); close (fd); } /* Using the magic number we can test whether it really is a message catalog file. */ if (__builtin_expect (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED, 0)) { /* The magic number is wrong: not a message catalog file. */ #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); return; } domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); if (domain == NULL) return; domain_file->data = domain; domain->data = (char *) data; domain->use_mmap = use_mmap; domain->mmap_size = size; domain->must_swap = data->magic != _MAGIC; /* Fill in the information about the available tables. */ switch (W (domain->must_swap, data->revision)) { case 0: domain->nstrings = W (domain->must_swap, data->nstrings); domain->orig_tab = (struct string_desc *) ((char *) data + W (domain->must_swap, data->orig_tab_offset)); domain->trans_tab = (struct string_desc *) ((char *) data + W (domain->must_swap, data->trans_tab_offset)); domain->hash_size = W (domain->must_swap, data->hash_tab_size); domain->hash_tab = (nls_uint32 *) ((char *) data + W (domain->must_swap, data->hash_tab_offset)); break; default: /* This is an invalid revision. */ #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); free (domain); domain_file->data = NULL; return; } /* Now initialize the character set converter from the character set the file is encoded with (found in the header entry) to the domain's specified character set or the locale's character set. */ nullentry = _nl_init_domain_conv (domain_file, domain, domainbinding); /* Also look for a plural specification. */ if (nullentry != NULL) { const char *plural; const char *nplurals; plural = strstr (nullentry, "plural="); nplurals = strstr (nullentry, "nplurals="); if (plural == NULL || nplurals == NULL) goto no_plural; else { /* First get the number. */ char *endp; unsigned long int n; struct parse_args args; nplurals += 9; while (*nplurals != '\0' && isspace (*nplurals)) ++nplurals; #if defined HAVE_STRTOUL || defined _LIBC n = strtoul (nplurals, &endp, 10); #else for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++) n = n * 10 + (*endp - '0'); #endif domain->nplurals = n; if (nplurals == endp) goto no_plural; /* Due to the restrictions bison imposes onto the interface of the scanner function we have to put the input string and the result passed up from the parser into the same structure which address is passed down to the parser. */ plural += 7; args.cp = plural; if (PLURAL_PARSE (&args) != 0) goto no_plural; domain->plural = args.res; } } else { /* By default we are using the Germanic form: singular form only for `one', the plural form otherwise. Yes, this is also what English is using since English is a Germanic language. */ no_plural: INIT_GERMANIC_PLURAL (); domain->plural = &germanic_plural; domain->nplurals = 2; } } #ifdef _LIBC void internal_function _nl_unload_domain (domain) struct loaded_domain *domain; { if (domain->plural != &germanic_plural) __gettext_free_exp (domain->plural); _nl_free_domain_conv (domain); # ifdef _POSIX_MAPPED_FILES if (domain->use_mmap) munmap ((caddr_t) domain->data, domain->mmap_size); else # endif /* _POSIX_MAPPED_FILES */ free ((void *) domain->data); free (domain); } #endif dopewars-1.5.12/intl/locale.alias0000644001565000007070000000510707366603610013604 00000000000000# Locale name alias data base. # Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # The format of this file is the same as for the corresponding file of # the X Window System, which normally can be found in # /usr/lib/X11/locale/locale.alias # A single line contains two fields: an alias and a substitution value. # All entries are case independent. # Note: This file is far from being complete. If you have a value for # your own site which you think might be useful for others too, share # it with the rest of us. Send it using the `glibcbug' script to # bugs@gnu.org. # Packages using this file: bokmal no_NO.ISO-8859-1 bokmål no_NO.ISO-8859-1 catalan ca_ES.ISO-8859-1 croatian hr_HR.ISO-8859-2 czech cs_CZ.ISO-8859-2 danish da_DK.ISO-8859-1 dansk da_DK.ISO-8859-1 deutsch de_DE.ISO-8859-1 dutch nl_NL.ISO-8859-1 eesti et_EE.ISO-8859-1 estonian et_EE.ISO-8859-1 finnish fi_FI.ISO-8859-1 français fr_FR.ISO-8859-1 french fr_FR.ISO-8859-1 galego gl_ES.ISO-8859-1 galician gl_ES.ISO-8859-1 german de_DE.ISO-8859-1 greek el_GR.ISO-8859-7 hebrew iw_IL.ISO-8859-8 hrvatski hr_HR.ISO-8859-2 hungarian hu_HU.ISO-8859-2 icelandic is_IS.ISO-8859-1 italian it_IT.ISO-8859-1 japanese ja_JP.eucJP japanese.euc ja_JP.eucJP ja_JP ja_JP.eucJP ja_JP.ujis ja_JP.eucJP japanese.sjis ja_JP.SJIS korean ko_KR.eucKR korean.euc ko_KR.eucKR ko_KR ko_KR.eucKR lithuanian lt_LT.ISO-8859-13 nb_NO no_NO.ISO-8859-1 nb_NO.ISO-8859-1 no_NO.ISO-8859-1 norwegian no_NO.ISO-8859-1 nynorsk nn_NO.ISO-8859-1 polish pl_PL.ISO-8859-2 portuguese pt_PT.ISO-8859-1 romanian ro_RO.ISO-8859-2 russian ru_RU.ISO-8859-5 slovak sk_SK.ISO-8859-2 slovene sl_SI.ISO-8859-2 slovenian sl_SI.ISO-8859-2 spanish es_ES.ISO-8859-1 swedish sv_SE.ISO-8859-1 thai th_TH.TIS-620 turkish tr_TR.ISO-8859-9 dopewars-1.5.12/intl/plural.y0000644001565000007070000002022707366603610013023 00000000000000%{ /* Expression parsing for plural form selection. Copyright (C) 2000, 2001 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* The bison generated parser uses alloca. AIX 3 forces us to put this declaration at the beginning of the file. The declaration in bison's skeleton file comes too late. This must come before because may include arbitrary system headers. */ #if defined _AIX && !defined __GNUC__ #pragma alloca #endif #ifdef HAVE_CONFIG_H # include #endif #include #include "gettextP.h" /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define FREE_EXPRESSION __gettext_free_exp #else # define FREE_EXPRESSION gettext_free_exp__ # define __gettextparse gettextparse__ #endif #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg %} %pure_parser %expect 10 %union { unsigned long int num; enum operator op; struct expression *exp; } %{ /* Prototypes for local functions. */ static struct expression *new_exp PARAMS ((int nargs, enum operator op, struct expression * const *args)); static inline struct expression *new_exp_0 PARAMS ((enum operator op)); static inline struct expression *new_exp_1 PARAMS ((enum operator op, struct expression *right)); static struct expression *new_exp_2 PARAMS ((enum operator op, struct expression *left, struct expression *right)); static inline struct expression *new_exp_3 PARAMS ((enum operator op, struct expression *bexp, struct expression *tbranch, struct expression *fbranch)); static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); static void yyerror PARAMS ((const char *str)); /* Allocation of expressions. */ static struct expression * new_exp (nargs, op, args) int nargs; enum operator op; struct expression * const *args; { int i; struct expression *newp; /* If any of the argument could not be malloc'ed, just return NULL. */ for (i = nargs - 1; i >= 0; i--) if (args[i] == NULL) goto fail; /* Allocate a new expression. */ newp = (struct expression *) malloc (sizeof (*newp)); if (newp != NULL) { newp->nargs = nargs; newp->operation = op; for (i = nargs - 1; i >= 0; i--) newp->val.args[i] = args[i]; return newp; } fail: for (i = nargs - 1; i >= 0; i--) FREE_EXPRESSION (args[i]); return NULL; } static inline struct expression * new_exp_0 (op) enum operator op; { return new_exp (0, op, NULL); } static inline struct expression * new_exp_1 (op, right) enum operator op; struct expression *right; { struct expression *args[1]; args[0] = right; return new_exp (1, op, args); } static struct expression * new_exp_2 (op, left, right) enum operator op; struct expression *left; struct expression *right; { struct expression *args[2]; args[0] = left; args[1] = right; return new_exp (2, op, args); } static inline struct expression * new_exp_3 (op, bexp, tbranch, fbranch) enum operator op; struct expression *bexp; struct expression *tbranch; struct expression *fbranch; { struct expression *args[3]; args[0] = bexp; args[1] = tbranch; args[2] = fbranch; return new_exp (3, op, args); } %} /* This declares that all operators have the same associativity and the precedence order as in C. See [Harbison, Steele: C, A Reference Manual]. There is no unary minus and no bitwise operators. Operators with the same syntactic behaviour have been merged into a single token, to save space in the array generated by bison. */ %right '?' /* ? */ %left '|' /* || */ %left '&' /* && */ %left EQUOP2 /* == != */ %left CMPOP2 /* < > <= >= */ %left ADDOP2 /* + - */ %left MULOP2 /* * / % */ %right '!' /* ! */ %token EQUOP2 CMPOP2 ADDOP2 MULOP2 %token NUMBER %type exp %% start: exp { if ($1 == NULL) YYABORT; ((struct parse_args *) arg)->res = $1; } ; exp: exp '?' exp ':' exp { $$ = new_exp_3 (qmop, $1, $3, $5); } | exp '|' exp { $$ = new_exp_2 (lor, $1, $3); } | exp '&' exp { $$ = new_exp_2 (land, $1, $3); } | exp EQUOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp CMPOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp ADDOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp MULOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | '!' exp { $$ = new_exp_1 (lnot, $2); } | 'n' { $$ = new_exp_0 (var); } | NUMBER { if (($$ = new_exp_0 (num)) != NULL) $$->val.num = $1; } | '(' exp ')' { $$ = $2; } ; %% void internal_function FREE_EXPRESSION (exp) struct expression *exp; { if (exp == NULL) return; /* Handle the recursive case. */ switch (exp->nargs) { case 3: FREE_EXPRESSION (exp->val.args[2]); /* FALLTHROUGH */ case 2: FREE_EXPRESSION (exp->val.args[1]); /* FALLTHROUGH */ case 1: FREE_EXPRESSION (exp->val.args[0]); /* FALLTHROUGH */ default: break; } free (exp); } static int yylex (lval, pexp) YYSTYPE *lval; const char **pexp; { const char *exp = *pexp; int result; while (1) { if (exp[0] == '\0') { *pexp = exp; return YYEOF; } if (exp[0] != ' ' && exp[0] != '\t') break; ++exp; } result = *exp++; switch (result) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { unsigned long int n = result - '0'; while (exp[0] >= '0' && exp[0] <= '9') { n *= 10; n += exp[0] - '0'; ++exp; } lval->num = n; result = NUMBER; } break; case '=': if (exp[0] == '=') { ++exp; lval->op = equal; result = EQUOP2; } else result = YYERRCODE; break; case '!': if (exp[0] == '=') { ++exp; lval->op = not_equal; result = EQUOP2; } break; case '&': case '|': if (exp[0] == result) ++exp; else result = YYERRCODE; break; case '<': if (exp[0] == '=') { ++exp; lval->op = less_or_equal; } else lval->op = less_than; result = CMPOP2; break; case '>': if (exp[0] == '=') { ++exp; lval->op = greater_or_equal; } else lval->op = greater_than; result = CMPOP2; break; case '*': lval->op = mult; result = MULOP2; break; case '/': lval->op = divide; result = MULOP2; break; case '%': lval->op = module; result = MULOP2; break; case '+': lval->op = plus; result = ADDOP2; break; case '-': lval->op = minus; result = ADDOP2; break; case 'n': case '?': case ':': case '(': case ')': /* Nothing, just return the character. */ break; case ';': case '\n': case '\0': /* Be safe and let the user call this function again. */ --exp; result = YYEOF; break; default: result = YYERRCODE; #if YYDEBUG != 0 --exp; #endif break; } *pexp = exp; return result; } static void yyerror (str) const char *str; { /* Do nothing. We don't print error messages here. */ } dopewars-1.5.12/intl/ref-add.sin0000644001565000007070000000210107366603610013336 00000000000000# Add this package to a list of references stored in a text file. # # Copyright (C) 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// ta :a s/ @PACKAGE@ / @PACKAGE@ / tb s/ $/ @PACKAGE@ / :b s/^/# Packages using this file:/ } dopewars-1.5.12/intl/explodename.c0000644001565000007070000001101507366603610013772 00000000000000/* Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "loadinfo.h" /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif /* @@ end of prolog @@ */ char * _nl_find_language (name) const char *name; { while (name[0] != '\0' && name[0] != '_' && name[0] != '@' && name[0] != '+' && name[0] != ',') ++name; return (char *) name; } int _nl_explode_name (name, language, modifier, territory, codeset, normalized_codeset, special, sponsor, revision) char *name; const char **language; const char **modifier; const char **territory; const char **codeset; const char **normalized_codeset; const char **special; const char **sponsor; const char **revision; { enum { undecided, xpg, cen } syntax; char *cp; int mask; *modifier = NULL; *territory = NULL; *codeset = NULL; *normalized_codeset = NULL; *special = NULL; *sponsor = NULL; *revision = NULL; /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_' and `@' if we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ mask = 0; syntax = undecided; *language = cp = name; cp = _nl_find_language (*language); if (*language == cp) /* This does not make sense: language has to be specified. Use this entry as it is without exploding. Perhaps it is an alias. */ cp = strchr (*language, '\0'); else if (cp[0] == '_') { /* Next is the territory. */ cp[0] = '\0'; *territory = ++cp; while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@' && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= TERRITORY; if (cp[0] == '.') { /* Next is the codeset. */ syntax = xpg; cp[0] = '\0'; *codeset = ++cp; while (cp[0] != '\0' && cp[0] != '@') ++cp; mask |= XPG_CODESET; if (*codeset != cp && (*codeset)[0] != '\0') { *normalized_codeset = _nl_normalize_codeset (*codeset, cp - *codeset); if (strcmp (*codeset, *normalized_codeset) == 0) free ((char *) *normalized_codeset); else mask |= XPG_NORM_CODESET; } } } if (cp[0] == '@' || (syntax != xpg && cp[0] == '+')) { /* Next is the modifier. */ syntax = cp[0] == '@' ? xpg : cen; cp[0] = '\0'; *modifier = ++cp; while (syntax == cen && cp[0] != '\0' && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= XPG_MODIFIER | CEN_AUDIENCE; } if (syntax != xpg && (cp[0] == '+' || cp[0] == ',' || cp[0] == '_')) { syntax = cen; if (cp[0] == '+') { /* Next is special application (CEN syntax). */ cp[0] = '\0'; *special = ++cp; while (cp[0] != '\0' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= CEN_SPECIAL; } if (cp[0] == ',') { /* Next is sponsor (CEN syntax). */ cp[0] = '\0'; *sponsor = ++cp; while (cp[0] != '\0' && cp[0] != '_') ++cp; mask |= CEN_SPONSOR; } if (cp[0] == '_') { /* Next is revision (CEN syntax). */ cp[0] = '\0'; *revision = ++cp; mask |= CEN_REVISION; } } /* For CEN syntax values it might be important to have the separator character in the file name, not for XPG syntax. */ if (syntax == xpg) { if (*territory != NULL && (*territory)[0] == '\0') mask &= ~TERRITORY; if (*codeset != NULL && (*codeset)[0] == '\0') mask &= ~XPG_CODESET; if (*modifier != NULL && (*modifier)[0] == '\0') mask &= ~XPG_MODIFIER; } return mask; } dopewars-1.5.12/intl/ngettext.c0000644001565000007070000000366407366603610013346 00000000000000/* Implementation of ngettext(3) function. Copyright (C) 1995, 1997, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define __need_NULL # include #else # include /* Just for NULL. */ #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define NGETTEXT __ngettext # define DCNGETTEXT __dcngettext #else # define NGETTEXT ngettext__ # define DCNGETTEXT dcngettext__ #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * NGETTEXT (msgid1, msgid2, n) const char *msgid1; const char *msgid2; unsigned long int n; { return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__ngettext, ngettext); #endif dopewars-1.5.12/intl/ref-del.sin0000644001565000007070000000202407366603610013356 00000000000000# Remove this package from a list of references stored in a text file. # # Copyright (C) 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, # USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// s/ @PACKAGE@ / / s/^/# Packages using this file:/ } dopewars-1.5.12/intl/textdomain.c0000644001565000007070000001054407366603610013653 00000000000000/* Implementation of the textdomain(3) function. Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include "gettextP.h" #ifdef _LIBC /* We have to handle multi-threaded applications. */ # include #else /* Provide dummy implementation if this is outside glibc. */ # define __libc_rwlock_define(CLASS, NAME) # define __libc_rwlock_wrlock(NAME) # define __libc_rwlock_unlock(NAME) #endif /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_default_domain _nl_default_default_domain__ # define _nl_current_default_domain _nl_current_default_domain__ #endif /* @@ end of prolog @@ */ /* Name of the default text domain. */ extern const char _nl_default_default_domain[]; /* Default text domain in which entries for gettext(3) are to be found. */ extern const char *_nl_current_default_domain; /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define TEXTDOMAIN __textdomain # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define TEXTDOMAIN textdomain__ #endif /* Lock variable to protect the global data in the gettext implementation. */ __libc_rwlock_define (extern, _nl_state_lock) /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ char * TEXTDOMAIN (domainname) const char *domainname; { char *new_domain; char *old_domain; /* A NULL pointer requests the current setting. */ if (domainname == NULL) return (char *) _nl_current_default_domain; __libc_rwlock_wrlock (_nl_state_lock); old_domain = (char *) _nl_current_default_domain; /* If domain name is the null string set to default domain "messages". */ if (domainname[0] == '\0' || strcmp (domainname, _nl_default_default_domain) == 0) { _nl_current_default_domain = _nl_default_default_domain; new_domain = (char *) _nl_current_default_domain; } else if (strcmp (domainname, old_domain) == 0) /* This can happen and people will use it to signal that some environment variable changed. */ new_domain = old_domain; else { /* If the following malloc fails `_nl_current_default_domain' will be NULL. This value will be returned and so signals we are out of core. */ #if defined _LIBC || defined HAVE_STRDUP new_domain = strdup (domainname); #else size_t len = strlen (domainname) + 1; new_domain = (char *) malloc (len); if (new_domain != NULL) memcpy (new_domain, domainname, len); #endif if (new_domain != NULL) _nl_current_default_domain = new_domain; } /* We use this possibility to signal a change of the loaded catalogs since this is most likely the case and there is no other easy we to do it. Do it only when the call was successful. */ if (new_domain != NULL) { ++_nl_msg_cat_cntr; if (old_domain != new_domain && old_domain != _nl_default_default_domain) free (old_domain); } __libc_rwlock_unlock (_nl_state_lock); return new_domain; } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__textdomain, textdomain); #endif dopewars-1.5.12/intl/localealias.c0000644001565000007070000002231107366603610013743 00000000000000/* Handle aliases for locale names. Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif #endif #include #include #if !HAVE_STRCHR && !defined _LIBC # ifndef strchr # define strchr index # endif #endif #include "gettextP.h" /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define strcasecmp __strcasecmp # ifndef mempcpy # define mempcpy __mempcpy # endif # define HAVE_MEMPCPY 1 /* We need locking here since we can be called from different places. */ # include __libc_lock_define_initialized (static, lock); #endif #ifndef internal_function # define internal_function #endif /* For those losing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA # define freea(p) /* nothing */ #else # define alloca(n) malloc (n) # define freea(p) free (p) #endif #if defined _LIBC_REENTRANT || defined HAVE_FGETS_UNLOCKED # undef fgets # define fgets(buf, len, s) fgets_unlocked (buf, len, s) #endif #if defined _LIBC_REENTRANT || defined HAVE_FEOF_UNLOCKED # undef feof # define feof(s) feof_unlocked (s) #endif struct alias_map { const char *alias; const char *value; }; static char *string_space; static size_t string_space_act; static size_t string_space_max; static struct alias_map *map; static size_t nmap; static size_t maxmap; /* Prototypes for local functions. */ static size_t read_alias_file PARAMS ((const char *fname, int fname_len)) internal_function; static int extend_alias_table PARAMS ((void)); static int alias_compare PARAMS ((const struct alias_map *map1, const struct alias_map *map2)); const char * _nl_expand_alias (name) const char *name; { static const char *locale_alias_path = LOCALE_ALIAS_PATH; struct alias_map *retval; const char *result = NULL; size_t added; #ifdef _LIBC __libc_lock_lock (lock); #endif do { struct alias_map item; item.alias = name; if (nmap > 0) retval = (struct alias_map *) bsearch (&item, map, nmap, sizeof (struct alias_map), (int (*) PARAMS ((const void *, const void *)) ) alias_compare); else retval = NULL; /* We really found an alias. Return the value. */ if (retval != NULL) { result = retval->value; break; } /* Perhaps we can find another alias file. */ added = 0; while (added == 0 && locale_alias_path[0] != '\0') { const char *start; while (locale_alias_path[0] == PATH_SEPARATOR) ++locale_alias_path; start = locale_alias_path; while (locale_alias_path[0] != '\0' && locale_alias_path[0] != PATH_SEPARATOR) ++locale_alias_path; if (start < locale_alias_path) added = read_alias_file (start, locale_alias_path - start); } } while (added != 0); #ifdef _LIBC __libc_lock_unlock (lock); #endif return result; } static size_t internal_function read_alias_file (fname, fname_len) const char *fname; int fname_len; { FILE *fp; char *full_fname; size_t added; static const char aliasfile[] = "/locale.alias"; full_fname = (char *) alloca (fname_len + sizeof aliasfile); #ifdef HAVE_MEMPCPY mempcpy (mempcpy (full_fname, fname, fname_len), aliasfile, sizeof aliasfile); #else memcpy (full_fname, fname, fname_len); memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile); #endif fp = fopen (full_fname, "r"); freea (full_fname); if (fp == NULL) return 0; added = 0; while (!feof (fp)) { /* It is a reasonable approach to use a fix buffer here because a) we are only interested in the first two fields b) these fields must be usable as file names and so must not be that long */ char buf[BUFSIZ]; char *alias; char *value; char *cp; if (fgets (buf, sizeof buf, fp) == NULL) /* EOF reached. */ break; /* Possibly not the whole line fits into the buffer. Ignore the rest of the line. */ if (strchr (buf, '\n') == NULL) { char altbuf[BUFSIZ]; do if (fgets (altbuf, sizeof altbuf, fp) == NULL) /* Make sure the inner loop will be left. The outer loop will exit at the `feof' test. */ break; while (strchr (altbuf, '\n') == NULL); } cp = buf; /* Ignore leading white space. */ while (isspace (cp[0])) ++cp; /* A leading '#' signals a comment line. */ if (cp[0] != '\0' && cp[0] != '#') { alias = cp++; while (cp[0] != '\0' && !isspace (cp[0])) ++cp; /* Terminate alias name. */ if (cp[0] != '\0') *cp++ = '\0'; /* Now look for the beginning of the value. */ while (isspace (cp[0])) ++cp; if (cp[0] != '\0') { size_t alias_len; size_t value_len; value = cp++; while (cp[0] != '\0' && !isspace (cp[0])) ++cp; /* Terminate value. */ if (cp[0] == '\n') { /* This has to be done to make the following test for the end of line possible. We are looking for the terminating '\n' which do not overwrite here. */ *cp++ = '\0'; *cp = '\n'; } else if (cp[0] != '\0') *cp++ = '\0'; if (nmap >= maxmap) if (__builtin_expect (extend_alias_table (), 0)) return added; alias_len = strlen (alias) + 1; value_len = strlen (value) + 1; if (string_space_act + alias_len + value_len > string_space_max) { /* Increase size of memory pool. */ size_t new_size = (string_space_max + (alias_len + value_len > 1024 ? alias_len + value_len : 1024)); char *new_pool = (char *) realloc (string_space, new_size); if (new_pool == NULL) return added; if (__builtin_expect (string_space != new_pool, 0)) { size_t i; for (i = 0; i < nmap; i++) { map[i].alias += new_pool - string_space; map[i].value += new_pool - string_space; } } string_space = new_pool; string_space_max = new_size; } map[nmap].alias = memcpy (&string_space[string_space_act], alias, alias_len); string_space_act += alias_len; map[nmap].value = memcpy (&string_space[string_space_act], value, value_len); string_space_act += value_len; ++nmap; ++added; } } } /* Should we test for ferror()? I think we have to silently ignore errors. --drepper */ fclose (fp); if (added > 0) qsort (map, nmap, sizeof (struct alias_map), (int (*) PARAMS ((const void *, const void *))) alias_compare); return added; } static int extend_alias_table () { size_t new_size; struct alias_map *new_map; new_size = maxmap == 0 ? 100 : 2 * maxmap; new_map = (struct alias_map *) realloc (map, (new_size * sizeof (struct alias_map))); if (new_map == NULL) /* Simply don't extend: we don't have any more core. */ return -1; map = new_map; maxmap = new_size; return 0; } #ifdef _LIBC static void __attribute__ ((unused)) free_mem (void) { if (string_space != NULL) free (string_space); if (map != NULL) free (map); } text_set_element (__libc_subfreeres, free_mem); #endif static int alias_compare (map1, map2) const struct alias_map *map1; const struct alias_map *map2; { #if defined _LIBC || defined HAVE_STRCASECMP return strcasecmp (map1->alias, map2->alias); #else const unsigned char *p1 = (const unsigned char *) map1->alias; const unsigned char *p2 = (const unsigned char *) map2->alias; unsigned char c1, c2; if (p1 == p2) return 0; do { /* I know this seems to be odd but the tolower() function in some systems libc cannot handle nonalpha characters. */ c1 = isupper (*p1) ? tolower (*p1) : *p1; c2 = isupper (*p2) ? tolower (*p2) : *p2; if (c1 == '\0') break; ++p1; ++p2; } while (c1 == c2); return c1 - c2; #endif } dopewars-1.5.12/intl/libgnuintl.h0000644001565000007070000001042207366603610013646 00000000000000/* Message catalogs for internationalization. Copyright (C) 1995-1997, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _LIBINTL_H #define _LIBINTL_H 1 #include /* The LC_MESSAGES locale category is the category used by the functions gettext() and dgettext(). It is specified in POSIX, but not in ANSI C. On systems that don't define it, use an arbitrary value instead. On Solaris, defines __LOCALE_H then includes (i.e. this file!) and then only defines LC_MESSAGES. To avoid a redefinition warning, don't define LC_MESSAGES in this case. */ #if !defined LC_MESSAGES && !defined __LOCALE_H # define LC_MESSAGES 1729 #endif /* We define an additional symbol to signal that we use the GNU implementation of gettext. */ #define __USE_GNU_GETTEXT 1 /* Resolve a platform specific conflict on DJGPP. GNU gettext takes precedence over _conio_gettext. */ #ifdef __DJGPP__ # undef gettext # define gettext gettext #endif #ifndef PARAMS # if __STDC__ || defined __cplusplus # define PARAMS(args) args # else # define PARAMS(args) () # endif #endif #ifdef __cplusplus extern "C" { #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ extern char *gettext PARAMS ((const char *__msgid)); /* Look up MSGID in the DOMAINNAME message catalog for the current LC_MESSAGES locale. */ extern char *dgettext PARAMS ((const char *__domainname, const char *__msgid)); /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ extern char *dcgettext PARAMS ((const char *__domainname, const char *__msgid, int __category)); /* Similar to `gettext' but select the plural form corresponding to the number N. */ extern char *ngettext PARAMS ((const char *__msgid1, const char *__msgid2, unsigned long int __n)); /* Similar to `dgettext' but select the plural form corresponding to the number N. */ extern char *dngettext PARAMS ((const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n)); /* Similar to `dcgettext' but select the plural form corresponding to the number N. */ extern char *dcngettext PARAMS ((const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category)); /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ extern char *textdomain PARAMS ((const char *__domainname)); /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ extern char *bindtextdomain PARAMS ((const char *__domainname, const char *__dirname)); /* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned. */ extern char *bind_textdomain_codeset PARAMS ((const char *__domainname, const char *__codeset)); /* Optimized version of the functions above. */ #if defined __OPTIMIZED /* These are macros, but could also be inline functions. */ # define gettext(msgid) \ dgettext (NULL, msgid) # define dgettext(domainname, msgid) \ dcgettext (domainname, msgid, LC_MESSAGES) # define ngettext(msgid1, msgid2, n) \ dngettext (NULL, msgid1, msgid2, n) # define dngettext(domainname, msgid1, msgid2, n) \ dcngettext (domainname, msgid1, msgid2, n, LC_MESSAGES) #endif /* Optimizing. */ #ifdef __cplusplus } #endif #endif /* libintl.h */ dopewars-1.5.12/intl/bindtextdom.c0000644001565000007070000002313507366603610014020 00000000000000/* Implementation of the bindtextdomain(3) function Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include "gettextP.h" #ifdef _LIBC /* We have to handle multi-threaded applications. */ # include #else /* Provide dummy implementation if this is outside glibc. */ # define __libc_rwlock_define(CLASS, NAME) # define __libc_rwlock_wrlock(NAME) # define __libc_rwlock_unlock(NAME) #endif /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_dirname _nl_default_dirname__ # define _nl_domain_bindings _nl_domain_bindings__ #endif /* Some compilers, like SunOS4 cc, don't have offsetof in . */ #ifndef offsetof # define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) #endif /* @@ end of prolog @@ */ /* Contains the default location of the message catalogs. */ extern const char _nl_default_dirname[]; /* List with bindings of specific domains. */ extern struct binding *_nl_domain_bindings; /* Lock variable to protect the global data in the gettext implementation. */ __libc_rwlock_define (extern, _nl_state_lock) /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define BINDTEXTDOMAIN __bindtextdomain # define BIND_TEXTDOMAIN_CODESET __bind_textdomain_codeset # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define BINDTEXTDOMAIN bindtextdomain__ # define BIND_TEXTDOMAIN_CODESET bind_textdomain_codeset__ #endif /* Prototypes for local functions. */ static void set_binding_values PARAMS ((const char *domainname, const char **dirnamep, const char **codesetp)); /* Specifies the directory name *DIRNAMEP and the output codeset *CODESETP to be used for the DOMAINNAME message catalog. If *DIRNAMEP or *CODESETP is NULL, the corresponding attribute is not modified, only the current value is returned. If DIRNAMEP or CODESETP is NULL, the corresponding attribute is neither modified nor returned. */ static void set_binding_values (domainname, dirnamep, codesetp) const char *domainname; const char **dirnamep; const char **codesetp; { struct binding *binding; int modified; /* Some sanity checks. */ if (domainname == NULL || domainname[0] == '\0') { if (dirnamep) *dirnamep = NULL; if (codesetp) *codesetp = NULL; return; } __libc_rwlock_wrlock (_nl_state_lock); modified = 0; for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding != NULL) { if (dirnamep) { const char *dirname = *dirnamep; if (dirname == NULL) /* The current binding has be to returned. */ *dirnamep = binding->dirname; else { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ char *result = binding->dirname; if (strcmp (dirname, result) != 0) { if (strcmp (dirname, _nl_default_dirname) == 0) result = (char *) _nl_default_dirname; else { #if defined _LIBC || defined HAVE_STRDUP result = strdup (dirname); #else size_t len = strlen (dirname) + 1; result = (char *) malloc (len); if (__builtin_expect (result != NULL, 1)) memcpy (result, dirname, len); #endif } if (__builtin_expect (result != NULL, 1)) { if (binding->dirname != _nl_default_dirname) free (binding->dirname); binding->dirname = result; modified = 1; } } *dirnamep = result; } } if (codesetp) { const char *codeset = *codesetp; if (codeset == NULL) /* The current binding has be to returned. */ *codesetp = binding->codeset; else { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ char *result = binding->codeset; if (result == NULL || strcmp (codeset, result) != 0) { #if defined _LIBC || defined HAVE_STRDUP result = strdup (codeset); #else size_t len = strlen (codeset) + 1; result = (char *) malloc (len); if (__builtin_expect (result != NULL, 1)) memcpy (result, codeset, len); #endif if (__builtin_expect (result != NULL, 1)) { if (binding->codeset != NULL) free (binding->codeset); binding->codeset = result; binding->codeset_cntr++; modified = 1; } } *codesetp = result; } } } else if ((dirnamep == NULL || *dirnamep == NULL) && (codesetp == NULL || *codesetp == NULL)) { /* Simply return the default values. */ if (dirnamep) *dirnamep = _nl_default_dirname; if (codesetp) *codesetp = NULL; } else { /* We have to create a new binding. */ size_t len = strlen (domainname) + 1; struct binding *new_binding = (struct binding *) malloc (offsetof (struct binding, domainname) + len); if (__builtin_expect (new_binding == NULL, 0)) goto failed; memcpy (new_binding->domainname, domainname, len); if (dirnamep) { const char *dirname = *dirnamep; if (dirname == NULL) /* The default value. */ dirname = _nl_default_dirname; else { if (strcmp (dirname, _nl_default_dirname) == 0) dirname = _nl_default_dirname; else { char *result; #if defined _LIBC || defined HAVE_STRDUP result = strdup (dirname); if (__builtin_expect (result == NULL, 0)) goto failed_dirname; #else size_t len = strlen (dirname) + 1; result = (char *) malloc (len); if (__builtin_expect (result == NULL, 0)) goto failed_dirname; memcpy (result, dirname, len); #endif dirname = result; } } *dirnamep = dirname; new_binding->dirname = (char *) dirname; } else /* The default value. */ new_binding->dirname = (char *) _nl_default_dirname; new_binding->codeset_cntr = 0; if (codesetp) { const char *codeset = *codesetp; if (codeset != NULL) { char *result; #if defined _LIBC || defined HAVE_STRDUP result = strdup (codeset); if (__builtin_expect (result == NULL, 0)) goto failed_codeset; #else size_t len = strlen (codeset) + 1; result = (char *) malloc (len); if (__builtin_expect (result == NULL, 0)) goto failed_codeset; memcpy (result, codeset, len); #endif codeset = result; new_binding->codeset_cntr++; } *codesetp = codeset; new_binding->codeset = (char *) codeset; } else new_binding->codeset = NULL; /* Now enqueue it. */ if (_nl_domain_bindings == NULL || strcmp (domainname, _nl_domain_bindings->domainname) < 0) { new_binding->next = _nl_domain_bindings; _nl_domain_bindings = new_binding; } else { binding = _nl_domain_bindings; while (binding->next != NULL && strcmp (domainname, binding->next->domainname) > 0) binding = binding->next; new_binding->next = binding->next; binding->next = new_binding; } modified = 1; /* Here we deal with memory allocation failures. */ if (0) { failed_codeset: if (new_binding->dirname != _nl_default_dirname) free (new_binding->dirname); failed_dirname: free (new_binding); failed: if (dirnamep) *dirnamep = NULL; if (codesetp) *codesetp = NULL; } } /* If we modified any binding, we flush the caches. */ if (modified) ++_nl_msg_cat_cntr; __libc_rwlock_unlock (_nl_state_lock); } /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ char * BINDTEXTDOMAIN (domainname, dirname) const char *domainname; const char *dirname; { set_binding_values (domainname, &dirname, NULL); return (char *) dirname; } /* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned. */ char * BIND_TEXTDOMAIN_CODESET (domainname, codeset) const char *domainname; const char *codeset; { set_binding_values (domainname, NULL, &codeset); return (char *) codeset; } #ifdef _LIBC /* Aliases for function names in GNU C Library. */ weak_alias (__bindtextdomain, bindtextdomain); weak_alias (__bind_textdomain_codeset, bind_textdomain_codeset); #endif dopewars-1.5.12/intl/dgettext.c0000644001565000007070000000334307366603610013326 00000000000000/* Implementation of the dgettext(3) function. Copyright (C) 1995-1997, 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DGETTEXT __dgettext # define DCGETTEXT __dcgettext #else # define DGETTEXT dgettext__ # define DCGETTEXT dcgettext__ #endif /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale. */ char * DGETTEXT (domainname, msgid) const char *domainname; const char *msgid; { return DCGETTEXT (domainname, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dgettext, dgettext); #endif dopewars-1.5.12/intl/Makefile.in0000644001565000007070000002314507366603610013401 00000000000000# Makefile for directory with message catalog handling in GNU NLS Utilities. # Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ transform = @program_transform_name@ libdir = @libdir@ includedir = @includedir@ datadir = @datadir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/intl aliaspath = $(localedir) subdir = intl INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac` l = @INTL_LIBTOOL_SUFFIX_PREFIX@ AR = ar CC = @CC@ LIBTOOL = @LIBTOOL@ RANLIB = @RANLIB@ YACC = @INTLBISON@ -y -d YFLAGS = --name-prefix=__gettext DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ -DLIBDIR=\"$(libdir)\" @DEFS@ CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) HEADERS = $(COMHDRS) libgnuintl.h libgettext.h loadinfo.h COMHDRS = gettext.h gettextP.h hash-string.h SOURCES = $(COMSRCS) intl-compat.c COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \ finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \ explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \ localcharset.c OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \ finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \ explodename.$lo dcigettext.$lo dcngettext.$lo dngettext.$lo ngettext.$lo \ plural.$lo localcharset.$lo GETTOBJS = intl-compat.$lo DISTFILES.common = Makefile.in \ config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES) DISTFILES.generated = plural.c DISTFILES.normal = VERSION DISTFILES.gettext = libintl.glibc DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c # Libtool's library version information for libintl. # Before making a gettext release, the gettext maintainer must change this # according to the libtool documentation, section "Library interface versions". # Maintainers of other packages that include the intl directory must *not* # change these values. LTV_CURRENT=1 LTV_REVISION=1 LTV_AGE=0 .SUFFIXES: .SUFFIXES: .c .y .o .lo .sin .sed .c.o: $(COMPILE) $< .c.lo: $(LIBTOOL) --mode=compile $(COMPILE) $< .y.c: $(YACC) $(YFLAGS) --output $@ $< rm -f $*.h .sin.sed: sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@ mv t-$@ $@ INCLUDES = -I.. -I. -I$(top_srcdir)/intl all: all-@USE_INCLUDED_LIBINTL@ all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed all-no: all-no-@BUILD_INCLUDED_LIBINTL@ all-no-yes: libgnuintl.$la all-no-no: libintl.a libgnuintl.a: $(OBJECTS) rm -f $@ $(AR) cru $@ $(OBJECTS) $(RANLIB) $@ libintl.la libgnuintl.la: $(OBJECTS) $(LIBTOOL) --mode=link \ $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ $(OBJECTS) @LIBICONV@ \ -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ -rpath $(libdir) \ -no-undefined libintl.h: libgnuintl.h cp $(srcdir)/libgnuintl.h libintl.h charset.alias: config.charset $(SHELL) $(srcdir)/config.charset '@host@' > t-$@ mv t-$@ $@ check: all # This installation goal is only used in GNU gettext. Packages which # only use the library should use install instead. # We must not install the libintl.h/libintl.a files if we are on a # system which has the GNU gettext() function in its C library or in a # separate library. # If you want to use the one which comes with this version of the # package, you have to use `configure --with-included-gettext'. install: install-exec install-data install-exec: all if test "$(PACKAGE)" = "gettext" \ && test '@INTLOBJS@' = '$(GETTOBJS)'; then \ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=install \ $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ $(mkinstalldirs) $(DESTDIR)$(libdir); \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ orig=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ if test @GLIBC21@ = no; then \ orig=charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ fi; \ fi; \ $(mkinstalldirs) $(DESTDIR)$(localedir); \ test -f $(DESTDIR)$(localedir)/locale.alias \ && orig=$(DESTDIR)$(localedir)/locale.alias \ || orig=$(srcdir)/locale.alias; \ temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ : ; \ fi install-data: all if test "$(PACKAGE)" = "gettext"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ dists="$(DISTFILES.common)"; \ for file in $$dists; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \ dists="$(DISTFILES.generated)"; \ for file in $$dists; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ $(INSTALL_DATA) $$dir/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ dists="$(DISTFILES.obsolete)"; \ for file in $$dists; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: if test "$(PACKAGE)" = "gettext" \ && test '@INTLOBJS@' = '$(GETTOBJS)'; then \ rm -f $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=uninstall \ rm -f $(DESTDIR)$(libdir)/libintl.$la; \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-del.sed $$dest > $$temp; \ if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ rm -f $$dest; \ else \ $(INSTALL_DATA) $$temp $$dest; \ fi; \ rm -f $$temp; \ fi; \ if test -f $(DESTDIR)$(localedir)/locale.alias; then \ temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-del.sed $$dest > $$temp; \ if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ rm -f $$dest; \ else \ $(INSTALL_DATA) $$temp $$dest; \ fi; \ rm -f $$temp; \ fi; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext"; then \ for file in VERSION ChangeLog $(DISTFILES.common) $(DISTFILES.generated); do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi info dvi: $(OBJECTS): ../config.h libgnuintl.h bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h tags: TAGS TAGS: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) id: ID ID: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) mostlyclean: rm -f *.a *.la *.o *.lo core core.* rm -f libintl.h charset.alias ref-add.sed ref-del.sed rm -f -r .libs _libs clean: mostlyclean distclean: clean rm -f Makefile ID TAGS if test "$(PACKAGE)" = gettext; then \ rm -f ChangeLog.inst $(DISTFILES.normal); \ else \ : ; \ fi maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." # GNU gettext needs not contain the file `VERSION' but contains some # other files which should not be distributed in other packages. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: Makefile if test "$(PACKAGE)" = gettext; then \ additional="$(DISTFILES.gettext)"; \ else \ additional="$(DISTFILES.normal)"; \ fi; \ $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \ for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ ln $$dir/$$file $(distdir) 2> /dev/null \ || cp -p $$dir/$$file $(distdir); \ done Makefile: Makefile.in ../config.status cd .. \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dopewars-1.5.12/README0000644001565000007070000001054510355323021011231 00000000000000This is dopewars 1.5.12, a game simulating the life of a drug dealer in New York. The aim of the game is to make lots and lots of money... unfortunately, you start the game with a hefty debt, accumulating interest, and the cops take a rather dim view of drug dealing... These are brief instructions; see the HTML documentation for full information. dopewars 1.5.12 servers should handle clients as old as version 1.4.3 with hardly any visible problems (the reverse is also true). However, it is recommended that both clients and servers are upgraded to 1.5.12! INSTALLATION Either... 1. Get the relevant RPM from http://dopewars.sourceforge.net/ Or... 2. Get the tarball dopewars-1.5.12.tar.gz from the same URL Extract it via tar -xvzf dopewars-1.5.12.tar.gz Follow the instructions in the INSTALL file in the newly-created dopewars-1.5.12 directory Once you're done, you can safely delete the RPM, tarball and dopewars directory. The dopewars binary is all you need! dopewars stores its high score files by default in /usr/share/dopewars.sco This will be created by make install or by RPM installation. A different high score file can be selected with the -f switch. WIN32 INSTALLATION dopewars now compiles as a console or regular application under Win32 (Windows 95, 98, NT, 2000, XP). Almost all functionality of the standard Unix binary is retained; for example, all of the same command line switches are supported. However, for convenience, the configuration file is the more Windows-friendly "dopewars-config.txt". The easiest way to install the Win32 version is to download the precompiled binary. The supplied configure script, however, should build the binary correctly under Cygwin (see the INSTALL file for details). USAGE dopewars has built-in client-server support for multi-player games. For a full list of options configurable on the command line, run dopewars with the -h switch. dopewars -a This is "antique" dopewars; it tries to keep to the original dopewars, based on the "Drug Wars" game by John E. Dell, as closely as possible. dopewars By default, dopewars supports multi-player games. On starting a game, the program will attempt to connect to a dopewars server so that players can send messages back and forth, and shoot each other if they really want to... dopewars -s Starts a dopewars server. This sits in the background and handles multi-player games. You probably want to use the -l command line option too to direct its log output to somewhere sensible. dopewars -c Create and run a computer dopewars player. This will attempt to connect to a dopewars server, and if this succeeds, it will then participate in multi-player dopewars games. CONFIGURATION Most of the dopewars defaults (for example, the location of the high score file, the port and server to connect to, the names of the drugs and guns, etc.) can be configured by adding suitable entries to the dopewars configuration file. The global file /etc/dopewars is read first, and can then be overridden by the local settings in ~/.dopewars. All of the settings here can also be set on the command line of an interactive dopewars server when no players are logged on. See the file "example-cfg" for an example configuration file, and for a brief explanation of each option, type "help" in an interactive server. A subset of the configuration options can also be tweaked via the "Options" menu item in the GTK+/Win32 client. PLAYING dopewars is supposed to be fairly self-explanatory. You should be able to pick the basics up fairly quickly, but still be discovering subtleties for _ages_ ;) If you're _really_ stuck, send me an email. I might even answer it! Clue: buy drugs when they're cheap, sell them when they're expensive. The Bronx and Ghetto are "special" locations. Anything more would spoil the fun. ;) BUGS Well, there are bound to be lots. Let me know if you find any, and I'll see if I can fix 'em... of course, a working patch would be even nicer! ;) LICENCE dopewars is released under the GNU General Public License; see the text file LICENCE for further information. dopewars is copyright (C) Ben Webb 1998-2005. The dopewars icons are copyright (C) Ocelot Mantis 2001. SUPPORT dopewars is written and maintained by Ben Webb Enquiries about dopewars may be sent to this address (keep them sensible please ;) Bug fixes and reports, improvements and patches are also welcomed. dopewars-1.5.12/config.h.in0000644001565000007070000002041310355323266012402 00000000000000/* config.h.in. Generated from configure.in by autoheader. */ /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */ #undef CRAY_STACKSEG_END /* Use the (n)curses client? */ #undef CURSES_CLIENT /* Define if building under the Cygwin environment */ #undef CYGWIN /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA /* The directory containing the docs and sounds */ #undef DPDATADIR /* The directory containing the high score file */ #undef DPSCOREDIR /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Use the graphical client? */ #undef GUI_CLIENT /* Use a graphical server? */ #undef GUI_SERVER /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA /* Define to 1 if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the header file. */ #undef HAVE_ARGZ_H /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Do we have the ESD sound library? */ #undef HAVE_ESD /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `feof_unlocked' function. */ #undef HAVE_FEOF_UNLOCKED /* Define to 1 if you have the `fgets_unlocked' function. */ #undef HAVE_FGETS_UNLOCKED /* Do we have GTK+ with a non-buggy gtk_entry_set_visibility() ? (i.e. >= 1.2.10) */ #undef HAVE_FIXED_GTK /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the `getegid' function. */ #undef HAVE_GETEGID /* Define to 1 if you have the `geteuid' function. */ #undef HAVE_GETEUID /* Define to 1 if you have the `getgid' function. */ #undef HAVE_GETGID /* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME /* Define to 1 if you have the `getopt' function. */ #undef HAVE_GETOPT /* Define to 1 if you have the `getopt_long' function. */ #undef HAVE_GETOPT_LONG /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID /* Do we have GLIB 2.0 ? */ #undef HAVE_GLIB2 /* Define if you have the iconv() function. */ #undef HAVE_ICONV /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if you have and nl_langinfo(CODESET). */ #undef HAVE_LANGINFO_CODESET /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the `curses' library (-lcurses). */ #undef HAVE_LIBCURSES /* Define to 1 if you have the `cur_colr' library (-lcur_colr). */ #undef HAVE_LIBCUR_COLR /* Define to 1 if you have the `ncurses' library (-lncurses). */ #undef HAVE_LIBNCURSES /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the header file. */ #undef HAVE_MALLOC_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `mempcpy' function. */ #undef HAVE_MEMPCPY /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP /* Define to 1 if you have the `munmap' function. */ #undef HAVE_MUNMAP /* Define to 1 if you have the header file. */ #undef HAVE_NL_TYPES_H /* Define to 1 if you have the `putenv' function. */ #undef HAVE_PUTENV /* Do we have the SDL_mixer sound library? */ #undef HAVE_SDL_MIXER /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the `setenv' function. */ #undef HAVE_SETENV /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Do we have the socklen_t data type? */ #undef HAVE_SOCKLEN_T /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `stpcpy' function. */ #undef HAVE_STPCPY /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strftime' function. */ #undef HAVE_STRFTIME /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the `tsearch' function. */ #undef HAVE_TSEARCH /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Do we have the Windows multimedia system? */ #undef HAVE_WINMM /* Define to 1 if you have the `__argz_count' function. */ #undef HAVE___ARGZ_COUNT /* Define to 1 if you have the `__argz_next' function. */ #undef HAVE___ARGZ_NEXT /* Define to 1 if you have the `__argz_stringify' function. */ #undef HAVE___ARGZ_STRINGIFY /* Define as const if the declaration of iconv() needs const. */ #undef ICONV_CONST /* The directory containing locale files */ #undef LOCALEDIR /* Define if dopewars should use TCP/IP networking to connect to servers */ #undef NETWORKING /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* The directory containing the plugins */ #undef PLUGINDIR /* Define if using dynamically-loaded sound modules */ #undef PLUGINS /* Define to 1 if the C compiler supports function prototypes. */ #undef PROTOTYPES /* Define to 1 if the `setvbuf' function takes the buffering type as its second argument and the buffer pointer as the third, as on System V before release 3. */ #undef SETVBUF_REVERSED /* The size of a `long long', as computed by sizeof. */ #undef SIZEOF_LONG_LONG /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION /* Define like PROTOTYPES; this can be used by system headers. */ #undef __PROTOTYPES /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to `long' if does not define. */ #undef off_t /* Define to `unsigned' if does not define. */ #undef size_t dopewars-1.5.12/doc/0000777001565000007070000000000010355323331011201 500000000000000dopewars-1.5.12/doc/servercommands.html0000644001565000007070000000516207514575671015062 00000000000000 Interactive server commands

Interactive server commands

Available commands are listed below. Please note also that any valid line from a configuration file can be entered at the interactive server's prompt. Note, however, that game options cannot be changed while players are connected. In addition, the current value of any option from the configuration files can be displayed by typing the name of the variable by itself. For example, entering MetaServer.Comment at the prompt will display the comment that the server sends to the metaserver.

help
Displays a help screen, listing valid server commands and the variables which can be set in configuration files.
list
Lists the given names of all the players currently logged on to the server.
push Bert
Politely asks the player with the given name Bert to leave the server - i.e. sends a message to the client, which should then finish off and break the connection at the far end.
kill Bert
Abruptly breaks the connection to the player with given name Bert. This is necessary if, for example, the client refuses to acknowledge a "push" message.
msg:Hi all!
Broadcasts the message Hi all! to all players currently connected to this server.
save my-conf
Saves the current configuration (names of drugs, locations, etc.) to the file my-conf. If no file name is given, the configuration is written to the local configuration file - usually ~/.dopewars on Unix systems and dopewars-config.txt on Windows.
quit
Politely quit, by asking all clients to leave, and then terminating once they have done so. An "impolite" quit, which is necessary if the clients fail to respond to this message, is performed on receipt of a SIGINT or SIGTERM signal (i.e. pressing Ctrl-C or killing the process with the "kill" command).

Last update: 15-07-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/server.html0000644001565000007070000001242007600614142013312 00000000000000 Setting up and running a dopewars server

Setting up and running a dopewars server

Multiplayer games of dopewars require a running dopewars server; this mediates the interactions between each player (each player runs a client which connects to this server). The server runs the game, generating drug prices and the like, and instructs the clients accordingly. The server can be run on any machine that can be reached over the network by clients (so you don't have to run it on the same machine that you run your client on, for example, unless your firewall blocks the dopewars port).

Single player games do not require a server (although you can still connect to one if you like) as a "virtual server" is run by the dopewars client.

The dopewars server can be heavily customised by means of the configuration files. For example, you can change the names of all the game locations so that the game is set in your home city rather than New York. Any players that then connect to your customised server will play this customised game.

Running a server

All the code for the dopewars server is included in the same binary as the standard client. To run the binary in server mode, specify the -s or -S command line option. The type of server that runs depends on how you configured the binary; by default, on Windows systems a simple graphical window containing the server output and a line for entering server commands is used (an "interactive" server) while on Unix systems a text-mode server that accepts no input ("noninteractive") is used.

Interacting with the text-mode server

Once started, the text-mode server does not accept commands directly. This is problematic if you want to adjust settings, eject players, etc. To send commands to a running server, run dopewars with the -A command line option. (This should only work from the machine running the dopewars server, not over the network, and only for the user that started the server, as it uses a Unix-domain socket for the communication.) Also, by default the text-mode server sends its log output to standard output; you may wish to instead log to a file with the -l option.

Running as an NT service

On Windows systems, the graphical server has one major drawback; it can only run while you are logged on. As soon as you log out, the server is killed. To get around this limitation, dopewars supports being run as an "NT Service" under Windows NT and later systems (e.g. 2000, XP). The install program should set up the service; users with suitable access rights can then start or stop the service via the Control Panel. The disadvantage of the server in this configuration is that server commands cannot be issued once the server is running. This limitation should be fixed in a future release of dopewars.

Private and public: the dopewars metaserver

By default, a server reports its status to the dopewars metaserver. It does this on startup and shutdown, and whenever players join or leave the game. In addition, you can force a report (under Unix systems) by sending the dopewars server process a SIGUSR1 signal. The server will "remind" the metaserver that it exists by ensuring that a report is sent at least once every 3 hours or so, regardless. A "status report" comprises contact details for the server, a count of the number of active players, and current high scores.

The metaserver also has a web interface, which is used by dopewars clients to obtain the list of servers, and can also be viewed with a web browser here.

Whether your server connects to the metaserver can be configured with the MetaServer.Active configuration file setting, or the -s and -S command line options.

N.B. Your machine may have trouble connecting with the metaserver in some circumstances, most notably if you are using an enforced proxy server or your DNS does not correctly resolve your IP address to your domain name. In such cases, you may be unable to connect to the metaserver, or it may register your server with an incorrect name. For information on getting round these difficulties, see the metaserver page.


Last update: 15-07-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/credits.html0000644001565000007070000000500507675562413013461 00000000000000 Credits and acknowledgements

Credits and acknowledgements

dopewars is derived from the MS-DOS game of the same name (author unknown).

This is turn was based upon the MS-DOS game "Drug Wars", by John E. Dell.

dopewars is written by and is copyright of Ben Webb.

Pivotal to the development of dopewars were and are the following:-

Dan Wolf for uncountable numbers of useful suggestions for the structure of the multiplayer game, drawing upon a disturbing knowledge of the drugs world. He also undertook scary amounts of research (i.e. playing the game) to assist with the re-engineering of the MS-DOS version, and plays the game to an unhealthy extent (as is witnessed by his high scores on many dopewars servers).

Phil Davis, Caroline Moore, Katherine Holt and Andrea Elliot-Smith for extensive play testing of early versions of dopewars, despite the large amounts of "real" work which they were supposed to be doing, and despite the many dodgy bugs, as well as for providing suggestions, even if they were often rude. You know who you are.

Owen Walsh and Pete Winn for yet more play testing, and for consequently doing very little research in vastly more important fields...

James Matthews for providing absolutely no useful suggestions, but providing vital assistance with the Officer Bob code.

Mike Meyer for providing several modifications to version 1.4.3, as well as spotting many of his own and my bugs...

Matt Higgins for a couple of patches to version 1.4.4.

Tony Brown for assistance with using dopewars via enforced web proxies.

Leon Breedt for writing a manpage, and creating a Debian package.

Ocelot Mantis for graphics and ideas for improvements.

Tobias Mathes, Slawomir Molenda, Leonard, Quique, Åsmund Skjæveland, Hugo Cisneiros, Eric Steiner, and Bruno Lopes for translating dopewars into other languages.


Last update: 02-06-2003
Valid XHTML 1.1

dopewars-1.5.12/doc/clientplay.html0000644001565000007070000003273007600614142014156 00000000000000 Playing the game: the dopewars client

Playing the game: the dopewars client

The dopewars client is the part of dopewars which most users will encounter most frequently. If the dopewars binary is run without the -s (server) or -c (computer player) options (see command line options) it defaults to running in client mode. The dopewars client handles the interaction between a human player and the dopewars server (but if a dopewars server is not available, a "virtual" server will be run by the client to enable a single-player game to be played).

A brief description of using the client and playing dopewars is given here. These instructions apply to the old-style text-mode client, but the basic game play is similar for the newer graphical client. Bear in mind that both the client and the server you are connecting to can be configured by means of the dopewars configuration files, and so the game may differ radically from what is described here. It is suggested that you familiarise yourself with the game using the default settings before getting too adventurous!

Starting the dopewars client

  • From the command prompt, run the dopewars client with the command
    dopewars
    or to run an "antique" mode game,
    dopewars -a
  • An introduction screen will appear, giving a brief description of the game and version and licensing information. Press any key to clear this.

The main game screen

The game screen is your interface with the dopewars world. At the top of the screen, from left to right, is displayed the game date, the game location (you start in the Bronx), the number of bitches working for you, and the space you have available for drugs. Note that each drug uses up one "space", but some guns may take up more. Your "bitches" are your subordinates - each bitch increases your "space" by 10 (you yourself start with a space of 20) and can carry one gun (you can carry two). Your bitches also take damage for you when in firefights, so it is advantageous to acquire extra bitches during the game.

Below the top line of the screen are three large windows. The one in the top left lists your statistics - your finances, the health of yourself or your bitches, and the number of guns you are carrying. Notice that you start the game with a debt - this will increase, turn by turn, until you pay it off to the Loan Shark. The top right window lists the drugs that you are currently carrying (you start off with none). Below this is a window in which messages from other players (if any) will appear.

Please note that if you are playing in "antique" mode, you do not have "bitches" but instead have a large trenchcoat which can carry 100 drugs. Antique mode also disables the messages window.

Connecting to a dopewars server (or not)

On starting a game of dopewars, the first thing you must do is give yourself a name. This identifies you to the server and to other players. If you are running in single-player or antique mode, the client will then start an internal "virtual" server and immediately start the game.

In other cases, the client will attempt to connect to a dopewars server specified in the configuration file or on the command line (if none is specified, it defaults to the local host). If this connection is successful, the game will then start. Otherwise, you will be given the option to manually choose a different server, obtain the server list from the metaserver and choose one, play a single-player game, or quit, by pressing the C, L, P, or Q keys respectively. If you don't want the client to attempt to connect to a server, this can be set - full details are given in the section on configuration files.

Dealing drugs and moving around

The New York of dopewars is divided into 8 (6 in "antique" mode) locations. At each of these locations, a variety of drugs, with fluctuating prices, are on sale. Not all of the drugs are necessarily on sale at each location all of the time, and the normally gentle fluctuations may be affected by such events as other dealers flooding the market with drugs, or the cops making a big drugs bust (which will drive the price up). On arriving at a new location, you will be told if any of these "special" events have occurred.

The main way to make money in dopewars is to buy and sell drugs, buying cheaply at one location, and then moving ("jetting") to a new location (a process which uses up one "day" or turn), and then selling for a profit at this new location. When you have arrived at a location, you will be told which drugs are being dealt in. You may buy one of these drugs by pressing the "B" key, then pressing the letter for the drug you wish to buy, and then entering the number of this drug you require. Bear in mind that you may not be able to afford or carry these drugs! Selling drugs is similar, on pressing the "S" key. When you are done and wish to "jet" to a new location, press the "J" key and then choose the location number.

If you are at a location where you cannot sell your drugs, you can drop them to free up space in your inventory (with the "D" key). Of course, this does not get you any money, and there is a chance that the cops may catch you in the act and attack you (see below).

Your finances: loans and banks

Buying and selling drugs may make money, but unfortunately you start the game with a debt to the loan shark of $5,000. Every turn this accumulates interest, and counts against your total amount of money at the end of the game (which is used as your high score, so it's quite possible to end with a negative score). To pay off the loan, you must visit the loan shark by jetting to the Bronx. You will be asked if you wish to visit the loan shark - respond by pressing the "Y" key - and then asked how much money you want to give him. Respond by entering the amount of money, without the $ sign or commas, and ended with "k" or "m" as shorthand for "thousand" or "million" if you like (i.e. entering "2.5k" is the same as "2000", which is $2,000).

You can also deposit or withdraw money from the bank, which is also located in the Bronx. This is done in a similar way to paying the loan shark. Putting your money in the bank lets you accumulate interest on it, and prevents it from being stolen if you are mugged (which does occasionally happen). Money in the bank also contributes to your high score at the end of the game.

Law enforcement and why it's a bad thing

When you jet to a new location, one or more "random events" may occur. Usually this is just something such as a drug bust which affects drug prices, but there are a number of other beneficial, useless, or just plain annoying random events. Perhaps the most annoying of these is an encounter with the cops, in the form of Officer Hardass or Bob and their deputies.

When you meet Officer Hardass, you must decide what to do. If you don't have any guns, you must answer Y (yes) or N (no) to the question "Do you run?" If you are lucky, you'll get away - otherwise, the cops may shoot you. The more deputies are accompanying Hardass, the worse the damage is likely to be. If you take enough damage for your health to drop to zero, you will lose a bitch (and, possibly, some drugs and a gun, if the bitch was carrying them). If you have no bitches, you will die, and the game will end! The more successful your drug dealing is (i.e. the more money you have made) the more aggressive the cops will be.

If, on the other hand, you have acquired one or more guns, you can either run ("R" key) or fight ("F"). Guns may be offered to you at bargain prices randomly, or you can visit the gun shop in the Ghetto and buy or sell them. To beat the cops by fighting them, you must kill all the deputies, one by one, and then finally Officer Hardass. Bear in mind that the more guns you have, the more damage you will do to the cops! If you kill Officer Hardass, you can take whatever money you find on his corpse, and if you are lucky a doctor will offer to "sew you up" (i.e. restore your health to 100) for a price.

If, after killing Officer Hardass, you are unlucky enough to meet the cops again later on, they will be lead by his replacement, Officer Bob, who is tougher. If you then kill him too, you'll meet tougher opposition in future - so it's often wise to run from the cops!

If you lose bitches, or simply want to acquire more, you can visit the pub in the Ghetto to hire them, or they may offer their services to you at bargain rates randomly.

Some locations are more heavily policed than others. In addition to being attacked on your travels, you also run a high risk of being shot at by the cops if you drop drugs (dispose of drugs that you can't get any cash for) or if you attack other players.

Multiplayer: interacting with other players

If you log on to a dopewars server, there is the possibility of meeting other players, either human or computer-controlled. When joining a game which already contains other players, they will be listed to you. Other players which join or leave the game once you are playing will announce their presence to you automatically via the "Messages" window.

When in multiplayer mode, you can send a message to all current players by pressing the "T" key from the main drug prices screen, and then typing in your message. To send a private message, use the "P" key and select the player instead. These messages will appear in the Messages window also.

Another new command in multiplayer mode is the list command ("L" key). This will either list the other players in the game, or the list of high scores maintained by the server which you're connected to.

The "G" key activates the "give errand" command. With this you can sack one of your bitches (with the "G" key again), pay one to tip off the cops to one of the other players, or pay one to leave your employment and to join another player and spy on them for you. In any case, if you lose a bitch you may also lose any drugs or guns which they were carrying (remember that each bitch can carry one gun, and increases your inventory - your available space - by 10).

A tip-off means that Officer Hardass or Bob will attack your chosen enemy when they jet to their next location (and then you will get to hear the result of the encounter). A spy, on the other hand, will present himself to the enemy as a bargain bitch (in the same way as normal "bargain bitches" appear). If your enemy accepts the bitch, you will then be able to see everything about the enemy whenever you like, by pressing the "C" key from the main drug prices screen. Unfortunately, there is a chance that your spy may be discovered by your opponent later on...

If, in the course of normal play, you are carrying one or more guns, and you jet to the a location where another player already is, you will be informed of their presence. You can either ignore them completely (with the "E" key) in which case they will never know you were there, or you can attack them with the "A" key. When you attack another player, or another player attacks you, the main screen which normally lists drug prices at the current location is replaced by the fighting screen. You can switch back from this screen to the drug price screen with the "D" key, but note that the "Jet" command is now missing from the drug price screen - you must instead use the "F" key to return to the fight, and conclude it before continuing on your way.

When in a fight with another player, you can choose not to fire back with the "S" key, you can shoot back with the "F" key, or you can run from the fight with the "R" key. Be aware that if you fail to shoot back at your enemy within five seconds, they can fire at you again (otherwise, shots alternate between you and your enemy). If you kill an enemy bitch, you are awarded a bounty from the cops for killing such a dangerous criminal; if you kill an enemy player (after you've killed all of their bitches) you receive their total assets - their cash and bank balance minus any debt. In either case you can loot the body and pick up any guns or drugs which the bitch or player was carrying.


Last update: 15-07-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/aiplayer.html0000644001565000007070000000555307675562413013642 00000000000000 Adding computer-controlled players

Adding computer-controlled players

Multiplayer games of dopewars can be made a little more interesting by introducing computer-controlled, or AI, players. These players will join a dopewars server, and to all intents and purposes will behave like normal human players - they will deal in drugs in an attempt to make a fortune, they will encounter the cops, you can spy on them, and they will shoot at you if you give them the chance!

To start a computer-controlled player, all you need is the standard dopewars binary. Run it as
dopewars -c
and it will attempt to connect to the server and port specified in the configuration files (or the local host, if none is specified). Alternatively, you can specify server and port with suitable command line options. Since an AI player takes its game settings from the server it connects to, no other options in the configuration files will take effect, with the exception of the AITurnPause option, which sets the pause in seconds between turns.

Once started and connected to the server, the AI player will choose a suitable name for itself and start playing. It will continue to play until its game finishes - i.e. it is killed or runs out of time - at which point the program will finish and drop you back to the command prompt. The program will display information to let you know what the AI player is doing within the game as it goes. Note that the program will pause for five seconds (or whatever you have set AITurnPause to be) before jetting to a new location - this is to simulate the time it takes a human player to choose which drugs to buy and to press all the requisite keys; it also gives other players a fighting chance of spotting the computer sitting still in any one location for a few seconds!

If a computer player is attacked by the cops or another player, it will defend itself if it can, and attempt to run if necessary. During normal play it will also attempt to "blend in" with the other players by hurling rather pathetic insults at them... you are free to edit the code of the AI player to give these insults a little more "punch", or email them to me (preferably without actually directing the insults themselves at me!) and I'll add them to the next dopewars release.


Last update: 15-07-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/metaserver.html0000644001565000007070000001531007675562413014201 00000000000000 The dopewars metaserver

The dopewars metaserver

Every dopewars server is different, due to their differing locations and configurations. Thus some centralised system for listing the currently available servers and displaying some sort of comment about the games running on them is necessary, to enable client players to pick the game that most suits them. This is the function of the dopewars metaserver.

Metaserver location

The metaserver is a PHP script which lives at SourceForge. It is accessed by both dopewars servers and clients via TCP connection to port 80, by standard HTTP.

The "old" metaserver

Versions of dopewars prior to 1.5.1 used a different metaserver system, which is now deprecated. Although the old system will continue to run for some time, it will eventually be discontinued, so it is recommended that dopewars servers and clients are upgraded to the latest version.

Using the metaserver from the client

Players who want to use the metaserver to list the currently available servers should go to this link, or just follow the "Active servers" link from the main dopewars web page. It cannot be guaranteed that all the listed servers are functional - they may, for example, have been registered in error, or a server may have crashed since being added to the list - but the list is checked daily for service, and so there is at least a good chance that the servers listed there will be working.

The metaserver, being an ordinary web page, should work happily on most machines which have web access. A problem occurs, however, if your connection to the Web is via an enforced proxy server (i.e. traffic on port 80 from your machine is blocked by firewall). dopewars can be configured to connect via a proxy server without too much difficulty; if your proxy server is at proxy.com on port 8080 then you should add the following lines to your dopewars configuration file:-
MetaServer.ProxyName="proxy.com"
MetaServer.ProxyPort=8080

Using the metaserver from the server

People running servers who do not want their details listed by the metaserver should disable the metaserver comunication of the server with the MetaServer.Active=0 configuration file setting, or the -S command line option. Servers which do register their details can have their accompanying comment set with the MetaServer.Comment configuration file setting.

Each dopewars server notifies the metaserver of its current status, and sends this data on startup and shutdown, and when players leave or join the game. See the server page for more details.

The server, just like the client, may have trouble connecting to the metaserver if you are using a web proxy; see the information above for fixing this problem.

But it's displaying the wrong name!

Once connected to the metaserver, you may find that it displays the IP address of your server and not its domain name, or that it gets the domain name wrong. This is usually because your DNS is not set up to translate your IP into a domain name, or because you have multiple domain names for the one IP, and can be remedied by specifying the hostname with the MetaServer.LocalName variable in your dopewars configuration file. For security reasons, the metaserver will only accept this given name if it in turn maps to your IP address.

On other occasions, the metaserver will mistakenly display the name of your web proxy. In this case, you will need to override the hostname that the metaserver guesses for your machine with one you choose yourself. This is again done by specifying the hostname with the MetaServer.LocalName variable. In order to prevent abuse of this facility, you must obtain a password from the metaserver maintainer to authenticate your chosen hostname. Email the maintainer, giving the exact hostname you want to use (be aware that this is case-sensitive) and you will be given a password. Specify this password with the MetaServer.Password variable in the dopewars configuration file.

For example, if you wish your server to be known as dope-serv.com and you have emailed the maintainer, receiving the password Dope-Auth, then add the following to the dopewars configuration file:-
MetaServer.LocalName="dope-serv.com"
MetaServer.Password="Dope-Auth"

Restart your dopewars server, or send it a SIGUSR1 signal, for changes to these variables to take effect.

But my server has a dynamic IP...

Finally, your server's IP may be resolved happily, but you may have a connection to the internet which assigns you a dynamic IP. Consider what happens if your connection is broken before the dopewars server exits; the metaserver will list the IP of the "old" server, and you will now have no way of removing that entry when your connection comes back up, as your IP will be different. In this case, you can email the metaserver maintainer, and specify a blank MetaServer.LocalName variable. You will again receive a MetaServer.Password variable (see above), which the metaserver will use to identify "your" server; now, when your internet connection is restored, the server registration with the "new" IP will automatically replace the "old" one.


Last update: 15-07-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/dopewars.6.in0000644001565000007070000000457607675562413013472 00000000000000.TH DOPEWARS 6 .SH NAME dopewars \- drug dealing game .SH SYNOPSIS .B dopewars .I "[OPTIONS] ..." .SH "DESCRIPTION" .B dopewars is a ncurses- and GTK- based drug dealing game based in New York, with you as the drug dealer striving to become filthy rich. It supports network play and single-player games. .SH OPTIONS Valid commandline options: .TP \fB\-b\fR, \fB\-\-no\-color\fR, \fB\-\-no\-colour\fR "black and white", i.e. do not use pretty colours .TP \fB\-n\fR, \fB\-\-single\-player\fR Do not connect to any available dopewars servers .TP \fB\-a\fR, \fB\-\-antique\fR Antique dopewars; stick as close as possible to the functionality of the original version. .TP \fB\-f\fR, \fB\-\-scorefile\fR=\fIFILE\fR Specify a file to use as high score table (defaults to @DPDATADIR@/dopewars.sco) .TP \fB\-o\fR, \fB\-\-hostname\fR=\fIADDR\fR Specify a multiplayer hostname .TP \fB\-s\fR, \fB\-\-public\-server\fR Run in server mode. (Note: see the \fB\-A\fR option for configuring a server once it's running.) .TP \fB\-S\fR, \fB\-\-private\-server\fR Run as a "private" server (do not report to the metaserver) .TP \fB\-p\fR, \fB\-\-port\fR=\fIPORT\fR Specify the network port to use .TP \fB\-g\fR, \fB\-\-config\-file\fR=\fIFILE\fR Specify the pathname of a dopewars configuration file .TP \fB\-r\fR, \fB\-\-pidfile\fR=\fIFILE\fR Specify the pathname of a PID file to maintain while running as a server .TP \fB\-l\fR, \fB\-\-logfile\fR=\fIFILE\fR Write log messages to the given file (rather than standard output) .TP \fB\-A\fR, \fB\-\-admin\fR Connect to a server running on localhost, for administration .TP \fB\-c\fR, \fB\-\-ai\-player\fR Create and run a computer player .TP \fB\-w\fR, \fB\-\-windowed\-client\fR Force the use of a graphical client (GTK+ or Win32) .TP \fB\-t\fR, \fB\-\-text\-client\fR Force the use of a text-mode (curses) client (by default, a windowed client is used when possible) .TP \fB\-P\fR, \fB\-\-player\fR=\fINAME\fR Sets the default player name .TP \fB\-C\fR, \fB\-\-convert\fR=\fIFILE\fR Convert a high score file used by dopewars-1.5.1 or earlier to the format used by more recent versions .TP \fB\-h\fR, \fB\-\-help\fR Display a help screen .TP \fB\-v\fR, \fB\-\-version\fR Output version information and exit. .SH AUTHOR This manual page was written by Leon Breedt , for the Debian GNU/Linux system (but may be used by others). Additional updates by Ben Webb . dopewars-1.5.12/doc/configfile.html0000644001565000007070000007504510236203007014116 00000000000000 dopewars configuration files

dopewars configuration files

A dopewars server, or a client (in single-player mode) can be heavily configured by the means of dopewars configuration files. Clients used to connect to multiplayer servers can also be configured by the same means, but almost all of these settings will be overridden on connecting to the server (although the server location settings Port and Server are still useful).

Example configuration files:

The order of making dopewars settings is as follows:-

  1. The global configuration file (if present) /etc/dopewars
  2. The user-specific file (if present) ~/.dopewars
  3. (Windows only) The file dopewars-config.txt in the current directory
  4. Options specified on the command line

Settings in a configuration file can set numbers, booleans, strings or "string lists". A numerical value is set with a command such as Port=7902 (which sets the TCP port for mulitplayer connections to 7902). Booleans are "on/off" or "true/false" variables, set with commands such as Sanitized=TRUE (which removes drug references from random events in the game).

String (text) values are set with commands such as BankName='the bank' (which sets the name of the bank). Notice that string values must be enclosed in quotes. Strings in double quotes understand escapes such as "\t"; strings in single quotes do not treat backslash characters specially, and so should be used for Windows pathnames.

A string list is used for setting an array of strings; for example SubwaySaying = { "Saying 1", "Saying 2", "Saying 3" } sets up three "subway sayings". A string list consists of a list of strings, separated by commas and wrapped with braces - { and } characters. Single strings in a string list can be replaced individually - for example SubwaySaying[3]="Third Saying" replaces the third string (which was previously "Saying 3"). The number of strings in the list "List" can be set with the variable NumList - for example, NumSubwaySaying=4 dimensions the SubwaySaying list to contain four strings.

Whitespace and line breaks are ignored in the configuration files; comments can be used, and extend from a '#' character to the end of the current line, or are enclosed by C-style /* and */ symbols. See the example configuration file for a demonstration. Valid configuration file settings are listed below. The examples given generally reproduce the default behaviour; obviously you are free to replace the parts in italics to customise your own server and client.

General configuration: file and server locations

Port=7902
Tells the dopewars client to look for a server on port 7902, and tells the dopewars server to bind to port 7902 and wait for connections. This can be overridden with the -p command line option.
Server="localhost"
Tells the dopewars client to look for a server at the address localhost. Dotted quad (e.g. 127.0.0.1) addresses may also be used here. If this variable is set to one of the three "special" names (MetaServer), (Prompt), or (Single) (including the brackets) then the client will not connect to a server but instead list the servers available at the metaserver, prompt the user to enter a server name and port, or play in single player mode, respectively. This option can be overridden with the -o command line option (but be sure to protect the brackets from the shell if you use one of the "special" names). Note that this only changes the name of the server that the client connects to - if you're running your own server it does not change the address that it binds to. For that, see the BindAddress variable.
ServerMOTD="Welcome to my dopewars server"
When running a server, any client that connects displays the welcome "message of the day" "Welcome to my dopewars server". This can be used, for example, to inform users of any special features that the server has.
BindAddress="localhost"
Forces your dopewars server (if you run one) to accept network connections only on the localhost network interface. (This can be a host name, or an IP address.) If this is left blank (the default) then the server will accept connections coming in on any valid network interface.
Socks.Active=FALSE
Instructs the dopewars client to connect directly to the given server, without using an intermediate SOCKS server. If this is set to TRUE, all connections go via the SOCKS server. By default, SOCKS is not used for metaserver communications - see the MetaServer.UseSocks variable. N.B. You cannot run a dopewars server behind a SOCKS server, due to limitations in the SOCKS protocol.
Socks.NumUID=FALSE
When connecting to a SOCKS version 4 server, the protocol demands that the name of the current user be sent for simple authentication; the SOCKS server then queries identd on your machine to check if you are who you say you are. dopewars complies with this requirement if this variable is set to FALSE. However, some Unix implementations of identd send numeric user IDs rather than user names; dopewars will do the same if you set this variable to TRUE. (N.B. Not supported on Windows systems.)
Socks.User="fred"
Overrides the username detection (discussed above) completely, and instead sends the user name "fred" to a SOCKS4 server. If this is set to the blank string ("") - the default - this does not happen.
Socks.Name="socks"
If using SOCKS, sets the hostname of the SOCKS server to connect to to be "socks".
Socks.Port=1080
Connects to the SOCKS server on TCP port 1080.
Socks.Version=4
Uses SOCKS version 4. Version 5 is also supported; SOCKS5 servers support username/password authentication, unlike SOCKS4.
Socks.Auth.User=""
If using SOCKS5 with user/password authentication, with the server or AI player (which can both run unattended) then setting this variable to something other than "" will enable them to authenticate themselves with the SOCKS server, provided Socks.Auth.Password is also set. (The game clients prompt the user for a username and password on each connect instead.)
Socks.Auth.Password=""
The corresponding password for Socks.Auth.User, above.
HiScoreFile="/var/lib/dopewars.sco"
Tells the dopewars server (or the client, if running in single-player mode, not connected to a server) to use the file /var/lib/dopewars.sco to store high scores. This can be overridden with the -f command line option. (N.B. This option cannot be used to get dopewars to open a high score file with privilege when running setuid/setgid; all privileges are dropped by this point for security.)
MinToSysTray=TRUE
Rather than behaving as a normal window, the dopewars server window adds an icon to the Windows System Tray, and, when the window is minimized, it vanishes completely. Clicking on the System Tray icon will restore the window to its normal state. If FALSE, the System Tray is not used. Only supported on Windows systems.
Daemonize=TRUE
When the Unix server is successfully started, it immediately uses the fork() function to become a daemon, running in the background. Since this can cause problems with debugging, or with other programs that need to keep track of the process, setting Daemonize to FALSE will run the program in the foreground. Only supported on Unix systems.
WebBrowser=/usr/bin/mozilla
Sets the program used to display website URLs. This is used only by the Unix version, as under Windows the standard mechanism for associating file types with applications is used.
ConfigVerbose=FALSE
Prints extra feedback information when processing the config. file if set to TRUE; this only takes effect, of course, after the ConfigVerbose variable is set, and then remains in force until it is reset again.

Metaserver configuration

MetaServer.Active=TRUE
Tells the dopewars server to report its status to the metaserver. If TRUE is replaced by FALSE the server will not report to the metaserver. This setting, if set to TRUE, can be overridden by the -S command line option.
MetaServer.Name="dopewars.sourceforge.net"
Tells dopewars that the metaserver is located at dopewars.sourceforge.net. See the metaserver page, and below, for information about connecting to the dopewars metaserver via a proxy web server.
MetaServer.Port=80
Instructs dopewars that the metaserver can be found on TCP port 80. This is the standard HTTP port for Web access. (You shouldn't need to change this, even if you connect via a proxy.)
MetaServer.ProxyName="proxy.com"
Sends all requests to the metaserver via the web proxy at proxy.com. If this is set to a blank string (the default) then the connection to the metaserver is made directly.
MetaServer.ProxyPort=8080
Connects to the web proxy on port 8080. (It then connects to the metaserver on the port specified by MetaServer.Port.) This variable is ignored if MetaServer.ProxyName is blank.
MetaServer.Path="/metaserver.php"
Tells dopewars that the PHP script on the metaserver, for server registration (server mode) or listing the available servers (client mode) is /metaserver.php.
MetaServer.Comment="dopewars server"
Sets the comment for your server, which appears on the list of servers maintained by the metaserver, to dopewars server.
MetaServer.LocalName="dope-serv.com"
Tells the metaserver that the preferred hostname of your dopewars server machine is dope-serv.com. By default, the metaserver tries to ascertain your domain name from the connection, and this can fail if you connect via a proxy server, or if DNS does not properly translate your IP address to your domain name. You must also set MetaServer.Password to the password given to you by the metaserver maintainer for this to work. A blank LocalName can also be used with a suitable password to identify "your" server, even if its IP changes. See the metaserver page for more details.
MetaServer.Password="auth"
Uses the password auth to authenticate your dopewars server's hostname (see MetaServer.LocalName above) with the metaserver.
MetaServer.UseSocks=FALSE
Even if "Socks.Active" is TRUE, do not use SOCKS for metaserver communication - connect directly to the metaserver or proxy.
MetaServer.Auth.User=""
If the metaserver webpage is on a restricted access server (i.e. it requires HTTP Basic authentication), and you wish to connect with the server or AI player (which can both run unattended) then setting this variable to something other than "" will enable them to authenticate themselves, provided MetaServer.Auth.Password is also set. (The game clients prompt the user for a username and password on each connect instead.)
MetaServer.Auth.Password=""
The corresponding password for MetaServer.Auth.User, above.
MetaServer.Proxy.User=""
In a similar way to MetaServer.Auth.User, above, this enables a dopewars server or AI player to authenticate itself with a web proxy.
MetaServer.Proxy.Password=""
The corresponding password for MetaServer.Proxy.User, above.

Basic configuration: places in the game

NumLocation=8
Sets the number of locations in the game to 8. Note that if too many locations are specified, the client may not be able to display them all!
Location[4].Name="Manhattan"
Sets the name of the 4th location in the game to Manhattan. The index within the square brackets can range from 1 to whatever NumLocation is set to above, or an error will be reported.
Location[4].PolicePresence=90
Sets the police presence in the 4th location to 90%. This affects how likely it is for the police to attack players at each location when arriving, dropping drugs, or attacking other players.
Location[4].MinDrug=4
Sets the minimum possible number of different drugs that will be on sale to players in location number 4 to 4.
Location[4].MaxDrug=10
Sets the maximum possible number of different drugs that will be on sale to players in location number 4 to 10.
LoanShark=1
Makes the loan shark pop up when players visit location number 1. To stop the loan shark from appearing at all (making it rather difficult to pay off debts) set this number to something which is not a valid location, such as 0 (zero).
Bank=1
Makes the bank appear when a player visits location 1 (the Bronx).
GunShop=2
Players can visit the gun shop in location number 2 (the Ghetto).
RoughPub=2
Players can visit the rough pub to hire bitches in location number 2.
LoanSharkName="the Loan Shark"
The loan shark is known by the name "the Loan Shark" during the game.
BankName="the bank"
The bank is known by the name "the bank" during the game.
GunShopName="Dan's House of Guns"
The gun shop is known by the name "Dan's House of Guns" during the game.
RoughPubName="the pub"
The pub is known by the name "the pub" during the game.

Basic configuration: drug prices

NumDrug=12
Sets there to be 12 different types of drug in the game.
Drug[6].Name="MDA"
Sets the name of the 6th drug to be MDA.
Drug[6].MinPrice=1500
Sets the usual minimum price of the 6th drug (in the absence of "special events" such as drug busts) to be $1,500.
Drug[6].MaxPrice=4400
Sets the usual maximum price of drug number 6 to be $4,400.
Drug[1].Cheap=TRUE
Tells dopewars that drug 1 (by default, Acid) can occasionally be especially cheap (if this is set to FALSE, this does not happen).
Drug[1].CheapStr="The market is flooded with cheap home-made acid!"
Sets the message to display to alert players that drug number 1 is especially cheap.
Drugs.CheapDivide=4
Tells dopewars that whenever a drug is "specially" cheap, divide the normal price distribution (between Drug[x].MinPrice and Drug[x].MaxPrice) by 4.
Drug[4].Expensive=TRUE
Tells dopewars that drug 4 (normally Heroin) can occasionally be particuarly expensive (FALSE cancels this).
Drugs.ExpensiveStr1="Cops made a big %tde bust! Prices are outrageous!"
Sets the string that is displayed when any drug is particularly expensive. This is similar to a standard C-style format string - i.e. the %tde is replaced by the name of the drug which is expensive. (See the Internationalization page for further information on this notation.) This string is displayed 50% of the time for expensive drugs.
Drugs.ExpensiveStr2="Addicts are buying %tde at ridiculous prices!"
Sets the string which is used for expensive drugs the other 50% of the time.
Drugs.ExpensiveMultiply=4
Tells dopewars that whenever a drug is "specially" expensive, multiply the normal price distribution (between Drug[x].MinPrice and Drug[x].MaxPrice) by 4.

Basic configuration: guns and fighting

NumGun=4
Configures the game to have 4 guns available to players at the gun shop. (If you set this to zero, you will be unable to buy guns, you will never be attacked by the cops, and you will be unable to shoot at other players.)
Gun[3].Name="Ruger"
Sets the name of the 3rd gun to Ruger.
Gun[3].Price=2900
Sets the price in the gun shop of the 3rd gun to $2,900. Guns offered "on the street" (i.e. by random events) will be priced at 10% of the value set here.
Gun[3].Space=4
Tells dopewars that gun number 3 uses 4 spaces in the inventory - i.e. carrying one of these guns uses the same spaces as 4 drugs.
Gun[3].Damage=4
Defines gun number 3 to do up to 4 points of damage.
PlayerArmour=100
Sets the percentage armour rating of each player to 100 - this defines the amount of health that you lose when you are successfully hit. If 100, you lose the same number of health points as the gun's damage. If more than 100, you lose fewer health points, and if less than 100, you lose more health points than the gun's damage. This rating applies only when you have no bitches.
BitchArmour=50
Sets the percentage armour rating of each bitch to 50.
NumCop=3
Configures the game to have 3 cops. If you kill the first one, you will later be attacked by the second one, and so on. (The last cop is 'undead' and will return even if you kill him.) If you set this to zero, then you will never be attacked by the cops.
Cop[1].Name=Officer Hardass
Names the first cop to attack you "Officer Hardass".
Cop[1].DeputyName=deputy
Names a solitary deputy accompanying the first cop "deputy".
Cop[1].DeputiesName=deputies
Names more than one deputy accompanying the first cop "deputies".
Cop[1].Armour=4
Sets the armour rating of the first cop to 4%.
Cop[1].DeputyArmour=3
Sets the armour rating of the first cop's deputies to 3%.
Cop[1].AttackPenalty=30
When attacking another player, whether you successfully hit them depends on whether your attack rating is greater than their defence rating, which are generally numbers between 0 and 100 (think of them as percentages). This penalises the first cop (and his deputies) by 30% when attacking you.
Cop[1].DefendPenalty=30
Penalises the first cop (and his deputies) by 30% when defending against a player.
Cop[1].MinDeputies=2
The first cop will be accompanied by a minimum of 2 deputies.
Cop[1].MaxDeputies=8
The first cop will be accompanied by a maximum of 8 deputies.
Cop[1].GunIndex=0
The first cop, and his deputies, will carry gun number 0 (zero-based).
Cop[1].CopGun=1
The first cop will carry 1 gun.
Cop[1].DeputyGun=1
The first cop's deputies will each carry 1 gun.

Advanced configuration

DebtInterest=10
Increases your debt to the loan shark by 10% every turn. Negative numbers can also be used here, to have the debt shrink every day.
BankInterest=5
Adds interest at a rate of 5% per turn to your bank balance.
Currrency.Symbol=$
Uses the dollar ($) symbol to display all prices of drugs, guns, etc.
Currrency.Prefix=TRUE
Prints Currency.Symbol in front of any price - e.g. "$1,000"; if FALSE, prints it after the price - e.g. "1,000 $".
Log.File=dopewars.log
By default, server log messages are printed to the screen (standard output). By setting this variable, they will instead be written to the file dopewars.log.
Log.Level=2
Most server log messages are given a priority level, from 0 (most urgent) to 5 (most verbose). This setting instructs the server only to log messages from level 0 up to 2, inclusive.
Log.Timestamp="[%H:%M:%S] "
Prefixes all log messages with a timestamp of the form (e.g.) [16:34:49]. This is a string which is passed as input to the strftime(3) function. If this is set to a blank string, then no timestamp is added to log messages.
NumTurns=31
Defines the game to end after 31 "days" or turns. If this is set to 0 (zero) the game never ends for a player, unless they quit or are killed.
Sanitized=FALSE
If set to TRUE, this "sanitizes" the game by removing all drug references from the random events. To completely remove drug references, of course, you must also alter the drug names above.
DrugSortMethod=1
Tells the dopewars client how to sort the names of available drugs at each location for display. The default, 1, sorts them in alphabetical order by their names. The choices are as follows:-
  • 1. Sort in forward alphabetical order by name
  • 2. Sort in reverse alphabetical order by name
  • 3. Sort in order of current price, cheapest first
  • 4. Sort in order of current price, most expensive first
FightTimeout=5
If a player in a firefight with another player fails to fire back within 5 seconds, lets his/her enemy have another shot. If this is set to 0 (zero) timeouts are disabled, and players may take as long as they like to fire back.
IdleTimeout=14400
If a connected player in a game does nothing to interact with the server for 14400 seconds, he/she will be automatically disconnected.
ConnectTimeout=300
If a player takes more than 300 seconds to complete the process of connecting or disconnecting to the server, the server will sever the connection.
MaxClients=20
Prevents more than 20 clients from connecting to the server at any one time.
AITurnPause=5
Makes computer-controlled client players run from this machine (not necessarily AI players that connect to a server run on this machine) wait 5 seconds between moving from location to location - i.e. a turn takes at least 5 seconds.
StartCash=2000
Each player will start the game with $2,000 in cash.
StartDebt=5000
Each player will start the game with a debt to the loan shark of $5,000.
Names.Bitch="bitch"
Sets the word used to describe a single "bitch" in the game. Bitch, gun and drug names are automatically capitalised where necessary by the dopewars code.
Names.Bitches="bitches"
Sets the word used to describe two or more "bitches".
Names.Gun="gun"
Sets the word used to describe a single "gun" (for example, it could be replaced by "knife").
Names.Guns="guns"
Sets the word used to describe two or more "guns".
Names.Drug="drug"
Sets the word used to describe a single "drug" (for example, it could be replaced by "candy bar" or something similarly innocuous).
Names.Drugs="drugs"
Sets the word used to describe two or more "drugs".
Names.Date="%m-%d-%Y"
Sets the format string (which is passed to the strftime() function) for displaying the current game date. This example (the default) displays the date in MM-DD-YYYY format, as is commonplace in the US. Only date (not time) formats can be used, and the special format %T is used to display the current game turn.
StartDate.Day="1"
Sets the day of the month on which the game starts to 1.
StartDate.Month="12"
Sets the month in which the game starts to 12 (i.e. December).
StartDate.Year="1984"
Sets the year in which the game starts to 1984.
Prices.Spy=20000
Sets the price to pay a bitch to spy on another player to be $20,000.
Prices.Tipoff=10000
Sets the price to pay a bitch to tip off the cops to another player to be $10,000.
Bitch.MinPrice=50000
Sets the minimum price for a bitch at the Rough Pub to be $50,000. Note that prices for bitches "on the street" (i.e. those that are offered by random events) are produced by dividing the normal bitch price distribution by 10.
Bitch.MaxPrice=150000
Sets the maximum price for a bitch to $150,000.
SubwaySaying= { "First saying", "Second saying", "Third saying" }
Sets the list of things which the lady you sometimes meet on the subway says to you; one of "First saying", "Second saying" and "Third saying" will be displayed each time. Any previous sayings will be erased. Note that individual sayings can be overwritten by appending an array suffix to the variable name - for example, to replace "Third saying" with "3rd saying" the following command would suffice:-
SubwaySaying[3]="3rd saying"
NumSubwaySaying=5
Sets there to be 5 distinct things that the lady on the subway says to you. If this number is greater than the old number of sayings, the newly added sayings will be blank; if it is smaller, the sayings that are now beyond the end of the list will be deleted. If set to zero, the lady will be mercifully silent.
Playing= { "Song 1", "Song 2", "Song 3" }
Sets the list of things which you can sometimes hear playing while jetting; one of "Song 1", "Song 2" or "Song 3" will be displayed. See the help for SubwaySaying for more details.
NumPlaying=4
Sets there to be 4 distinct things which you can sometimes hear playing. (Set this to zero to disable this feature.)
StoppedTo= { "have a beer", "smoke a joint", "smoke a cigar", "smoke a Djarum", "smoke a cigarette" }
Sets the list of things which you sometimes stop to do while jetting; see SubwaySaying for more details. (Set this to zero to disable this feature.)
NumStoppedTo=5
Sets there to be 5 distinct things which you can stop to do.
DrugValue=TRUE
If TRUE, then the server will keep track of the price you paid for any drugs, and clients will display this information if available.
Sounds.FightHit="hit.wav"
Plays the sound file "hit.wav" when you fire a gun and hit your target. The sound must be installed on your system, and you must be using a functioning sound system, in order to hear anything. Other sounds that can be configured in the same way are: FightMiss, FightReload, Jet, TalkToAll, TalkPrivate, JoinGame, and LeaveGame.

Special configuration file commands

include "foo"
Reads in the additional configuration file, "foo".
encoding "UTF-8"
Specifies that any text following this directive (in this configuration file only) is in "UTF-8" encoding. This directive is only supported if dopewars is built on a Unix system and linked against GLib version 2. If unspecifed, then it will be assumed that your configuration files are in the locale's default encoding - e.g. ISO-8859-1 for C or POSIX locales, ISO-8859-2 for pl_PL, ISO-8859-15 for es_ES@euro, or UTF-8 for en_GB.UTF-8.

Last update: 11-08-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/example-igneous0000644001565000007070000004006110236203007014136 00000000000000ServerMOTD = "Welcome All, Play for as long as you like. !- MAKE SURE TO PAY OFF YOUR DEBT NOW -!" Port = 7902 MetaServer.Port = 80 MetaServer.ProxyPort = 0 MetaServer.Comment = "Igneous\'s MOD" NumTurns = 0 NumLocation = 87 NumCop = 4 NumGun = 17 NumDrug = 25 StartCash = 100001 StartDebt = 1 Location[1].Name = "Albany" Location[2].Name = "Albion" Location[3].Name = "Auburn" Location[4].Name = "Avon" Location[5].Name = "Babylon" Location[6].Name = "Bayport" Location[7].Name = "Brooklyn" Location[8].Name = "Bronx" Location[9].Name = "Buffalo" Location[10].Name = "Cato" Location[11].Name = "Central Park" Location[12].Name = "Coney Island" Location[13].Name = "Corning" Location[14].Name = "Davenport" Location[15].Name = "Dobbs Ferry" Location[16].Name = "Dryden" Location[17].Name = "Durham" Location[18].Name = "Eden" Location[19].Name = "Elmont" Location[20].Name = "Endicott" Location[21].Name = "Essex" Location[22].Name = "Fonda" Location[23].Name = "Franklin" Location[24].Name = "Freeport" Location[25].Name = "Fulton" Location[26].Name = "Geneva" Location[27].Name = "Genoa" Location[28].Name = "Glendale" Location[29].Name = "Grand Island" Location[30].Name = "Hempstead" Location[31].Name = "Henrietta" Location[32].Name = "Hunter" Location[33].Name = "Hyde Park" Location[34].Name = "Inwood" Location[35].Name = "Irvington" Location[36].Name = "Island Park" Location[37].Name = "Ithaca" Location[38].Name = "Jackson Heights" Location[39].Name = "Jeffersonville" Location[40].Name = "Johnstown" Location[41].Name = "Kings Park" Location[42].Name = "Knox" Location[43].Name = "Lake Placid" Location[44].Name = "Little York" Location[45].Name = "Long Island" Location[46].Name = "Long Beach" Location[47].Name = "Manhattan" Location[48].Name = "Middletown" Location[49].Name = "Mumford" Location[50].Name = "Murray Isle" Location[51].Name = "Nassau" Location[52].Name = "New York" Location[53].Name = "Northport" Location[54].Name = "Ocean Beach" Location[55].Name = "Olive" Location[56].Name = "Ozone Park" Location[57].Name = "Oxford" Location[58].Name = "Paradox" Location[59].Name = "Penn Yan" Location[60].Name = "Putnam Valley" Location[61].Name = "Queens" Location[62].Name = "Ridgemont" Location[63].Name = "Roscoe" Location[64].Name = "Rye" Location[65].Name = "Seneca Falls" Location[66].Name = "Staten Island" Location[67].Name = "Suffern" Location[68].Name = "Syracuse" Location[69].Name = "Ticonderoga" Location[70].Name = "Troy" Location[71].Name = "Tuxedo" Location[72].Name = "Ulysses" Location[73].Name = "Union Springs" Location[74].Name = "Upton" Location[75].Name = "Utica" Location[76].Name = "Valhalla" Location[77].Name = "Verona" Location[78].Name = "Victory Mills" Location[79].Name = "Vista" Location[80].Name = "Webster" Location[81].Name = "Westport" Location[82].Name = "Woodmere" Location[83].Name = "Wyandanch" Location[84].Name = "York" Location[85].Name = "Yorktown Heights" Location[86].Name = "Youngstown" Location[87].Name = "Yulan" Location[1].PolicePresence = 86 Location[2].PolicePresence = 9 Location[3].PolicePresence = 85 Location[4].PolicePresence = 100 Location[5].PolicePresence = 45 Location[6].PolicePresence = 14 Location[7].PolicePresence = 15 Location[8].PolicePresence = 10 Location[9].PolicePresence = 60 Location[10].PolicePresence = 6 Location[11].PolicePresence = 15 Location[12].PolicePresence = 20 Location[13].PolicePresence = 23 Location[14].PolicePresence = 88 Location[15].PolicePresence = 4 Location[16].PolicePresence = 19 Location[17].PolicePresence = 93 Location[18].PolicePresence = 10 Location[19].PolicePresence = 2 Location[20].PolicePresence = 45 Location[21].PolicePresence = 100 Location[22].PolicePresence = 2 Location[23].PolicePresence = 32 Location[24].PolicePresence = 7 Location[25].PolicePresence = 40 Location[26].PolicePresence = 45 Location[27].PolicePresence = 12 Location[28].PolicePresence = 1 Location[29].PolicePresence = 22 Location[30].PolicePresence = 9 Location[31].PolicePresence = 14 Location[32].PolicePresence = 50 Location[33].PolicePresence = 17 Location[34].PolicePresence = 4 Location[35].PolicePresence = 2 Location[36].PolicePresence = 15 Location[37].PolicePresence = 8 Location[38].PolicePresence = 25 Location[39].PolicePresence = 10 Location[40].PolicePresence = 14 Location[41].PolicePresence = 13 Location[42].PolicePresence = 100 Location[43].PolicePresence = 4 Location[44].PolicePresence = 2 Location[45].PolicePresence = 60 Location[46].PolicePresence = 80 Location[47].PolicePresence = 60 Location[48].PolicePresence = 30 Location[49].PolicePresence = 3 Location[50].PolicePresence = 50 Location[51].PolicePresence = 4 Location[52].PolicePresence = 100 Location[53].PolicePresence = 30 Location[54].PolicePresence = 20 Location[55].PolicePresence = 10 Location[56].PolicePresence = 100 Location[57].PolicePresence = 30 Location[58].PolicePresence = 14 Location[59].PolicePresence = 50 Location[60].PolicePresence = 30 Location[61].PolicePresence = 70 Location[62].PolicePresence = 7 Location[63].PolicePresence = 20 Location[64].PolicePresence = 40 Location[65].PolicePresence = 5 Location[66].PolicePresence = 100 Location[67].PolicePresence = 40 Location[68].PolicePresence = 30 Location[69].PolicePresence = 1 Location[70].PolicePresence = 4 Location[71].PolicePresence = 14 Location[72].PolicePresence = 5 Location[73].PolicePresence = 5 Location[74].PolicePresence = 20 Location[75].PolicePresence = 14 Location[76].PolicePresence = 10 Location[77].PolicePresence = 20 Location[78].PolicePresence = 10 Location[79].PolicePresence = 1 Location[80].PolicePresence = 5 Location[81].PolicePresence = 10 Location[82].PolicePresence = 50 Location[83].PolicePresence = 22 Location[84].PolicePresence = 1 Location[85].PolicePresence = 1 Location[86].PolicePresence = 20 Location[87].PolicePresence = 55 Location[1].MinDrug = 7 Location[2].MinDrug = 3 Location[3].MinDrug = 9 Location[4].MinDrug = 19 Location[5].MinDrug = 9 Location[6].MinDrug = 18 Location[7].MinDrug = 10 Location[8].MinDrug = 7 Location[9].MinDrug = 3 Location[10].MinDrug = 12 Location[11].MinDrug = 6 Location[12].MinDrug = 6 Location[13].MinDrug = 3 Location[14].MinDrug = 14 Location[15].MinDrug = 8 Location[16].MinDrug = 13 Location[17].MinDrug = 20 Location[18].MinDrug = 10 Location[19].MinDrug = 2 Location[20].MinDrug = 12 Location[21].MinDrug = 20 Location[22].MinDrug = 2 Location[23].MinDrug = 5 Location[24].MinDrug = 8 Location[25].MinDrug = 9 Location[26].MinDrug = 12 Location[27].MinDrug = 4 Location[28].MinDrug = 1 Location[29].MinDrug = 4 Location[30].MinDrug = 19 Location[31].MinDrug = 4 Location[32].MinDrug = 5 Location[33].MinDrug = 12 Location[34].MinDrug = 2 Location[35].MinDrug = 10 Location[36].MinDrug = 3 Location[37].MinDrug = 2 Location[38].MinDrug = 10 Location[39].MinDrug = 4 Location[40].MinDrug = 12 Location[41].MinDrug = 4 Location[42].MinDrug = 24 Location[43].MinDrug = 8 Location[44].MinDrug = 1 Location[45].MinDrug = 19 Location[46].MinDrug = 10 Location[47].MinDrug = 20 Location[48].MinDrug = 10 Location[49].MinDrug = 1 Location[50].MinDrug = 18 Location[51].MinDrug = 12 Location[52].MinDrug = 25 Location[53].MinDrug = 12 Location[54].MinDrug = 20 Location[55].MinDrug = 1 Location[56].MinDrug = 10 Location[57].MinDrug = 20 Location[58].MinDrug = 12 Location[59].MinDrug = 20 Location[60].MinDrug = 10 Location[61].MinDrug = 13 Location[62].MinDrug = 3 Location[63].MinDrug = 20 Location[64].MinDrug = 2 Location[65].MinDrug = 10 Location[66].MinDrug = 25 Location[67].MinDrug = 4 Location[68].MinDrug = 10 Location[69].MinDrug = 10 Location[70].MinDrug = 10 Location[71].MinDrug = 20 Location[72].MinDrug = 10 Location[73].MinDrug = 10 Location[74].MinDrug = 5 Location[75].MinDrug = 20 Location[76].MinDrug = 20 Location[77].MinDrug = 14 Location[78].MinDrug = 10 Location[79].MinDrug = 5 Location[80].MinDrug = 10 Location[81].MinDrug = 15 Location[82].MinDrug = 14 Location[83].MinDrug = 21 Location[84].MinDrug = 10 Location[85].MinDrug = 10 Location[86].MinDrug = 15 Location[87].MinDrug = 20 Location[1].MaxDrug = 13 Location[2].MaxDrug = 8 Location[3].MaxDrug = 18 Location[4].MaxDrug = 24 Location[5].MaxDrug = 18 Location[6].MaxDrug = 18 Location[7].MaxDrug = 20 Location[8].MaxDrug = 12 Location[9].MaxDrug = 7 Location[10].MaxDrug = 12 Location[11].MaxDrug = 12 Location[12].MaxDrug = 12 Location[13].MaxDrug = 8 Location[14].MaxDrug = 17 Location[15].MaxDrug = 10 Location[16].MaxDrug = 13 Location[17].MaxDrug = 24 Location[18].MaxDrug = 10 Location[19].MaxDrug = 4 Location[20].MaxDrug = 24 Location[21].MaxDrug = 25 Location[22].MaxDrug = 2 Location[23].MaxDrug = 10 Location[24].MaxDrug = 10 Location[25].MaxDrug = 14 Location[26].MaxDrug = 20 Location[27].MaxDrug = 6 Location[28].MaxDrug = 3 Location[29].MaxDrug = 12 Location[30].MaxDrug = 22 Location[31].MaxDrug = 4 Location[32].MaxDrug = 10 Location[33].MaxDrug = 12 Location[34].MaxDrug = 3 Location[35].MaxDrug = 15 Location[36].MaxDrug = 5 Location[37].MaxDrug = 9 Location[38].MaxDrug = 20 Location[39].MaxDrug = 6 Location[40].MaxDrug = 13 Location[41].MaxDrug = 10 Location[42].MaxDrug = 25 Location[43].MaxDrug = 15 Location[44].MaxDrug = 10 Location[45].MaxDrug = 20 Location[46].MaxDrug = 24 Location[47].MaxDrug = 20 Location[48].MaxDrug = 11 Location[49].MaxDrug = 5 Location[50].MaxDrug = 19 Location[51].MaxDrug = 12 Location[52].MaxDrug = 25 Location[53].MaxDrug = 20 Location[54].MaxDrug = 20 Location[55].MaxDrug = 19 Location[56].MaxDrug = 12 Location[57].MaxDrug = 25 Location[58].MaxDrug = 12 Location[59].MaxDrug = 20 Location[60].MaxDrug = 12 Location[61].MaxDrug = 25 Location[62].MaxDrug = 9 Location[63].MaxDrug = 24 Location[64].MaxDrug = 25 Location[65].MaxDrug = 25 Location[66].MaxDrug = 25 Location[67].MaxDrug = 10 Location[68].MaxDrug = 14 Location[69].MaxDrug = 12 Location[70].MaxDrug = 10 Location[71].MaxDrug = 22 Location[72].MaxDrug = 19 Location[73].MaxDrug = 17 Location[74].MaxDrug = 9 Location[75].MaxDrug = 24 Location[76].MaxDrug = 20 Location[77].MaxDrug = 20 Location[78].MaxDrug = 10 Location[79].MaxDrug = 25 Location[80].MaxDrug = 22 Location[81].MaxDrug = 22 Location[82].MaxDrug = 21 Location[83].MaxDrug = 23 Location[84].MaxDrug = 20 Location[85].MaxDrug = 22 Location[86].MaxDrug = 23 Location[87].MaxDrug = 24 Cop[1].Name = "Officer Hardass" Cop[2].Name = "Officer Bob" Cop[3].Name = "Agent Smith" Cop[4].Name = "Jack Willson" Cop[1].DeputyName = "deputy" Cop[2].DeputyName = "deputy" Cop[3].DeputyName = "cop" Cop[4].DeputyName = "Thug" Cop[1].DeputiesName = "deputies" Cop[2].DeputiesName = "deputies" Cop[3].DeputiesName = "cops" Cop[4].DeputiesName = "Thugs" Cop[1].Armour = 4 Cop[2].Armour = 15 Cop[3].Armour = 50 Cop[4].Armour = 36 Cop[1].DeputyArmour = 3 Cop[2].DeputyArmour = 4 Cop[3].DeputyArmour = 6 Cop[4].DeputyArmour = 12 Cop[1].MinDeputies = 2 Cop[2].MinDeputies = 4 Cop[3].MinDeputies = 6 Cop[4].MinDeputies = 14 Cop[1].MaxDeputies = 8 Cop[2].MaxDeputies = 10 Cop[3].MaxDeputies = 18 Cop[4].MaxDeputies = 20 Drug[1].Name = "Alchahol" Drug[2].Name = "MDA" Drug[3].Name = "Meth" Drug[4].Name = "E-drine" Drug[5].Name = "P-drine" Drug[6].Name = "B-pine" Drug[7].Name = "Weed" Drug[8].Name = "Cocaine" Drug[9].Name = "Pallies" Drug[10].Name = "LSD" Drug[11].Name = "Morphine" Drug[12].Name = "Nubian" Drug[13].Name = "Peyote" Drug[14].Name = "Heroin" Drug[15].Name = "Codeine" Drug[16].Name = "PCP" Drug[17].Name = "Poppers" Drug[18].Name = "Benzos" Drug[19].Name = "Ecstay" Drug[20].Name = "Blue Nitro (GHB,GBH)" Drug[21].Name = "Special K" Drug[22].Name = "Shrooms" Drug[23].Name = "Red Mitsubishi" Drug[24].Name = "Rohypnol" Drug[25].Name = "Yaba" Drug[1].MinPrice = 10 Drug[2].MinPrice = 100 Drug[3].MinPrice = 1200 Drug[4].MinPrice = 100 Drug[5].MinPrice = 1000 Drug[6].MinPrice = 100 Drug[7].MinPrice = 133 Drug[8].MinPrice = 15000 Drug[9].MinPrice = 200 Drug[10].MinPrice = 1000 Drug[11].MinPrice = 20000 Drug[12].MinPrice = 300 Drug[13].MinPrice = 300 Drug[14].MinPrice = 1400 Drug[15].MinPrice = 200 Drug[16].MinPrice = 1500 Drug[17].MinPrice = 10 Drug[18].MinPrice = 30 Drug[19].MinPrice = 400 Drug[20].MinPrice = 15 Drug[21].MinPrice = 300 Drug[22].MinPrice = 200 Drug[23].MinPrice = 30000 Drug[24].MinPrice = 200 Drug[25].MinPrice = 20000 Drug[1].MaxPrice = 90 Drug[2].MaxPrice = 1000 Drug[3].MaxPrice = 3400 Drug[4].MaxPrice = 1200 Drug[5].MaxPrice = 6250 Drug[6].MaxPrice = 900 Drug[7].MaxPrice = 1200 Drug[8].MaxPrice = 76000 Drug[9].MaxPrice = 800 Drug[10].MaxPrice = 4000 Drug[11].MaxPrice = 50000 Drug[12].MaxPrice = 1300 Drug[13].MaxPrice = 1300 Drug[14].MaxPrice = 9000 Drug[15].MaxPrice = 1800 Drug[16].MaxPrice = 8000 Drug[17].MaxPrice = 90 Drug[18].MaxPrice = 300 Drug[19].MaxPrice = 3000 Drug[20].MaxPrice = 100 Drug[21].MaxPrice = 1200 Drug[22].MaxPrice = 1200 Drug[23].MaxPrice = 80000 Drug[24].MaxPrice = 2000 Drug[25].MaxPrice = 40000 Drug[1].Cheap = FALSE Drug[2].Cheap = TRUE Drug[3].Cheap = TRUE Drug[4].Cheap = FALSE Drug[5].Cheap = TRUE Drug[6].Cheap = FALSE Drug[7].Cheap = TRUE Drug[8].Cheap = FALSE Drug[9].Cheap = FALSE Drug[10].Cheap = TRUE Drug[11].Cheap = TRUE Drug[12].Cheap = FALSE Drug[13].Cheap = TRUE Drug[14].Cheap = FALSE Drug[15].Cheap = TRUE Drug[16].Cheap = FALSE Drug[17].Cheap = FALSE Drug[18].Cheap = FALSE Drug[19].Cheap = FALSE Drug[20].Cheap = FALSE Drug[21].Cheap = FALSE Drug[22].Cheap = TRUE Drug[23].Cheap = FALSE Drug[24].Cheap = FALSE Drug[25].Cheap = FALSE Drug[1].Expensive = FALSE Drug[2].Expensive = TRUE Drug[3].Expensive = TRUE Drug[4].Expensive = TRUE Drug[5].Expensive = TRUE Drug[6].Expensive = TRUE Drug[7].Expensive = TRUE Drug[8].Expensive = TRUE Drug[9].Expensive = TRUE Drug[10].Expensive = TRUE Drug[11].Expensive = TRUE Drug[12].Expensive = TRUE Drug[13].Expensive = TRUE Drug[14].Expensive = TRUE Drug[15].Expensive = TRUE Drug[16].Expensive = TRUE Drug[17].Expensive = TRUE Drug[18].Expensive = TRUE Drug[19].Expensive = TRUE Drug[20].Expensive = TRUE Drug[21].Expensive = TRUE Drug[22].Expensive = TRUE Drug[23].Expensive = TRUE Drug[24].Expensive = TRUE Drug[25].Expensive = TRUE Drug[1].CheapStr = "" Drug[2].CheapStr = "Home made %tde is here by the packful!" Drug[3].CheapStr = "Fresh from the %tde Labs!" Drug[4].CheapStr = "" Drug[5].CheapStr = "%tde stolen from pharmacy. Thier loss, your gain!" Drug[6].CheapStr = "" Drug[7].CheapStr = "Weed prices bottomed out." Drug[8].CheapStr = "" Drug[9].CheapStr = "" Drug[10].CheapStr = "Stolen %tde from rival dealers warehouse!!!" Drug[11].CheapStr = "%tde stolen from hospital! GET IT NOW!!" Drug[12].CheapStr = "" Drug[13].CheapStr = "Homade %tde has just arrived." Drug[14].CheapStr = "" Drug[15].CheapStr = "Stolen %tde from pharmacy!!" Drug[16].CheapStr = "" Drug[17].CheapStr = "" Drug[18].CheapStr = "" Drug[19].CheapStr = "" Drug[20].CheapStr = "" Drug[21].CheapStr = "" Drug[22].CheapStr = "Dude!! We found a shroom patch!!" Drug[23].CheapStr = "" Drug[24].CheapStr = "" Drug[25].CheapStr = "" Gun[1].Name = "Desert Eagle" Gun[2].Name = "Baretta" Gun[3].Name = ".38 Special" Gun[4].Name = "Ruger" Gun[5].Name = "Saturday Night Special" Gun[6].Name = "Ol\' Shotgun" Gun[7].Name = "SPAS12" Gun[8].Name = "Remmington SP10" Gun[9].Name = "The \'Royal\' Double Shotgun" Gun[10].Name = "AK-47" Gun[11].Name = "TMP" Gun[12].Name = "UMP" Gun[13].Name = "Uzi 9mm" Gun[14].Name = "P90" Gun[15].Name = "Spetsnaz" Gun[16].Name = "MP5" Gun[17].Name = "Bazooka" Gun[1].Price = 19000 Gun[2].Price = 3000 Gun[3].Price = 3500 Gun[4].Price = 2900 Gun[5].Price = 3100 Gun[6].Price = 18000 Gun[7].Price = 22000 Gun[8].Price = 23000 Gun[9].Price = 143000 Gun[10].Price = 12000 Gun[11].Price = 14000 Gun[12].Price = 24000 Gun[13].Price = 50000 Gun[14].Price = 100000 Gun[15].Price = 80000 Gun[16].Price = 120000 Gun[17].Price = 10000000 Gun[1].Space = 8 Gun[2].Space = 4 Gun[3].Space = 4 Gun[4].Space = 4 Gun[5].Space = 4 Gun[6].Space = 10 Gun[7].Space = 12 Gun[8].Space = 11 Gun[9].Space = 20 Gun[10].Space = 20 Gun[11].Space = 4 Gun[12].Space = 10 Gun[13].Space = 8 Gun[14].Space = 16 Gun[15].Space = 20 Gun[16].Space = 28 Gun[17].Space = 40 Gun[1].Damage = 60 Gun[2].Damage = 5 Gun[3].Damage = 9 Gun[4].Damage = 4 Gun[5].Damage = 7 Gun[6].Damage = 13 Gun[7].Damage = 18 Gun[8].Damage = 18 Gun[9].Damage = 140 Gun[10].Damage = 23 Gun[11].Damage = 12 Gun[12].Damage = 18 Gun[13].Damage = 29 Gun[14].Damage = 50 Gun[15].Damage = 50 Gun[16].Damage = 100 Gun[17].Damage = 4000 Names.Bitch = "Biznatch" Names.Bitches = "Biznatches" dopewars-1.5.12/doc/Makefile.am0000644001565000007070000000144010236203007013143 00000000000000DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}-${VERSION}/ DOCS = aiplayer.html configfile.html index.html i18n.html \ server.html clientplay.html credits.html example-cfg \ installation.html servercommands.html commandline.html \ contribute.html developer.html metaserver.html \ protocol.html windows.html ../LICENCE example-igneous man_MANS = dopewars.6 SUBDIRS = help EXTRA_DIST = dopewars.6.in ${DOCS} DISTCLEANFILES = dopewars.6 install-data-local: ${INSTALL} -d -m 0755 ${DOCPATH} for doc in ${DOCS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${doc} ${DOCPATH}; \ done uninstall-local: for doc in ${DOCS}; do \ /bin/rm -f ${DOCPATH}/$${doc}; \ done /bin/rm -f ${DOCPATH}/LICENCE dopewars-1.5.12/doc/example-cfg0000644001565000007070000000242407711232232013233 00000000000000# Anything after a '#' symbol on the same line is treated as a comment # and is ignored /* Multi-line comments are also possible, if this C-style syntax is used to denote their starting and finishing points N.B. Whitespace (tabs, space characters) is ignored, as are line breaks (except for the purpose of terminating '#'-style comments) */ # An example of setting a numerical value MaxClients= 6 /* An example of setting a string (text) value (all strings should be quoted - double-quotes can also be used, but these interpret C-style escape sequences (like \t for a tab character) and so should be avoided, e.g, for Windows path names) */ HiScoreFile= '/var/lib/games/dopewars.sco' # An example of setting a string list value StoppedTo = { 'drink a beer', 'visit a friend', 'smoke a cigar' } StartCash=2000000 # Start each player with $2million StartDebt=0 Port=7904 NumLocation=6 Location[1].Name='Oxford' Location[2].Name='London' Location[3].Name='Birmingham' Location[4].Name='Manchester' Location[5].Name='Edinburgh' Location[6].Name='Milton Keynes' Drug[1].Name='Smarties' Drug[1].Cheap=0 Drug[1].Expensive=1 Drug[1].MinPrice=5000 Drug[1].MaxPrice=50000 Gun[2].Name='Uzi 9mm' Gun[2].Price=500000 Gun[2].Space=20 Gun[2].Damage=50 DrugSortMethod=3 dopewars-1.5.12/doc/index.html0000644001565000007070000000503010355323021013104 00000000000000 dopewars 1.5.12: Main Index

dopewars 1.5.12: Main Index

dopewars is a game simulating the life of a drug dealer in 1984 New York, based upon the MS-DOS game of the same name, in turn derived from "Drug Wars" by John E. Dell. The aim of the game is to make lots and lots of money, but unfortunately you start the game with a hefty debt to the loan shark (who charges equally hefty interest) and the cops take a rather dim view of drug dealing...

dopewars expands upon the MS-DOS version by introducing multiplayer functions. With the aid of dopewars servers, several players (computer or human) can roam New York (or some other city, chosen by the operator of the server) and attempt to shoot other players and steal their lucrative drugs.

dopewars is written on the RedHat Linux platform, and should run on most varieties of Unix, as well as under Microsoft Windows. The source code is freely available under the GNU General Public License.

For more information on the current state of dopewars, check out the webpage.


Last update: 02-06-2003
Valid XHTML 1.1 and CSS

dopewars-1.5.12/doc/installation.html0000644001565000007070000001554010355323021014505 00000000000000 Obtaining and installing dopewars

Obtaining and installing dopewars

The dopewars source code and precompiled binaries (in RPM format) are available from the main dopewars web page, at http://dopewars.sourceforge.net/. Just follow the link from there to the download section. "rpm" is the RedHat Package Manager, a program for simplifying installation and upgrade of programs, and is part of the RedHat Linux distribution. If you are using a different distribution, it may be still be included, however. If you do not want to use "rpm", or the installation fails, then you can obtain the source code tarball and recompile the code from scratch.

Prerequisites: dopewars relies on the GLib library for all builds; this library is used for parsing the configuration files, network and string handling, and many other purposes. On a Windows system, this is the only prequisite; the standard Windows libraries are used for everything else. On a Unix/Linux system, you will also need the screen library curses (or the equivalent, such as ncurses or cur_colr) for the text-mode client, and the GTK+ libraries for the graphical client.

Windows installation

The easiest way to install the Windows version is to download the Windows installer program from the download page, and run it (either instruct your web browser to "run from the current location", or save it to somewhere obvious like the Desktop and then double-click on its icon later). This should install all relevant files, and set up Start Menu icons, etc. If, however, you wish to build the program from the source code, see the tarball installation section below, and also see the Windows page.

RPM binary installation

The binary RPMs are built for Intel (also Intel compatibles, such as AMD, Cyrix, etc.) systems running RedHat Linux 9. On other systems, these binary RPMs may refuse to install, or may run but then crash with mysterious segmentation faults due to library conflicts.

  1. Download the i386 (Intel) RPM with your web browser. (If your browser is incorrectly set up, it may try and display the file, in which case tell it explicitly to save the file - Shift+Mouse button 1 in Netscape.)
  2. Become root on your Unix box (if you cannot become root, then you will probably not be able to use RPM installation, depending on how "rpm" is set up).
  3. Change to the directory containing the dopewars rpm, and install it with the command
    rpm -Uvh dopewars-1.5.12-1.i386.rpm
    This will replace any already-installed earlier version.

RPM source installation

This route is open to you if your system has "rpm", but the binary RPMs do not work on your system, or your machine is not an Intel (an Alpha or PowerMac, for example). It involves obtaining the RPM of the source code, and then building the binaries from it on your system.

  1. Download the source code RPM.
  2. Become root and change to the directory containing the new rpm.
  3. Build a binary rpm with the command
    rpm --rebuild dopewars-1.5.12-1.src.rpm
  4. Change to the directory which the binary rpm has been written to (check the output of the above - usually /usr/src/redhat/RPMS/xxx, where xxx is your machine type - for example, "i386" on Intel machines, "alpha" on Alphas, "x86_64" on AMD64 or EM64T machines)
  5. Install the binary rpm with the command
    rpm -Uvh dopewars-1.5.12-1.xxx.rpm

Tarball installation

If you don't have, or don't want to use, RPM, you can obtain the source code in gzipped, tarred ("tarball") format and recompile and install it yourself. This is also usually a necessity if you cannot become root (the superuser) on your Unix box, or if you wish to build the Windows version from source code.

Before beginning, you should ensure that you have all the necessary prequisites (see above). To compile on a Windows system, you should install the free Cygwin suite, and use the included compiler. (You could use a different C/C++ Windows compiler, but you'll have to write your project files if you do this.) On either Windows or Unix systems, you will need to get the GLib library first, available for Unix here or for Windows here.

  1. Download the source code tarball.
  2. Change to the directory containing the tarball and extract the contents with the command
    tar -xvzf dopewars-1.5.12.tar.gz
    (or similar).
  3. Change into the dopewars-1.5.12 directory, and read all the important documentation in there ;) Most notably, the INSTALL file gives more details on setup and installation on Windows systems.
  4. Build the binary with the commands
    ./configure
    make
  5. Become root and install the dopewars files with
    make install

    The configure script will test your system and set up dopewars so that it should compile cleanly. If you are running the Cygwin tools under Microsoft Windows, the script should detect this and allow you to build a native Windows binary; this will then run on any Win32 system, even one without Cygwin installed. The configure script supports a number of configurable options; for more details, read the INSTALL file in the dopewars-1.5.12 directory.

    If you cannot become root, run the configure script specifying directories for which you have write access for the dopewars files, with a command such as
    ./configure --prefix=/home/user/dopewars


Last update: 28-07-2003
Valid XHTML 1.1

dopewars-1.5.12/doc/protocol.html0000755001565000007070000006263407600614142013664 00000000000000 The dopewars network protocol

The dopewars network protocol

Syntax used in this document

(runhere)
A single character field (equivalent to C's %c format).
<ID>
A numeric field - an integer printed in text form, without spaces, commas or other punctuation. Note that the number is not stored directly as its binary representation, but as a string - i.e. "100" takes 3 characters (bytes), not one. Equivalent to C's %d format.
"text"
Freeform text, equivalent to C's %s format.

Anything else should be taken as literal characters, which should appear in the message exactly as printed here.

General message format

dopewars clients communicate with the dopewars server by means of a TCP/IP connection. Messages are sent in plain text, are of variable length, and are always terminated by a linefeed character ('\n', ASCII code 10)

Messages themselves are typically split into 'words', delimited by the caret (^) character. The underline character (_) is also used to break up translatable strings (tstrings), if the A_TSTRING ability is active, and thus these two characters, together with the \n character, should normally be avoided in message data.

Messages are usually of the format:-

<ID>^(A)(C)"data"
ID = player ID (may also be blank if this is not applicable)
A = one-letter message subtype code (used by AI players)
C = one-letter message type code
data = message-dependent information

e.g. "1^AFHello player"

If ID is not specified, it should be left blank when sending to the server, and should be ignored in reading messages from the server.

The "data" field often contains multiple items, separated by ^ characters. Note that the last field in such a message should not be assumed to be terminated by the message terminator, \n - although it always will be, it should also be first terminated by the field separator, the ^ character. This allows the client to ignore extra fields, if later versions of the protocol should add them. (N.B. This does not apply to free-form text fields, as in the C_QUESTION, C_PRINTMESSAGE, C_MSG, C_MSGTO, and C_FIGHTPRINT messages, which _do_ extend to the end of the message; for these messages, the caret is generally interpreted as a line break.) Note also that older servers may not send all the fields, so if fewer fields than expected are received, the client should substitute default values.

Message codes are shown below, together with the symbolic constants used in the dopewars code for clarity (e.g. the 'A' code is represented by C_PRINTMESSAGE)

For the AI codes, see the AICode type in src/message.h

N.B. Older versions of dopewars used a less sophisticated protocol:-

"From"^"To"^(A)(C)"data"
A, C, and data are the same; however "From" and "To" are the player names (not IDs) of the players that the message is coming from and going to. Again, these can often be left blank. This old protocol is used if the A_PLAYERID ability is not present.

e.g. "Fred^Bert^AFHello player"

Starting a game from the client

To start a game, the client must first notify the server of the protocol it can support (with the C_ABILITIES message) and then provide a suitable player name (with the C_NAME message). Note that both of these messages must be sent using the old protocol, as before protocol negotiation is complete (both server and client have sent a C_ABILITIES message) the server will default to using this protocol, for backwards compatibility. After sending these two messages, the game is run mainly by the server; the client should listen for incoming messages, and respond appropriately.

Server to client message reference

The messages listed below may be sent from a dopewars server to the client. Most of these messages require some kind of processing to be done, and may require a response. The client cannot safely ignore such messages, as the server will not "retry" if the client does not respond.

C_PRINTMESSAGE ('A')
Sent when the server wishes the client to display some text
data = The text that the client should display; any ^ delimiters in this text should be taken to mean a new line.
e.g. "^AAGame over^You made the high score list"
Answer required: no

C_LIST ('B')
Used by the server to tell the client about other logged on players
data = "name"^<ID>
name = the name of the player
ID = the numeric ID that should be used to communicate with this player
e.g. "^ABFred^1"
Answer required: no

C_ENDLIST ('C')
Signals that all players have been listed (no more C_LIST messages to come)
e.g. "^AC"
Answer required: no

C_NEWNAME ('D')
Signals that the name provided by the client is unsuitable (usually, this is because it's already been taken by another player)
N.B. This is always sent at the start of the game, before protocol negotiation, so uses the old format, e.g. "^^AD"
Answer required: yes - must send a suitable C_NAME message to proceed

C_MSG ('E')
Contains a message from one player (or the server admin) broadcast to all connected players.
data = the message to display
ID = the ID of the player that sent the message
e.g. "1^AEHello world"
Answer required: no

C_MSGTO ('F')
Contains a private message from one player to another
data = the message to display
ID = the ID of the player that sent the message
e.g. "1^AFHello player"
Answer required: no

C_JOIN ('G')
Sent by the server to all players when a new player joins the game (See C_LIST for format)
Answer required: no

C_LEAVE ('H')
Sent by the server to all players when a player leaves the game
data = the name of the player that's leaving
ID = the ID of the player
e.g. "1^AHFred"
Answer required: no

C_SUBWAYFLASH ('I')
Used by the server to tell a client that it has just moved to a new location. (The client is not told where this location is, since this is information is contained in a C_UPDATE message.) Clients usually reset any location-dependent state (e.g. fights) on receiving this message, and flash a "subway" indicator or similar
e.g. "^AI"
Answer required: no

C_UPDATE ('J')
Used by the server to update client state. This is also used to tell the player about the state of another player (a report from a spy)
data = <cash>^<debt>^<bank>^<health>^<coatsize>^<locn>^<turn>^<flags>^<GUNS>^<DRUGS>^<DRUGVALUE>^<bitches>
cash, debt, bank = money available, owed to the loan shark, in the bank
coatsize = amount of space available for drugs/guns
locn = zero-based game location
turn = turn number
flags = player status flags - see PlayerFlags in src/dopewars.h for the individual binary bits. The only one currently used is SPYINGON (16) which is set if the player is currently spying on one or more other players
GUNS = the numbers of each gun carried, separated by ^ characters (there should be NumGun numbers in this list - see the C_INIT message)
DRUGS = similar, for carried drugs
DRUGVALUE = similar, but contains the total cash value of each drug; N.B. this field is only sent if the ability A_DRUGVALUE is present
bitches = number of accompanying bitches
ID = blank for a status update, otherwise the ID of the player that you're spying on
Answer required: no

C_DRUGHERE ('K')
Tells the client which drugs are available to buy at the current location
data = drug prices, separated by ^ characters. If a price is zero, that drug is not available here
Answer required: no

C_GUNSHOP ('L')
Tells the client to start up the "gun shop", for buying/selling guns
e.g. "^AL"
Answer required: yes - zero or more C_BUYOBJECT messages, followed by a C_DONE message

C_LOANSHARK ('M')
Tells the client that the player has a chance to pay back the loan
e.g. "^AM"
Answer required: yes - an optional C_PAYLOAN message, followed by a C_DONE message

C_BANK ('N')
Tells the client that the player has a chance to visit the bank
e.g. "^AN"
Answer required: yes - an optional C_DEPOSIT message, followed by a C_DONE message

C_QUESTION ('O')
Used to display a message from the server that requires a response
data = "keys"^"message"
keys = a list of the valid single-character responses - e.g. "YN" for a yes/no question; the client may use these keys directly, or expand them to complete words (e.g. YN -> Yes/No)
message = the message to display
e.g. "^AOYN^Would you like to visit the bank?"
Answer required: yes - a C_ANSWER message, containing one of the valid response keys

C_HISCORE ('Q')
Used for the server to tell the client about a high score; C_HISCORE messages should only ever be sent after a C_STARTHISCORE message and before a C_ENDHISCORE message
data = <index>^(B)"score"
index = the zero-based index of the high score (0 is the top score)
B = the single character 'B' if this score should be displayed in bold (usually to indicate that it's "your" score) or 'N' otherwise
score = the text containing the score, date, and player name
Answer required: no

C_STARTHISCORE ('R')
Tells the client that the server is about to send it a list of high scores; usually used by the client to display the title of a high score screen
e.g. "^AR"
Answer required: no

C_ENDHISCORE ('S')
Tells the client that the server has sent all of the high scores; usually used by the client to display a prompt to end the game (if data="end") or to return to the game (if data is not "end")
data = "end" if the game has finished, blank otherwise
e.g. "^ASend"
Answer required: no, but the client should disconnect if data="end"

C_PUSH ('Z')
Requests that the client leave the server
e.g. "^AZ"
Answer required: no, but the client should disconnect

C_QUIT ('a')
Notifies the client that the server is about to terminate
e.g. "^Aa"
Answer required: no, but the client should disconnect

C_RENAME ('b')
Instructs the client that another player has changed his/her name
data = the new player name
ID = the player's ID
e.g. "1^AbFred"
Answer required: no

C_INIT ('k')
Tells the client about various global game settings
data = "version"^<numloc>^<numgun>^<numdrug>^"bitch"^"bitches"^"gun"^"guns"^"drug"^"drugs"^"date"^<ID>^"loanshark"^"bank"^"gunshop"^"pub"^(prefix)"currency"
version = dopewars version of the server - e.g. "1.5.2"
numloc = the number of locations in the game
numgun = the number of guns in the game
numdrug = the number of drugs in the game
bitch, bitches, gun, guns, drug, drugs, date, loanshark, bank, gunshop, pub = various names used in the game
ID = the ID that the client should use to refer to itself
prefix = '1' if the currency symbol (e.g. $) should be printed before prices in the game, '0' otherwise
currency = the currency symbol to use
e.g. "^Ak1.5.2^8^4^12^bitch^bitches^gun^guns^drug^drugs^12-^-1984^0^the Loan Shark^the Bank^Dan's House of Guns^the pub"^1$
Answer required: no

C_DATA ('l')
Tells the client about various game settings - 4 variants on this message are possible:-
Information about locations in the game
data = <index>^A"name"
index = zero-based index of the location
name = name of the location
e.g. "^Al0^ABronx"

Information about drugs
data = <index>^B"name"^<min>^<max> index = zero-based index of the drug
name = name of the drug
min = the minimum price of the drug
max = the maximum price of the drug
e.g. "^Al1^BCocaine^15000^29000"

Information about guns
data = <index>^C"name"^<price>^<space>^<damage>
index = zero-based index of the gun
name = name of the gun
price = the normal cost of the gun
damage = the maximum damage that the gun can do
e.g. "^Al2^CRuger^2900^4^4"

Miscellaneous information
data = 0^D<spy>^<tipoff>
spy = the price to spy on another player
tipoff = the price to tip off the cops to another player
e.g. "^Al0^D20000^10000"
Answer required: no

C_FIGHTPRINT ('m')
data = "attack"^"defend"^<health>^<bitches>^"bitchname"^<killed>^<armpct>^(fightpoint)(runhere)(loot)(canfire)^"text"
attack = name of the attacker player/cop if applicable (if blank, it's you)
defend = name of the defending player/cop if applicable (if blank, it's you)
health = defender's health, if applicable
bitches = number of bitches/deputies accompanying the defending player
bitchname = usually "bitch", "bitches", "deputy" or "deputies"
killed = number of bitches killed in this attack
armpct = a number between 0 and 100 showing how heavily armed the attacker is
fightpoint =
'A' (F_ARRIVED)
The "defending" player has just arrived on the scene
'S' (F_STAND)
The "attacking" player chose not to shoot
'H' (F_HIT)
The "attacking" player fired on the defender, and hit
'M' (F_MISS)
The "attacking" player fired on the defender, and missed
'R' (F_RELOAD)
The "attacking" player is ready to fire again
'L' (F_LEAVE)
The "attacking" player has fled the fight, but other opponents remain
'D' (F_LASTLEAVE)
The "attacking" player has fled, and nobody else is present, so the fight is over
'F' (F_FAILFLEE)
The "attacking" player tried to get away, but failed
'G' (F_MSG)
Nothing exciting has happened, but "text" should still be displayed
runhere = '1' if running should take you to the current location (if '0', you should jet to another location)
loot = '1' if the attack resulted in a kill and a loot of the body
canfire = '1' if you are allowed to shoot at other players right now
text = explanatory text from the server, to be printed
Answer required: yes, depending on the message contents: usually a C_REQUESTJET or C_FIGHTACT message

C_ABILITIES ('r')
Negotiates protocol extensions between client and server
data = (playerid)(drugvalue)(newfight)(tstring)(donefight)(utf8)(date)

playerid = '1' if we use player IDs rather than player names to identify players in network messages ('0' otherwise). It is strongly recommended that this new protocol be used, as the old protocol is difficult to properly support, and is deprecated. However, the new protocol is only supported by servers of version 1.5.0 or above. (N.B. Since the old protocol does not support the C_ABILITIES message either, before the client and server have exchanged C_ABILITIES messages the server will "talk" using the old protocol. Thus, the C_ABILITIES message itself from the client, and any succeeding messages sent before the server sends C_ABILITIES back, must be sent using the old protocol. "Old" servers will ignore the C_ABILITIES message.) Ability name in dopewars code: A_PLAYERID

drugvalue = '1' if the server should keep track of how much players paid for their drugs, so that they can see whether they're getting a good deal when they come to sell them ('0' otherwise). Ability name in dopewars code: A_DRUGVALUE

newfight = '1' if we use the "new" fighting interface (documented here). Highly recommended. Ability name in dopewars code: A_NEWFIGHT

tstring = '1' if names of drugs etc. should be sent in the translated string (tstring) notation; only necessary if you are supporting non-English languages. Ability name in dopewars code: A_TSTRING

donefight = '1' if, when a fight finishes, the client is expected to send a C_DONE message to instruct the server to move on. (This is to allow the user to close the fight dialog before any new dialogs pop up.) Ability name in dopewars code: A_DONEFIGHT

utf8 = '1' if all strings are sent over the network in UTF-8 (Unicode) encoding, rather than an encoding specific to the locale of the server or client. Ability name in dopewars code: A_UTF8

date = '1' if the C_INIT message sends/receives the Names.Date variable, rather than Names.Month and Names.Year as older versions used to. Ability name in dopewars code: A_DATE

N.B. Only seven abilities are listed here. Older servers or clients may not only not support some of these abilities, they may not even know of their existence (conversely, newer versions may add new abilities). Thus all servers and clients, if passed an unexpectedly short abilities string, should pad it out with zeroes. If passed a long string, it should be truncated. This will cause these extra (or unspecified) abilities to be unsupported. (The order of the abilities string should never change.)

e.g. "^^Ar1010000" (N.B. the double ^ is a feature of the "old" protocol)

Client to server message reference

The messages are below are typically sent from the client to the server. Note that players do not communicate directly between each other, but always via the server. Note also that some of these messages are also valid when sent from the server to the client.

C_MSG ('E')
Contains a message from one player to be broadcast to all connected players
data = the message to display
e.g. "^AEHello world"

C_MSGTO ('F')
Contains a private message from one player to another
data = the message to display
ID = the ID of the player to send the message to
e.g. "1^AFHello player"

C_BUYOBJECT ('T')
Requests the server to buy or sell an object
data = "type"^<index>^<amount>
type = "bitch", "gun" or "drug"
index = the zero-based index of the gun/drug that you want to buy/sell, or zero if type="bitch"
amount = the number of objects to buy (or, if negative, to sell)
e.g. "^ATbitch^0^1"

C_DONE ('U')
Sent by the client when it's finished with the loan shark, bank, or gun shop
e.g. "^AU"

C_REQUESTJET ('V')
Asks the server to jet to a new location (or to run from a fight)
data = the numeric, zero-based, location to jet to
e.g. "^AV2"

C_PAYLOAN ('W')
Asks to pay back a loan to the loan shark
data = the amount of money to pay back
e.g. "^AW5000"

C_ANSWER ('X')
Sends the reply to a previous question from the server
data = the single character response
e.g. "^AXY"

C_DEPOSIT ('Y')
Asks to deposit money into (or withdraw money from) the bank
data = the amount of money to deposit, or (if negative) the amount to withdraw
e.g. "^AY10000"

C_NAME ('c')
Sent by the client to register the player name with the server
data = the player's name
N.B. this is always sent at the start of the game, in which case the old format should be used, e.g. "^^AcFred"

C_SACKBITCH ('d')
Requests that a bitch should be sacked
e.g. "^Ad"

C_TIPOFF ('e')
Asks the server to tip off the cops to another player
ID = the player ID to tip off the cops to
e.g. "1^Ae"

C_SPYON ('f')
Asks the server to spy on another player
ID = the player ID to spy on
e.g. "1^Af"

C_WANTQUIT ('g')
Tells the server that the client wishes to leave the game early
e.g. "^Ag"

C_CONTACTSPY ('h')
Asks the server to send back reports about all the players that we are currently spying on
e.g. "^Ah"

C_REQUESTSCORE ('j')
Asks the server to send back the high score list
e.g. "^Aj"

C_FIGHTACT ('n')
Responds to a previous C_FIGHTPRINT message
data = "F", "S", or "R"
F = return fire
S = stand and take it (do not return fire)
R = try to run away
N.B. If "runhere" is not set in the C_FIGHTPRINT message, the "R" response should not be sent - a C_REQUESTJET message should be sent instead.
e.g. "^AnF"

C_ABILITIES ('r')
Notifies the server of supported protocol features. See the explanation for the corresponding server message.

The client will receive this message in response to a previous C_ABILITIES message that it sent to the server. This reply message contains the abilities that the server is willing to support. The client should compare these to those that it previously offered, and then use only those abilities that both client and server support. (If the server does not support the new protocol, no C_ABILITIES reply message will be sent, and the client should assume that no abilities are supported.) The server will expect all client messages after the C_ABILITIES message to be compliant with these abilities.

e.g.
- client sends "1110111" (supports everything except A_TSTRING)
- server responds with "1011011" (supports everything except A_DRUGVALUE and A_DONEFIGHT)
- client should adopt the abilities "1010011" (A_PLAYERID and A_NEWFIGHT)

Last update: 02-09-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/developer.html0000644001565000007070000000353107675562413014013 00000000000000 Notes for developers

Notes for developers

You are free to make whatever changes to the code you wish, as long as you abide by the terms set out in the GNU General Public License. Obviously, I only have a limited amount of time to devote to dopewars development, and so encourage discussion of the dopewars code, documentation and concept, and particularly welcome suggested improvements.

You are free to distribute modified versions of the code, again subject to the licence, but I also welcome patches to the code at my email address, benwebb@users.sf.net. If I choose to include these patches in a new dopewars version, you will of course be credited in the changelog (unless, of course, you don't want to be).

If you wish to write your own client to connect to a dopewars server, then you need to understand the protocol that dopewars uses, which is documented here.

The definitive source on the internal workings of the dopewars game code is the source code itself. It is not exactly "self-documenting", but I have endeavoured to add sufficient documentation to the source where necessary; any discussion here of the internal workings, however, may be incomplete, out of date, and possibly misleading. Feel free to email me at the address above with questions on this; I might possibly even know the answers!


Last update: 15-07-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/contribute.html0000644001565000007070000000642707517005526014203 00000000000000 How to contribute

How to contribute

dopewars is open-source software, meaning that it is free for anybody to use. However, this also means that the quality of the software is dependent in part on you the user. You don't have to be a programmer to help out - in fact, dopewars currently needs people to produce sounds and graphics rather than to write code.

  • Sounds are urgently needed right now. dopewars-1.5.7 and later support sounds, but at the moment users must supply their own sound files, as none are included. If you can provide copyright-free sounds, then short files are needed for various effects in the game. For example, gunshots, bullet hits, ricochets and subway trains are obvious candidates for sound effects, although pretty much any event in the game that you can think of can conceivably have a sound (e.g. when players join or leave the game). These sounds should be in WAV format, and should probably be no more than a second or two in length. Later versions of dopewars may also be able to play longer repeating sounds (i.e. music) if you're interested in contributing this. Use the SourceForge Data forum to see what sounds other people are working on.

  • Suggestions for future improvements are always welcomed at the SourceForge Open Discussion forum. These can be anything from "the game interface is confusing" through "more game locations are needed" to "what about a hospital". (I can't guarantee that such suggestions will ever make it into dopewars, but it's a lot easier if I know they exist! Also, it's far more likely to happen if you write the code - see the tips for developers page.)

  • Bug reports are always useful. Register them with the SourceForge bug tracker. If I don't know the problem exists, I can't fix it... The more information you can give here, the better. In particular, I need to know your operating system - e.g. Linux or Windows. For Linux, gdb stack traces of the core file are most useful.

  • Configuration files can be included in future distributions. If you run a customised game, and think others might want to play with your configuration, or at least use it as an example, then post it to the SourceForge Data forum...

  • Translation of dopewars into your language will enable you to play the game in your native tongue, and will also help others that speak the same language. It's pretty easy, too - all you have to do is edit a simple text file! See the i18n pages.


Last update: 22-07-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/commandline.html0000644001565000007070000002117607666714705014324 00000000000000 dopewars command line options

dopewars command line options

Once you have installed dopewars, you should be able to run the binary just by typing
dopewars
(unless you have installed the binary in a directory which is not in your path, in which case precede it with the path). Run without any options, the dopewars binary runs as a dopewars client.

Command line options can be used to configure common aspects of dopewars. More exhaustive configuration is possible by editing the dopewars configuration files; note, however, that command line options can be used to override some of these settings (also see the -g option below).

For a brief description of the command line options, specify the option -h with the command
dopewars -h
A list of all command line options is presented below. Please note that most options have a "short" format (e.g. -p) and a "long" format (e.g. --port). The "long" form is only available on systems that have GNU getopt; this excludes the Windows version.

-b, --no-color, --no-colour
"Black and white". This tells the dopewars client (if that is what you're running) not to use coloured text (by default, colour is used if the terminal and curses support it).
-n, --single-player
If running the client, run in single-player mode. Don't try to connect to any available dopewars servers.
-a, --antique
Puts the client into "antique" mode; dopewars is derived from the earlier game for MS-DOS of the same name, which in turn was based on "Drug Wars" by John E. Dell. "Antique" mode aims to follow the behaviour of the MS-DOS dopewars closely, and consequently this entails single-player mode also.
-f file, --scorefile=file
Specifies the path and name of the file used to store the dopewars high scores in; this can alternatively be specified in the configuration file with the HiScoreFile=file option. (N.B. This option cannot be used to get dopewars to open a high score file with privilege when running setuid/setgid; all privileges are dropped by this point for security.)
-o addr, --hostname=addr
Gives the name of the machine running a dopewars server, in human readable (e.g. "nowhere.com") or dotted quad (e.g. 127.0.0.1) form. When the client is started, if not in single-player mode, it automatically attempts to connect to this server for a multiplayer game. This can also be specified with the Server=addr configuration file option.
-p port, --port=port
Specifies the numeric port number which the server uses. This is usually 7902, but some servers may use other port numbers to avoid conflicts with other services running on the machine. If you are running the dopewars client, it will search for a server on this port; if you are running the server, it will bind to this port and wait for connections from clients (the clients must also be instructed to use this port, of course). This is equivalent to setting the port number with the Port=port configuration file option.
-s, --public-server
Runs the dopewars server. This mediates multiplayer games of dopewars, and keeps track of high scores. Any player wishing to join the game hosted by this server must connect to your machine using the dopewars client and the port number which you have chosen, and can then interact with other players who have done the same thing. By default, a dopewars server will report its status to the metaserver, unless it is set otherwise in the configuration file.
-S, --private-server
Also runs a dopewars server, but in this case does not report its status to the metaserver. This does not stop clients from connecting to your server, of course (unless it is behind a firewall, or the maximum number of clients is exceeded), but it makes it harder to find. The connection to the metaserver can also be disabled by adding MetaServer.Active=FALSE to the configuration files.
-A, --admin
Connects to a dopewars server running on this machine, and allows server commands to be issued. Only the user that originally started the server (or the superuser) is permitted to do this. Only supported for the text-mode server on Unix systems.
-g file, --config-file=file
Instructs dopewars to read setup information from the configuration file named by file. This file is read immediately - i.e. at the point at which the -g option is encountered - and so these settings will override any set in the default configuration files or by previous command line options. Command line options occurring after the -g option, or for that matter further -g options, that change these same settings, will then override them.
-r file, --pidfile=file
Maintains a pid file with the specified name while the server is running. The file is a one-line text file, containing the process ID of the dopewars server process, and is deleted when the server quits.
-c, --ai-player
Runs a computerised player. This will connect to the specifed dopewars server and join in the multiplayer game going on there. When the player finishes the game (or is eliminated by the other players or the server) the program finishes.
-w, --windowed-client
If running a dopewars client, then this forces the use of a graphical user interface. Under Microsoft Windows, this is an "ordinary" window, while under Unix, this uses GTK+. If a suitable environment is not present (e.g. the binary was compiled without graphical support, or - in the case of GTK+ - you are not running X) then dopewars will quit with an error. By default, if neither -w or -t are specified, then a graphical user interface will be used where available, falling back to a text-mode client in case of error.
-t, --text-client
When running a dopewars client, forces the use of a text-mode (curses or console mode) interface, even if graphics are available.
-P name, --player=name
Sets the default player name.
-C file, --convert=file
Converts a high score file from an older version of dopewars to the format used by the current version. The old high score file is replaced with a new file, and a backup copy of the old file is made. This conversion process is necessary since older versions of dopewars did not identify the high score files properly, so they cannot be automatically converted. (Such automatic conversion would also pose a security risk if the dopewars binary is running setgid.)
-u name, --plugin=name
Uses the named plugin for sound output. Valid options are "none" (for no sound) plus any name registered by plugins found on your system. (These are currently "winmm" for the Windows multimedia system plugin, and "esd" and "sdl" for Unix plugins using the ESound and SDL libraries.) If no such option is given, the first valid sound plugin to be found is used.
-h, --help
Displays a brief description of the available command line options, and contact details.
-v, --version
Displays the current dopewars version number, and then exits.

Last update: 02-06-2003
Valid XHTML 1.1

dopewars-1.5.12/doc/help/0000777001565000007070000000000010355323332012132 500000000000000dopewars-1.5.12/doc/help/server.html0000644001565000007070000000404707553240463014260 00000000000000 dopewars: Server Options

dopewars: Server Options

  • Server reports to metaserver: If checked, then when running the dopewars server, it will report to the metaserver so that players can find your server from the dopewars website or from the New Game dialog's Metaserver tab. (If not checked, its existence will not be advertised, but people can still connect to your server if they know the hostname and port number.)

  • Minimize to System Tray: (Windows only) When running the graphical server, and it is minimized, do not show the window in the normal window list, but in the System Tray (the collection of small icons in the bottom right of the screen). Clicking on the dopewars icon in the Tray will restore the window to its normal state.

  • Metaserver hostname / Port: The hostname and port where the dopewars metaserver is located, used by both the server and client. You should not normally need to alter this.

  • Web proxy hostname / Port: The hostname and port of an HTTP (web) proxy. If you want (or are required) to use a web proxy to access web pages such as the metaserver, then fill in its name here. If the hostname is left blank, then the metaserver will be contacted directly.

  • Script path: The path and name of the webpage on the metaserver which is used to register servers or release details. (You should not normally need to alter this.)

  • Comment: A description of your dopewars server, which is sent to the metaserver and can be used to tell potential clients the rough rules of your game.

  • MOTD (welcome message): The message of the day, sent to clients when they connect to the server (can be used to tell them more about the setup of the game).

dopewars-1.5.12/doc/help/general.html0000644001565000007070000000444307545621721014370 00000000000000 dopewars: General Options

dopewars: General Options

  • Remove drug references: Do not popup random events during the game that might mention drugs. This also disables the cops and the gun shop. Obviously, if you really want to remove drug references completely, you also need to change all the drug names in the Drugs tab.

  • Unicode config file: Write out the configuration file in UTF-8 (Unicode) encoding, rather than the default locale encoding. You should turn this option on if you are using unusual characters (e.g. Hebrew or Cyrillic in the English version) as these will be otherwise lost when you save the file. Note that this is the default under Unix when running in UTF-8 locales. Note also that versions of dopewars prior to 1.5.8, or Unix versions linked against GTK+1.x, will not be able to read UTF-8 configuration files.

  • Game length (turns): The number of days over which the game runs. If this is set to 0 (zero) then the game will only end if you are killed.

  • Starting cash: The amount of money that each player in the game gets at the start.

  • Starting debt: The amount of money that each player in the game starts out in debt to the Loan Shark.

  • Currency symbol: The symbol (e.g. $, £, €, GBP) used to denote all prices in the game.

  • Symbol prefixes prices: If checked, then the currency symbol is always printed before prices (e.g. $100). If unchecked, it follows the prices (e.g. 100 EUR).

  • Name of one bitch: The word used to refer to a single one of your companions. For example, you may prefer "henchman" to "bitch".

  • Name of several bitches: The word used to refer to several of your companions. For example, you may prefer "henchmen" to "bitches".

  • Web browser: (Unix only) The full pathname of the program that you use for displaying webpages. For example, /usr/bin/netscape.

dopewars-1.5.12/doc/help/drugs.html0000644001565000007070000000371707553240463014101 00000000000000 dopewars: Drugs Options

dopewars: Drugs Options

  • Drug: A list of all drugs in the game. Use the "New" button to create a new drug, or the "Delete", "Up" and "Down" buttons to delete the currently selected drug or to change its position in the list. (You cannot delete all of the drugs, as this would make the game unplayable.) Selecting a drug from this list allows the other sections in this window to be filled in.

  • Name: The name of the drug.

  • Minimum normal price: Sets the lowest price that this drug can be offered at, under normal circumstances (i.e. there have been no drug busts or other special events on this day).

  • Maximum normal price: Sets the highest price that this drug can be offered at, under normal circumstances.

  • Can be specially cheap: If checked, then occasionally this drug can be offered at a quarter of its usual price, due to some special event.

  • Cheap string: If the previous checkbox is selected, then this is the message that is displayed when this drug is offered cheaply - e.g. "The market is flooded with cheap home-made acid!".

  • Can be specially expensive: If checked, then occasionally this drug can be offered at four times its usual price, due to some special event.

  • Expensive string 1/2: These two strings are used whenever any drug is offered at the expensive price (one of the two messages is picked at random). The name of the drug is substituted into the string for "%tde" - e.g. "Addicts are buying %tde at ridiculous prices!" could be displayed as "Addicts are buying Cocaine at ridiculous prices!".

dopewars-1.5.12/doc/help/Makefile.am0000644001565000007070000000065007554747345014130 00000000000000DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}-${VERSION}/help DOCS = cops.html general.html locations.html sounds.html \ drugs.html guns.html server.html EXTRA_DIST = ${DOCS} install-data-local: ${INSTALL} -d -m 0755 ${DOCPATH} for doc in ${DOCS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${doc} ${DOCPATH}; \ done uninstall-local: for doc in ${DOCS}; do \ /bin/rm -f ${DOCPATH}/$${doc}; \ done dopewars-1.5.12/doc/help/sounds.html0000644001565000007070000000137107553240463014262 00000000000000 dopewars: Sounds Options

dopewars: Sounds Options

This tab allows you to configure the sounds played by dopewars during the game. To change a sound, first select it from the list. Then type the full path and name of a .WAV file into the "Sound file" box, or use the Browse button to find it on your computer. You can use the Play button to hear the sound that you have selected.

Bear in mind that all sounds can be turned on or off using the "Enable Sound" option on the Game menu.

dopewars-1.5.12/doc/help/cops.html0000644001565000007070000000332107553240463013710 00000000000000 dopewars: Cops Options

dopewars: Cops Options

  • Cop: A list of all cops in the game. Use the "New" button to create a new cop, or the "Delete", "Up" and "Down" buttons to delete the currently selected cop or to change its position in the list. (If you delete all of the cops, then the cops will never attack you.) Selecting a cop from this list allows the other sections in this window to be filled in.

  • Name: The name of the cop.

  • Name of one deputy: The name of one of the deputies or other assistants that can accompany this cop.

  • Name of several deputies: The name of two or more of the deputies or other assistants that can accompany this cop.

  • Minimum no. of deputies: The lowest number of deputies that can accompany this cop. The more deputies, the harder it is to run away from or to shoot the cop, and the more damage they do to you when they shoot.

  • Maximum no. of deputies: The highest number of deputies that can accompany this cop.

  • Cop armour: A percentage value to determine how much damage the cop takes when he is shot. A value of 100 means that if you do 10 damage, the cop loses 10 health. A value of 200 means that he only loses 5 health, and a value of 50 results in a loss of 20.

  • Deputy armour: A percentage value to determine how much damage each deputy takes when he is shot.

dopewars-1.5.12/doc/help/locations.html0000644001565000007070000000257507525717306014755 00000000000000 dopewars: Location Options

dopewars: Location Options

  • Location: A list of all locations in the game. Use the "New" button to create a new location, or the "Delete", "Up" and "Down" buttons to delete the currently selected location or to change its position in the list. (You cannot delete all of the locations, as this would make the game unplayable.) Selecting a location from this list allows the other sections in this window to be filled in.

  • Name: The name of the region or city that the location represents.

  • Police presence: The percentage chance that the police in this location will catch you fighting with other drug dealers or dropping drugs.

  • Minimum no. of drugs: Every time you visit this location, a random number of drugs will be available for buying or selling. This allows you to set the minimum number of different types of drug that will be available in this location.

  • Maximum no. of drugs: This allows you to set the maximum number of different types of drug that will be available in this location.

dopewars-1.5.12/doc/help/guns.html0000644001565000007070000000240507553240463013722 00000000000000 dopewars: Guns Options

dopewars: Guns Options

  • Gun: A list of all guns in the game. Use the "New" button to create a new gun, or the "Delete", "Up" and "Down" buttons to delete the currently selected gun or to change its position in the list. (If you delete all of the guns, then the cops will never attack you, and you cannot attack other players or buy guns in the Gun Shop.) Selecting a gun from this list allows the other sections in this window to be filled in.

  • Name: The name of the gun.

  • Price: The cost of the gun, if you buy it from the Gun Shop. (If you are offered it during the course of the game on the street, then it is offered at 10% of this price).

  • Inventory space: The amount of space that this gun takes up in your inventory.

  • Damage: The maximum damage done by this gun, if you hit an enemy. (The actual amount of health that they lose is also dependent on their armour rating.)

dopewars-1.5.12/doc/help/Makefile.in0000644001565000007070000002505710355323275014132 00000000000000# Makefile.in generated by automake 1.9.5 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@ target_triplet = @target@ subdir = doc/help DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}-${VERSION}/help DOCS = cops.html general.html locations.html sounds.html \ drugs.html guns.html server.html EXTRA_DIST = ${DOCS} all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/help/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/help/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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: 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 installdirs: 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-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-data-local install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-local .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-local 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-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-info-am uninstall-local install-data-local: ${INSTALL} -d -m 0755 ${DOCPATH} for doc in ${DOCS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${doc} ${DOCPATH}; \ done uninstall-local: for doc in ${DOCS}; do \ /bin/rm -f ${DOCPATH}/$${doc}; \ done # 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: dopewars-1.5.12/doc/windows.html0000644001565000007070000000446407554341272013520 00000000000000 dopewars and Microsoft Windows

dopewars and Microsoft Windows

dopewars now runs natively on Win32 systems (95, 98, NT, 2000). It runs by default as a dopewars client, using the familiar Windows interface. However, if you prefer the "original look" text mode interface, this is still available; just right click on a shortcut to dopewars, and add -t to the end of the command line. To run a dopewars server, add -s instead.

Binaries can be obtained from the main download site, or dopewars will compile with the free Cygwin tools under Win32. dopewars uses the GLib library, which can be obtained for Windows from http://www.gimp.org/~tml/gimp/win32/. The installation procedure is the same as that for Unix systems - download the tarball, extract the files, change into the created directory, run the configure script, and then make. This builds a native Win32 binary, which does not need the Cygwin libraries to run. See the INSTALL file in the source code distribution (.tar.gz file) for further details.

In virtually all respects, the Unix and Win32 versions of dopewars should be identical. Both will accept the same command line parameters and configuration options. However, since the standard Unix paths for the high score file and configuration files do not translate well to Windows, by default the program will look for both the high score file dopewars.sco in the current directory, and will read a global configuration file dopewars-config.txt from the directory in which the dopewars binary was installed, followed by a per-user configuration file of the same name in the working directory.


Last update: 19-10-2002
Valid XHTML 1.1

dopewars-1.5.12/doc/i18n.html0000644001565000007070000002561010140542461012565 00000000000000 Internationalization

Internationalization

dopewars uses the GNU gettext utilities for internationalization (i18n) support. This allows the software to be translated into the local language at runtime - run dopewars in the UK and it'll talk to you in English, but run it in Germany and it'll talk to you in German. This relies on translators to translate the program's output into each language beforehand, of course, and so native language speakers to carry out this task are always needed!

Running dopewars with i18n support

i18n is only included in versions of dopewars later than 1.4.8. By default, "Native Language Support" is compiled in; binary installations should be already set up for i18n. When compiling dopewars from source code, the configure script should detect whether your system can support GNU gettext. If it can, but the gettext utilities themselves are not present, an included copy in the intl/ subdirectory is used. To disable i18n, pass the --disable-nls option to the configure script.

When you run your installed copy of dopewars, it should detect your "locale" automatically and talk to you in your native language. If this does not happen, the following are some possible explanations:-

  • dopewars cannot find the locale-specific language file - by default, stored under /usr/local/share/locale/
  • Your language is not yet supported - why not add it yourself?
  • Your system does not have locale support.
  • On a Windows system, you need to select the language from the relevant section of Control Panel (or set the LANG environment variable, below). i18n under Windows is only supported by version 1.5.3 and later.
  • You haven't set an environment variable to specify your locale (usually this is done automatically). For example, if you're using the bash shell and want a German translation, the command "export LANG=de_DE" should ensure that dopewars (and all other i18n-aware programs launched from this shell) will use the German language.

Adding a new translation

Translation files are kept in the subdirectory po/ of the dopewars source code distribution. They are named by 2-letter language codes followed by the .po extension - for example, the German translation is stored in the file po/de.po. They are simple text files, consisting of lists of the original English string (labelled by "msgid") followed by the translated string (labelled by "msgstr").

Adding a new translation is simply a matter of copying the reference file dopewars.pot to your language-specific .po file in the po/ directory, and filling in the "msgstr" entries. Once this is done, edit the configure.in file in the top dopewars directory to add your language code to the ALL_LINGUAS variable. Then run autoconf to rebuild the configure script, before making and installing dopewars as usual. The new translation should now be available. Once this is complete, please send the translation to be included in the next dopewars version.

Please note that some strings are format strings containing the % character. These are used in the program code for substituting numbers and other pieces of text into the string - these substitutions are are performed using variables which are specified in the same order as the % characters in the format string. For example, the following format string substitutes in a string (%s) and an integer number (%d):-
"String '%s' has %d characters"
The string and number are specified in order in the code. This is problematic if your translation changes the order - for example, a valid German translation of the string would be
"%d Zeichen lang ist die Zeichenkette '%s'"
Now the number and string are specified in the wrong order, and this will probably crash the program on running! To fix this, use the special notation
"%2$d Zeichen lang ist die Zeichenkette '%1$s'"
(i.e. replace %x with %n$x where n is the index that the format specifier "should" have, starting from 1.)

dopewars specifics

  • When questions are asked in the curses (text mode) client, the keys that you are allowed to press in reply are stored in a string. This should be translated to suitable keys in your language, in the same order as the original - e.g. "YN" (for Yes/No) could be translated in German to "JN" (for Ja/Nein).

  • When a dopewars server asks a client a question, the valid replies are sent at the start of the message, followed by a "^" character. These replies define the dopewars protocol, and so should not be translated - they will prevent clients and servers from talking to each other properly. So for example, the string "YN^Would you like to visit %s?" should be translated as you wish, but with the "YN^" at the start left unchanged.

  • The %txx notation is used for "translated strings". This notation is exactly equivalent to the standard C "%s" notation for a string, and does essentially the same thing, except that the two-letter code which follows the %t is used to select an "alternative form" of the word - for example, your language may have different words for "bitch" depending on whether the word is the subject or the object of the sentence. You are free to translate %txx to use the most appropriate form of the word. If you wish to capitalise the first letter of the word (as used in English for titles, etc.) then use "%T" rather than "%t".

    Obviously dopewars cannot guess what your "alternative forms" are; you must specify them yourself. Essentially, when setting a string in a dopewars configuration file (or the defaults, which are set in dopewars.c) alternative forms can be added by alternating two-letter codes and alternative forms after the original word, separating them by _ (underline) symbols. For example,
    Names.Bitch = "bitch_no_bitcho_ac_bitche"
    specifies two alternative forms for "bitch", identified by the "no" and "ac" codes. You can then use "bitcho" anywhere that "bitch" is normally used by translating the relevant string as "%tno" (and to get "bitche" use "%tac"). If you specify a two letter code in the translation that you haven't given an alternative form for, the default word ("bitch") will be used. In the original English, "%tde" is used for this purpose, but there is nothing special about the "de" code - you can use it yourself if you like, and you can use as many different two-letter codes as you want to.

    For a good working example of the "%tde" notation, see the Norwegian Nynorsk translation (nn.po).

    Additionally, prices in dopewars are automatically formatted into strings by means of the %P notation, and comments can be introduced into format strings by means of the %/.../ notation. Everything between the two / characters is not printed. This is used to "qualify" some strings for translation, and the %/.../ can be left out of the translated string if desired (the comment does not need to be translated).

Updating a translation for a new dopewars version

New versions of dopewars will often change what is printed to the user, and so may may require changes to the translation. To update an existing translation, change into the po subdirectory of the dopewars source code, and do a "make dopewars.pot". This creates the dopewars.pot file, which lists the strings that need translating. Next, create a new translation file from your "old" translation file (we'll assume it's called de.po) and dopewars.pot with the msgmerge command:-
msgmerge -o newfile de.po dopewars.pot
Examine this new file newfile for translations that need updating (a search for "fuzzy" should find most of them) and then overwrite your old translation with the new one:
mv newfile de.po
Rebuild and reinstall dopewars, and the new translations should become available. Again, it is deeply appreciated if such updated files are contributed to the main dopewars distribution!

Currently available translations

  • French (fr.po)
    • Maintained by: leonard
    • Version required: 1.5.2 or later
  • French (Canada) (fr_CA.po)
  • German (de.po)
  • Polish (pl.po)
  • Portuguese (Brazil) (pt_BR.po)
  • Norwegian Nynorsk (nn.po)
  • Spanish (es.po or es_ES.po)
    • Maintained by: Quique
    • Version required: 1.5.8 or later

Last update: 29-10-2004
Valid XHTML 1.1

dopewars-1.5.12/doc/Makefile.in0000644001565000007070000004423010355323275013174 00000000000000# Makefile.in generated by automake 1.9.5 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@ target_triplet = @target@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/dopewars.6.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = dopewars.6 SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive man6dir = $(mandir)/man6 am__installdirs = "$(DESTDIR)$(man6dir)" NROFF = nroff MANS = $(man_MANS) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ DOCPATH = ${DESTDIR}${datadir}/doc/${PACKAGE}-${VERSION}/ DOCS = aiplayer.html configfile.html index.html i18n.html \ server.html clientplay.html credits.html example-cfg \ installation.html servercommands.html commandline.html \ contribute.html developer.html metaserver.html \ protocol.html windows.html ../LICENCE example-igneous man_MANS = dopewars.6 SUBDIRS = help EXTRA_DIST = dopewars.6.in ${DOCS} DISTCLEANFILES = dopewars.6 all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/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 dopewars.6: $(top_builddir)/config.status $(srcdir)/dopewars.6.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-man6: $(man6_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man6dir)" || $(mkdir_p) "$(DESTDIR)$(man6dir)" @list='$(man6_MANS) $(dist_man6_MANS) $(nodist_man6_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.6*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 6*) ;; \ *) ext='6' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man6dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man6dir)/$$inst"; \ done uninstall-man6: @$(NORMAL_UNINSTALL) @list='$(man6_MANS) $(dist_man6_MANS) $(nodist_man6_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.6*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 6*) ;; \ *) ext='6' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man6dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man6dir)/$$inst"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(mkdir_p) $(distdir)/.. @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(MANS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(man6dir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-data-local install-man install-exec-am: install-info: install-info-recursive install-man: install-man6 installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-local uninstall-man uninstall-info: uninstall-info-recursive uninstall-man: uninstall-man6 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-data-local install-exec \ install-exec-am install-info install-info-am install-man \ install-man6 install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am uninstall-local \ uninstall-man uninstall-man6 install-data-local: ${INSTALL} -d -m 0755 ${DOCPATH} for doc in ${DOCS}; do \ ${INSTALL} -m 0644 ${srcdir}/$${doc} ${DOCPATH}; \ done uninstall-local: for doc in ${DOCS}; do \ /bin/rm -f ${DOCPATH}/$${doc}; \ done /bin/rm -f ${DOCPATH}/LICENCE # 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: dopewars-1.5.12/install-sh0000755001565000007070000001273607156722203012373 00000000000000#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # 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}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: chmodcmd="" else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # 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 $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 dopewars-1.5.12/acinclude.m40000644001565000007070000106535010355323252012555 00000000000000#serial AM1 dnl From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET);], am_cv_langinfo_codeset=yes, am_cv_langinfo_codeset=no) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi ]) dnl DP_EXPAND_DIR(VARNAME, DIR) dnl expands occurrences of ${prefix} and ${exec_prefix} in the given DIR, dnl and assigns the resulting string to VARNAME dnl example: DP_EXPAND_DIR(LOCALEDIR, "$datadir/locale") dnl eg, then: AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR") dnl by Alexandre Oliva dnl from http://www.cygnus.com/ml/automake/1998-Aug/0040.html dnl Modified by Ben Webb, 2002, to perform two expansions; this dnl handles the case where DIR is something like ${datadir} dnl (first expansion -> ${prefix}/share, dnl second expansion -> /usr/local/share) AC_DEFUN(DP_EXPAND_DIR, [ $1=$2 $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""[$]$1"\" )` $1=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" eval echo \""[$]$1"\" )` ]) # Configure paths for ESD # Manish Singh 98-9-30 # stolen back from Frank Belew # stolen from Manish Singh # Shamelessly stolen from Owen Taylor dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS dnl AC_DEFUN([AM_PATH_ESD], [dnl dnl Get the cflags and libraries from the esd-config script dnl AC_ARG_WITH(esd-prefix,[ --with-esd-prefix=PFX Prefix where ESD is installed (optional)], esd_prefix="$withval", esd_prefix="") AC_ARG_WITH(esd-exec-prefix,[ --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)], esd_exec_prefix="$withval", esd_exec_prefix="") AC_ARG_ENABLE(esdtest, [ --disable-esdtest Do not try to compile and run a test ESD program], , enable_esdtest=yes) if test x$esd_exec_prefix != x ; then esd_args="$esd_args --exec-prefix=$esd_exec_prefix" if test x${ESD_CONFIG+set} != xset ; then ESD_CONFIG=$esd_exec_prefix/bin/esd-config fi fi if test x$esd_prefix != x ; then esd_args="$esd_args --prefix=$esd_prefix" if test x${ESD_CONFIG+set} != xset ; then ESD_CONFIG=$esd_prefix/bin/esd-config fi fi AC_PATH_PROG(ESD_CONFIG, esd-config, no) min_esd_version=ifelse([$1], ,0.2.7,$1) AC_MSG_CHECKING(for ESD - version >= $min_esd_version) no_esd="" if test "$ESD_CONFIG" = "no" ; then no_esd=yes else AC_LANG_SAVE AC_LANG_C ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` esd_major_version=`$ESD_CONFIG $esd_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` esd_minor_version=`$ESD_CONFIG $esd_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_esdtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $ESD_CFLAGS" LIBS="$LIBS $ESD_LIBS" dnl dnl Now check if the installed ESD is sufficiently new. (Also sanity dnl checks the results of esd-config to some extent dnl rm -f conf.esdtest AC_TRY_RUN([ #include #include #include #include char* my_strdup (char *str) { char *new_str; if (str) { new_str = malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main () { int major, minor, micro; char *tmp_version; system ("touch conf.esdtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_esd_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_esd_version"); exit(1); } if (($esd_major_version > major) || (($esd_major_version == major) && ($esd_minor_version > minor)) || (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) { return 0; } else { printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); printf("*** to point to the correct copy of esd-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } ],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" AC_LANG_RESTORE fi fi if test "x$no_esd" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$ESD_CONFIG" = "no" ; then echo "*** The esd-config script installed by ESD could not be found" echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the ESD_CONFIG environment variable to the" echo "*** full path to esd-config." else if test -f conf.esdtest ; then : else echo "*** Could not run ESD test program, checking why..." CFLAGS="$CFLAGS $ESD_CFLAGS" LIBS="$LIBS $ESD_LIBS" AC_LANG_SAVE AC_LANG_C AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding ESD or finding the wrong" echo "*** version of ESD. If it is not finding ESD, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means ESD was incorrectly installed" echo "*** or that you have moved ESD since it was installed. In the latter case, you" echo "*** may want to edit the esd-config script: $ESD_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" AC_LANG_RESTORE fi fi ESD_CFLAGS="" ESD_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(ESD_CFLAGS) AC_SUBST(ESD_LIBS) rm -f conf.esdtest ]) dnl AM_ESD_SUPPORTS_MULTIPLE_RECORD([ACTION-IF-SUPPORTS [, ACTION-IF-NOT-SUPPORTS]]) dnl Test, whether esd supports multiple recording clients (version >=0.2.21) dnl AC_DEFUN([AM_ESD_SUPPORTS_MULTIPLE_RECORD], [dnl AC_MSG_NOTICE([whether installed esd version supports multiple recording clients]) ac_save_ESD_CFLAGS="$ESD_CFLAGS" ac_save_ESD_LIBS="$ESD_LIBS" AM_PATH_ESD(0.2.21, ifelse([$1], , [ AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, true) AC_DEFINE(ESD_SUPPORTS_MULTIPLE_RECORD, 1, [Define if you have esound with support of multiple recording clients.])], [$1]), ifelse([$2], , [AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, false)], [$2]) if test "x$ac_save_ESD_CFLAGS" != x ; then ESD_CFLAGS="$ac_save_ESD_CFLAGS" fi if test "x$ac_save_ESD_LIBS" != x ; then ESD_LIBS="$ac_save_ESD_LIBS" fi ) ]) # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License or the GNU Library General Public License but which still want # to provide support for the GNU gettext functionality. # Please note that the actual code of the GNU gettext library is covered # by the GNU Library General Public License, and the rest of the GNU # gettext package package is covered by the GNU General Public License. # They are *not* in the public domain. # serial 10 dnl Usage: AM_WITH_NLS([TOOLSYMBOL], [NEEDSYMBOL], [LIBDIR]). dnl If TOOLSYMBOL is specified and is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). Otherwise, a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. dnl LIBDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_WITH_NLS], [AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE(nls, [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT($USE_NLS) AC_SUBST(USE_NLS) BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no INTLLIBS= dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.]) AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. CATOBJEXT=NONE dnl Add a version number to the cache macros. define(gt_cv_func_gnugettext_libc, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libc]) define(gt_cv_func_gnugettext_libintl, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libintl]) AC_CHECK_HEADER(libintl.h, [AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, [AC_TRY_LINK([#include extern int _nl_msg_cat_cntr;], [bindtextdomain ("", ""); return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no)]) if test "$gt_cv_func_gnugettext_libc" != "yes"; then AC_CACHE_CHECK([for GNU gettext in libintl], gt_cv_func_gnugettext_libintl, [gt_save_LIBS="$LIBS" LIBS="$LIBS -lintl $LIBICONV" AC_TRY_LINK([#include extern int _nl_msg_cat_cntr;], [bindtextdomain ("", ""); return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr], gt_cv_func_gnugettext_libintl=yes, gt_cv_func_gnugettext_libintl=no) LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if test "$gt_cv_func_gnugettext_libc" = "yes" \ || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ && test "$PACKAGE" != gettext; }; then AC_DEFINE(HAVE_GETTEXT, 1, [Define if the GNU gettext() function is already present or preinstalled.]) if test "$gt_cv_func_gnugettext_libintl" = "yes"; then dnl If iconv() is in a separate libiconv library, then anyone dnl linking with libintl{.a,.so} also needs to link with dnl libiconv. INTLLIBS="-lintl $LIBICONV" fi gt_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) LIBS="$gt_save_LIBS" dnl Search for GNU msgfmt in the PATH. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) dnl Search for GNU xgettext in the PATH. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :) CATOBJEXT=.gmo fi ]) if test "$CATOBJEXT" = "NONE"; then dnl GNU gettext is not found in the C library. dnl Fall back on GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. INTLOBJS="\$(GETTOBJS)" AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :) AC_SUBST(MSGFMT) BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes CATOBJEXT=.gmo INTLLIBS="ifelse([$3],[],\$(top_builddir)/intl,[$3])/libintl.ifelse([$1], use-libtool, [l], [])a $LIBICONV" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. dnl Test whether we really found GNU msgfmt. if test "$GMSGFMT" != ":"; then dnl If it is no GNU msgfmt we define it as : so that the dnl Makefiles still can work. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then : ; else AC_MSG_RESULT( [found msgfmt program is not GNU msgfmt; ignore it]) GMSGFMT=":" fi fi dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi dnl We need to process the po/ directory. POSUB=po fi AC_OUTPUT_COMMANDS( [for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" fi ;; esac done]) dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext; then BUILD_INCLUDED_LIBINTL=yes fi dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(BUILD_INCLUDED_LIBINTL) AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(GMOFILES) AC_SUBST(INTLLIBS) AC_SUBST(INTLOBJS) AC_SUBST(POFILES) AC_SUBST(POSUB) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST(DATADIRNAME) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST(INSTOBJEXT) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST(GENCAT) ]) dnl Usage: Just like AM_WITH_NLS, which see. AC_DEFUN([AM_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_ISC_POSIX])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_CONST])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([jm_GLIBC21])dnl AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ stdlib.h string.h unistd.h sys/param.h]) AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getcwd getegid geteuid \ getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ strdup strtoul tsearch __argz_count __argz_stringify __argz_next]) AM_ICONV AM_LANGINFO_CODESET AM_LC_MESSAGES AM_WITH_NLS([$1],[$2],[$3]) if test "x$CATOBJEXT" != "x"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but $(top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=ifelse([$1], use-libtool, [l], []) AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) ]) # Configure paths for GLIB # Owen Taylor 1997-2001 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or dnl gthread is specified in MODULES, pass to pkg-config dnl AC_DEFUN([AM_PATH_GLIB_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], , enable_glibtest=yes) pkg_config_args=glib-2.0 for module in . $4 do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done AC_PATH_PROG(PKG_CONFIG, pkg-config, no) no_glib="" if test x$PKG_CONFIG != xno ; then if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then : else echo *** pkg-config too old; version 0.7 or better required. no_glib=yes PKG_CONFIG=no fi else no_glib=yes fi min_glib_version=ifelse([$1], ,2.0.0,$1) AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" dnl dnl Now check if the installed GLIB is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.glibtest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" AC_TRY_LINK([ #include #include ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) AC_SUBST(GLIB_GENMARSHAL) AC_SUBST(GOBJECT_QUERY) AC_SUBST(GLIB_MKENUMS) rm -f conf.glibtest ]) #serial 2 # Test for the GNU C Library, version 2.1 or newer. # From Bruno Haible. AC_DEFUN([jm_GLIBC21], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, ac_cv_gnu_library_2_1, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2_1=yes, ac_cv_gnu_library_2_1=no) ] ) AC_SUBST(GLIBC21) GLIBC21="$ac_cv_gnu_library_2_1" ] ) # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return (int) dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) if test "$gt_cv_func_dgettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share and dnl and CATOBJEXT=.gmo in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac]) LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi ]) if test "$gt_cv_have_gettext" = "yes" ; then AC_DEFINE(ENABLE_NLS, 1, [always defined to indicate that i18n is enabled]) fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is not GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLLIBS) AC_SUBST(PO_IN_DATADIR_TRUE) AC_SUBST(PO_IN_DATADIR_FALSE) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) # AM_GLIB_GNU_GETTEXT # ------------------- # Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library, # it will set INTLLIBS to the libraries needed for use of gettext # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() # on various variables needed by the Makefile.in.in installed by # glib-gettextize. dnl glib_DEFUN([GLIB_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_HEADER_STDC])dnl GLIB_LC_MESSAGES GLIB_WITH_NLS if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) # ------------------------------- # Define VARIABLE to the location where catalog files will # be installed by po/Makefile. glib_DEFUN([GLIB_DEFINE_LOCALEDIR], [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl glib_save_prefix="$prefix" glib_save_exec_prefix="$exec_prefix" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix if test "x$CATOBJEXT" = "x.mo" ; then localedir=`eval echo "${libdir}/locale"` else localedir=`eval echo "${datadir}/locale"` fi prefix="$glib_save_prefix" exec_prefix="$glib_save_exec_prefix" AC_DEFINE_UNQUOTED($1, "$localedir", [Define the location where the catalogs will be installed]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_in,[],[ AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) ])dnl # Configure paths for GLIB # Owen Taylor 97-11-3 dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or dnl gthread is specified in MODULES, pass to glib-config dnl AC_DEFUN([AM_PATH_GLIB], [dnl dnl Get the cflags and libraries from the glib-config script dnl AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)], glib_config_prefix="$withval", glib_config_prefix="") AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)], glib_config_exec_prefix="$withval", glib_config_exec_prefix="") AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program], , enable_glibtest=yes) if test x$glib_config_exec_prefix != x ; then glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" if test x${GLIB_CONFIG+set} != xset ; then GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config fi fi if test x$glib_config_prefix != x ; then glib_config_args="$glib_config_args --prefix=$glib_config_prefix" if test x${GLIB_CONFIG+set} != xset ; then GLIB_CONFIG=$glib_config_prefix/bin/glib-config fi fi for module in . $4 do case "$module" in gmodule) glib_config_args="$glib_config_args gmodule" ;; gthread) glib_config_args="$glib_config_args gthread" ;; esac done AC_PATH_PROG(GLIB_CONFIG, glib-config, no) min_glib_version=ifelse([$1], ,0.99.7,$1) AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) no_glib="" if test "$GLIB_CONFIG" = "no" ; then no_glib=yes else GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" dnl dnl Now check if the installed GLIB is sufficiently new. (Also sanity dnl checks the results of glib-config to some extent dnl rm -f conf.glibtest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If glib-config was correct, then it is best\n"); printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the glib-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); printf("*** correct copy of glib-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$GLIB_CONFIG" = "no" ; then echo "*** The glib-config script installed by GLIB could not be found" echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GLIB_CONFIG environment variable to the" echo "*** full path to glib-config." else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" AC_TRY_LINK([ #include #include ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB was incorrectly installed" echo "*** or that you have moved GLIB since it was installed. In the latter case, you" echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) rm -f conf.glibtest ]) # Configure paths for GTK+ # Owen Taylor 1997-2001 dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, dnl pass to pkg-config dnl AC_DEFUN([AM_PATH_GTK_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], , enable_gtktest=yes) pkg_config_args=gtk+-2.0 for module in . $4 do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=ifelse([$1], ,2.0.0,$1) AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" dnl dnl Now check if the installed GTK+ is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.gtktest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtktest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" AC_TRY_LINK([ #include #include ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) rm -f conf.gtktest ]) # Configure paths for GTK+ # Owen Taylor 97-11-3 dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS dnl AC_DEFUN([AM_PATH_GTK], [dnl dnl Get the cflags and libraries from the gtk-config script dnl AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)], gtk_config_prefix="$withval", gtk_config_prefix="") AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)], gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="") AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program], , enable_gtktest=yes) for module in . $4 do case "$module" in gthread) gtk_config_args="$gtk_config_args gthread" ;; esac done if test x$gtk_config_exec_prefix != x ; then gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" if test x${GTK_CONFIG+set} != xset ; then GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config fi fi if test x$gtk_config_prefix != x ; then gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" if test x${GTK_CONFIG+set} != xset ; then GTK_CONFIG=$gtk_config_prefix/bin/gtk-config fi fi AC_PATH_PROG(GTK_CONFIG, gtk-config, no) min_gtk_version=ifelse([$1], ,0.99.7,$1) AC_MSG_CHECKING(for GTK - version >= $min_gtk_version) no_gtk="" if test "$GTK_CONFIG" = "no" ; then no_gtk=yes else GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" dnl dnl Now check if the installed GTK is sufficiently new. (Also sanity dnl checks the results of gtk-config to some extent dnl rm -f conf.gtktest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtktest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If gtk-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); printf("*** before re-running configure\n"); } #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } #endif /* defined (GTK_MAJOR_VERSION) ... */ else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); printf("*** correct copy of gtk-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$GTK_CONFIG" = "no" ; then echo "*** The gtk-config script installed by GTK could not be found" echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the GTK_CONFIG environment variable to the" echo "*** full path to gtk-config." else if test -f conf.gtktest ; then : else echo "*** Could not run GTK test program, checking why..." CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" AC_TRY_LINK([ #include #include ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK or finding the wrong" echo "*** version of GTK. If it is not finding GTK, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK was incorrectly installed" echo "*** or that you have moved GTK since it was installed. In the latter case, you" echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) rm -f conf.gtktest ]) #serial AM2 dnl From Bruno Haible. AC_DEFUN([AM_ICONV], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_ARG_WITH([libiconv-prefix], [ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [ for dir in `echo "$withval" | tr : ' '`; do if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi done ]) AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS -liconv" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi LIBICONV= if test "$am_cv_lib_iconv" = yes; then LIBICONV="-liconv" fi AC_SUBST(LIBICONV) ]) # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License or the GNU Library General Public License but which still want # to provide support for the GNU gettext functionality. # Please note that the actual code of the GNU gettext library is covered # by the GNU Library General Public License, and the rest of the GNU # gettext package package is covered by the GNU General Public License. # They are *not* in the public domain. # serial 2 AC_DEFUN([AM_LC_MESSAGES], [if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- ## Copyright 1996, 1997, 1998, 1999, 2000, 2001 ## Free Software Foundation, Inc. ## Originally by Gordon Matzigkeit , 1996 ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ## ## As a special exception to the GNU General Public License, if you ## distribute this file as part of a program that contains a ## configuration script generated by Autoconf, you may include it under ## the same distribution terms that you use for the rest of that program. # serial 47 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH 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 # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' [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 avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ;; *) old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null && echo_test_string="`eval $cmd`" && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case "`/usr/bin/file conftest.o`" in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s conftest.err; then $2=yes fi fi $rm conftest* ]) if test x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD else $2=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # 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; ;; 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; ;; *) # 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"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done 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` ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # -------------------- AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ------------------------------------------------------------------ AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_unknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) ]) ]) ]) ]) ]) ;; 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" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$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}? :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s out/conftest.err; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . $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 .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; 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 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_MSG_CHECKING([dynamic linker characteristics]) 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" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # 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. 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 else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) 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 ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-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='GNU ld.so' ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 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 ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; 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 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' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 Linux ELF. linux*) 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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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 # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $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' ;; knetbsd*-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='GNU ld.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 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=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=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=yes 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" ;; sco3.2v5*) version_type=osf 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 ;; solaris*) 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=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.2uw2* | sysv4.3* | sysv5*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && test "X$CXX" != "Xno"; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 dll's AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- #- set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognise shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&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 EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognise a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; 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)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; 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]) 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 ;; 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 Linux ELF. linux*) case $host_cpu in alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) lt_cv_deplibs_check_method=pass_all ;; *) # glibc up to 2.1.1 does not perform some relocations on ARM # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; esac lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` lt_cv_deplibs_check_method=pass_all ;; netbsd*) 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=unknown ;; openbsd*) lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' else lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; sco3.2v5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 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 ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) 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 ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/${ac_tool_prefix}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" test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and # top_srcdir appropriately in the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that LIBLTDL # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If # DIRECTORY is not provided and an installed libltdl is not found, it is # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single # quotes!). If your package is not flat and you're not using automake, # define top_builddir and top_srcdir appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # -------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' _LT_AC_SYS_COMPILER # # Check for any special shared library compilation flags. # _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= if test "$GCC" = no; then case $host_os in sco3.2v5*) _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' ;; esac fi if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : else AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no fi fi # # Check to make sure the static flag actually works. # AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ## 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... AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF($1) # Report which librarie types wil actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; darwin* | rhapsody*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case "$host_os" in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' ;; esac fi ;; esac output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cc # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' 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 # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) _LT_AC_TAGVAR(always_export_symbols, $1)=yes # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds it's shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case "$host_os" in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' ;; esac fi ;; esac lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; dgux*) case $cc_basename in ec++) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | kfreebsd*-gnu) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; *) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC) case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case "$host_cpu" in ia64*|hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; irix5* | irix6*) case $cc_basename in CC) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc) # Intel C++ with_gnu_ld=yes _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; cxx) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; osf3*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sco*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case $cc_basename in CC) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; sunos4*) case $cc_basename in CC) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' fi ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; tandem*) case $cc_basename in NCC) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # 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 s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation ? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # 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=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\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 EOF ;; esac # 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) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform the above into a raw symbol and a C symbol. symxfrm='\1 \2\3 \3' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \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\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris* | sysv5*) symcode='[[BDRT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # 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 # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # 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*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | kfreebsd*-gnu) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; cxx) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; sco*) case $cc_basename in CC) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; *) ;; esac ;; solaris*) case $cc_basename in CC) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; unixware*) ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | pw32* | os2*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux*) case $CC in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; sco3.2v5*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # 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. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # 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 ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [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 if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 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 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' 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 # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) _LT_AC_TAGVAR(always_export_symbols, $1)=yes # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds it's shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi4*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # 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. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) if test "$GXX" = yes ; then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case "$host_os" in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' ;; esac fi ;; esac lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; *) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; sco3.2v5*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4.2uw2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv5*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = 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 # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && break cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done SED=$lt_cv_path_SED ]) AC_MSG_RESULT([$SED]) ]) # Search path for a program which passes the given test. # Ulrich Drepper , 1996. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License or the GNU Library General Public License but which still want # to provide support for the GNU gettext functionality. # Please note that the actual code of the GNU gettext library is covered # by the GNU Library General Public License, and the rest of the GNU # gettext package package is covered by the GNU General Public License. # They are *not* in the public domain. # serial 2 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # Configure paths for SDL # Sam Lantinga 9/21/99 # stolen from Manish Singh # stolen back from Frank Belew # stolen from Manish Singh # Shamelessly stolen from Owen Taylor dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS dnl AC_DEFUN([AM_PATH_SDL], [dnl dnl Get the cflags and libraries from the sdl-config script dnl AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], sdl_prefix="$withval", sdl_prefix="") AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], sdl_exec_prefix="$withval", sdl_exec_prefix="") AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], , enable_sdltest=yes) if test x$sdl_exec_prefix != x ; then sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" if test x${SDL_CONFIG+set} != xset ; then SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config fi fi if test x$sdl_prefix != x ; then sdl_args="$sdl_args --prefix=$sdl_prefix" if test x${SDL_CONFIG+set} != xset ; then SDL_CONFIG=$sdl_prefix/bin/sdl-config fi fi AC_REQUIRE([AC_CANONICAL_TARGET]) PATH="$prefix/bin:$prefix/usr/bin:$PATH" AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) min_sdl_version=ifelse([$1], ,0.11.0,$1) AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) no_sdl="" if test "$SDL_CONFIG" = "no" ; then no_sdl=yes else SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_sdltest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_CXXFLAGS="$CXXFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" dnl dnl Now check if the installed SDL is sufficiently new. (Also sanity dnl checks the results of sdl-config to some extent dnl rm -f conf.sdltest AC_TRY_RUN([ #include #include #include #include "SDL.h" char* my_strdup (char *str) { char *new_str; if (str) { new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main (int argc, char *argv[]) { int major, minor, micro; char *tmp_version; /* This hangs on some systems (?) system ("touch conf.sdltest"); */ { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_sdl_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_sdl_version"); exit(1); } if (($sdl_major_version > major) || (($sdl_major_version == major) && ($sdl_minor_version > minor)) || (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) { return 0; } else { printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); printf("*** to point to the correct copy of sdl-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } ],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_sdl" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$SDL_CONFIG" = "no" ; then echo "*** The sdl-config script installed by SDL could not be found" echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the SDL_CONFIG environment variable to the" echo "*** full path to sdl-config." else if test -f conf.sdltest ; then : else echo "*** Could not run SDL test program, checking why..." CFLAGS="$CFLAGS $SDL_CFLAGS" CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" AC_TRY_LINK([ #include #include "SDL.h" int main(int argc, char *argv[]) { return 0; } #undef main #define main K_and_R_C_main ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding SDL or finding the wrong" echo "*** version of SDL. If it is not finding SDL, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means SDL was incorrectly installed" echo "*** or that you have moved SDL since it was installed. In the latter case, you" echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" fi fi SDL_CFLAGS="" SDL_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(SDL_CFLAGS) AC_SUBST(SDL_LIBS) rm -f conf.sdltest ]) dopewars-1.5.12/runindent.sh0000755001565000007070000000370607434201410012720 00000000000000#!/bin/sh -f indent -kr -i2 -cp1 -ncs -bad -nut \ -fc1 -fca -sc \ \ -T SCREEN \ \ -T ssize_t -T fd_set -T FILE \ \ -T price_t -T AbilType -T Abilities -T ClientType -T DispMode \ -T EventCode -T PlayerFlags -T DrugIndex -T Inventory -T Player \ -T DopeEntry -T DopeList -T ServerData -T ErrorType -T LastError \ -T CustomErrorCode -T ErrTable -T MetaErrorCode -T MsgCode -T AICode \ -T FightPoint -T SocksMethods -T SocksErrorCode -T HttpErrorCode \ -T ConnBuf -T NetworkBuffer -T NBCallBack -T NBUserPasswd \ -T SocksServer -T NBStatus -T NBSocksStatus -T HttpStatus \ -T HttpConnection -T HCAuthFunc -T OfferForce -T FmtData \ \ -T TCHAR -T DWORD -T HANDLE -T ACCEL -T RECT -T COLORREF \ -T LPARAM -T WPARAM -T LPMINMAXINFO -T HWND -T LPMEASUREITEMSTRUCT \ -T HD_NOTIFY -T NMHDR -T UINT -T SOCKET -T HBRUSH -T LONG -T LPTSTR \ -T HFONT -T BOOL \ \ -T GString -T gpointer -T gconstpointer -T gchar -T guchar -T gint \ -T guint -T GList -T GSList -T gboolean -T GScannerConfig -T GScanner \ -T GPtrArray -T GArray -T gfloat -T gint16 \ \ -T GtkObject -T GtkCList -T GtkWidget -T GtkRequisition \ -T GtkAllocation -T GtkWindow -T GtkContainer -T GtkRadioButton \ -T GtkAdjustment -T GtkEntry -T GtkAccelGroup -T GtkTable \ -T GtkItemFactory -T GtkItemFactoryEntry -T GtkEditable -T GtkText \ -T GtkBox -T GtkToggleButton -T GtkMenuShell -T GtkMenuBar -T GtkMenu \ -T GtkNotebook -T GtkMenuItem -T GtkPaned -T GtkOptionMenu -T GtkLabel \ -T GtkSpinButton -T GtkMisc -T GtkProgressBar -T GdkEvent -T GtkButton \ -T GtkClass -T GdkInput -T GtkBoxChild -T GtkTableChild -T GtkSignal \ -T GtkGIntSignalFunc -T GtkItemFactoryChild -T GtkNotebookChild \ -T GtkCListRow -T GdkEventButton -T GtkCheckButton -T GtkTimeout \ \ -T NTService -T InstFiles -T InstLink -T InstData -T bstr -T InstFlags dopewars-1.5.12/Makefile.in0000644001565000007070000005433110355323277012434 00000000000000# Makefile.in generated by automake 1.9.5 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@ target_triplet = @target@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/dopewars.spec.in $(top_srcdir)/configure \ $(top_srcdir)/intl/Makefile.in ABOUT-NLS AUTHORS COPYING \ ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \ install-sh ltmain.sh missing mkinstalldirs subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = intl/Makefile dopewars.spec SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSESLIB = @CURSESLIB@ CURSESPORTLIB = @CURSESPORTLIB@ CURSESPORT_FALSE = @CURSESPORT_FALSE@ CURSESPORT_TRUE = @CURSESPORT_TRUE@ CURSES_CLIENT_FALSE = @CURSES_CLIENT_FALSE@ CURSES_CLIENT_TRUE = @CURSES_CLIENT_TRUE@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DPDATADIR = @DPDATADIR@ DPSCOREDIR = @DPSCOREDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ESD_CFLAGS = @ESD_CFLAGS@ ESD_CONFIG = @ESD_CONFIG@ ESD_FALSE = @ESD_FALSE@ ESD_LIBS = @ESD_LIBS@ ESD_TRUE = @ESD_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_CONFIG = @GLIB_CONFIG@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_QUERY = @GOBJECT_QUERY@ GTKPORTLIB = @GTKPORTLIB@ GTKPORT_FALSE = @GTKPORT_FALSE@ GTKPORT_TRUE = @GTKPORT_TRUE@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_CONFIG = @GTK_CONFIG@ GTK_LIBS = @GTK_LIBS@ GUILIB = @GUILIB@ GUI_CLIENT_FALSE = @GUI_CLIENT_FALSE@ GUI_CLIENT_TRUE = @GUI_CLIENT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PLUGINS_FALSE = @PLUGINS_FALSE@ PLUGINS_TRUE = @PLUGINS_TRUE@ PLUGLIBS = @PLUGLIBS@ PLUGOBJS = @PLUGOBJS@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ SDL_CFLAGS = @SDL_CFLAGS@ SDL_CONFIG = @SDL_CONFIG@ SDL_FALSE = @SDL_FALSE@ SDL_LIBS = @SDL_LIBS@ SDL_TRUE = @SDL_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SOUND_CFLAGS = @SOUND_CFLAGS@ SOUND_LIBS = @SOUND_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WNDRES = @WNDRES@ XGETTEXT = @XGETTEXT@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ plugindir = @plugindir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ SUBDIRS = intl src doc po sounds DESKTOPDIR = ${DESTDIR}${datadir}/gnome/apps/Games DESKTOP = dopewars.desktop SCOREDIR = ${DESTDIR}${localstatedir} SCORE = ${SCOREDIR}/dopewars.sco EXTRA_DIST = ABOUT-NLS LICENCE dopewars.desktop dopewars.spec.in depcomp \ runindent.sh win32/Makefile win32/README win32/contid.h \ win32/dialogs.rc win32/filelist win32/guifunc.c \ win32/guifunc.h win32/makeinstall.c win32/setup.c \ win32/setup.ico win32/setup.rc win32/uninstall.c \ win32/uninstall.rc win32/util.c win32/util.h \ win32/zlib/Makefile.nocygwin win32/zlib/README.zlib \ win32/setup.manifest win32/uninstall.manifest \ win32/bzlib/Makefile.nocygwin win32/bzlib/README.bzlib CLEANFILES = dopewars.sco dopewars-log.txt dopewars-config.txt DISTCLEANFILES = dopewars.spec all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ cd $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ dopewars.spec: $(top_builddir)/config.status $(srcdir)/dopewars.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/. $(distdir)/doc $(distdir)/intl $(distdir)/po $(distdir)/win32 $(distdir)/win32/bzlib $(distdir)/win32/zlib @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ --with-included-gettext \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-data-local install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-local uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-libtool clean-recursive \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-recursive distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-local install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am uninstall-local install-data-local: ${mkinstalldirs} ${SCOREDIR} touch ${SCORE} @chgrp games ${SCORE} || chgrp wheel ${SCORE} || \ echo "Unable to change group ownership of the high score file" chmod 0660 ${SCORE} ${mkinstalldirs} ${DESKTOPDIR} ${INSTALL} -m 0644 ${srcdir}/${DESKTOP} ${DESKTOPDIR} uninstall-local: /bin/rm -f ${SCORE} ${DESKTOPDIR}/${DESKTOP} # 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: dopewars-1.5.12/config.sub0000755001565000007070000007305510355115416012350 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2003-06-18' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 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 0 ;; --version | -v ) echo "$version" ; exit 0 ;; --help | --h* | -h ) echo "$usage"; exit 0 ;; -- ) # 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 0;; * ) 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* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k \ | m32r | m68000 | m68k | m88k | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | msp430 \ | ns16k | ns32k \ | openrisc | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | s390 | s390x \ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* \ | m32r-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | msp430-* \ | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | s390-* | s390x-* \ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ | xtensa-* \ | ymp-* \ | z8k-*) ;; # 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 ;; 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 ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; crds | unos) basic_machine=m68k-crds ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; 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 ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; mmix*) basic_machine=mmix-knuth os=-mmixware ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nv1) basic_machine=nv1-cray os=-unicosmp ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; or32 | or32-*) basic_machine=or32-unknown os=-coff ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; 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 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sh64) basic_machine=sh64-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux*) 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 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -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 ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-ibm) os=-aix ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -ptx*) vendor=sequent ;; -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 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: