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