##
SUBDIRS= include libraries clients servers tests # contrib
-CLEANDIRS= doc # tests doc
+CLEANDIRS= contrib/saucer doc
INSTALLDIRS= doc
makefiles: FORCE
servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
+contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
+contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
+contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
,[
date > stamp-h
echo Please \"make depend\" to build dependencies
--- /dev/null
+PROGRAMS= saucer
+
+SRCS= main.c
+OBJS= main.o
+
+LDAP_INCDIR= ../../include
+LDAP_LIBDIR= ../../libraries
+
+XLIBS = -lldap -llber -llutil
+XXLIBS = $(KRB_LIBS) $(LUTIL_LIBS)
+
+saucer: ${OBJS} $(LDAP_LIBDEPEND)
+ $(LTLINK) -o $@ $(OBJS) $(LIBS)
+
+install-local: $(PROGRAMS) FORCE
+ -$(MKDIR) $(libexecdir)
+ $(LTINSTALL) $(INSTALLFLAGS) -m 755 saucer $(libexecdir)
* Author: Eric Rosenquist, 1994.
*/
-#include <ctype.h>
+#include "portable.h"
+
#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
+#include <stdlib.h>
+
+#include <ac/ctype.h>
+#include <ac/string.h>
+#include <ac/unistd.h>
#include <lber.h>
#include <ldap.h>
+#include <ldap_log.h>
#define DN_MAXLEN 4096
int main(int argc, char **argv)
{
int error_flag = 0;
+ int tmp;
FILE *rc;
progname = argv[0];
break;
case 'd':
#ifdef LDAP_DEBUG
- lber_debug = atoi(optarg);
- ldap_debug = atoi(optarg);
+ tmp = atoi(optarg);
+ lber_set_option(NULL, LBER_OPT_DEBUG_LEVEL, &tmp);
+ ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &tmp);
#endif
break;
case 'h':