kravietz / pam_tacplus

TACACS+ protocol client library and PAM module in C. This PAM module support authentication, authorization (account management) and accounting (session management)performed using TACACS+ protocol designed by Cisco.
GNU Lesser General Public License v3.0
132 stars 100 forks source link

Out-of-tree builds fail in configure #189

Closed nafmo closed 1 year ago

nafmo commented 1 year ago

When trying to build 1.7.0 out-of-tree, configure fails trying to find gnulib. The following patch fixes it:

diff --git a/configure.ac b/configure.ac
index 6570a25c7c..cd2e3e4619 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,9 +31,9 @@ export PATH=\$PATH:\$HOME/gnulib

 ])

-if ! test -f "lib/malloca.c"; then
+if ! test -f "$srcdir/lib/malloca.c"; then
 AC_MSG_ERROR([
-lib/malloca.c not found!
+$srcdir/lib/malloca.c not found!
 Gnulib files not imported. Run:

 $ac_cv_prog_GNULIB --makefile-name=Makefile.gnulib --libtool --import \