+ echo Environment variables:
+ env
+ echo ==================================================
+ GLOBUS_FLAVOR_NAME=`gpt-query -name=gsi_openssh | perl -n -e 'if (/gsi_openssh-(.*)-pgm/){print "$1\n";}'|head -1`
+ export GLOBUS_FLAVOR_NAME
+ echo GPT GLOBUS_FLAVOR_NAME is $GLOBUS_FLAVOR_NAME.
+ if test -f gsi_openssh_bundle-*.tar.gz; then
+ echo ==================================================
+ echo Building GSI-OpenSSH GPT bundle...
+ rm -rf BUILD
+ gpt-build -force -verbose gsi_openssh_bundle-*.tar.gz $GLOBUS_FLAVOR_NAME \
+ GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
+ fi
+ if test -d gssapi-openssh/openssh; then
+ echo ==================================================
+ echo Installing autotools...
+ cd autotools
+ ./install-autotools $GLOBUS_LOCATION
+ cd ..
+ echo ==================================================
+ cd gssapi-openssh
+ cp -r openssh openssh.build
+ cd openssh.build
+ if test -f make_gpt_dist; then
+ echo Building GSI-OpenSSH GPT package from CVS...
+ rm -f gsi_openssh-*.tar.gz
+ ./make_gpt_dist
+ gpt-build -force -verbose gsi_openssh-*.tar.gz $GLOBUS_FLAVOR_NAME \
+ GSI_OPENSSH_GPTMACRO="--with-zlib=$ZLIB_LOCATION"
+ else
+ echo Building GSI-OpenSSH from CVS trunk...
+ autoreconf
+ ./configure --prefix=$GLOBUS_LOCATION \
+ --with-globus-flavor=$GLOBUS_FLAVOR_NAME \
+ --with-zlib=$ZLIB_LOCATION \
+ --with-privsep-user=$USER --with-privsep-path=$GLOBUS_LOCATION/var/empty
+ make install-nokeys # nonroot
+ fi
+ cd ..
+ rm -rf openssh.build
+ cd ..
+ fi
+ rm -rf gt*-installer $GLOBUS_LOCATION
+done