ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = gnulib/lib hivex gnulib/tests
+SUBDIRS = gnulib/lib lib images gnulib/tests sh xml po
-EXTRA_DIST = hivex.pc hivex.pc.in
+if HAVE_OCAML
+SUBDIRS += ocaml
+endif
+
+if HAVE_PERL
+SUBDIRS += perl
+endif
+
+if HAVE_PYTHON
+SUBDIRS += python
+endif
+
+EXTRA_DIST = hivex.pc hivex.pc.in README LICENSE
# Generate the ChangeLog automatically from the gitlog.
dist-hook: