contrib/genrpbindings: removing the space between method name and the parenthesis

Ruby syntax got more restrictive, so spaces are no longer allowed there.
environment handling fixes

* AC_CHECK_FUNCS: +setenv +unsetenv -putenv
  (the check for putenv() wasn't used anyway)
* prefer setenv() to putenv() in cmd_setenv()
* prefer unsetenv() to putenv() in cmd_unsetenv()
  - putenv("FOO") isn't legit everywhere
  - putenv("FOO=") will only work on MinGW
* make the getenv command return an empty output if the variable wasn't found
* while here, split and sort AC_CHECK_FUNCS

|cos| on #ratpoison reported that environment variables weren't
properly removed, and proposed a different fix.  thanks!
tmpwm fix: SIG_IGN -> SIG_DFL

for waitpid(SIGCHLD, SIG_IGN) behaves wildly differently across OSes. Fixes
tmpwm hanging after child wm exits on OpenBSD.
basic contrib/ cleanup

* (*.pl, rpws) don't hardcode path to Perl but rely on /usr/bin/env
* (allwindows.sh) don't require bash
* (rpshowall.sh) properly handle arguments, use portable shell arithmetic
* (*.sh) use more quotes
* (*.pl, split.sh) use 'ratpoison' if RATPOISON isn't in the environment
  (and don't error out)
more up-to-date autotools practices

* use proper AC_INIT / AM_INIT_AUTOMAKE arguments
* install macros in m4/
* install junk build files in build-aux/
* replace hand-rolled autogen.sh by autoreconf -i
* sync .gitignore
Makefile.am: strip unused stuff

* PACKAGE and VERSION are already AC_SUBST'ed
* targets bin-dist and strip-bin-dist don't exist
configure.in: rename obsolete macros

* s/AM_CONFIG_HEADER/AC_CONFIG_HEADER
* s/AC_HELP_STRING/AS_HELP_STRING
configure.in: compiler handling

* no need to explicitely check for gcc, it will be picked
  up if available
* prepend to CFLAGS instead of appending
* no need to add -O2 if gcc, autoconf automatically does
  that when appropriate
configure.in: get rid of AC_TYPE_SIGNAL

it has been unused so far, and afaik we don't support pre-ansi
platforms...
autotools: introduce AM_LANGINFO_CODESET

* (m4/codeset.m4) new file (from the gettext package)
* (configure.in) use AM_LANGINFO_CODESET
* (.gitignore) don't ignore m4/codeset.m4
introduce defaults.utf8_locale

* use nl_langinfo() to detect if locale codeset is UTF-8
make TEXT atoms global variables

* (events.c) extract xa_compound_text from selection_request(),
  make it a global
* introduce xa_string (same as XA_STRING) and rename
  utf8_string to xa_utf8_string, for consistency
use utf8-handling Xft functions if we are in an UTF-8 locale

* (manage.c) in get_wmname(), try to get the (UTF-8 encoded)
  _NET_WM_NAME property.  Fallback to GetWMName() if unavailable.
  Add some debugging bits to see which TEXT encoding clients use
  for WM_NAME.
* (globals.c) use Xft*Utf8 functions to compute text width and
  draw strings.  No regressions with or without Xft, UTF-8 locale
  or not.
* assume we can use Xft*Utf8 functions whenever we have Xft,
  to reduce the #ifdef dance

Original patch from Bernhard R. Link
rp_text_width: remove "font" argument

* (globals.[ch]): remove rp_text_width "font" arg, since its value
  is always the global variable defaults.font (non-Xft case).
  remove one #ifdef while here
* update rp_text_width() calls to match new signature
mv configure.in configure.ac

* rename this file since new versions of automake complain
  about the old name
remove ratpoison.spec

* this file is outdated and doesn't help rpm distros
  packagers / users, so let's just delete it

Discussed with Kevin Fenzi (Fedora ratpoison maintainer)
update FAQ url
add myself (as current maintainer) to AUTHORS
texinfo manual update

* fdl.texi: update to a newer version (not to a newer licence version!)
* ratpoison.texi: update to build printed manuals, get rid of annoying
  @node references, and move GFDL to the last section.  use automake support
  for version.texi, so that manuals don't ship with an outdated version
* .gitignore: match update
update Shawn's email address in documentation

* while here, s/EMACS/Emacs/ in the Info manual