X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=configure.in;h=5781ce7d0f2be1458cd4203ab5c4368c5382ea53;hb=11601b4ccdafa6db15b86371c9cbad0fe853236a;hp=4839d56a602b979b6f1fd8bda8e8b36b8f7a15e3;hpb=19389db1774639ca3f8a3b5923f8890c02e3dd55;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/configure.in b/configure.in index 4839d56..5781ce7 100644 --- a/configure.in +++ b/configure.in @@ -1,27 +1,33 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_INIT([backupninja],[0.9.1],[backupninja@lists.riseup.net]) +# The maintainer mode is causing me grief with newest versions of autotools +#AM_MAINTAINER_MODE +AC_INIT([backupninja],[0.9.3],[backupninja@lists.riseup.net]) AC_CONFIG_SRCDIR([src/backupninja.in]) -#AC_CONFIG_HEADERS([config.sh]) AM_INIT_AUTOMAKE # Checks for programs. -AC_PATH_PROGS([BASH], [bash]) -#AC_PATH_PROGS([PERL], [perl]) -#AC_DEFINE([MYVERSION], [5.6]) -#AC_DEFINE_UNQUOTED([MYDIR], "${sysconfdir}") -#AC_DEFINE([SYSCONFDIR], [$sysconfdir], [System config dir]) -AC_SUBST([CFGDIR], "${sysconfdir}") - -# Checks for libraries. +# BASH may already be set in the shell, if the admin then changes the +# the /bin/sh symlink to a non-bash shell, all hell will break lose. +unset BASH +AC_PATH_PROGS([BASH], [bash], [/bin/bash], [$PATH:/bin:/usr/bin:/usr/sbin]) +if test x$BASH = "x"; then + AC_MSG_ERROR([bash is required]) +fi -# Checks for header files. +AC_CHECK_PROGS(SED, sed) +if test x$SED = "x"; then + AC_MSG_ERROR([sed is required]) +fi -# Checks for typedefs, structures, and compiler characteristics. +AC_CHECK_PROGS(AWK, awk) +if test x$AWK = "x"; then + AC_MSG_ERROR([awk is required]) +fi -# Checks for library functions. +AC_SUBST([CFGDIR], "${sysconfdir}") AC_CONFIG_FILES([Makefile etc/Makefile