Small optimizations on performance and memory.
[genetic.git] / configure.ac
index 04d60ccf1f47693f39b972c2189580b2f287dcdf..47bcfeb4975c3a0523045b208ae4b431d4ca6c04 100644 (file)
@@ -1,10 +1,22 @@
-AC_INIT([Genetic], [0.1], [bugz@dlugolecki.net.pl], [genetic], [http://dlugolecki.net.pl/software/genetic/])
-AC_CANONICAL_SYSTEM
+AC_INIT([Genetic], [0.2], [bugz@dlugolecki.net.pl], [genetic], [http://dlugolecki.net.pl/software/genetic/])
 AC_PREREQ([2.59])
 AM_INIT_AUTOMAKE([1.10 -Wall])
 AC_CONFIG_HEADERS([config.h])
 AC_PROG_CXX
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([
+    Makefile
+    include/Makefile
+    tests/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