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