]> granicus.if.org Git - sudo/commitdiff
securid5 stuff needs pthreads. Just adding -lpthread is suboptimal
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 17 May 2002 17:20:09 +0000 (17:20 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 17 May 2002 17:20:09 +0000 (17:20 +0000)
but I don't see a better way at the moment.

configure.in

index bb25acb8906404b15f7e0ebc08eed896677cef01..e6b4a30debcbdb7bca805f6965257d76eb50c304 100644 (file)
@@ -1826,7 +1826,10 @@ if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
     OLIBS="${LIBS}"
     LIBS="${LIBS} ${SD_LIB}"
     SUDO_LIBS="${SUDO_LIBS} ${SD_LIB}"
-    AC_CHECK_FUNC(SD_Init, [AUTH_OBJS="securid5.o"], [AUTH_OBJS="securid.o"])
+    AC_CHECK_FUNC(SD_Init,
+       [AUTH_OBJS="securid5.o"; SUDO_LIBS="${SUDO_LIBS} -lpthread"],
+       [AUTH_OBJS="securid.o"]
+    )
     LIBS="${OLIBS}"
 fi