There was a time where dvdnav examples failed to build on mingw. Rather
than fix them, we just disabled examples since we had no need for them.
Although the examples seem to build fine now, this option may be useful
in general.
diff --git a/Makefile.am b/Makefile.am
index f03ecaa..61caf6d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,13 @@
include $(top_srcdir)/misc/Makefile.common
-SUBDIRS = src examples doc misc m4
+if DVDNAV_ENABLE_EXAMPLES
+EXAMPLES_DIR = examples
+else
+EXAMPLES_DIR =
+endif
+
+SUBDIRS = src $(EXAMPLES_DIR) doc misc m4
EXTRA_DIST = autogen.sh \
AUTHORS \
diff --git a/configure.ac b/configure.ac
index 9ba3086..650cf7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,6 +180,13 @@ case $host in
esac
dnl ---------------------------------------------
+dnl option for examples
+dnl ---------------------------------------------
+AC_ARG_ENABLE([examples], [ --disable-examples disable examples],
+ [ enable_examples=$enableval ], [ enable_examples=yes ] )
+AM_CONDITIONAL(DVDNAV_ENABLE_EXAMPLES, [test "x${enable_examples}" != xno])
+
+dnl ---------------------------------------------
dnl libdvdread
dnl ---------------------------------------------
AC_ARG_WITH([dvdread-config],
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss