1 dnl Process this file with autoconf to produce a configure script.
4 dnl ---------------------------------------------------------------------
6 dnl ---------------------------------------------------------------------
9 AC_CONFIG_HEADER(config.h)
11 m4_include([m4/ax_lib_readline.m4])
14 vers_quoted="\"$vers\""
15 AC_DEFINE_UNQUOTED(VERSION, $vers)
16 AC_DEFINE_UNQUOTED(VERSION_QUOTED, $vers_quoted)
20 copyright_quoted="\"2000-2014\""
21 AC_DEFINE_UNQUOTED(COPYRIGHT_QUOTED, $copyright_quoted)
24 dnl ---------------------------------------------------------------------
25 dnl Check for programs, header files, types, etc (autoconf builtins)
26 dnl ---------------------------------------------------------------------
28 dnl Checks for programs.
30 AC_PATH_PROGS(MAKE, $MAKE gmake make, $PATH:/local/bin:/usr/local/bin:/opt/TWWfsw/bin:/opt/sfw/bin)
31 AC_MSG_CHECKING(if make is actually GNU Make)
32 if test x"$MAKE" = x; then
33 AC_MSG_ERROR(Cannot locate a make utility, 1)
34 elif $MAKE --version 2>/dev/null |grep "^GNU Make" >/dev/null; then
38 AC_MSG_ERROR($MAKE is not GNU Make.
39 Please install GNU Make or adjust your PATH so that GNU make can be found
40 before any others., 1)
44 AC_PATH_PROGS(STRIP, $STRIP strip, /usr/css/bin:$PATH:/local/bin:/usr/local/bin:/opt/TWWfsw/bin:/opt/sfw/bin)
46 dnl Checks for libraries.
48 dnl Checks for header files.
52 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h)
53 AC_CHECK_HEADERS(errno.h sys/fcntl.h getopt.h limits.h)
54 AC_CHECK_HEADERS(stdarg.h)
55 AC_CHECK_HEADERS(termios.h)
56 AC_CHECK_HEADERS(strings.h)
57 AC_CHECK_HEADERS(sys/select.h sys/types.h sys/socket.h sys/un.h)
58 AC_CHECK_HEADERS(security/pam_appl.h pam/pam_appl.h crypt.h shadow.h libaudit.h)
59 AC_CHECK_HEADERS(sys/resource.h)
60 AC_CHECK_HEADERS(grp.h)
62 dnl Checks for typedefs, structures, and compiler characteristics.
70 dnl Check exitence of types
71 AC_CHECK_TYPE(ssize_t, int)
73 dnl Define sizeof constants
74 AC_CHECK_SIZEOF(time_t)
75 AC_CHECK_SIZEOF(pid_t)
76 AC_CHECK_SIZEOF(time_t)
77 AC_CHECK_SIZEOF(short int)
79 AC_CHECK_SIZEOF(long int)
80 AC_CHECK_SIZEOF(long long int)
82 dnl Checks for library functions.
83 AC_PROG_GCC_TRADITIONAL
88 AC_CHECK_LIB(xnet, shutdown)
89 AC_CHECK_LIB(selinux, getcon, [selinuxavail=1], [selinuxavail=0])
90 AC_CHECK_LIB(audit, audit_open, [auditavail=1], [auditavail=0])
92 AC_CHECK_FUNC(getloadavg, [getloadavg=1], [getloadavg=0])
93 AC_CHECK_LIB(kstat, kstat_open, [kstat=1], [kstat=0])
94 if test $getloadavg -eq 1; then
97 AC_MSG_CHECKING(function to use for lavg* options)
98 AC_MSG_RESULT(getloadavg())
99 elif test $kstat -eq 1; then
100 AC_MSG_CHECKING(function to use for lavg* options)
102 AC_LIBOBJ([getloadavg])
103 AC_DEFINE_UNQUOTED(HAVE_KSTAT, 1)
106 dnl Try to use the /proc/loadavg file ...
108 AC_MSG_CHECKING(function to use for lavg* options)
109 AC_MSG_RESULT(/proc/loadavg)
111 AC_CHECK_FUNCS(getcwd gettimeofday mktime putenv strerror setenv unsetenv gethostname)
112 AC_CHECK_FUNCS(getopt_long)
113 AC_CHECK_FUNCS(mkstemp)
114 AC_CHECK_FUNCS(flock lockf)
115 AC_CHECK_FUNCS(setlinebuf)
116 AC_CHECK_FUNCS(signal)
117 AC_CHECK_FUNCS(sigset)
119 AC_CHECK_FUNCS(gettimeofday, [gettimeofday=1], [gettimeofday=0])
120 AC_CHECK_FUNCS(seteuid, [seteuid=1], [seteuid=0])
121 AC_CHECK_FUNCS(setegid, [setegid=1], [setegid=0])
122 AC_CHECK_FUNCS(setresuid, [setresuid=1], [setresuid=0])
123 AC_CHECK_FUNCS(setresgid, [setresgid=1], [setresgid=0])
124 if test \( \( $seteuid -eq 1 \) -a \( $setegid -eq 1 \) \) -o \( \( "$setresuid" -eq 1 \) -a \( "$setresgid" -eq 1 \) \) ; then
130 AC_CHECK_FUNCS(setpriority)
132 AC_SEARCH_LIBS([getspnam],[shadow sec], [AC_DEFINE_UNQUOTED(HAVE_GETSPNAM, 1)], [])
134 AC_CHECK_FUNCS(crypt, [crypt=1], [crypt=0])
135 if test "$crypt" -eq "0"; then
136 AC_CHECK_LIB(crypt, crypt, [crypt=1], [crypt=0])
137 if test "$crypt" -eq "1"; then
141 if test "$crypt" -eq "1"; then
142 AC_DEFINE_UNQUOTED(HAVE_CRYPT, 1)
147 dnl Check for post-Reno style struct sockaddr
148 AC_CACHE_CHECK([for sa_len],
150 [AC_TRY_COMPILE([#include <sys/types.h>
151 #include <sys/socket.h>], [int main(void) {
152 struct sockaddr t;t.sa_len = 0;}],
153 ac_cv_sa_len=yes,ac_cv_sa_len=no)])
154 if test $ac_cv_sa_len = yes; then
155 AC_DEFINE(HAVE_SA_LEN)
158 dnl --- Socket authentication
159 AC_CHECK_HEADERS(cred.h sys/cred.h ucred.h sys/ucred.h)
160 AC_CHECK_FUNCS(getpeerucred) dnl Solaris 10 onward
161 AC_CHECK_FUNCS(getpeereid) dnl OpenBSD/FreeBSD
163 dnl ---------------------------------------------------------------------
164 dnl Check for fcron more specific stuffs (paths, progs, ...)
165 dnl ---------------------------------------------------------------------
167 fcron_enable_checks=yes
168 AC_ARG_ENABLE(checks,
169 [ --disable-checks Don't verify that programs exist on the host ], dnl '
170 [ case "$enableval" in
172 fcron_enable_checks=no
175 fcron_enable_checks=yes
178 AC_MSG_WARN([Bad value for --disable-checks])
184 dnl ---------------------------------------------------------------------
187 AC_PATH_PROG(FOUND_SENDMAIL, sendmail, , $PATH:/usr/lib:/usr/sbin )
190 AC_MSG_CHECKING([actual sendmail to use])
191 AC_ARG_WITH(sendmail, [ --with-sendmail=PATH Path to sendmail.],
193 no) USE_SENDMAIL=0 ;;
195 *) SENDMAIL=$withval ;;
199 if test "$USE_SENDMAIL" != "1" ; then
200 AC_MSG_RESULT([disabled])
201 AC_MSG_WARN([Without sendmail you will not get the output of the jobs by mail])
202 elif test -n "$SENDMAIL" ; then
203 dnl The user defined a sendmail program to use:
204 if test ! -x "$SENDMAIL" ; then
205 dnl ... but it is not an executable file!
206 AC_MSG_RESULT([$SENDMAIL])
207 AC_MSG_ERROR([File $SENDMAIL is not an executable file])
209 dnl ... and it is valid
210 AC_MSG_RESULT([$SENDMAIL])
212 elif test -z "$FOUND_SENDMAIL" ; then
213 dnl The user didn't defined a program to use, and we didn't find one automatically
214 AC_MSG_RESULT([not found])
215 AC_MSG_ERROR([Empty sendmail path or cannot determine path to sendmail: try option --with-sendmail=PATH])
217 dnl Use the automatically found sendmail program:
218 SENDMAIL="$FOUND_SENDMAIL"
219 AC_MSG_RESULT([$SENDMAIL])
223 if test "$USE_SENDMAIL" = "1"; then
224 AC_DEFINE([USE_SENDMAIL])
227 AC_PATH_PROG(FOUND_FCRON_SHELL, sh, , $PATH)
229 AC_MSG_CHECKING([default shell to use to run a job])
231 [ --with-shell=PATH Path to default shell (by default, path to sh).],
234 AC_MSG_ERROR(Need a default shell)
240 if test $fcron_enable_checks = 'yes' -a ! -x "$withval"; then
242 File $withval is not an executable file])
247 if test x"$FCRON_SHELL" = x ; then
248 FCRON_SHELL=$FOUND_FCRON_SHELL
249 if test "$FOUND_FCRON_SHELL" = "" ; then
251 Cannot determine path to sh: try option --with-shell=PATH])
255 AC_MSG_RESULT([$FCRON_SHELL])
256 AC_SUBST([FCRON_SHELL])
258 AC_PATH_PROG(FOUND_FCRON_EDITOR, vi)
260 AC_MSG_CHECKING([editor to use for fcrontab])
262 [ --with-editor=PATH Path to default editor (by default, path to vi).],
265 AC_MSG_ERROR([Need a default editor])
270 FCRON_EDITOR=$withval
271 if test $fcron_enable_checks = 'yes' -a ! -x "$withval"; then
273 File $withval is not an executable file])
279 if test x"$FCRON_EDITOR" = x; then
280 FCRON_EDITOR=$FOUND_FCRON_EDITOR
281 if test x"$FCRON_EDITOR" = x ; then
283 Cannot determine path to vi: try option --with-editor=PATH])
287 AC_MSG_RESULT([$FCRON_EDITOR])
288 AC_SUBST([FCRON_EDITOR])
290 dnl ---------------------------------------------------------------------
293 PIDDIR="${localstatedir}/run"
294 AC_MSG_CHECKING(location of pid files)
296 [ --with-piddir=PATH Directory containing pid files.],
299 AC_MSG_ERROR([Need PIDDIR.])
308 AC_MSG_RESULT([$PIDDIR])
309 PIDFILE="${PIDDIR}/fcron.pid"
310 dnl Is it the first time fcron starts since the system rebooted:
311 REBOOT_LOCK="${PIDDIR}/fcron.reboot"
312 dnl Used to notify fcron the system was suspended, and for how long:
313 SUSPEND_FILE="${PIDDIR}/fcron.suspend"
316 AC_SUBST(REBOOT_LOCK)
317 AC_SUBST(SUSPEND_FILE)
319 FIFODIR="${localstatedir}/run"
320 AC_MSG_CHECKING(location of fifo files)
322 [ --with-fifodir=PATH Directory containing fifo files.],
325 AC_MSG_ERROR(Need FIFODIR.)
334 AC_MSG_RESULT([$FIFODIR])
335 FIFOFILE="${FIFODIR}/fcron.fifo"
339 sp="${localstatedir}/spool/fcron"
340 AC_MSG_CHECKING(location of spool directory)
341 AC_ARG_WITH(spooldir,
342 [ --with-spooldir=PATH Directory containing fcron spool (default PREFIX/var/spool/fcron).],
345 AC_MSG_ERROR(Need SPOOLDIR.)
356 AC_DEFINE_UNQUOTED(FCRONTABS, "$sp")
359 if test \( $getloadavg -eq 0 \) -a \( $kstat -eq 0 \); then
361 AC_MSG_CHECKING(proc directory)
363 [ --with-proc=PATH Directory where linux procfs is mounted (default /proc).],
367 Without proc, you won't be able to use the lavg* options
379 if test "$withval" != "no" -a $fcron_enable_checks = 'yes'; then
380 if test -f "$proc/loadavg"; then :
383 Cannot determine value for proc directory: try option --with-proc=PATH])
384 AC_MSG_ERROR(Use --with-proc=no to disable the lavg* options)
390 AC_DEFINE_UNQUOTED(PROC, "$proc")
393 docdir="${datadir}/doc"
394 AC_MSG_CHECKING(location of doc directory)
396 [ --with-docdir=PATH Directory containing documentation.],
399 AC_MSG_ERROR(Need DOCDIR.)
408 AC_MSG_RESULT($docdir)
413 dnl systemd init system
416 AC_CHECK_PROGS(PKG_CONFIG, $PKG_CONFIG pkg-config, , $PATH:/local/bin:/usr/local/bin:/opt/sfw/bin)
417 AC_MSG_CHECKING(for systemd)
418 AC_ARG_WITH([systemdsystemunitdir],
419 [ --with-systemdsystemunitdir=DIR Directory for systemd service files.],
420 [], [ if test "x" != "x$PKG_CONFIG"; then
421 with_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
423 if test "x$with_systemdsystemunitdir" != xno; then
424 if test "x" != "x$with_systemdsystemunitdir"; then
425 SYSTEMD_DIR="$with_systemdsystemunitdir"
431 AC_MSG_RESULT(disabled)
433 AC_SUBST(SYSTEMD_DIR)
436 dnl ---------------------------------------------------------------------
437 dnl Users and groups ...
439 AC_MSG_CHECKING(run non-privileged)
440 AC_ARG_WITH(run-non-privileged,
441 [ --with-run-non-privileged=[yes|no] Run fcron without root's rights (see FAQ !)],
452 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
454 This option allows a non privileged user to run fcron. When used,
455 fcron does not change its rights before running a job (i.e.,
456 if joe runs fcron, every job will run as joe).
457 It means that YOU SHOULD NOT RUN FCRON AS A PRIVILEGED USER WHEN
458 COMPILED WITH THIS OPTION or you'll have a serious security hole.
459 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
462 AC_DEFINE(RUN_NON_PRIVILEGED)
464 AC_SUBST(RUN_NON_PRIVILEGED)
472 AC_MSG_ERROR(Invalid argument : please use 'yes' or 'no'.)
480 if test "$fcrondyn" = ""; then
481 dnl As it stands gettimeofday() is required to have fcrondyn
482 if test "$gettimeofday" = 1; then
488 AC_MSG_CHECKING(if fcrondyn should be compiled)
489 AC_ARG_WITH(fcrondyn,
490 [ --with-fcrondyn=[yes|no] Compile (or not) fcrondyn (default: yes).],
497 if test "$crypt" -eq 1 || test "$gettimeofday" -eq 1; then
501 AC_MSG_ERROR(Need a crypt() and gettimeofday() function to enable fcrondyn.)
505 AC_MSG_ERROR(Must be set to either "yes" or "no".)
508 if test "$fcrondyn" = "1" && test "$crypt" -eq 1 && test "$gettimeofday" -eq 1; then
516 if test "$fcrondyn" = 1; then
517 AC_DEFINE_UNQUOTED(FCRONDYN, "$fcrondyn")
521 AC_MSG_CHECKING([root's username])
523 AC_ARG_WITH(rootname,
524 [ --with-rootname=USERNAME Root's username (default root) ],
527 AC_MSG_ERROR([Need rootname.])
537 if test $fcron_enable_checks = 'yes'; then
539 rootuid=`$srcdir/script/has_usrgrp.pl -user $rootname -printuid`
540 if test "x$rootuid" = "x"; then
542 Invalid root's username or cannot determine root's username: try option --with-rootname=USERNAME])
545 AC_MSG_RESULT([$rootname])
548 AC_MSG_CHECKING([root's groupname])
549 AC_ARG_WITH(rootgroup,
550 [ --with-rootgroup=GROUPNAME Root's groupname (default root (or wheel)) ],
553 AC_MSG_ERROR(Need rootgroup.)
563 if test $fcron_enable_checks = 'yes'; then
565 if test x"$rootgroup" = x; then
566 # rootgroup not defined: test a few possibilities
567 rgid=`$srcdir/script/has_usrgrp.pl -group root -printgid`
568 wgid=`$srcdir/script/has_usrgrp.pl -group wheel -printgid`
569 if test "x$rgid" != "x"; then
572 elif test "x$wgid" != "x"; then
577 Cannot determine root's groupname: try option --with-rootgroup=GROUPNAME])
580 # rootgroup defined: check it
581 rootgid=`$srcdir/script/has_usrgrp.pl -group $rootgroup -printgid`
582 if test "x$rootgid" = "x"; then
584 Cannot determine root's groupname: try option --with-rootgroup=GROUPNAME])
589 # no check: use values given by user or default values
590 if test x"$rootgroup" = x ; then
596 AC_MSG_RESULT([$rootgroup])
600 AC_DEFINE_UNQUOTED(ROOTNAME, "$rootname")
601 ROOTGROUP="$rootgroup"
603 AC_DEFINE_UNQUOTED(ROOTGROUP, "$rootgroup")
607 groupname="$rootgroup"
609 AC_MSG_CHECKING(username to run fcrontab under)
610 AC_ARG_WITH(username,
611 [ --with-username=USERNAME Username to run fcrontab under (default fcron) ],
614 AC_MSG_ERROR(Need USERNAME.)
617 if test "$has_euid" -eq 1 ; then
620 AC_MSG_RESULT($username)
623 if test "$has_euid" -eq 1 ; then
625 AC_MSG_RESULT($username)
626 if test "$withval" = "$rootname" && test "$RUN_NON_PRIVILEGED" != "1"; then
629 Running fcrontab setuid root is NOT secure and would completely break
630 the security model of fcron. You must use a different user name.
635 AC_MSG_RESULT($username)
636 AC_MSG_WARN(username must be $rootname as your system has no seteuid)
640 if test "$has_euid" -eq 1 ; then
643 AC_MSG_RESULT($username)
646 AC_MSG_CHECKING(groupname to run fcrontab under)
647 AC_ARG_WITH(groupname,
648 [ --with-groupname=GROUPNAME Groupname to run fcrontab under (default fcron) ],
651 AC_MSG_ERROR(Need GROUPNAME.)
654 if test "$has_euid" -eq 1 ; then
657 AC_MSG_RESULT($groupname)
660 if test "$has_euid" -eq 1 ; then
661 groupname="$withval";
662 AC_MSG_RESULT($groupname)
664 AC_MSG_RESULT($groupname)
665 AC_MSG_WARN(groupname must be $rootgroup as username is $username)
669 if test "$has_euid" -eq 1 ; then
672 AC_MSG_RESULT($groupname)
677 AC_DEFINE_UNQUOTED(USERNAME, "$username")
678 GROUPNAME="$groupname"
680 AC_DEFINE_UNQUOTED(GROUPNAME, "$groupname")
683 if test "$has_euid" -eq 1 ; then
684 AC_DEFINE(USE_SETE_ID)
691 AC_MSG_CHECKING(use a system fcrontab)
692 AC_ARG_WITH(sysfcrontab,
693 [ --with-sysfcrontab=NAME Use (or not) a system fcrontab (default: yes)],
703 sysfcrontab="$withval"
704 AC_MSG_RESULT($sysfcrontab)
708 if test "$use_sysfcrontab" -eq 1 ; then
709 AC_DEFINE_UNQUOTED(SYSFCRONTAB, "$sysfcrontab")
710 SYSFCRONTAB="$sysfcrontab"
711 AC_SUBST(SYSFCRONTAB)
715 dnl ---------------------------------------------------------------------
719 [ --with-debug=CFLAGS Use default debug flags or CFLAGS if given to compile fcron in debug mode.],
726 cflags="-DDEBUG -DCHECKRUNJOB -g -Wall -DFOREGROUND -DMALLOC_CHECK_=2 -Wpointer-arith -Wstrict-prototypes"
742 if test "$bootinstall" = ""; then
745 AC_MSG_CHECKING(install interactively a boot script)
746 AC_ARG_WITH(boot-install,
747 [ --with-boot-install=[yes|no] Install (interactively) a boot script (default: yes).],
758 AC_MSG_ERROR(Must be set to either "yes" or "no".)
761 if test "$bootinstall" = "1"; then
767 BOOTINSTALL="$bootinstall"
768 AC_DEFINE_UNQUOTED(BOOTINSTALL, "$bootinstall")
769 AC_SUBST(BOOTINSTALL)
773 [ --with-cflags=CFLAGS Use CFLAGS flags to compile fcron.],
776 AC_MSG_ERROR(Need an explicit value for --with-cflags.)
779 AC_MSG_ERROR(Need an explicit value for --with-cflags.)
787 AC_DEFINE_UNQUOTED(CFLAGS, "$cflags")
790 AC_MSG_CHECKING(automatic answer to make install's questions)
791 AC_ARG_WITH(answer-all,
792 [ --with-answer-all=[yes|no] Answer the argument to every make install's questions.],
796 AC_MSG_RESULT(yes (answer "no"))
800 AC_MSG_RESULT(yes (answer "yes"))
803 AC_MSG_ERROR(Must be set to either "yes" or "no".)
809 ANSWERALL="$answerall"
810 AC_DEFINE_UNQUOTED(ANSWERALL, "$answerall")
814 AC_MSG_CHECKING(if audit trails should be enabled if available)
816 [ --with-audit=[yes|no] Enable (or not) audit trails if available (default: yes).],
825 AC_MSG_ERROR(Must be set to either "yes" or "no".)
829 if test useaudit = "0"; then
831 elif test "$useaudit" = "1" && test "$auditavail" != 1; then
833 AC_MSG_RESULT(not available)
835 You requested audit trails to be enabled, but libaudit was not found.
837 elif test "$auditavail" = 1; then
841 AC_DEFINE(WITH_AUDIT)
848 if test "$usepam" = ""; then
851 AC_MSG_CHECKING(if pam should be used if available)
853 [ --with-pam=[yes|no] Use (or not) PAM if available (default: yes).],
861 AC_CHECK_LIB(pam, pam_acct_mgmt)
864 AC_MSG_ERROR(Must be set to either "yes" or "no".)
867 if test "$usepam" = "1"; then
869 AC_CHECK_LIB(pam, pam_acct_mgmt)
875 if test "$usepam" != "0" && echo "$LIBS" | grep -- "-lpam" > /dev/null ; then
884 if test "$useselinux" = ""; then
887 AC_MSG_CHECKING(if SELinux should be used)
889 [ --with-selinux=[yes|no] Use (or not) SELinux (default: yes).],
896 if test "$selinuxavail" -eq 1; then
900 AC_MSG_RESULT(not available)
902 You requested the use of SELinux, but SELinux is considered
903 as not available by configure script.
908 AC_MSG_ERROR(Must be set to either "yes" or "no".)
911 if test "$useselinux" != "0" && test "$selinuxavail" -eq 1; then
916 AC_MSG_RESULT(not available)
919 if test "$useselinux" -eq 1; then
920 LIBS="$LIBS -lselinux"
921 AC_DEFINE(WITH_SELINUX)
922 CFLAGS="$CFLAGS -I/usr/include/selinux"
926 dnl ---------------------------------------------------------------------
929 AC_PATH_PROG(JADE,openjade)
930 if test -z "$JADE"; then
931 AC_PATH_PROG(JADE,jade)
934 AC_PATH_PROG(DB2MAN,docbook2man)
935 if test -z "$DB2MAN"; then
936 AC_PATH_PROG(DB2MAN,db2man)
938 AC_MSG_CHECKING(Looking for docbook2man converter)
940 [ --with-db2man=PATH(or 'no') set PATH to a docbook2man converter.],
947 AC_MSG_ERROR(Must be set to PATH or "no".)
950 if test ! -x "$withval"; then
951 AC_MSG_ERROR($withval is not an exe file.)
954 AC_MSG_RESULT($withval)
957 AC_MSG_RESULT(default: $DB2MAN)
961 AC_PATH_PROG(NSGMLS, nsgmls)
962 AC_PATH_PROG(SGMLSPL, sgmlspl)
964 DB2MAN_SPEC="/usr/share/sgml/docbook/utils-0.6.9/helpers/docbook2man-spec.pl"
966 AC_MSG_CHECKING(Looking for docbook2man-spec file)
967 AC_ARG_WITH(db2man-spec,
968 [ --with-db2man-spec=PATH set the PATH to docbook2man-spec file
969 (needed if no db2man converter is set).],
976 AC_MSG_ERROR(Must be set to PATH or "no".)
979 if test ! -f "$withval"; then
980 AC_MSG_ERROR($withval is not a file.)
982 DB2MAN_SPEC="$withval"
983 AC_MSG_RESULT($withval)
986 AC_MSG_RESULT(default)
988 AC_SUBST(DB2MAN_SPEC)
990 if test -x "$DB2MAN"; then
991 DB2MAN_BEFORE="$DB2MAN"
994 if test \( \( -f "$DB2MAN_SPEC" \) -a \( -x "$NSGMLS" \) \
995 -a \( -x "$SGMLSPL" \) \); then
996 DB2MAN_BEFORE="$NSGMLS"
997 DB2MAN_AFTER="2> /dev/null | $SGMLSPL $DB2MAN_SPEC"
1003 AC_SUBST(DB2MAN_BEFORE)
1004 AC_SUBST(DB2MAN_AFTER)
1007 DSSSL_DIR="/usr/share/sgml/docbook/stylesheet/dsssl/modular"
1009 AC_MSG_CHECKING(Looking for dsssl stylsheets)
1010 AC_ARG_WITH(dsssl-dir,
1011 [ --with-dsssl-dir=DIR change the default location of DSSSL stylesheets.],
1012 [ case "$withval" in
1018 AC_MSG_ERROR(Must be set to DIR or "no".)
1021 if test ! -f "$withval/html/docbook.dsl"; then
1022 AC_MSG_ERROR($withval/html/docbook.dsl does not exist.)
1024 DSSSL_DIR="$withval"
1025 AC_MSG_RESULT($withval)
1028 AC_MSG_RESULT(default)
1029 if test ! -f "$DSSSL_DIR/html/docbook.dsl"; then
1032 $DSSSL_DIR/html/docbook.dsl does not exist. You will probably not be able to generate the documentation from the DocBook source files.])
1033 AC_MSG_WARN([Use --with-dsssl-dir to specify a directory.
1040 dnl ---------------------------------------------------------------------
1042 dnl ---------------------------------------------------------------------
1045 AC_OUTPUT(Makefile doc/Makefile doc/stylesheets/fcron-doc.dsl)
1048 dnl ---------------------------------------------------------------------
1050 dnl ---------------------------------------------------------------------
1056 echo -n "run in debug mode by default : "
1057 if test "$debug" -eq "1"; then
1063 echo -n "Audit trails : "
1064 if test "$useaudit" -eq 1; then
1071 if test "$usepam" -eq 1; then
1077 echo -n "SELinux : "
1078 if test "$useselinux" -eq 1; then
1084 echo -n "Readline : "
1085 if test "$ax_cv_lib_readline" = "no"; then
1092 echo -n "Run without root's rights : "
1093 if test "$run_non_privileged" -eq 1; then
1099 echo -n "Load average support : "
1100 if test "$getloadavg" -eq 1 -o -n "$proc"; then
1106 echo -n "compile fcrondyn : "
1107 if test "$fcrondyn" -eq 1; then
1113 echo "fcron's user (resp. group) name : $username (resp. $groupname)"
1115 echo -n "sysfcrontab : "
1116 if test "$use_sysfcrontab" -eq 1; then
1117 echo "yes ($sysfcrontab)"
1122 echo "prefix: $prefix"
1123 echo "exec_prefix: $exec_prefix"
1124 echo "datarootdir: $datarootdir"
1125 echo "bin dir: $bindir"
1126 echo "sbin dir: $sbindir"
1127 echo "spool dir: $sp"
1128 echo "etc dir: $sysconfdir"
1129 echo "doc dir: $docdir"
1130 echo "man dir: $mandir "
1134 echo "You can now run '$MAKE' to compile"
1135 echo "and then (as root) '$MAKE install' to install fcron."