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/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 AC_CHECK_SIZEOF(time_t)
64 dnl Checks for typedefs, structures, and compiler characteristics.
72 dnl Define sizeof constants
73 AC_CHECK_SIZEOF(pid_t)
74 AC_CHECK_SIZEOF(time_t)
75 AC_CHECK_SIZEOF(short int)
77 AC_CHECK_SIZEOF(long int)
78 AC_CHECK_SIZEOF(long long int)
80 dnl Checks for library functions.
81 AC_PROG_GCC_TRADITIONAL
86 AC_CHECK_LIB(xnet, shutdown)
87 AC_CHECK_LIB(selinux, getcon, [selinuxavail=1], [selinuxavail=0])
88 AC_CHECK_LIB(audit, audit_open, [auditavail=1], [auditavail=0])
90 AC_CHECK_FUNC(getloadavg, [getloadavg=1], [getloadavg=0])
91 AC_CHECK_LIB(kstat, kstat_open, [kstat=1], [kstat=0])
92 if test $getloadavg -eq 1; then
95 AC_MSG_CHECKING(function to use for lavg* options)
96 AC_MSG_RESULT(getloadavg())
97 elif test $kstat -eq 1; then
98 AC_MSG_CHECKING(function to use for lavg* options)
100 AC_LIBOBJ([getloadavg])
101 AC_DEFINE_UNQUOTED(HAVE_KSTAT, 1)
104 dnl Try to use the /proc/loadavg file ...
106 AC_MSG_CHECKING(function to use for lavg* options)
107 AC_MSG_RESULT(/proc/loadavg)
109 AC_CHECK_FUNCS(getcwd gettimeofday mktime putenv strerror setenv unsetenv gethostname)
110 AC_CHECK_FUNCS(getopt_long)
111 AC_CHECK_FUNCS(mkstemp)
112 AC_CHECK_FUNCS(flock lockf)
113 AC_CHECK_FUNCS(setlinebuf)
114 AC_CHECK_FUNCS(signal)
115 AC_CHECK_FUNCS(sigset)
117 AC_CHECK_FUNCS(seteuid, [seteuid=1], [seteuid=0])
118 AC_CHECK_FUNCS(setegid, [setegid=1], [setegid=0])
119 AC_CHECK_FUNCS(setresuid, [setresuid=1], [setresuid=0])
120 AC_CHECK_FUNCS(setresgid, [setresgid=1], [setresgid=0])
121 if test \( \( $seteuid -eq 1 \) -a \( $setegid -eq 1 \) \) -o \( \( "$setresuid" -eq 1 \) -a \( "$setresgid" -eq 1 \) \) ; then
127 AC_CHECK_FUNCS(setpriority)
129 AC_SEARCH_LIBS([getspnam],[shadow sec], [AC_DEFINE_UNQUOTED(HAVE_GETSPNAM, 1)], [])
131 AC_CHECK_FUNCS(crypt, [crypt=1], [crypt=0])
132 if test "$crypt" -eq "0"; then
133 AC_CHECK_LIB(crypt, crypt, [crypt=1], [crypt=0])
134 if test "$crypt" -eq "1"; then
138 if test "$crypt" -eq "1"; then
139 AC_DEFINE_UNQUOTED(HAVE_CRYPT, 1)
144 dnl Check for post-Reno style struct sockaddr
145 AC_CACHE_CHECK([for sa_len],
147 [AC_TRY_COMPILE([#include <sys/types.h>
148 #include <sys/socket.h>], [int main(void) {
149 struct sockaddr t;t.sa_len = 0;}],
150 ac_cv_sa_len=yes,ac_cv_sa_len=no)])
151 if test $ac_cv_sa_len = yes; then
152 AC_DEFINE(HAVE_SA_LEN)
155 dnl --- Socket authentication
156 AC_CHECK_HEADERS(cred.h sys/cred.h ucred.h sys/ucred.h)
157 AC_CHECK_FUNCS(getpeerucred) dnl Solaris 10 onward
158 AC_CHECK_FUNCS(getpeereid) dnl OpenBSD/FreeBSD
160 dnl ---------------------------------------------------------------------
161 dnl Check for fcron more specific stuffs (paths, progs, ...)
162 dnl ---------------------------------------------------------------------
164 fcron_enable_checks=yes
165 AC_ARG_ENABLE(checks,
166 [ --disable-checks Don't verify that programs exist on the host ], dnl '
167 [ case "$enableval" in
169 fcron_enable_checks=no
172 fcron_enable_checks=yes
175 AC_MSG_WARN([Bad value for --disable-checks])
181 dnl ---------------------------------------------------------------------
184 AC_PATH_PROG(FOUND_SENDMAIL, sendmail, , $PATH:/usr/lib:/usr/sbin )
187 AC_MSG_CHECKING([actual sendmail to use])
188 AC_ARG_WITH(sendmail, [ --with-sendmail=PATH Path to sendmail.],
190 no) USE_SENDMAIL=0 ;;
192 *) SENDMAIL=$withval ;;
196 if test "$USE_SENDMAIL" != "1" ; then
197 AC_MSG_RESULT([disabled])
198 AC_MSG_WARN([Without sendmail you will not get the output of the jobs by mail])
199 elif test -n "$SENDMAIL" ; then
200 dnl The user defined a sendmail program to use:
201 if test ! -x "$SENDMAIL" ; then
202 dnl ... but it is not an executable file!
203 AC_MSG_RESULT([$SENDMAIL])
204 AC_MSG_ERROR([File $SENDMAIL is not an executable file])
206 dnl ... and it is valid
207 AC_MSG_RESULT([$SENDMAIL])
209 elif test -z "$FOUND_SENDMAIL" ; then
210 dnl The user didn't defined a program to use, and we didn't find one automatically
211 AC_MSG_RESULT([not found])
212 AC_MSG_ERROR([Empty sendmail path or cannot determine path to sendmail: try option --with-sendmail=PATH])
214 dnl Use the automatically found sendmail program:
215 SENDMAIL="$FOUND_SENDMAIL"
216 AC_MSG_RESULT([$SENDMAIL])
220 if test "$USE_SENDMAIL" = "1"; then
221 AC_DEFINE([USE_SENDMAIL])
224 AC_PATH_PROG(FOUND_FCRON_SHELL, sh, , $PATH)
226 AC_MSG_CHECKING([default shell to use to run a job])
228 [ --with-shell=PATH Path to default shell (by default, path to sh).],
231 AC_MSG_ERROR(Need a default shell)
237 if test $fcron_enable_checks = 'yes' -a ! -x "$withval"; then
239 File $withval is not an executable file])
244 if test x"$FCRON_SHELL" = x ; then
245 FCRON_SHELL=$FOUND_FCRON_SHELL
246 if test "$FOUND_FCRON_SHELL" = "" ; then
248 Cannot determine path to sh: try option --with-shell=PATH])
252 AC_MSG_RESULT([$FCRON_SHELL])
253 AC_SUBST([FCRON_SHELL])
255 AC_PATH_PROG(FOUND_FCRON_EDITOR, vi)
257 AC_MSG_CHECKING([editor to use for fcrontab])
259 [ --with-editor=PATH Path to default editor (by default, path to vi).],
262 AC_MSG_ERROR([Need a default editor])
267 FCRON_EDITOR=$withval
268 if test $fcron_enable_checks = 'yes' -a ! -x "$withval"; then
270 File $withval is not an executable file])
276 if test x"$FCRON_EDITOR" = x; then
277 FCRON_EDITOR=$FOUND_FCRON_EDITOR
278 if test x"$FCRON_EDITOR" = x ; then
280 Cannot determine path to vi: try option --with-editor=PATH])
284 AC_MSG_RESULT([$FCRON_EDITOR])
285 AC_SUBST([FCRON_EDITOR])
287 dnl ---------------------------------------------------------------------
290 PIDDIR="${localstatedir}/run"
291 AC_MSG_CHECKING(location of pid files)
293 [ --with-piddir=PATH Directory containing pid files.],
296 AC_MSG_ERROR([Need PIDDIR.])
305 AC_MSG_RESULT([$PIDDIR])
306 PIDFILE="${PIDDIR}/fcron.pid"
307 REBOOT_LOCK="${PIDDIR}/fcron.reboot"
310 AC_SUBST(REBOOT_LOCK)
312 FIFODIR="${localstatedir}/run"
313 AC_MSG_CHECKING(location of fifo files)
315 [ --with-fifodir=PATH Directory containing fifo files.],
318 AC_MSG_ERROR(Need FIFODIR.)
327 AC_MSG_RESULT([$FIFODIR])
328 FIFOFILE="${FIFODIR}/fcron.fifo"
332 sp="${localstatedir}/spool/fcron"
333 AC_MSG_CHECKING(location of spool directory)
334 AC_ARG_WITH(spooldir,
335 [ --with-spooldir=PATH Directory containing fcron spool (default PREFIX/var/spool/fcron).],
338 AC_MSG_ERROR(Need SPOOLDIR.)
349 AC_DEFINE_UNQUOTED(FCRONTABS, "$sp")
352 if test \( $getloadavg -eq 0 \) -a \( $kstat -eq 0 \); then
354 AC_MSG_CHECKING(proc directory)
356 [ --with-proc=PATH Directory where linux procfs is mounted (default /proc).],
360 Without proc, you won't be able to use the lavg* options
372 if test "$withval" != "no" -a $fcron_enable_checks = 'yes'; then
373 if test -f "$proc/loadavg"; then :
376 Cannot determine value for proc directory: try option --with-proc=PATH])
377 AC_MSG_ERROR(Use --with-proc=no to disable the lavg* options)
383 AC_DEFINE_UNQUOTED(PROC, "$proc")
386 docdir="${datadir}/doc"
387 AC_MSG_CHECKING(location of doc directory)
389 [ --with-docdir=PATH Directory containing documentation.],
392 AC_MSG_ERROR(Need DOCDIR.)
401 AC_MSG_RESULT($docdir)
406 dnl systemd init system
409 AC_CHECK_PROGS(PKG_CONFIG, $PKG_CONFIG pkg-config, , $PATH:/local/bin:/usr/local/bin:/opt/sfw/bin)
410 AC_MSG_CHECKING(for systemd)
411 AC_ARG_WITH([systemdsystemunitdir],
412 [ --with-systemdsystemunitdir=DIR Directory for systemd service files.],
413 [], [ if test "x" != "x$PKG_CONFIG"; then
414 with_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
416 if test "x$with_systemdsystemunitdir" != xno; then
417 if test "x" != "x$with_systemdsystemunitdir"; then
418 SYSTEMD_DIR="$with_systemdsystemunitdir"
424 AC_MSG_RESULT(disabled)
426 AC_SUBST(SYSTEMD_DIR)
429 dnl ---------------------------------------------------------------------
430 dnl Users and groups ...
432 AC_MSG_CHECKING(run non-privileged)
433 AC_ARG_WITH(run-non-privileged,
434 [ --with-run-non-privileged=[yes|no] Run fcron without root's rights (see FAQ !)],
445 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
447 This option allows a non privileged user to run fcron. When used,
448 fcron does not change its rights before running a job (i.e.,
449 if joe runs fcron, every job will run as joe).
450 It means that YOU SHOULD NOT RUN FCRON AS A PRIVILEGED USER WHEN
451 COMPILED WITH THIS OPTION or you'll have a serious security hole.
452 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
455 AC_DEFINE(RUN_NON_PRIVILEGED)
457 AC_SUBST(RUN_NON_PRIVILEGED)
465 AC_MSG_ERROR(Invalid argument : please use 'yes' or 'no'.)
473 if test "$fcrondyn" = ""; then
476 AC_MSG_CHECKING(if fcrondyn should be compiled)
477 AC_ARG_WITH(fcrondyn,
478 [ --with-fcrondyn=[yes|no] Compile (or not) fcrondyn (default: yes).],
485 if test "$crypt" -eq 1; then
489 AC_MSG_ERROR(Need a crypt() function.)
493 AC_MSG_ERROR(Must be set to either "yes" or "no".)
496 if test "$fcrondyn" = "1" && test "$crypt" -eq 1; then
504 if test "$fcrondyn" = 1; then
505 AC_DEFINE_UNQUOTED(FCRONDYN, "$fcrondyn")
509 AC_MSG_CHECKING([root's username])
511 AC_ARG_WITH(rootname,
512 [ --with-rootname=USERNAME Root's username (default root) ],
515 AC_MSG_ERROR([Need rootname.])
525 if test $fcron_enable_checks = 'yes'; then
527 rootuid=`$srcdir/script/has_usrgrp.pl -user $rootname -printuid`
528 if test "x$rootuid" = "x"; then
530 Invalid root's username or cannot determine root's username: try option --with-rootname=USERNAME])
533 AC_MSG_RESULT([$rootname])
536 AC_MSG_CHECKING([root's groupname])
537 AC_ARG_WITH(rootgroup,
538 [ --with-rootgroup=GROUPNAME Root's groupname (default root (or wheel)) ],
541 AC_MSG_ERROR(Need rootgroup.)
551 if test $fcron_enable_checks = 'yes'; then
553 if test x"$rootgroup" = x; then
554 # rootgroup not defined: test a few possibilities
555 rgid=`$srcdir/script/has_usrgrp.pl -group root -printgid`
556 wgid=`$srcdir/script/has_usrgrp.pl -group wheel -printgid`
557 if test "x$rgid" != "x"; then
560 elif test "x$wgid" != "x"; then
565 Cannot determine root's groupname: try option --with-rootgroup=GROUPNAME])
568 # rootgroup defined: check it
569 rootgid=`$srcdir/script/has_usrgrp.pl -group $rootgroup -printgid`
570 if test "x$rootgid" = "x"; then
572 Cannot determine root's groupname: try option --with-rootgroup=GROUPNAME])
577 # no check: use values given by user or default values
578 if test x"$rootgroup" = x ; then
584 AC_MSG_RESULT([$rootgroup])
588 AC_DEFINE_UNQUOTED(ROOTNAME, "$rootname")
589 ROOTGROUP="$rootgroup"
591 AC_DEFINE_UNQUOTED(ROOTGROUP, "$rootgroup")
595 groupname="$rootgroup"
597 AC_MSG_CHECKING(username to run fcrontab under)
598 AC_ARG_WITH(username,
599 [ --with-username=USERNAME Username to run fcrontab under (default fcron) ],
602 AC_MSG_ERROR(Need USERNAME.)
605 if test "$has_euid" -eq 1 ; then
608 AC_MSG_RESULT($username)
611 if test "$has_euid" -eq 1 ; then
613 AC_MSG_RESULT($username)
614 if test "$withval" = "$rootname" && test "$RUN_NON_PRIVILEGED" != "1"; then
617 Running fcrontab setuid root is NOT secure and would completely break
618 the security model of fcron. You must use a different user name.
623 AC_MSG_RESULT($username)
624 AC_MSG_WARN(username must be $rootname as your system has no seteuid)
628 if test "$has_euid" -eq 1 ; then
631 AC_MSG_RESULT($username)
634 AC_MSG_CHECKING(groupname to run fcrontab under)
635 AC_ARG_WITH(groupname,
636 [ --with-groupname=GROUPNAME Groupname to run fcrontab under (default fcron) ],
639 AC_MSG_ERROR(Need GROUPNAME.)
642 if test "$has_euid" -eq 1 ; then
645 AC_MSG_RESULT($groupname)
648 if test "$has_euid" -eq 1 ; then
649 groupname="$withval";
650 AC_MSG_RESULT($groupname)
652 AC_MSG_RESULT($groupname)
653 AC_MSG_WARN(groupname must be $rootgroup as username is $username)
657 if test "$has_euid" -eq 1 ; then
660 AC_MSG_RESULT($groupname)
665 AC_DEFINE_UNQUOTED(USERNAME, "$username")
666 GROUPNAME="$groupname"
668 AC_DEFINE_UNQUOTED(GROUPNAME, "$groupname")
671 if test "$has_euid" -eq 1 ; then
672 AC_DEFINE(USE_SETE_ID)
679 AC_MSG_CHECKING(use a system fcrontab)
680 AC_ARG_WITH(sysfcrontab,
681 [ --with-sysfcrontab=NAME Use (or not) a system fcrontab (default: yes)],
691 sysfcrontab="$withval"
692 AC_MSG_RESULT($sysfcrontab)
696 if test "$use_sysfcrontab" -eq 1 ; then
697 AC_DEFINE_UNQUOTED(SYSFCRONTAB, "$sysfcrontab")
698 SYSFCRONTAB="$sysfcrontab"
699 AC_SUBST(SYSFCRONTAB)
703 dnl ---------------------------------------------------------------------
707 [ --with-debug=CFLAGS Use default debug flags or CFLAGS if given to compile fcron in debug mode.],
714 cflags="-DDEBUG -g -Wall -DFOREGROUND -DMALLOC_CHECK_=2 -Wpointer-arith -Wstrict-prototypes"
730 if test "$bootinstall" = ""; then
733 AC_MSG_CHECKING(install interactively a boot script)
734 AC_ARG_WITH(boot-install,
735 [ --with-boot-install=[yes|no] Install (interactively) a boot script (default: yes).],
746 AC_MSG_ERROR(Must be set to either "yes" or "no".)
749 if test "$bootinstall" = "1"; then
755 BOOTINSTALL="$bootinstall"
756 AC_DEFINE_UNQUOTED(BOOTINSTALL, "$bootinstall")
757 AC_SUBST(BOOTINSTALL)
761 [ --with-cflags=CFLAGS Use CFLAGS flags to compile fcron.],
764 AC_MSG_ERROR(Need an explicit value for --with-cflags.)
767 AC_MSG_ERROR(Need an explicit value for --with-cflags.)
775 AC_DEFINE_UNQUOTED(CFLAGS, "$cflags")
778 AC_MSG_CHECKING(automatic answer to make install's questions)
779 AC_ARG_WITH(answer-all,
780 [ --with-answer-all=[yes|no] Answer the argument to every make install's questions.],
784 AC_MSG_RESULT(yes (answer "no"))
788 AC_MSG_RESULT(yes (answer "yes"))
791 AC_MSG_ERROR(Must be set to either "yes" or "no".)
797 ANSWERALL="$answerall"
798 AC_DEFINE_UNQUOTED(ANSWERALL, "$answerall")
802 AC_MSG_CHECKING(if audit trails should be enabled if available)
804 [ --with-audit=[yes|no] Enable (or not) audit trails if available (default: yes).],
813 AC_MSG_ERROR(Must be set to either "yes" or "no".)
817 if test useaudit = "0"; then
819 elif test "$useaudit" = "1" && test "$auditavail" != 1; then
821 AC_MSG_RESULT(not available)
823 You requested audit trails to be enabled, but libaudit was not found.
825 elif test "$auditavail" = 1; then
829 AC_DEFINE(WITH_AUDIT)
836 if test "$usepam" = ""; then
839 AC_MSG_CHECKING(if pam should be used if available)
841 [ --with-pam=[yes|no] Use (or not) PAM if available (default: yes).],
849 AC_CHECK_LIB(pam, pam_acct_mgmt)
852 AC_MSG_ERROR(Must be set to either "yes" or "no".)
855 if test "$usepam" = "1"; then
857 AC_CHECK_LIB(pam, pam_acct_mgmt)
863 if test "$usepam" != "0" && echo "$LIBS" | grep -- "-lpam" > /dev/null ; then
872 if test "$useselinux" = ""; then
875 AC_MSG_CHECKING(if SELinux should be used)
877 [ --with-selinux=[yes|no] Use (or not) SELinux (default: yes).],
884 if test "$selinuxavail" -eq 1; then
888 AC_MSG_RESULT(not available)
890 You requested the use of SELinux, but SELinux is considered
891 as not available by configure script.
896 AC_MSG_ERROR(Must be set to either "yes" or "no".)
899 if test "$useselinux" != "0" && test "$selinuxavail" -eq 1; then
904 AC_MSG_RESULT(not available)
907 if test "$useselinux" -eq 1; then
908 LIBS="$LIBS -lselinux"
909 AC_DEFINE(WITH_SELINUX)
910 CFLAGS="$CFLAGS -I/usr/include/selinux"
914 dnl ---------------------------------------------------------------------
917 AC_PATH_PROG(JADE,openjade)
918 if test -z "$JADE"; then
919 AC_PATH_PROG(JADE,jade)
922 AC_PATH_PROG(DB2MAN,docbook2man)
923 if test -z "$DB2MAN"; then
924 AC_PATH_PROG(DB2MAN,db2man)
926 AC_MSG_CHECKING(Looking for docbook2man converter)
928 [ --with-db2man=PATH(or 'no') set PATH to a docbook2man converter.],
935 AC_MSG_ERROR(Must be set to PATH or "no".)
938 if test ! -x "$withval"; then
939 AC_MSG_ERROR($withval is not an exe file.)
942 AC_MSG_RESULT($withval)
945 AC_MSG_RESULT(default: $DB2MAN)
949 AC_PATH_PROG(NSGMLS, nsgmls)
950 AC_PATH_PROG(SGMLSPL, sgmlspl)
952 DB2MAN_SPEC="/usr/share/sgml/docbook/utils-0.6.9/helpers/docbook2man-spec.pl"
954 AC_MSG_CHECKING(Looking for docbook2man-spec file)
955 AC_ARG_WITH(db2man-spec,
956 [ --with-db2man-spec=PATH set the PATH to docbook2man-spec file
957 (needed if no db2man converter is set).],
964 AC_MSG_ERROR(Must be set to PATH or "no".)
967 if test ! -f "$withval"; then
968 AC_MSG_ERROR($withval is not a file.)
970 DB2MAN_SPEC="$withval"
971 AC_MSG_RESULT($withval)
974 AC_MSG_RESULT(default)
976 AC_SUBST(DB2MAN_SPEC)
978 if test -x "$DB2MAN"; then
979 DB2MAN_BEFORE="$DB2MAN"
982 if test \( \( -f "$DB2MAN_SPEC" \) -a \( -x "$NSGMLS" \) \
983 -a \( -x "$SGMLSPL" \) \); then
984 DB2MAN_BEFORE="$NSGMLS"
985 DB2MAN_AFTER="2> /dev/null | $SGMLSPL $DB2MAN_SPEC"
991 AC_SUBST(DB2MAN_BEFORE)
992 AC_SUBST(DB2MAN_AFTER)
995 DSSSL_DIR="/usr/share/sgml/docbook/stylesheet/dsssl/modular"
997 AC_MSG_CHECKING(Looking for dsssl stylsheets)
998 AC_ARG_WITH(dsssl-dir,
999 [ --with-dsssl-dir=DIR change the default location of DSSSL stylesheets.],
1000 [ case "$withval" in
1006 AC_MSG_ERROR(Must be set to DIR or "no".)
1009 if test ! -f "$withval/html/docbook.dsl"; then
1010 AC_MSG_ERROR($withval/html/docbook.dsl does not exist.)
1012 DSSSL_DIR="$withval"
1013 AC_MSG_RESULT($withval)
1016 AC_MSG_RESULT(default)
1017 if test ! -f "$DSSSL_DIR/html/docbook.dsl"; then
1020 $DSSSL_DIR/html/docbook.dsl does not exist. You will probably not be able to generate the documentation from the DocBook source files.])
1021 AC_MSG_WARN([Use --with-dsssl-dir to specify a directory.
1028 dnl ---------------------------------------------------------------------
1030 dnl ---------------------------------------------------------------------
1033 AC_OUTPUT(Makefile doc/Makefile doc/stylesheets/fcron-doc.dsl)
1036 dnl ---------------------------------------------------------------------
1038 dnl ---------------------------------------------------------------------
1044 echo -n "run in debug mode by default : "
1045 if test "$debug" -eq "1"; then
1051 echo -n "Audit trails : "
1052 if test "$useaudit" -eq 1; then
1059 if test "$usepam" -eq 1; then
1065 echo -n "SELinux : "
1066 if test "$useselinux" -eq 1; then
1072 echo -n "Readline : "
1073 if test "$ax_cv_lib_readline" = "no"; then
1080 echo -n "Run without root's rights : "
1081 if test "$run_non_privileged" -eq 1; then
1087 echo -n "Load average support : "
1088 if test "$getloadavg" -eq 1 -o -n "$proc"; then
1094 echo -n "compile fcrondyn : "
1095 if test "$fcrondyn" -eq 1; then
1101 echo "fcron's user (resp. group) name : $username (resp. $groupname)"
1103 echo -n "sysfcrontab : "
1104 if test "$use_sysfcrontab" -eq 1; then
1105 echo "yes ($sysfcrontab)"
1110 echo "prefix: $prefix"
1111 echo "exec_prefix: $exec_prefix"
1112 echo "datarootdir: $datarootdir"
1113 echo "bin dir: $bindir"
1114 echo "sbin dir: $sbindir"
1115 echo "spool dir: $sp"
1116 echo "etc dir: $sysconfdir"
1117 echo "doc dir: $docdir"
1118 echo "man dir: $mandir "
1122 echo "You can now run '$MAKE' to compile"
1123 echo "and then (as root) '$MAKE install' to install fcron."