diff --git a/config.h.in b/config.h.in index 2c105e26e..20f8372f4 100644 --- a/config.h.in +++ b/config.h.in @@ -476,6 +476,9 @@ /* Define if you use S/Key. */ #undef HAVE_SKEY +/* Define if you have skeyaccess(3). */ +#undef HAVE_SKEYACCESS + /* Define if you use NRL OPIE. */ #undef HAVE_OPIE diff --git a/configure.in b/configure.in index 1cb4fad05..32f9ab889 100644 --- a/configure.in +++ b/configure.in @@ -1752,6 +1752,7 @@ if test "$with_skey" = "yes"; then else echo 'Unable to locate libskey.a and/or skey.h, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS and/or -I/path/to/skey.h to CPPFLAGS' fi + AC_CHECK_LIB(skey, skeyaccess, AC_DEFINE(HAVE_SKEYACCESS)) fi dnl