CPL Quality Control - failure in spherp on host w4

OS:Linux
OS Version:Red Hat Linux release 9 (Shrike)
CPU:Intel(R) Xeon(TM) 2.80GHz
Hardware:i686 (i386)
C Compiler:gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
CFITSIODIR:/home/llundin/Linux/cfitsio
FFTWDIR:/home/llundin/Linux/fftw
GSLDIR:/home/llundin/Linux/gsl
JAVA_HOME:Unset
WCSDIR:/home/llundin/Linux/wcs

Failed with exit-value 2

stderr produced by: ./configure --enable-maintainer-mode --prefix=/home/llundin/llundin.6733 CC=/usr/bin/gcc CFLAGS='-O2 -Wall -W -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wnested-externs -Wundef -Wsign-compare -Wmissing-declarations -Wmissing-format-attribute -Wunreachable-code'

Dropped these compiler flags: -fno-common
./configure: line 1249: syntax error near unexpected token `m4'
./configure: line 1249: `AC_CONFIG_MACRO_DIR(m4)'