Add autogeneration of documentation.
[command.git] / configure.ac
index 2be3fb0fade9c9ec6ea9810d1973bb9c2aa0cc98..d502f52e4e36586cc901123e9564ee5016f6d37e 100644 (file)
@@ -7,8 +7,16 @@ AC_CONFIG_FILES([
     include/Makefile
     Makefile
     tests/Makefile
+    docs/Makefile
 ])
-#    docs/Makefile
+
+AC_CHECK_PROGS([DOXYGEN], [doxygen])
+if test -z "$DOXYGEN"; then
+    AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
+fi
+
+AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
+AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile])])
 
 AC_OUTPUT