into the krb5 library.
* aclocal.m4 (KRB5_AC_NEED_DAEMON): New macro.
* appl/bsd/configure.in, kadmin/configure.in, kdc/configure.in,
krb524/configure.in, slave/configure.in: Use it. Don't directly check if
prototype for daemon() is needed.
* kadmin/server/Makefile.in (OBJS), kadmin/v5passwdd/Makefile.in (SERV_OBJS),
kdc/Makefile.in (OBJS, fakeka), krb524/Makefile.in (SERVER_OBJS),
slave/Makefile.in (SERVEROBJS): Use LIBOBJS.
* config/post.in (daemon.c): New rule for copying daemon.c locally
from lib/krb5/posix.
ticket: 1791
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15801
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-08-29 Ken Raeburn <raeburn@mit.edu>
+
+ * aclocal.m4 (KRB5_AC_NEED_DAEMON): New macro.
+
2003-08-26 Ken Raeburn <raeburn@mit.edu>
* aclocal.m4 (WITH_CCOPTS, WITH_CPPOPTS, WITH_LINKER,
[AC_LIBRARY_NET]
)])dnl
dnl
+dnl
+AC_DEFUN(KRB5_AC_NEED_DAEMON, [
+AC_REPLACE_FUNCS(daemon)
+KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif],daemon,1)])dnl
+dnl
dnl Check if stdarg or varargs is available *and compiles*; prefer stdarg.
dnl (This was sent to djm for incorporation into autoconf 3/12/1996. KR)
dnl
2003-08-29 Ken Raeburn <raeburn@mit.edu>
+ * configure.in: Call KRB5_AC_NEED_DAEMON instead of checking
+ whether daemon() prototype is needed.
+
* krshd.c (ignore_signals): Split out from cleanup().
(doit): Call it when the shell process has completed, before
calling syslog.
AC_HEADER_STDARG
AC_REPLACE_FUNCS(getdtablesize)
dnl
-KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif],daemon,1)
+KRB5_AC_NEED_DAEMON
dnl
KRB5_SIGTYPE
CHECK_SIGNALS
+2003-08-29 Ken Raeburn <raeburn@mit.edu>
+
+ * post.in (daemon.c): New rule for copying daemon.c locally from
+ master copy in lib/krb5/posix.
+
2003-05-27 Ken Raeburn <raeburn@mit.edu>
* win-pre.in (CPPFLAGS): Define KRB5_DEPRECATED=1.
fi;\
exit $$status
+# Some servers need "daemon", but we're not providing it directly
+# through a library. We used to provide it through the krb5 library,
+# and the source is still there.
+daemon.c: $(SRCTOP)/lib/krb5/posix/daemon.c
+ $(CP) $(SRCTOP)/lib/krb5/posix/daemon.c daemon.c
+
##
## end of post.in
############################################################
+2003-08-29 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Call KRB5_AC_NEED_DAEMON instead of checking
+ whether daemon() prototype is needed.
+
2003-01-10 Ken Raeburn <raeburn@mit.edu>
* configure.in: Use V5_AC_OUTPUT_MAKEFILE instead of
AC_PROG_AWK
AC_CHECK_HEADERS(unistd.h stdlib.h krb_db.h kdc.h regex.h alloca.h sys/time.h sys/select.h memory.h arpa/inet.h)
AC_CHECK_FUNCS(ftime timezone getcwd strstr waitpid vsprintf)
-AC_REPLACE_FUNCS([memmove strftime])
-KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif],daemon,1)
+KRB5_AC_NEED_DAEMON
AC_HEADER_TIME
CHECK_SIGNALS
CHECK_WAIT_TYPE
+2003-08-29 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (OBJS): Use @LIBOBJS@.
+
2003-05-27 Tom Yu <tlyu@mit.edu>
* schpw.c (process_chpw_request): Log chpw requests.
PROG_RPATH=$(KRB5_LIBDIR)
PROG = kadmind
-OBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o schpw.o misc.o server_glue_v1.o
+OBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o schpw.o misc.o server_glue_v1.o @LIBOBJS@
all:: $(PROG)
+2003-08-29 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (SERV_OBJS): Use @LIBOBJS@.
+
2003-01-09 Ken Raeburn <raeburn@mit.edu>
* adm_conn.c (kadm_contact_server): Use socklen_t when passing
COMMON_SRCS = $(srcdir)/adm_rw.c
COMMON_OBJS = adm_rw.o
SERV_SRCS = $(srcdir)/main.c $(srcdir)/srv_net.c $(srcdir)/proto_serv.c
-SERV_OBJS = main.o srv_net.o proto_serv.o
+SERV_OBJS = main.o srv_net.o proto_serv.o @LIBOBJS@
CLI_SRCS = $(srcdir)/kpasswd.c $(srcdir)/adm_conn.c
CLI_OBJS = kpasswd.o adm_conn.o
+2003-08-29 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Call KRB5_AC_NEED_DAEMON instead of checking
+ whether daemon() prototype is needed.
+ * Makefile.in (OBJS, fakeka): Use @LIBOBJS@.
+
2003-06-03 Tom Yu <tlyu@mit.edu>
* extern.h (master_princ): Remove realm_mkvno, realm_tgskey,
policy.o \
extern.o \
replay.o \
- kerberos_v4.o
+ kerberos_v4.o \
+ @LIBOBJS@
RT_OBJS= rtest.o \
kdc_util.o \
rtest: $(RT_OBJS) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o rtest $(RT_OBJS) $(KDB5_LIBS) $(KADM_COMM_LIBS) $(KRB5_BASE_LIBS)
-fakeka: fakeka.o $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS)
- $(CC_LINK) -o fakeka fakeka.o $(KADMSRV_LIBS) $(KRB4COMPAT_LIBS)
+fakeka: fakeka.o $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS) @LIBOBJS@
+ $(CC_LINK) -o fakeka fakeka.o $(KADMSRV_LIBS) $(KRB4COMPAT_LIBS) @LIBOBJS@
check-unix:: rtest
KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; export KRB5_CONFIG ;\
#include <stdlib.h>
],swab,1)
dnl
-KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif],daemon,1)
+KRB5_AC_NEED_DAEMON
dnl
AC_PROG_AWK
KRB5_AC_INET6
+2003-08-29 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Call KRB5_AC_NEED_DAEMON instead of checking
+ whether daemon() prototype is needed.
+ * Makefile.in (SERVER_OBJS): Use @LIBOBJS@.
+
2003-08-11 Tom Yu <tlyu@mit.edu>
* cnv_tkt_skey.c (krb524_convert_tkt_skey): Call krb_create_ticket
krb524test: test.o $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS)
$(CC_LINK) -o krb524test test.o $(KRB5_LIB) $(KRB4COMPAT_LIBS)
-SERVER_OBJS= krb524d.o cnv_tkt_skey.o conv_princ.o
+SERVER_OBJS= krb524d.o cnv_tkt_skey.o conv_princ.o @LIBOBJS@
CLIENT_OBJS= $(OUTPRE)k524init.$(OBJEXT)
krb524d: $(SERVER_OBJS) $(KADMSRV_DEPLIBS) $(KRB5_DEPLIB) $(KRB4COMPAT_DEPLIBS)
KRB5_BUILD_LIBOBJS
AC_PROG_AWK
AC_CHECK_HEADERS(sys/select.h unistd.h) dnl
-KRB5_NEED_PROTO([#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif],daemon,1)
+KRB5_AC_NEED_DAEMON
AC_TYPE_SIGNAL
KRB5_BUILD_PROGRAM
+2003-08-29 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Call KRB5_AC_NEED_DAEMON instead of checking
+ whether daemon() prototype is needed.
+ * Makefile.in (SERVEROBJS): Use @LIBOBJS@.
+
2002-08-23 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Change $(S)=>/ and $(U)=>.. globally.
CLIENTOBJS= kprop.o
SERVERSRCS= $(srcdir)/kpropd.c
-SERVEROBJS= kpropd.o
+SERVEROBJS= kpropd.o @LIBOBJS@
SRCS= $(CLIENTSRCS) $(SERVERSRCS)
AC_TYPE_MODE_T
AC_PROG_INSTALL
AC_CHECK_LIB(util,main)
-KRB5_NEED_PROTO([#include <unistd.h>],daemon,1)
+KRB5_AC_NEED_DAEMON
KRB5_GETSOCKNAME_ARGS
KRB5_GETPEERNAME_ARGS
KRB5_BUILD_PROGRAM