--- krb5-1.2.1-fresh/aclocal.m4	Thu Jun 29 22:26:54 2000
+++ krb5-1.2.1-sc/aclocal.m4	Tue Jul 18 15:50:24 2000
@@ -37,6 +37,7 @@
 WITH_LINKER dnl
 WITH_LDOPTS dnl
 WITH_CPPOPTS dnl
+WITH_SC7816 dnl
 WITH_KRB4 dnl
 AC_CONST dnl
 WITH_NETLIB dnl
@@ -284,6 +285,40 @@
   AC_DEFINE_UNQUOTED($ac_tr_file) $2], $3)dnl
 done
 ])
+dnl
+dnl smartcard sc7816 library handling
+dnl
+define(WITH_SC7816,[
+AC_ARG_WITH([sc7816],
+[ --without-sc7816		don't include sc7816 compatibility 
+  --with-sc7816			use default location of sc7816 library 
+  --with-sc7816=SC7816DIR	use sc7816 installed in SC7816DIR],
+,
+withval=no
+)dnl
+if test $withval = no; then
+	AC_MSG_RESULT(no sc7816 support)
+	SC7816_INCLUDES=
+	SC7816_LIBPATH=
+	SC7816_LIB=
+else
+ADD_DEF(-DKRBSC)
+if test $withval = yes; then
+	AC_MSG_RESULT(default sc7816 directory)
+	SC7816_INCLUDES='-I/usr/local/include'
+	SC7816_LIBPATH='-L/usr/local/lib'
+	SC7816_LIB=-lsc7816
+else
+	AC_MSG_RESULT(sc7816 in $withval)
+	SC7816_INCLUDES='-I$withval/include'
+	SC7816_LIBPATH='-L$withval/lib'
+	SC7816_LIB=-lsc7816
+ fi
+fi
+]) dnl
+AC_SUBST(SC7816_INCLUDES)
+AC_SUBST(SC7816_LIBPATH)
+AC_SUBST(SC7816_LIB)
 dnl
 dnl set $(KRB4) from --with-krb4=value -- WITH_KRB4
 dnl
