Index: configure.in =================================================================== RCS file: /home/cvs/avr-libc/avr-libc/configure.in,v retrieving revision 1.19 diff -u -r1.19 configure.in --- configure.in 31 Aug 2002 19:43:27 -0000 1.19 +++ configure.in 2 Sep 2002 12:42:42 -0000 @@ -75,6 +75,14 @@ dnl *) AC_MSG_ERROR(bad value ${enableval} for man-doc option) ;; dnl esac], [man_doc=yes])dnl +AC_ARG_ENABLE(versioned-doc, +[ --enable-versioned-doc install docs in directory with version name (default)], +[case "${enableval}" in + yes) versioned_doc=yes ;; + no) versioned_doc=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for versioned-doc option) ;; + esac], [versioned_doc=yes])dnl + if test "${target}" = "NONE"; then target=avr fi @@ -185,6 +193,14 @@ ])dnl CHECK_DOXYGEN + +if test "$versioned_doc" = "yes"; then + DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avr-libc-$(VERSION)' +else + DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avr-libc' +fi + +AC_SUBST(DOC_INST_DIR) dnl we need to set some compiler switches according to the current dnl avr library configuration