[Xcb] [PATCH] htmldir was introduced in autoconf 2.59c: set a reasonable value for earlier versions.

Jamey Sharp jamey at minilop.net
Sun Nov 19 00:36:56 PST 2006


---

On Sun, Nov 19, 2006 at 07:47:40AM +0100, Vincent Torri wrote:
> On my system, htmldir is empty. That's why I did that

On Sun, Nov 19, 2006 at 08:19:40AM +0100, Vincent Torri wrote:
> doc/Makefile.am:8: `html_DATA' is used but `htmldir' is undefined

Ah. docdir and htmldir were added to autoconf CVS in January 2005, but
didn't appear in a release until autoconf 2.59c, released April 2006. So
you need a version at least that new to use them.

However, your definition of htmldir breaks on current autoconf, because
at the time it's expanded, prefix is (by default) set to "NONE". It
doesn't get reset to the right default until later.

I want to use autoconf's definition of htmldir if available, but that's
not a very good reason to make a seven-month old release a hard
requirement. So does this patch work for you?

--Jamey


 configure.ac |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2846184..a831f34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -114,6 +114,12 @@ AC_SUBST(CWARNFLAGS)
 
 GCC_CHECK_VISIBILITY()
 
+# htmldir is not defined prior to autoconf 2.59c, so on earlier versions
+# set an equivalent value.
+AC_PREREQ([2.59c], [], [AC_SUBST([htmldir], [m4_ifset([AC_PACKAGE_TARNAME],
+	  ['${datadir}/doc/${PACKAGE_TARNAME}'],
+	  ['${datadir}/doc/${PACKAGE}'])
+])])
 AM_CHECK_DOXYGEN()
 
 AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile doc/Makefile])
-- 
1.4.3.3



More information about the Xcb mailing list