Well I've managed to get it compiling now by modifying the configure
script in the following section.
if [ "`uname -s`" = "HP-UX" ]
then
export prefix="/usr/local"
export PATH="$prefix/bin:$PATH"
if [ "`uname -m`" = "ia64" ]
then
export libdir="$prefix/lib/hpux32"
fi
* export CC="cc"*
export CFLAGS="-O -I/usr/local/include"
export CPPFLAGS="$CFLAGS"
export CXX="aCC"
export CXXFLAGS="$CFLAGS"
export F77="/bin/true"
export RANLIB="/bin/true"
export enable_shared="yes"
export enable_static="yes"
fi
It was hard coding CC as "cc" so replaced that line with the
following* export CC="${CC-cc}" *and was able build the library
successfully.