summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure b/configure
index a49ed78..4bbbaed 100755
--- a/configure
+++ b/configure
@@ -243,6 +243,29 @@ EOF
fi
}
+check_urcu()
+{
+ echo -n "[*] Checking liburcu ... "
+
+ cat > $TMPDIR/urcutest.c << EOF
+#include <urcu.h>
+
+void main(void)
+{
+ rcu_init();
+ synchronize_rcu();
+}
+EOF
+
+ $CC -o $TMPDIR/urcutest $TMPDIR/urcutest.c -lurcu >> $TMPDIR/config.log 2>&1
+ if [ ! -x $TMPDIR/urcutest ] ; then
+ echo "[NO]"
+ MISSING_DEFS=1
+ else
+ echo "[YES]"
+ fi
+}
+
echo "# This file is autogenerated by the configure script" > Config
check_pkg_config
@@ -259,6 +282,7 @@ check_libnf_ct
check_ncurses
check_libgeoip
check_zlib
+check_urcu
if [ "$MISSING_DEFS" == "1" ] ; then
echo "[!] Some libraries or header definitions are missing or too old."