2002-11-19 Theodore A. Roth * configure.in: Don't recurse into doc dir while building unless "--enable-doc is passed to configure. This allows a default build to bypass building the docs, but still allows the user to cd into the doc dir and build the docs if they feel lucky. Do you feel lucky, punk? Index: configure.in =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/configure.in,v retrieving revision 1.49 diff -u -r1.49 configure.in --- configure.in 18 Nov 2002 19:56:03 -0000 1.49 +++ configure.in 19 Nov 2002 18:10:55 -0000 @@ -188,19 +188,17 @@ else # FIXME: should also check for dox_ver >= 1.2.16 AC_MSG_RESULT(yes) - if test "$enable_doc" = "yes"; then - if test "$ps_doc" = "yes"; then - TARGET_DOX_PS=dox-ps - INSTALL_DOX_PS=install-dox-ps - fi - if test "$pdf_doc" = "yes"; then - TARGET_DOX_PDF=dox-pdf - INSTALL_DOX_PDF=install-dox-pdf - fi - if test "$html_doc" = "yes"; then - TARGET_DOX_HTML=dox-html - INSTALL_DOX_HTML=install-dox-html - fi + if test "$ps_doc" = "yes"; then + TARGET_DOX_PS=dox-ps + INSTALL_DOX_PS=install-dox-ps + fi + if test "$pdf_doc" = "yes"; then + TARGET_DOX_PDF=dox-pdf + INSTALL_DOX_PDF=install-dox-pdf + fi + if test "$html_doc" = "yes"; then + TARGET_DOX_HTML=dox-html + INSTALL_DOX_HTML=install-dox-html fi fi dnl @@ -306,8 +304,11 @@ crtc8534.o' AVR_CRT_TINY='crttn11.o crttn12.o crttn15.o crttn28.o crttn22.o crttn26.o' - dnl We only want to build the docs for the default case - DOCSDIR='doc' + dnl We only want to build the docs for the default target case and only + dnl if the user has passed "--enable-doc" to configure. + if test "$enable_doc" = "yes"; then + DOCSDIR='doc' + fi else case $with_multisubdir in avr3) avrlib_cflags=${avrlib_opt_speed}