passwd: fall back to non-PAM code when prefix is used

Prefix does not make sense when we use PAM, so when the option
is used behave as if --with-libpam=no was used to configure the
project.
This commit is contained in:
Jaroslav Jindrak
2023-06-09 16:22:24 +02:00
committed by Iker Pedrosa
parent 2d0beef3bb
commit 68bf73f319
5 changed files with 77 additions and 81 deletions
+7 -1
View File
@@ -5,7 +5,13 @@ AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir) $(ECONF_CPPFLAGS)
noinst_LTLIBRARIES = libmisc.la
libmisc_la_CFLAGS = $(LIBBSD_CFLAGS)
if USE_PAM
LIBCRYPT_PAM = $(LIBCRYPT)
else
LIBCRYPT_PAM =
endif
libmisc_la_CFLAGS = $(LIBBSD_CFLAGS) $(LIBCRYPT_PAM)
libmisc_la_SOURCES = \
addgrps.c \
age.c \