X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=configure.in;h=99ebdeed582304d764c57f66cbb9ebb7d2afa5bb;hp=5781ce7d0f2be1458cd4203ab5c4368c5382ea53;hb=8e154d59efdbbb95fd4e46623a735a7049cea754;hpb=32e13d4c6573fecca4964b1a9f77254823d2e589 diff --git a/configure.in b/configure.in index 5781ce7..99ebdee 100644 --- a/configure.in +++ b/configure.in @@ -26,6 +26,19 @@ AC_CHECK_PROGS(AWK, awk) if test x$AWK = "x"; then AC_MSG_ERROR([awk is required]) fi +AC_CHECK_PROG(ac_cv_have_rpm, rpm, "yes", "no") +if test "x$ac_cv_have_rpm" = "xyes"; then + rpm --define '_topdir /tmp' > /dev/null 2>&1 + AC_MSG_CHECKING(to see if we can redefine _topdir) + if test $? -eq 0 ; then + AC_MSG_RESULT(yes) + HAVE_RPM=yes + else + AC_MSG_RESULT(no. You'll have to build packages manually.) + HAVE_RPM=no + fi +fi +AC_SUBST(HAVE_RPM) AC_SUBST([CFGDIR], "${sysconfdir}")