]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Update squid_kerb_auth to 1.0.5
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 11 Nov 2008 10:11:53 +0000 (23:11 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 11 Nov 2008 10:11:53 +0000 (23:11 +1300)
produces clean errors when headers are missing.
dist spnegohelp files.

helpers/negotiate_auth/squid_kerb_auth/Makefile.am
helpers/negotiate_auth/squid_kerb_auth/configure.in

index 1ecea772afc280cca2181f2659a16fd836276487..a89960a9c9e505f7202252e35a231a0063c7523a 100644 (file)
@@ -1,15 +1,27 @@
 EXTRA_DIST = configure README NEWS ChangeLog AUTHORS INSTALL
 SUBDIRS = 
 
-bin_PROGRAMS = squid_kerb_auth squid_kerb_auth_test
+bin_PROGRAMS = squid_kerb_auth squid_kerb_auth_test negotiate_kerb_auth negotiate_kerb_auth_test
+
+SPNEGO_SOURCE= \
+       spnegohelp/derparse.c \
+       spnegohelp/derparse.h \
+       spnegohelp/spnego.c \
+       spnegohelp/spnego.h \
+       spnegohelp/spnegohelp.c \
+       spnegohelp/spnegohelp.h \
+       spnegohelp/spnegoparse.c \
+       spnegohelp/spnegoparse.h
+
+EXTRA_DIST += $(SPNEGO_SOURCE)
 
 if HAVE_SPNEGO
-squid_kerb_auth_SOURCES = squid_kerb_auth.c base64.c
-squid_kerb_auth_test_SOURCES = squid_kerb_auth_test.c base64.c
+squid_kerb_auth_SOURCES = squid_kerb_auth.c base64.c base64.h
+squid_kerb_auth_test_SOURCES = squid_kerb_auth_test.c base64.c base64.h
 else
-squid_kerb_auth_SOURCES = squid_kerb_auth.c base64.c spnegohelp/derparse.c  spnegohelp/spnego.c  spnegohelp/spnegohelp.c  spnegohelp/spnegoparse.c
+squid_kerb_auth_SOURCES = squid_kerb_auth.c base64.c base64.h $(SPNEGO_SOURCE)
 INCLUDES = -Ispnegohelp 
-squid_kerb_auth_test_SOURCES = squid_kerb_auth_test.c base64.c
+squid_kerb_auth_test_SOURCES = squid_kerb_auth_test.c base64.c base64.h
 endif
 
 
@@ -17,3 +29,11 @@ squid_kerb_auth_LDFLAGS =
 squid_kerb_auth_LDADD =
 squid_kerb_auth_test_LDFLAGS = 
 squid_kerb_auth_test_LDADD =
+
+negotiate_kerb_auth: squid_kerb_auth
+       cp squid_kerb_auth negotiate_kerb_auth
+
+negotiate_kerb_auth_test: squid_kerb_auth_test
+       cp squid_kerb_auth_test negotiate_kerb_auth_test
+
+
index 7b6eb6ce5f6533ba759008a71a9ea33e29995600..0bb1fa10e288f808926acd63ba8f0f9290f8dd4d 100644 (file)
@@ -15,8 +15,8 @@ dnl
 dnl Process this file with autoconf to produce a configure script.
 
 
-AC_INIT([squid_kerb_auth],[1.0.3],[markus_moeller@compuserve.com])
-AM_INIT_AUTOMAKE(squid_kerb_auth,1.0.3)
+AC_INIT([squid_kerb_auth],[1.0.5],[markus_moeller@compuserve.com])
+AM_INIT_AUTOMAKE(squid_kerb_auth,1.0.5)
 
 AC_PROG_CC
 AC_PROG_CPP
@@ -312,6 +312,11 @@ if test "$enable_arg" = "no"; then
   esac
 fi
 
+if test "$ac_cv_header_gssapi_h" = "no" -a "$ac_cv_header_gssapi_gssapi_h" = "no"; then
+        echo "GSSAPI headers are required to compile squid_kerb_auth"
+        echo "Please install gssapi headers and then re-run configure"
+        exit 1
+fi
 
 old_LIBS=$LIBS
 AC_CACHE_CHECK([for SPNEGO support],ac_cv_have_spnego,[
@@ -441,6 +446,8 @@ AH_BOTTOM([
 #include <gssapi/gssapi.h>
 #elif defined(HAVE_GSSAPI_H)
 #include <gssapi.h>
+#else
+#error "GSSAPI header required"
 #endif
 #define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
 #else
@@ -449,6 +456,8 @@ AH_BOTTOM([
 #include <gssapi/gssapi.h>
 #elif defined(HAVE_GSSAPI_H)
 #include <gssapi.h>
+#else
+#error "GSSAPI header required"
 #endif
 #ifdef HAVE_GSSAPI_GSSAPI_EXT_H
 #include <gssapi/gssapi_ext.h>
@@ -459,6 +468,8 @@ AH_BOTTOM([
 #include <gssapi/gssapi.h>
 #elif defined(HAVE_GSSAPI_H)
 #include <gssapi.h>
+#else
+#error "GSSAPI header required"
 #endif
 #ifdef HAVE_GSSAPI_GSSAPI_KRB5_H
 #include <gssapi/gssapi_krb5.h>