Index: Makefile.am =================================================================== RCS file: /sources/confuse/confuse/Makefile.am,v retrieving revision 1.19 diff -u -b -B -r1.19 Makefile.am --- Makefile.am 13 Oct 2007 20:44:39 -0000 1.19 +++ Makefile.am 1 Mar 2009 04:29:10 -0000 @@ -3,7 +3,11 @@ AUTOMAKE_OPTIONS = foreign CLEANFILES=*~ '\#*\#' EXTRA_DIST=libconfuse.spec.in libconfuse.spec -SUBDIRS = m4 po src examples tests doc + +if ENABLE_EXAMPLES + EXAMPLES = examples +endif +SUBDIRS = m4 po src $(EXAMPLES) tests doc pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libconfuse.pc Index: configure.ac =================================================================== RCS file: /sources/confuse/confuse/configure.ac,v retrieving revision 1.20 diff -u -b -B -r1.20 configure.ac --- configure.ac 4 Oct 2008 13:50:05 -0000 1.20 +++ configure.ac 1 Mar 2009 04:29:10 -0000 @@ -24,6 +24,12 @@ AC_DISABLE_SHARED AC_PROG_LIBTOOL +#optional building of examples: +AC_ARG_ENABLE(examples, + AC_HELP_STRING([--disable-examples], [don't build examples in examples]), + [], [enable_examples=yes]) + +AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes]) AM_CONDITIONAL([cc_is_gcc], test "$GCC" = "yes") AM_GNU_GETTEXT([external])