Commit dec161e197eca076072fad8e50955ace5002151e

Thomas de Grivel 2018-08-26T11:13:52

compile librtbuf with libdata

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/configure.ac b/configure.ac
index 25c4b90..5f751fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,11 @@ fi
 
 enable_rtbuf=true
 AM_CONDITIONAL([ENABLE_RTBUF], [test x"$enable_rtbuf" = x"true"])
+AC_SEARCH_LIBS([data_init], [data],
+               [RTBUF_LIBS="$RTBUF_LIBS -ldata"],
+               [if test x"$enable_rtbuf" = x"true"; then
+                  AC_MSG_ERROR([missing libdata for rtbuf"])
+                fi])
 AC_SEARCH_LIBS([cli_init], [cli],
                [RTBUF_LIBS="$RTBUF_LIBS -lcli"],
                [if test x"$enable_rtbuf" = x"true"; then