Make PAM module optional
[doldaconnect.git] / daemon / Makefile.am
index 98e9974..0f240d7 100644 (file)
@@ -14,6 +14,7 @@ doldacond_SOURCES=    main.c \
                        auth.h \
                        auth-pam.c \
                        auth-krb5.c \
+                       auth-unix.c \
                        client.c \
                        client.h \
                        net.c \
@@ -23,8 +24,7 @@ doldacond_SOURCES=    main.c \
                        conf.c \
                        conf.h
 
-AM_CPPFLAGS=$(top_srcdir)/include -DDAEMON
-
 EXTRA_DIST=emacs-local
 doldacond_LDADD=$(top_srcdir)/common/libcommon.a \
-               @KRB5_LDADD@ -lbz2 -lz
+               @KRB5_LIBS@ -lbz2 -lz
+doldacond_CPPFLAGS=-I$(top_srcdir)/include -DDAEMON @KRB5_CFLAGS@