]> granicus.if.org Git - sudo/commitdiff
fixed S/Key support
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 19 Nov 1995 23:25:51 +0000 (23:25 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 19 Nov 1995 23:25:51 +0000 (23:25 +0000)
configure.in

index 3b895756193c4dd078d367c46a7c2bfa31c2ae30..5305fb37f7034540e28a209b1b9057b77129a5c5 100644 (file)
@@ -47,17 +47,16 @@ AC_ARG_WITH(C2, [  --with-C2               enable C2 security (shadow password)
 C2=1
 echo 'Configuring for C2 security')
 
-dnl --with-Skey
-AC_ARG_WITH(SKEY, [  --with-SKEY             enable Skey support (untested)], AC_DEFINE(HAVE_SKEY)
+dnl --with-skey
+AC_ARG_WITH(skey, [  --with-skey             enable S/Key support ], AC_DEFINE(HAVE_SKEY)
 SKEY=1
-echo 'Configuring for use with Skey')
+echo 'Configuring for use with S/Key')
 
 dnl --with-SecurID
-AC_ARG_WITH(SECURID, [  --with-SecurID        enable SecurID support], AC_DEFINE(HAVE_SECURID)
+AC_ARG_WITH(SecurID, [  --with-SecurID        enable SecurID support], AC_DEFINE(HAVE_SECURID)
 SECURID=1
 echo 'Configuring for use with SecurID')
 
-
 dnl --with-kerb4
 AC_ARG_WITH(kerb4, [  --with-kerb4            enable kerberos v4 support], AC_DEFINE(HAVE_KERB4)
 KERB4=1
@@ -407,6 +406,12 @@ dnl
 dnl extra Skey lib + includes
 if test -n "$SKEY" ; then
     LIBS="${LIBS} -lskey"
+    if test -f /usr/local/include/skey.h -a -f /usr/local/lib/libskey.a; then
+       CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
+       LDFLAGS="${LDFLAGS} -L/usr/local/lib"
+    else
+       echo 'Can't find libskey.a and skey.h, you'll have to edit the Makefile'
+    fi
 fi
 
 dnl