From 28338e91c351bef21a856f4280b762b9ee0dc2aa Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 11 Aug 2006 13:46:57 +0000 Subject: Added RPM patches submitted by Robert Napier --- configure.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 99ebdee..b32c8f3 100644 --- a/configure.in +++ b/configure.in @@ -40,6 +40,22 @@ if test "x$ac_cv_have_rpm" = "xyes"; then fi AC_SUBST(HAVE_RPM) +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_PROG_LN_S + AC_SUBST([CFGDIR], "${sysconfdir}") AC_CONFIG_FILES([Makefile -- cgit v1.2.3