You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by sv...@apache.org on 2013/08/18 06:00:46 UTC

svn commit: r1515068 - in /subversion/branches/1.7.x: ./ STATUS build/ac-macros/gssapi.m4

Author: svn-role
Date: Sun Aug 18 04:00:46 2013
New Revision: 1515068

URL: http://svn.apache.org/r1515068
Log:
Merge the 1.7.x-gssapi-solaris10 branch:

 * ^/subversion/branches/1.7.x-gssapi-solaris10
   Justification:
     Make it easier to build svn+serf with kerberos support on Solaris10.
   Branch:
     ^/subversion/branches/1.7.x-gssapi-solaris10
   Notes:
     rhuijben: Is this necessary for 1.7. I think gssapi was moved to serf
     with/before serf 1.0, which is a 1.7 requirement?
     breser: serf 0.7.1 is the 1.7 requirement.  I was underthe impression
     when I did this that serf didn't have gssapi code until later.
     serf 0.7.1 does have code support for gssapi but not build system
     support.  From a user perspective they're going to try to use our
     gssapi options since we have them and advertise them while serf
     doesn't.  So I think we should include this fix.
   Votes:
     +1: breser, rhuijben, stefan2

Modified:
    subversion/branches/1.7.x/   (props changed)
    subversion/branches/1.7.x/STATUS
    subversion/branches/1.7.x/build/ac-macros/gssapi.m4

Propchange: subversion/branches/1.7.x/
------------------------------------------------------------------------------
  Merged /subversion/branches/1.7.x-gssapi-solaris10:r1453164-1515067

Modified: subversion/branches/1.7.x/STATUS
URL: http://svn.apache.org/viewvc/subversion/branches/1.7.x/STATUS?rev=1515068&r1=1515067&r2=1515068&view=diff
==============================================================================
--- subversion/branches/1.7.x/STATUS (original)
+++ subversion/branches/1.7.x/STATUS Sun Aug 18 04:00:46 2013
@@ -128,20 +128,3 @@ Veto-blocked changes:
 Approved changes:
 =================
 
- * ^/subversion/branches/1.7.x-gssapi-solaris10
-   Justification:
-     Make it easier to build svn+serf with kerberos support on Solaris10.
-   Branch:
-     ^/subversion/branches/1.7.x-gssapi-solaris10
-   Notes:
-     rhuijben: Is this necessary for 1.7. I think gssapi was moved to serf
-     with/before serf 1.0, which is a 1.7 requirement?
-     breser: serf 0.7.1 is the 1.7 requirement.  I was underthe impression
-     when I did this that serf didn't have gssapi code until later.
-     serf 0.7.1 does have code support for gssapi but not build system
-     support.  From a user perspective they're going to try to use our
-     gssapi options since we have them and advertise them while serf
-     doesn't.  So I think we should include this fix.
-   Votes:
-     +1: breser, rhuijben, stefan2
-

Modified: subversion/branches/1.7.x/build/ac-macros/gssapi.m4
URL: http://svn.apache.org/viewvc/subversion/branches/1.7.x/build/ac-macros/gssapi.m4?rev=1515068&r1=1515067&r2=1515068&view=diff
==============================================================================
--- subversion/branches/1.7.x/build/ac-macros/gssapi.m4 (original)
+++ subversion/branches/1.7.x/build/ac-macros/gssapi.m4 Sun Aug 18 04:00:46 2013
@@ -54,6 +54,17 @@ AC_DEFUN(SVN_LIB_RA_SERF_GSSAPI,
       CFLAGS=""
       SVN_GSSAPI_INCLUDES="`$KRB5_CONFIG --cflags`"
       SVN_GSSAPI_LIBS="`$KRB5_CONFIG --libs gssapi`"
+      if test $? -ne 0; then
+        dnl Some platforms e.g. Solaris 10 don't support the gssapi argument
+        dnl and need krb5 instead.  Since it doesn't tell us about gssapi
+        dnl we have to guess.  So let's try -lgss and /usr/include/gassapi
+        SVN_GSSAPI_INCLUDES="$SVN_GSSAPI_INCLUDES -I/usr/include/gssapi"
+        SVN_GSSAPI_LIBS="`$KRB5_CONFIG --libs krb5` -lgss"
+        if test $? -ne 0; then
+          dnl Both k5b-config commands failed.
+          AC_MSG_ERROR([krb5-config returned an error]) 
+        fi
+      fi
       SVN_GSSAPI_LIBS="`SVN_REMOVE_STANDARD_LIB_DIRS($SVN_GSSAPI_LIBS)`"
       CPPFLAGS="$CPPFLAGS $SVN_GSSAPI_INCLUDES"
       CFLAGS="$old_CFLAGS"