Globus 5.0.0 installation error in ubuntu 9.1

I am installing globus toolkit 5 on ubuntu, i am getting error regarding openssl build. Unable to build Openssl. I am giving the whole installer.log file below.

globus@naveen-laptop:~/gt4.0.6-all-source-installer$ make | tee istaller.log
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees-thr/core/source gcc32dbgpthr
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees-thr/mds/libtool gcc32dbgpthr
gpt-build ====> CHECKING BUILD DEPENDENCIES FOR globus_libtool
SKIPPING REBUILD of gcc32dbgpthr
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees-thr/common/source gcc32dbgpthr
gpt-build ====> CHECKING BUILD DEPENDENCIES FOR globus_common
SKIPPING REBUILD of gcc32dbgpthr
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees/core/source gcc32dbg
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees/mds/libtool gcc32dbg
gpt-build ====> CHECKING BUILD DEPENDENCIES FOR globus_libtool
SKIPPING REBUILD of gcc32dbg
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees/common/source gcc32dbg
gpt-build ====> CHECKING BUILD DEPENDENCIES FOR globus_common
SKIPPING REBUILD of gcc32dbg
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees/common/setup gcc32dbg
gpt-build ====> CHECKING BUILD DEPENDENCIES FOR globus_common_setup
SKIPPING REBUILD of noflavor
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees-thr/xio/src gcc32dbgpthr
gpt-build ====> CHECKING BUILD DEPENDENCIES FOR globus_xio
SKIPPING REBUILD of gcc32dbgpthr
/usr/local/globus//sbin/gpt-build   -srcdir=source-trees-thr/gsi/openssl/source gcc32dbgpthr
gpt-build ====> CHECKING BUILD DEPENDENCIES FOR globus_openssl
gpt-build ====> Changing to /home/globus/gt5.0.0-all-source-installer/source-trees-thr/gsi/openssl/source
gpt-build ====> BUILDING FLAVOR gcc32dbgpthr
GLOBUS_LOCATION=/usr/local/globus/; export GLOBUS_LOCATION;  CPP='/usr/bin/gcc -E'; export CPP; CPPFLAGS=' -I/usr/local/globus//include -I/usr/local/globus//include/gcc32dbgpthr'; export CPPFLAGS; CFLAGS='-g    -D_REENTRANT -Wall'; export CFLAGS; LDFLAGS=' -L/usr/local/globus//lib '; export LDFLAGS; LIBS='  -lpthread'; export LIBS; CXX='/usr/bin/g++'; export CXX; CXXCPP='/usr/bin/g++ -E'; export CXXCPP; CXXFLAGS='-g   '; export CXXFLAGS; AR='/usr/bin/ar'; export AR; ARFLAGS='ruv'; export ARFLAGS; RANLIB='/usr/bin/ranlib'; export RANLIB; NM='/usr/bin/nm -B'; export NM; CC='/usr/bin/gcc'; export CC;  /home/globus/gt5.0.0-all-source-installer/source-trees-thr/gsi/openssl/source/configure  --enable-debug --with-threads=pthreads  --with-flavor=gcc32dbgpthr 
checking whether to enable maintainer-specific portions of Makefiles... no
Dependencies Complete
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking OpenSSL CFLAGS... using ''
checking OpenSSL INCLUDES... using ''
checking for style of include used by make... GNU
checking for gcc... /usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ANSI C... none needed
checking dependency style of /usr/bin/gcc... none
checking OpenSSL LDFLAGS... using '-L/lib'
checking OpenSSL LIBS... using '-lssl -lcrypto'
configure: error: Unable to link with SSL

Please help me to install globus.
Thanks in advance