05ad79
From b4861ab42477e0c4c417b53412a653d24baee482 Mon Sep 17 00:00:00 2001
05ad79
From: Karel Zak <kzak@redhat.com>
05ad79
Date: Tue, 6 Aug 2019 12:17:38 +0200
05ad79
Subject: [PATCH] build-sys: check for librtas
05ad79
05ad79
Signed-off-by: Karel Zak <kzak@redhat.com>
05ad79
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1734261
05ad79
---
05ad79
 configure.ac | 8 ++++++++
05ad79
 1 file changed, 8 insertions(+)
05ad79
05ad79
diff --git a/configure.ac b/configure.ac
05ad79
index 7381a9e5e..4c5d098e6 100644
05ad79
--- a/configure.ac
05ad79
+++ b/configure.ac
05ad79
@@ -360,6 +360,14 @@ AC_CHECK_FUNCS([openat fstatat unlinkat], [have_openat=yes], [have_openat=no])
05ad79
 AC_CHECK_FUNCS([ioperm iopl], [have_io=yes])
05ad79
 AC_CHECK_FUNCS([open_memstream], [have_open_memstream=yes],[have_open_memstream=no])
05ad79
 
05ad79
+
05ad79
+AC_CHECK_LIB([rtas], [rtas_get_sysparm], [
05ad79
+        RTAS_LIBS="-lrtas"
05ad79
+        AC_DEFINE_UNQUOTED([HAVE_LIBRTAS], [1], [Define if librtas exists]), [],
05ad79
+])
05ad79
+AC_SUBST([RTAS_LIBS])
05ad79
+
05ad79
+
05ad79
 AC_CHECK_MEMBER(struct sockaddr.sa_len,
05ad79
 		AC_DEFINE_UNQUOTED(HAVE_SA_LEN,1,[Define if struct sockaddr contains sa_len]),,
05ad79
 	[#include <sys/types.h>
05ad79
-- 
05ad79
2.21.0
05ad79