| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | #                                               -*- Autoconf -*- | 
					
						
							|  |  |  | # Process this file with autoconf to produce a configure script. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |    | 
					
						
							| 
									
										
										
										
											2014-04-28 11:47:55 +01:00
										 |  |  | #    Copyright (C) 2003, 2005, 2012, 2014  Dale Mellor | 
					
						
							| 
									
										
										
										
											2015-06-26 23:17:01 +02:00
										 |  |  | #    Copyright (C) 2015, 2016  Mathieu Lirzin | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  | #    | 
					
						
							| 
									
										
										
										
											2008-02-21 19:11:23 +00:00
										 |  |  | #    This file is part of GNU mcron. | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | #    GNU mcron is free software: you can redistribute it and/or modify it under | 
					
						
							|  |  |  | #    the terms of the GNU General Public License as published by the Free | 
					
						
							|  |  |  | #    Software Foundation, either version 3 of the License, or (at your option) | 
					
						
							|  |  |  | #    any later version. | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | #    GNU mcron is distributed in the hope that it will be useful, but WITHOUT | 
					
						
							|  |  |  | #    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | 
					
						
							|  |  |  | #    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for | 
					
						
							|  |  |  | #    more details. | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | #    You should have received a copy of the GNU General Public License along | 
					
						
							|  |  |  | #    with GNU mcron.  If not, see <http://www.gnu.org/licenses/>. | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-02-21 19:11:23 +00:00
										 |  |  | AC_PREREQ(2.61) | 
					
						
							| 
									
										
										
										
											2015-07-01 01:05:34 +02:00
										 |  |  | AC_INIT([GNU Mcron], [1.0.8], [bug-mcron@gnu.org]) | 
					
						
							| 
									
										
										
										
											2016-05-07 11:44:13 +02:00
										 |  |  | AC_CONFIG_SRCDIR([src/mcron.c]) | 
					
						
							| 
									
										
										
										
											2016-04-20 01:21:43 +02:00
										 |  |  | AC_CONFIG_AUX_DIR([build-aux]) | 
					
						
							| 
									
										
										
										
											2016-05-10 01:06:10 +02:00
										 |  |  | AC_REQUIRE_AUX_FILE([test-driver.scm]) | 
					
						
							| 
									
										
										
										
											2016-05-10 21:00:59 +02:00
										 |  |  | AM_INIT_AUTOMAKE([subdir-objects -Wall -Wno-override]) | 
					
						
							| 
									
										
										
										
											2015-08-18 17:25:21 +02:00
										 |  |  | AM_SILENT_RULES([yes])		# enables silent rules by default | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-17 20:05:08 +02:00
										 |  |  | moduledir="${datarootdir}/guile/site/2.0" | 
					
						
							| 
									
										
										
										
											2016-07-17 00:10:35 +02:00
										 |  |  | AC_SUBST([moduledir]) | 
					
						
							| 
									
										
										
										
											2015-10-17 20:05:08 +02:00
										 |  |  | AC_SUBST([mcronmoduledir], ["${moduledir}/mcron"]) | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | AC_MSG_CHECKING([whether debugging is requested]) | 
					
						
							|  |  |  | AC_ARG_ENABLE(debug, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |               AC_HELP_STRING([--enable-debug], | 
					
						
							|  |  |  |                              [enable debugging and traceback on error]), | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  |               CONFIG_DEBUG=$enableval, | 
					
						
							|  |  |  |               CONFIG_DEBUG=no) | 
					
						
							|  |  |  | AC_MSG_RESULT($CONFIG_DEBUG) | 
					
						
							|  |  |  | if test "$CONFIG_DEBUG" = "no"; then | 
					
						
							|  |  |  |    CONFIG_DEBUG="#f" | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |    CONFIG_DEBUG="#t" | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_SUBST(CONFIG_DEBUG) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-05 12:13:19 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-05-25 17:21:00 +01:00
										 |  |  | # We have no interest (hence a no-op), but Debian wants this. | 
					
						
							|  |  |  | AC_ARG_ENABLE(maintainer-mode) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-16 15:55:35 +02:00
										 |  |  | AC_CANONICAL_HOST | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | AC_PROG_AWK | 
					
						
							|  |  |  | AC_PROG_EGREP | 
					
						
							| 
									
										
										
										
											2014-04-28 11:47:55 +01:00
										 |  |  | AM_PROG_CC_C_O | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-16 15:55:35 +02:00
										 |  |  | PKG_CHECK_MODULES([GUILE], [guile-2.0 >= 2.0.7]) | 
					
						
							|  |  |  | AC_PATH_PROG([GUILE], [guile]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # search guild | 
					
						
							|  |  |  | AC_PATH_PROG([GUILD], [guild]) | 
					
						
							|  |  |  | AS_IF([test -z "$ac_cv_path_GUILD"], | 
					
						
							|  |  |  |   [AC_MSG_ERROR(['guild' program cannot be found.])]) | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | # Checks for programs. | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  |    | 
					
						
							| 
									
										
										
										
											2014-05-25 14:57:37 +01:00
										 |  |  | AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | AC_CHECK_PROGS(SED, sed) | 
					
						
							|  |  |  | if test "x$ac_cv_prog_SED" = "x"; then | 
					
						
							|  |  |  |    AC_MSG_ERROR(sed not found) | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | AC_CHECK_PROGS(HEAD, head) | 
					
						
							|  |  |  | if test "x$ac_cv_prog_HEAD" = "x"; then | 
					
						
							|  |  |  |    AC_MSG_ERROR(head not found) | 
					
						
							|  |  |  | fi | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | AC_CHECK_PROGS(WHICH, which) | 
					
						
							|  |  |  | if test "x$ac_cv_prog_WHICH" = "x"; then | 
					
						
							|  |  |  |     AC_MSG_ERROR(which not found) | 
					
						
							|  |  |  | fi | 
					
						
							| 
									
										
										
										
											2003-08-03 15:14:54 +00:00
										 |  |  | AC_CHECK_PROGS(CP, cp) | 
					
						
							|  |  |  | if test "x$ac_cv_prog_CP" = "x"; then | 
					
						
							|  |  |  |     AC_MSG_ERROR(cp not found) | 
					
						
							|  |  |  | fi | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | # Now find a sendmail or equivalent. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_CHECK_PROGS(SENDMAIL, sendmail) | 
					
						
							|  |  |  | if test "x$ac_cv_prog_SENDMAIL" != "x"; then | 
					
						
							|  |  |  |    AC_MSG_CHECKING(sendmail path and arguments) | 
					
						
							|  |  |  |    ac_cv_prog_SENDMAIL="`$ac_cv_prog_WHICH sendmail` -FCronDaemon -odi -oem " | 
					
						
							|  |  |  | dnl  -or0s" | 
					
						
							|  |  |  |    AC_MSG_RESULT($ac_cv_prog_SENDMAIL) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |    AC_CHECK_PROGS(SENDMAIL, mail) | 
					
						
							|  |  |  |    if test "x$ac_cv_prog_SENDMAIL" != "x"; then | 
					
						
							|  |  |  |       AC_MSG_CHECKING(mail path) | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |       ac_cv_prog_SENDMAIL="`$ac_cv_prog_WHICH mail` -d " | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  |       AC_MSG_RESULT($ac_cv_prog_SENDMAIL) | 
					
						
							|  |  |  |    else | 
					
						
							|  |  |  |       AC_MSG_RESULT(No mail program found) | 
					
						
							|  |  |  |    fi | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | SENDMAIL=$ac_cv_prog_SENDMAIL | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-20 15:52:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-13 03:49:39 +01:00
										 |  |  | # Find out if we are avoiding Vixie. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([whether to avoid clobbering a Vixie installation]) | 
					
						
							|  |  |  | AC_ARG_ENABLE(no-vixie-clobber, | 
					
						
							|  |  |  |               AC_HELP_STRING([--enable-no-vixie-clobber], | 
					
						
							|  |  |  |                              [do not install with program names that would override a legacy cron installation]), | 
					
						
							|  |  |  |               NO_VIXIE_CLOBBER=$enableval, | 
					
						
							|  |  |  |               NO_VIXIE_CLOBBER=[no]) | 
					
						
							|  |  |  | AC_MSG_RESULT($NO_VIXIE_CLOBBER) | 
					
						
							|  |  |  | AC_SUBST(NO_VIXIE_CLOBBER) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  | # Configure the various files that mcron uses at runtime. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([which spool directory to use]) | 
					
						
							|  |  |  | AC_ARG_WITH(spool-dir, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-spool-dir], | 
					
						
							|  |  |  |                            [the crontab spool directory (/var/cron/tabs)]), | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  |               CONFIG_SPOOL_DIR=$withval, | 
					
						
							|  |  |  |               CONFIG_SPOOL_DIR=[/var/cron/tabs]) | 
					
						
							|  |  |  | AC_MSG_RESULT($CONFIG_SPOOL_DIR) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_SPOOL_DIR) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([name of socket]) | 
					
						
							|  |  |  | AC_ARG_WITH(socket-file, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-socket-file], | 
					
						
							|  |  |  |                            [unix pathname for cron socket (/var/cron/socket)]), | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  |               CONFIG_SOCKET_FILE=$withval, | 
					
						
							|  |  |  |               CONFIG_SOCKET_FILE=[/var/cron/socket]) | 
					
						
							|  |  |  | AC_MSG_RESULT($CONFIG_SOCKET_FILE) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_SOCKET_FILE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([name of allow file]) | 
					
						
							|  |  |  | AC_ARG_WITH(allow-file, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-allow-file], | 
					
						
							|  |  |  |                            [the file of allowed users (/var/cron/allow)]), | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  |               CONFIG_ALLOW_FILE=$withval, | 
					
						
							|  |  |  |               CONFIG_ALLOW_FILE=[/var/cron/allow]) | 
					
						
							|  |  |  | AC_MSG_RESULT($CONFIG_ALLOW_FILE) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_ALLOW_FILE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([name of deny file]) | 
					
						
							|  |  |  | AC_ARG_WITH(deny-file, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-deny-file], | 
					
						
							|  |  |  |                            [the file of barred users (/var/cron/deny)]), | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  |               CONFIG_DENY_FILE=$withval, | 
					
						
							|  |  |  |               CONFIG_DENY_FILE=[/var/cron/deny]) | 
					
						
							|  |  |  | AC_MSG_RESULT($CONFIG_DENY_FILE) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_DENY_FILE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([name of PID file]) | 
					
						
							|  |  |  | AC_ARG_WITH(pid-file, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-pid-file], | 
					
						
							|  |  |  |                            [the file to record cron's PID (/var/run/cron.pid)]), | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  |               CONFIG_PID_FILE=$withval, | 
					
						
							|  |  |  |               CONFIG_PID_FILE=[/var/run/cron.pid]) | 
					
						
							|  |  |  | AC_MSG_RESULT($CONFIG_PID_FILE) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_PID_FILE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_MSG_CHECKING([directory to hold temporary files]) | 
					
						
							|  |  |  | AC_ARG_WITH(tmp-dir, | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |             AC_HELP_STRING([--with-tmp-dir], | 
					
						
							|  |  |  |                            [directory to hold temporary files (/tmp)]), | 
					
						
							| 
									
										
										
										
											2004-01-22 13:54:21 +00:00
										 |  |  |               CONFIG_TMP_DIR=$withval, | 
					
						
							|  |  |  |               CONFIG_TMP_DIR=[/tmp]) | 
					
						
							|  |  |  | AC_MSG_RESULT($CONFIG_TMP_DIR) | 
					
						
							|  |  |  | AC_SUBST(CONFIG_TMP_DIR) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |          | 
					
						
							| 
									
										
										
										
											2003-07-20 15:52:35 +00:00
										 |  |  | # This is to support `make DESTDIR=...' | 
					
						
							|  |  |  |                          | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | real_program_prefix=`echo $program_prefix | sed s/NONE//` | 
					
						
							|  |  |  | AC_SUBST(real_program_prefix) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-17 20:05:08 +02:00
										 |  |  | AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in], | 
					
						
							|  |  |  |   [chmod +x pre-inst-env]) | 
					
						
							| 
									
										
										
										
											2015-06-26 23:17:01 +02:00
										 |  |  | AC_CONFIG_FILES([doc/config.texi | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  |                  Makefile | 
					
						
							| 
									
										
										
										
											2016-05-07 11:09:44 +02:00
										 |  |  |                  src/mcron/config.scm]) | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | AC_OUTPUT |