Fixed test for rpm program.
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Aug 2007 15:16:53 +0000 (15:16 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Aug 2007 15:16:53 +0000 (15:16 +0000)
m4/as-linux.m4

index 7da43d88b48333803c851ddede2db72be586130d..03f713029c905e1e989419f1498e90baeef3639f 100644 (file)
@@ -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