Commit 8bc3d13a 8bc3d13a6bb4b71a98838f240ecd687e735a2207 by Jakob Kaivo

imported (mostly) the pop3d tree

added libsrc (for getopt and md5)
1 parent 9afa88f6
1999-09-14 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* pop3d/pop3d.c (main): moved setgid() call to after option parsing
(main): make --version report PACKAGE and VERSION
* libmailbox/mailbox.c (mbox_open): changed paramater type to const
* pop3d/Makefile.am (INCLUDES): change relative directories to top_srcdir base
* configure.in: Added checks for PAM and crypt
1999-09-13 Jakob 'sparky' Kaivo <jkaivo@elijah.nodomainname.net>
* pop3d/retr.c (pop3_retr): fixed calls mbox_header => mbox_get_header
and mbox_body => mbox_get_body
* pop3d/user.c (pop3_user): removed references to mailbox variable
* pop3d/stat.c (pop3_stat): fixed mbox->is_deleted => mbox_is_deleted
* pop3d/pop3d.c (pop3_mainloop): removed reference to lockfile variable
* pop3d/extra.c (pop3_abquit): change fclose(mbox) to mbox_close(mbox)
removed calls to free(messages) and pop3_unlock()
* pop3d/dele.c (pop3_dele): fixed call to mbox_delete()
* Makefile.am (SUBDIRS): added pop3d and libsrc
* configure.in: Added checks needed for pop3d/*
made it work with libtool
* libsrc/*: imported from gnu-pop3d tree
* pop3d/*: imported from gnu-pop3d tree
1999-09-11 Jeff Bailey <jbailey@cr499794-a.crdva1.bc.wave.home.com>
* libmailbox/unixmbox.h: Do not prefix config.h defines with _
......
AUTOMAKE_OPTIONS = gnu 1.4
SUBDIRS = libmailbox mail
SUBDIRS = libmailbox mail pop3d libsrc
......
dnl Process this file with autoconf to procude a configure script. -*-m4-*-
AC_INIT(libmailbox/mailbox.c)
AM_INIT_AUTOMAKE(libmailbox, 0.0.19990909)
AM_INIT_AUTOMAKE(mailutils, 0.9.7.1999.09.12)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
dnl Check for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
dnl Check for arguments
AC_ARG_ENABLE(-mailbox-install,
[ --enable-mailbox-install install libmailbox])
AM_CONDITIONAL(INSTALL_MAILBOX, test x"${enable_mailbox_install-no}" != xno)
dnl Check for headers
AC_HEADER_STDC
AC_CHECK_HEADERS(malloc.h stdlib.h stdio.h errno.h unistd.h)
AC_CHECK_HEADERS(malloc.h stdlib.h stdio.h errno.h unistd.h\
paths.h sys/file.h syslog.h shadow.h security/pam_appl.h)
AC_CHECK_HEADERS(string.h strings.h, break)
AC_OUTPUT(Makefile libmailbox/Makefile mail/Makefile)
dnl Check for libraries
if test x"$ac_cv_header_security_pam_appl_h" = x"yes"; then
AC_CHECK_LIB(pam, pam_authenticate,
[LIBS="$LIBS -ldl -lpam"; AC_DEFINE(USE_LIBPAM)],, -ldl)
##fi
##if test x"$ac_cv_have_libpam" != x"yes"; then
else
AC_CHECK_FUNCS(crypt)
if test x"$ac_cv_func_crypt" = x"no"; then
AC_CHECK_LIB(crypt, crypt,
[LIBS="$LIBS -lcrypt"],, -lcrypt)
fi
fi
dnl Output Makefiles
AC_OUTPUT(Makefile libmailbox/Makefile mail/Makefile pop3d/Makefile)
......
......@@ -13,7 +13,7 @@ int _mbox_dummy3 (mailbox * mbox, char *c);
char *_mbox_dummy4 (mailbox * mbox, int num);
mailbox *
mbox_open (char *name)
mbox_open (const char *name)
{
mailbox *mbox = malloc (sizeof (mailbox));
if (mbox == NULL)
......
......@@ -42,6 +42,6 @@ typedef struct _mailbox
}
mailbox;
mailbox *mbox_open __P ((char *name));
mailbox *mbox_open __P ((const char *name));
#endif
......