Whamcloud - gitweb
LU-11541 build: Adjust OFED check for DKMS enabled MLNX OFED.
[fs/lustre-release.git] / config / lustre-build-linux.m4
index a1b5155..ba250e3 100644 (file)
@@ -412,6 +412,20 @@ LC_MODULE_LOADING
 ])
 
 #
+# LB_USES_DPKG
+#
+# Determine if the target is a dpkg system or rpm
+#
+AC_DEFUN([LB_USES_DPKG], [
+AC_CACHE_CHECK([if this distro uses dpkg], lb_cv_uses_dpkg, [
+lb_cv_uses_dpkg="no"
+AS_CASE([$(lsb_release -i -s 2>/dev/null)],
+       [Ubuntu | Debian], [lb_cv_uses_dpkg="yes"])
+])
+uses_dpkg=$lb_cv_uses_dpkg
+])
+
+#
 # LB_CHECK_EXPORT
 #
 # check symbol exported or not