To build this from CVS:

% aclocal
% automake --add-missing
% autoconf
% ./configure
% make

See "info automake", "A simple example, start to finish"


==================================================================================

- Add AM_INIT_AUTOMAKE macro to configure.in  
- run "aclocal"
- run "autoconf"
- Copy Makefile.am from gssd.
- run "automake --add-missing"
- now you can run "./configure" with whatever options that are appropriate


Adding SPKM dependency in gssd:

- change gssd/gssd/Makefile.am to
        if SPKM3
        SPKM3_INCLUDES = -I@SPKM3DIR@
        SPKM3_LDADD = -L@SPKM3DIR@ @SPKM3LIB@
        endif

        CFLAGS = -Wall -g

        INCLUDES = -I../rpc -I@KRBDIR@/include -I.. $(SPKM3_INCLUDES)

        LDADD = -L../rpc -lrpc -L@KRBDIR@/lib @KRBLIB@ $(SPKM3_LDADD)


- add the following to the gssd/configure.in

        dnl Checks for SPKM3
        addspkm3=false
        AC_MSG_CHECKING(for spkm-3)
        AC_ARG_WITH(spkm3,
        [  --with-spkm3=DIR        use spkm-3 library in DIR],
        [ case "$withval" in
          yes|no)
             AC_MSG_RESULT(no)
             ;;
          *)
             AC_MSG_RESULT($withval)
             if test -f $withval/libspkm3.a ; then
                owd=`pwd`
                if cd $withval; then withval=`pwd`; cd $owd; fi
                AC_DEFINE(SPKM)
                SPKM3DIR="$withval"
                SPKM3LIB="-lspkm3"
                addspkm3=true
             else
                AC_ERROR($withval does not have libspkm3.a)
             fi
             ;;
          esac ],
          AC_MSG_RESULT(no)
        )
        AC_SUBST(SPKM3DIR)
        AC_SUBST(SPKM3LIB)
        AM_CONDITIONAL(SPKM3, test x$addspkm3 = xtrue)

- run "autoconf"

- run "aclocal" to update aclocal.m4

- run "automake -a"

- run "./configure --with-spkm3=/usr/local/src/gss_mechs/spkm/spkm3"

- running make at this point results in an error about missing separator
  in the gssd/Makefile which has been generated.  The lines it is
  complaining about are:

	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cacheio.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/context.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/err_util.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gss_util.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc_gssd.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc_gssd_main_loop.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc_gssd_proc.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc_svcgssd.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc_svcgssd_main_loop.Po@am__quote@
	@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc_svcgssd_proc.Po@am__quote@


- somehow got past the Makefile problem ?? :-/ ??

- had trouble with spkm3oid being undefined.  Needed to recompile rpc directory
  with SPKM defined.

- now failing in rpcsec_tests.  need to do a Makefile.am for this?


