]> arthur.barton.de Git - netatalk.git/commitdiff
conditional PAM config file install fixed (USE_PAM conditional)
authorrufustfirefly <rufustfirefly>
Thu, 9 Nov 2000 19:38:39 +0000 (19:38 +0000)
committerrufustfirefly <rufustfirefly>
Thu, 9 Nov 2000 19:38:39 +0000 (19:38 +0000)
config/Makefile.am
configure.in

index 03de2618f0f616252d17c36401b2c8300defb2ed..42cb3ef5e8763b9ea84af2fca61653a60b7cdd97 100644 (file)
@@ -13,3 +13,18 @@ CLEANFILES = afpd.conf
 configdir = $(CONFIG_DIR)
 
 config_DATA = AppleVolumes.default AppleVolumes.system afpd.conf atalkd.conf netatalk.conf netatalk.pamd papd.conf
+
+#
+# pluggable authentication modules support?
+#
+
+if USE_PAM
+
+pamdir    = /etc/pam.d
+
+pam_DATA = netatalk
+
+netatalk:
+       cp -f netatalk.pamd netatalk
+
+endif 
index bf6347e29e8a7360f504e4fd46ae92d33700bb03..0c7d03b8094fb30055963d98e5681546a4cfd467 100644 (file)
@@ -245,6 +245,7 @@ AC_ARG_WITH(pam,
        AC_CHECK_LIB(pam, pam_start,
                AC_DEFINE(USE_PAM, 1)
                LIBS="$LIBS -lpam"
+               compile_pam=yes
                AC_MSG_RESULT([enabling pam modules support])
        )
 )
@@ -413,6 +414,7 @@ dnl --------------------- last minute substitutions
 AC_SUBST(LIBS)
 AC_SUBST(CFLAGS)
 AM_CONDITIONAL(USE_DHX, test x$compile_dhx = xyes)
+AM_CONDITIONAL(USE_PAM, test x$compile_pam = xyes)
 
 dnl --------------------- generate files