diff --git a/configure.ac b/configure.ac index c4c411a2964f6925f42eae3b997be61d25995d04..2f4ca210d4f30e7aaf4127971fb9a59f29d464bc 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,14 @@ XORG_WITH_LINT XORG_LINT_LIBRARY([ICE]) LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}" + +if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then + BSDLIB=-lbsd +fi +AC_SUBST(BSDLIB) + + + AC_CONFIG_FILES([Makefile doc/Makefile specs/Makefile diff --git a/ice.pc.in b/ice.pc.in index b96c9f8b8899fb4383793ec32e261af3dcbaf353..c88962d99300f183fc3132971f8999820db0e544 100644 --- a/ice.pc.in +++ b/ice.pc.in @@ -9,3 +9,4 @@ Version: @PACKAGE_VERSION@ Requires: xproto Cflags: -I${includedir} Libs: -L${libdir} -lICE +Libs.Private: @BSDLIB@