File configure-assume-host-SUSE-if-SUSE_VERSION-set.patch of Package xplatproviders

From 40213d6b49dc48721a7b4de8a0a668f3b4267f6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Mon, 3 Jul 2017 08:55:14 +0200
Subject: [PATCH] configure: assume host SUSE if SUSE_VERSION set

+ assume FEDORA if FEDORA_VERSION is set
---
 configure | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index c36a90eef223..fdc70edf589d 100644
--- a/configure
+++ b/configure
@@ -82,9 +82,16 @@ chmod +x ./build/xplatproviders/license.awk
 host=`./build/xplatproviders/config.guess`
 
 if [ "$host" = "Unknown" ]; then
-    echo "Error: unsupported platform"
-    echo ""
-    exit 1;
+    if [ -n "$SUSE_VERSION" ]; then
+      echo "SUSE"
+      host="SUSE"
+    elif [ -n "$FEDORA_VERSION" ]; then
+      host="FEDORA"
+    else
+      echo "Error: unsupported platform"
+      echo ""
+      exit 1;
+    fi
 fi
 
 ##
-- 
2.13.1

openSUSE Build Service is sponsored by