lib/util: use better linux os detection in gpfs configure
authorGünther Deschner <gd@samba.org>
Mon, 27 Jan 2020 20:39:20 +0000 (21:39 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 28 Jan 2020 18:05:34 +0000 (18:05 +0000)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Christof Schmitt cs@samba.org
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Tue Jan 28 18:05:34 UTC 2020 on sn-devel-184

lib/util/wscript_configure

index 4f57184f5156866ab33577d140d970d6149b2d1c..d4450d25b9851aabed356bbaa9a85e5fcb61cc22 100644 (file)
@@ -158,7 +158,7 @@ else:
         Logs.info('Using gpfs.h from installed gpfs package.')
         conf.DEFINE('HAVE_GPFS', '1')
     else:
-        if sys.platform=="linux":
+        if sys.platform.startswith('linux'):
             conf.env['CPPPATH_GPFS'] = os.path.abspath("third_party/gpfs")
             if conf.CHECK_HEADERS('gpfs.h', False, False, "gpfs"):
                 Logs.info('Using gpfs.h from third_party directory.')