diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-11-07 19:48:37 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2010-11-08 19:46:16 -0500 |
commit | d0cec99095e0cdf01ff2695b1cc471214f2294ee (patch) | |
tree | 8918fb9eb74345a5c59d6218a13b3138a17b8a29 | |
parent | 45ee22dd4a64d4a07d6f67d5bdb80d4f2394e222 (diff) |
Upgrade xorg-sgml-doctools to Autoconf 2.60 directory architecture
Currently the value of sgmlrootdir is hard coded relative to $prefix.
In Autoconf 2.60, $datarootdir has been added to define the architecture
independent data directory.
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
Relative to that location, a number of subdirectories have been defined:
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root
[DATAROOTDIR/doc/xorg-sgml-doctools]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
The sgmlrootdir should hang off datarootdir. If there is a need to specify
a different location, a new configure option should be added:
--sgmldir=DIR sgml stylesheets and entities [DATAROOTDIR/sgml]
An sgmlrootdir Automake variable is defined in configure.ac to provide
a unique value holder for the sgmlrootdir.
Variable PACKAGE_VERSION is preferred over the undocumented VERSION variable.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | xorg-sgml-doctools.pc.in | 7 |
3 files changed, 7 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 049abac..e3fcca5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,7 +19,7 @@ # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -sgmldir = $(prefix)/share/sgml/X11 +sgmldir = $(sgmlrootdir)/X11 dist_sgml_DATA = defs.ent xorg.css xorg.xsl diff --git a/configure.ac b/configure.ac index 6ca9198..9a05526 100644 --- a/configure.ac +++ b/configure.ac @@ -34,6 +34,8 @@ m4_ifndef([XORG_MACROS_VERSION], XORG_MACROS_VERSION(1.3) XORG_DEFAULT_OPTIONS +AC_SUBST([sgmlrootdir],['${datarootdir}/sgml']) + AC_PROG_INSTALL AC_OUTPUT([ diff --git a/xorg-sgml-doctools.pc.in b/xorg-sgml-doctools.pc.in index ae1422a..9546fa7 100644 --- a/xorg-sgml-doctools.pc.in +++ b/xorg-sgml-doctools.pc.in @@ -1,6 +1,7 @@ prefix=@prefix@ -sgmlrootdir=${prefix}/share/sgml +datarootdir=@datarootdir@ +sgmlrootdir=@sgmlrootdir@ Name: xorg-sgml-doctools -Description: SGML entities for X.Org documentation -Version: @VERSION@ +Description: Stylesheets and entities for X.Org documentation +Version: @PACKAGE_VERSION@ |