./config.guess: No such file or directory

today i was trying to compile gaim, I installed autoconf, automake and other necessary libs to compile but it show me

salahuddin@debian:~/Desktop/compile/gaim-1.5.0$ ./configure
checking build system type… /bin/sh: ./config.guess: No such file or directory
configure: error: cannot guess build type; you must specify one

later I found it is a err of automake in my Debian testing

debian:/home/salahuddin/Desktop/compile/gaim-1.5.0# automake –add-missing
configure.ac:5: version mismatch. This is Automake 1.10,
configure.ac:5: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:5: comes from Automake 1.9.5. You should recreate
configure.ac:5: aclocal.m4 with aclocal and run automake again.
configure.ac:38: required file `./config.rpath’ not found
configure.ac:3: installing `./config.guess’
src/protocols/gg/Makefile.am:7: compiling `libgg.c’ with per-target flags requires `AM_PROG_CC_C_O’ in `configure.ac’
Makefile.am: required file `./README’ not found
Makefile.am: installing `./COPYING’
configure.ac:1201: required file `plugins/Makefile.in’ not found
configure.ac:1201: required file `plugins/docklet/Makefile.in’ not found
configure.ac:1201: required file `plugins/gevolution/Makefile.in’ not found
configure.ac:1201: required file `plugins/gaim-remote/Makefile.in’ not found
configure.ac:1201: required file `plugins/gestures/Makefile.in’ not found
configure.ac:1201: required file `plugins/perl/Makefile.in’ not found
configure.ac:1201: required file `plugins/perl/common/Makefile.PL.in’ not found
configure.ac:1201: required file `plugins/ssl/Makefile.in’ not found
configure.ac:1201: required file `plugins/tcl/Makefile.in’ not found
configure.ac:1201: required file `plugins/ticker/Makefile.in’ not found
configure.ac:1201: required file `sounds/Makefile.in’ not found
Makefile.am:43: required directory ./plugins does not exist
Makefile.am:43: required directory ./sounds does not exist
debian:/home/salahuddin/Desktop/compile/gaim-1.5.0#

The problem solved & now while i give ./configure

salahuddin@debian:~/Desktop/compile/gaim-1.5.0$ ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes