summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-09 20:55:23 +0000
committerStef Walter <stef@memberwebs.com>2004-08-09 20:55:23 +0000
commite73ec5a0bd0c052d3ce8b621381fc5f58014aa2b (patch)
tree1d37e0229f7fc84d4b2912975bcd62fac0d0ac59 /daemon
parent495ccb3f35ea7511302ff3fa0f43f1b8a6e736e3 (diff)
Conditional Compilation of the various handlers
Diffstat (limited to 'daemon')
-rw-r--r--daemon/Makefile.am21
-rw-r--r--daemon/httpauthd.c8
2 files changed, 21 insertions, 8 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 3d80d4c..7eb7087 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -2,23 +2,32 @@
sbin_PROGRAMS = httpauthd
httpauthd_SOURCES = httpauthd.c httpauthd.h usuals.h bd.h bd.c misc.c basic.h basic.c \
- ntlm.c ntlmssp.h ntlmssp.c digest.h digest.c ldap.c defaults.h simple.c \
- \
+ digest.h digest.c defaults.h simple.c \
../common/compat.h ../common/compat.c ../common/buffer.h ../common/buffer.c \
../common/hash.h ../common/hash.c ../common/md5.h ../common/md5.c \
../common/sha1.h ../common/sha1.c ../common/sock_any.c ../common/sock_any.h \
- ../common/stringx.c ../common/stringx.h \
- \
+ ../common/stringx.c ../common/stringx.h
+
+LDAP_SOURCES = ldap.c
+
+NTLM_SOURCES = ntlm.c ntlmssp.h ntlmssp.c \
smblib/smblib.c smblib/smblib-util.c smblib/file.c smblib/smb-errors.c \
smblib/exper.c smblib/smblib-api.c smblib/smblib.h smblib/std-defines.h \
smblib/smblib-priv.h smblib/smblib-common.h \
- \
rfcnb/rfcnb-io.c rfcnb/rfcnb-util.c rfcnb/session.c rfcnb/byteorder.h \
rfcnb/rfcnb-common.h rfcnb/rfcnb-error.h rfcnb/rfcnb.h rfcnb/rfcnb-io.h \
rfcnb/rfcnb-priv.h rfcnb/rfcnb-util.h rfcnb/std-includes.h
+if WITH_LDAP
+httpauthd_SOURCES += $(LDAP_SOURCES)
+endif
+
+if WITH_NTLM
+httpauthd_SOURCES += $(NTLM_SOURCES)
+endif
+
httpauthd_CFLAGS = -D_THREAD_SAFE -pthread -DLinux \
-I${top_srcdir}/common/ -I${top_srcdir}
httpauthd_LDFLAGS = -pthread
-EXTRA_DIST =
+EXTRA_DIST = $(LDAP_SOURCES)
diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c
index 17ed15c..f995d6d 100644
--- a/daemon/httpauthd.c
+++ b/daemon/httpauthd.c
@@ -36,9 +36,13 @@ extern ha_handler_t ntlm_handler;
/* This is the list of all available handlers */
ha_handler_t* g_handlerlist[] =
{
- &simple_handler,
+#if WITH_LDAP
&ldap_handler,
- &ntlm_handler
+#endif
+#if WITH_NTLM
+ &ntlm_handler,
+#endif
+ &simple_handler,
};
typedef struct httpauth_loaded