Hello Susan, * susan xie wrote on Wed, Sep 03, 2008 at 10:05:59PM CEST: > When I use automake command, I got the following error message: > > automake > doc/Makefile.am:12: htmldir was already defined in condition TRUE, which > includes condition DOXYGEN ... > configure.ac:5: ... `htmldir' previously defined here > > > But in configure.ac:5 (line): A C_INIT(SOFT, 1.0, [EMAIL PROTECTED]) > > May you give me any hints on this problem?
With Autoconf version 2.60 or newer, htmldir is already predefined by Autoconf. It's really the AC_INIT code that predefines it. The NEWS file of the Autoconf source distribution mentions this, and the manual lists it here: <http://www.gnu.org/software/autoconf/manual/html_node/Installation-Directory-Variables.html> Here's what you can do: - ignore the warning or hide it by passing -Wno-override to automake (by adding it to AUTOMAKE_OPTIONS in doc/Makefile.am for example) - not using your own definition of htmldir any more with new Autoconf (you should check if Autoconf's setting and yours are compatible) - use a different directory variable (html2dir, doxgenhtmldir, together with doxgenhtml_DATA or so...) Hope that helps. Cheers, Ralf
