AC_CONFIG_HEADER(config.h)
AC_PREREQ(2.7)
-vers="2.0.0"
+vers="2.1.0"
vers_quoted="\"$vers\""
AC_DEFINE_UNQUOTED(VERSION, $vers)
AC_DEFINE_UNQUOTED(VERSION_QUOTED, $vers_quoted)
AC_CHECK_HEADERS(stdarg.h)
AC_CHECK_HEADERS(sys/termios.h)
AC_CHECK_HEADERS(strings.h)
+AC_CHECK_HEADERS(security/pam_appl.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_DEFINE(USE_SETE_ID)
fi
+
+AC_MSG_CHECKING(if pam should be used if available)
+AC_ARG_WITH(pam,
+[ --with-pam=[yes|no] Use (or not) PAM if available (default: yes).],
+[ case "$withval" in
+ no)
+ AC_MSG_RESULT(no)
+ ;;
+ yes)
+ AC_MSG_RESULT(yes)
+ AC_CHECK_LIB(pam, pam_start)
+ ;;
+ *)
+ AC_MSG_ERROR(Must be set to either "yes" or "no".)
+ ;;
+ esac ],
+ AC_MSG_RESULT(yes)
+ AC_CHECK_LIB(pam, pam_start)
+)
+
+
dnl We set exec_prefix to $prefix (also done in Makefile)
exec_prefix=$prefix
BINDIREX=`eval echo $bindir`
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fcron.c,v 1.55 2001-08-20 10:54:45 thib Exp $ */
+ /* $Id: fcron.c,v 1.56 2001-09-12 13:44:50 thib Exp $ */
#include "fcron.h"
-char rcs_info[] = "$Id: fcron.c,v 1.55 2001-08-20 10:54:45 thib Exp $";
+#include "database.h"
+#include "conf.h"
+#include "job.h"
+
+char rcs_info[] = "$Id: fcron.c,v 1.56 2001-09-12 13:44:50 thib Exp $";
void main_loop(void);
void check_signal(void);
time_t begin_sleep; /* the time at which sleep began */
time_t now; /* the current time */
+#ifdef HAVE_LIBPAM
+pam_handle_t *pamh = NULL;
+const struct pam_conv apamconv = { NULL };
+#endif
void
info(void)
/* set options */
{
- char c;
+ int c;
int i;
#ifdef HAVE_GETOPT_LONG
#else
c = getopt(argc, argv, "dfbhVs:m:c:n:");
#endif /* HAVE_GETOPT_LONG */
- if (c == EOF) break;
+ if ( c == EOF ) break;
switch (c) {
case 'V':