Add AM_MAINTAINER_MODE to configure.in which enables maintainer mode
[matthijs/upstream/backupninja.git] / configure.in
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AM_MAINTAINER_MODE
5 AC_INIT([backupninja],[0.9.3],[backupninja@lists.riseup.net])
6 AC_CONFIG_SRCDIR([src/backupninja.in])
7 AM_INIT_AUTOMAKE
8
9 # Checks for programs.
10
11 # BASH may already be set in the shell, if the admin then changes the
12 # the /bin/sh symlink to a non-bash shell, all hell will break lose.
13 unset BASH
14 AC_PATH_PROGS([BASH], [bash], [/bin/bash], [$PATH:/bin:/usr/bin:/usr/sbin])
15 if test x$BASH = "x"; then
16     AC_MSG_ERROR([bash is required])
17 fi
18
19 AC_CHECK_PROGS(SED, sed)
20 if test x$SED = "x"; then
21     AC_MSG_ERROR([sed is required])
22 fi
23
24 AC_CHECK_PROGS(AWK, awk)
25 if test x$AWK = "x"; then
26     AC_MSG_ERROR([awk is required])
27 fi
28
29 AC_SUBST([CFGDIR], "${sysconfdir}")
30
31 AC_CONFIG_FILES([Makefile
32                 etc/Makefile
33                 examples/Makefile
34                 handlers/Makefile
35                 lib/Makefile
36                 man/Makefile
37                 src/Makefile])
38
39 AC_OUTPUT([ backupninja.spec])