-dnl ####[ Makes the output ]###################################################
-# examples/bandwidth/Makefile examples/bandwidth/test_sg
-# examples/pastry/Makefile examples/pastry/test_sg
+# Can we rebuild the parsers?
+# We really want flex and refuse other lex. So, the parser is portable and
+# does not induce extra lib dependency
+AC_PROG_FLEX(2.5.30)
+
+# Can we rebuild the xml-lexers from the XML specification?
+# if not, simply touch the flex source files (which are distributed in
+# tarballs even if generated by flexml) and hope for the best.
+AC_CHECK_PROG(FLEXML,flexml,`which flexml`,NOTFOUND)
+AM_CONDITIONAL(HAVE_FLEXML,test x$FLEXML != xNOTFOUND)
+
+if test x$USE_MAINTAINER_MODE = xyes
+then
+ # Check for doxygen when in maintainer mode since dist* targets fail
+ # without it
+ AC_PATH_PROG(DOXYGEN,doxygen,`which doxygen`)
+ if test x$DOXYGEN = x ; then
+ AC_MSG_ERROR([doxygen is mandatory in maintainer mode])
+ fi
+fi
+
+# Can we extract really usable backtraces? (also need the popen function)
+AC_PATH_PROG(ADDR2LINE, addr2line)
+if test x$ADDR2LINE != x ; then
+ AC_DEFINE_UNQUOTED(ADDR2LINE,"$ADDR2LINE",[Path to the addr2line tool])
+fi
+
+###################
+## Makes the output
+##
+