AC_PROG_CC
AC_PROG_CXX
AC_PROG_MAKE_SET
-m4_ifdef([LT_INIT], [LT_INIT], [AC_PROG_LIBTOOL])
+LT_INIT
## Checks for libraries.
AC_CHECK_LIB([dl], [dlopen])
CFLAGS="-Wall $CFLAGS"
+# Check for texinfo, required for building the documentation
+# TODO: make this (and building the documentation) optional
+AC_CHECK_PROG([TEXINFO], [makeinfo], [yes])
+AS_IF([test "x$TEXINFO" != "xyes"],[
+ AC_MSG_ERROR([Please install the 'texinfo' program and make sure 'makeinfo' is in the PATH.])
+])
+
# URCU
# urcu - check if we just find the headers it out of the box.