From: Frank Mori Hess Date: Wed, 1 Aug 2007 15:16:53 +0000 (+0000) Subject: Fixed test for rpm program. X-Git-Tag: r0_7_74~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e1cbc878becd2bcad1c070f3ed5472c2dfb43cf9;p=comedi.git Fixed test for rpm program. --- diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 7da43d88..03f71302 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -210,11 +210,11 @@ AC_DEFUN([AS_LINUX_RPM_TARGET], then dnl if we have rpm, try to guess the target of the kernel dnl we want to build for using rpm - AC_PATH_PROG(RPM, rpm, yes, no) + AC_PATH_PROG([RPM], [rpm], [no]) if test "x$RPM" != "xno" ; then - if rpm -q kernel-$RELEASE > /dev/null + if $RPM -q kernel-$RELEASE > /dev/null then - LINUX_RPM_TARGET=`rpm -q --queryformat %{arch} kernel-$RELEASE` + LINUX_RPM_TARGET=`$RPM -q --queryformat %{arch} kernel-$RELEASE` else AC_MSG_NOTICE([Cannot guess target arch, consider setting it using --with-rpm-target]) fi