Patch to disable the doc build by default; the tools needed to build

doc are either not available on all systems or are at best
inconvenient to build and install.  The doc can still be built, one
just needs to specify --enable-doc at configure time.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@445 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
bdean 2005-02-10 14:54:57 +00:00
parent 1fbeeac508
commit b0d0be4c49
2 changed files with 32 additions and 2 deletions

View File

@ -34,8 +34,11 @@ CLEANFILES = \
config_gram.h \ config_gram.h \
lexer.c lexer.c
SUBDIRS = doc @WINDOWS_DIRS@ #SUBDIRS = doc @WINDOWS_DIRS@
DIST_SUBDIRS = doc windows #DIST_SUBDIRS = doc windows
SUBDIRS = @SUBDIRS_AC@
DIST_SUBDIRS = @DIST_SUBDIRS_AC@
AM_YFLAGS = -d AM_YFLAGS = -d

View File

@ -78,7 +78,32 @@ else
DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avrdude' DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avrdude'
fi 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(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 # Find the parallel serial device files based on target system
# If a system doesn't have a PC style parallel, mark it as unknown. # If a system doesn't have a PC style parallel, mark it as unknown.
@ -140,4 +165,6 @@ AC_CONFIG_FILES([
avrdude.conf avrdude.conf
Makefile Makefile
]) ])
AC_OUTPUT AC_OUTPUT