Index: Makefile.am =================================================================== RCS file: /cvsroot/avrdude/avrdude/Makefile.am,v retrieving revision 1.22 diff -u -r1.22 Makefile.am --- Makefile.am 24 Jan 2005 21:26:11 -0000 1.22 +++ Makefile.am 6 Feb 2005 16:18:08 -0000 @@ -34,8 +34,11 @@ config_gram.h \ lexer.c -SUBDIRS = doc @WINDOWS_DIRS@ -DIST_SUBDIRS = doc windows +#SUBDIRS = doc @WINDOWS_DIRS@ +#DIST_SUBDIRS = doc windows + +SUBDIRS = @SUBDIRS_AC@ +DIST_SUBDIRS = @DIST_SUBDIRS_AC@ AM_YFLAGS = -d Index: configure.ac =================================================================== RCS file: /cvsroot/avrdude/avrdude/configure.ac,v retrieving revision 1.20 diff -u -r1.20 configure.ac --- configure.ac 19 Jul 2004 22:09:09 -0000 1.20 +++ configure.ac 6 Feb 2005 16:18:08 -0000 @@ -78,7 +78,32 @@ DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avrdude' fi +AC_ARG_ENABLE( + [doc], + AC_HELP_STRING( + [--enable-doc], + [Enable building documents(default)]), + [case "${enableval}" in + yes) enabled_doc=yes ;; + no) enabled_doc=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for disable-doc option) ;; + esac], + [enabled_doc=no]) + +if test "$enabled_doc" = "yes"; then + +SUBDIRS_AC='doc @WINDOWS_DIRS@' +DIST_SUBDIRS_AC='doc windows' +else + +SUBDIRS_AC='@WINDOWS_DIRS@' +DIST_SUBDIRS_AC='windows' +fi + AC_SUBST(DOC_INST_DIR, $DOC_INST_DIR) +AC_SUBST(SUBDIRS_AC, $SUBDIRS_AC) +AC_SUBST(DIST_SUBDIRS_AC, $DIST_SUBDIRS_AC) + # Find the parallel serial device files based on target system # If a system doesn't have a PC style parallel, mark it as unknown. @@ -140,4 +165,6 @@ avrdude.conf Makefile ]) + AC_OUTPUT +