]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
check whether we actually have an rpm binary before lookin at its version
authorChristoph Hellwig <hch@sgi.com>
Mon, 18 Apr 2005 19:39:36 +0000 (19:39 +0000)
committerChristoph Hellwig <hch@sgi.com>
Mon, 18 Apr 2005 19:39:36 +0000 (19:39 +0000)
check whether we actually have an rpm binary before lookin at its version

aclocal.m4
m4/package_utilies.m4

index 45a41d52376bd9e65e4142bb5ad8dba74ab2b022..104738b53bb5a7a7a48a307ff91bb51fce75a0e7 100644 (file)
@@ -1,6 +1,6 @@
-# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
+# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
 
-# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
 # Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -170,7 +170,7 @@ AC_DEFUN([AC_PACKAGE_UTILITIES],
 
     dnl .. and what version is rpm
     rpm_version=0
-    test -x "$RPM" && rpm_version=`$RPM --version \
+    test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
                         | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
     AC_SUBST(rpm_version)
     dnl At some point in rpm 4.0, rpm can no longer build rpms, and
index efcc0a104dacfbccb5774d19d3d61f746a6acd14..c034a7c6cee181794e71d977399bb48938df2b81 100644 (file)
@@ -111,7 +111,7 @@ AC_DEFUN([AC_PACKAGE_UTILITIES],
 
     dnl .. and what version is rpm
     rpm_version=0
-    test -x "$RPM" && rpm_version=`$RPM --version \
+    test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
                         | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
     AC_SUBST(rpm_version)
     dnl At some point in rpm 4.0, rpm can no longer build rpms, and