From: basney Date: Wed, 11 Jun 2008 00:34:03 +0000 (+0000) Subject: More tweaks to build across platforms. X-Git-Tag: OPENSSH_5_0P1_GSSAPI_20080701~3 X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/commitdiff_plain/9fb46e529d8731bf8ea9981ee29f831b04a55672 More tweaks to build across platforms. --- diff --git a/openssh/configure.ac b/openssh/configure.ac index 555e620..8dfd0a4 100644 --- a/openssh/configure.ac +++ b/openssh/configure.ac @@ -98,7 +98,6 @@ if test "x$gsi_path" != "xno" ; then if test ! -d "$GLOBUS_INCLUDE" ; then AC_MSG_ERROR(Cannot find Globus flavor-specific include directory: ${GLOBUS_INCLUDE}) fi - GSI_CPPFLAGS="-I${GLOBUS_INCLUDE}" if test -x ${gsi_path}/bin/globus-makefile-header ; then ${gsi_path}/bin/globus-makefile-header --flavor=${globus_flavor_type} ${gsi_static} globus_gss_assist | sed 's/ = \(.*\)/="\1"/' > ./gpt_build_tmp.sh @@ -108,19 +107,10 @@ if test "x$gsi_path" != "xno" ; then AC_MSG_ERROR(Cannot find globus-makefile-header: Globus installation is incomplete) fi . ./gpt_build_tmp.sh - if test -n "${need_dash_r}"; then - GSI_LDFLAGS="-L${gsi_path}/lib -R${gsi_path}/lib" - else - GSI_LDFLAGS="-L${gsi_path}/lib" - fi if test -z "$GLOBUS_PKG_LIBS" ; then AC_MSG_ERROR(globus-makefile-header failed) fi - if (test -n "$LIBPATH"); then - blibpath="$LIBPATH" - fi - AC_DEFINE(HAVE_GSSAPI_H) CC="$GLOBUS_CC" @@ -1991,7 +1981,7 @@ AC_ARG_WITH(ssl-dir, fi ] ) -if test -z "$GSI_LDFLAGS" ; then +if test -z "$GLOBUS_LDFLAGS" ; then LIBS="-lcrypto $LIBS" fi AC_TRY_LINK_FUNC(RAND_add, AC_DEFINE(HAVE_OPENSSL, 1, @@ -3422,6 +3412,16 @@ AC_ARG_WITH(selinux, fi ] ) +# Finish configuring Globus GSSAPI +if test "x$gsi_path" != "xno" ; then + if test ! -z "$need_dash_r" ; then + LDFLAGS="$LDFLAGS -R${gsi_path}/lib" + fi + if test ! -z "$blibpath" ; then + blibpath="$blibpath:${gsi_path}/lib" + fi +fi + # Check whether the user wants GSSAPI mechglue support AC_ARG_WITH(mechglue, [ --with-mechglue=PATH Build with GSSAPI mechglue library],