/[volute]/trunk/projects/vocabularies/configure.ac
ViewVC logotype

Contents of /trunk/projects/vocabularies/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 714 - (show annotations)
Wed Aug 6 20:02:09 2008 UTC (12 years, 3 months ago) by norman.x.gray
File size: 5153 byte(s)
Change the way that vocabulary.html is generated from vocabulary.xml,
  after discovering some weirdness with the rendering of the
  previously generated file in some browsers -- some odd interaction
  between XHTML content and links and maybe the text/html MIME type, I
  don't know.
I now generate the XHTML and then convert it to HTML using an identity
  transform.

1 dnl
2 dnl Configure script for IVOA SKOS vocabularies
3 dnl
4 dnl Process this file with autoconf to generate the configure script
5
6 dnl On making release versions:
7 dnl * change the version number in the AC_INIT line
8 dnl * change the RELEASEDATE
9 dnl * possibly change the status (eg .../PR/...) in the DOCURI
10 dnl * possibly change the stylesheet referenced in the document
11 dnl (eg from ivoa_wd.css to ivoa_pr.css)
12 dnl * change the BASEURI to the one eventually agreed with Bruno/TCG,
13 dnl and fix the corresponding XXXs
14
15 AC_INIT(ivoa-vocabularies, 1.13, norman@astro.gla.ac.uk)
16 AC_SUBST(RELEASEDATE, '2008 July 29') dnl ...as words
17 dnl Date is yyyy-mm-dd: ISO-8601/W3CDTF (appears in, eg, dc:created range)
18 AC_SUBST(RELEASEDATEN, 2008-07-29) dnl ...as yyyy-mm-dd
19
20 RELEASEDATENX=`echo $RELEASEDATEN | sed 's/-//g'`
21
22 dnl Distribution URI for document -- no trailing slash
23 dnl The URI is the one agreed with Bruno Rino (ie, it's not arbitrary!)
24 AC_SUBST(DOCURI, [http://www.ivoa.net/Documents/PR/Semantics/Vocabularies-$RELEASEDATENX])
25 dnl Distribution URI for vocabulary files
26 dnl For release versions, uncomment the following line...
27 dnl
28 dnl XXX The following BASEURI is temporary, pending a TCG decision about what the
29 dnl persistent URL here should be. When that's resolved, this should be changed, and the
30 dnl explanatory discussion within doc/vocabularies.xml removed (see XXX/todo)
31 AC_SUBST(BASEURI, $DOCURI/rdf)
32 dnl AC_SUBST(BASEURI, [http://www.ivoa.net/rdf/Vocabularies])
33
34 dnl ...but for editors' drafts, uncomment the following lines...
35 dnl AC_SUBST(DOCURI, [http://www.astro.gla.ac.uk/users/norman/ivoa/vocabularies-$RELEASEDATENX])
36 dnl AC_SUBST(BASEURI, [http://www.astro.gla.ac.uk/users/norman/ivoa/vocabularies/rdf])
37 dnl PACKAGE_VERSION=$RELEASEDATENX
38
39 dnl Issues list is currently not at the DOCURI
40 AC_SUBST(ISSUESLIST, 'http://www.astro.gla.ac.uk/users/norman/ivoa/vocabularies/issues')
41 dnl AC_SUBST(ISSUESLIST, $DOCURI/issues)
42
43 dnl The root file name of the distribution
44 AC_SUBST(DISTNAME, [vocabularies-$RELEASEDATENX])
45
46 # Standard checks
47 AC_PROG_LN_S
48
49 # rapper can translate between RDF serialisations
50 # (part of Raptor: http://librdf.org/raptor/)
51 AC_PATH_PROGS(RAPPER, rapper)
52 AC_PATH_PROGS(PYTHON, python)
53 AC_PATH_PROGS(TAR, tar)
54 AC_PATH_PROGS(BIBTEX, bibtex)
55
56 AC_ARG_VAR(PYTHONPATH,
57 [path to python libraries (for cwm and redland-bindings)])
58 AC_MSG_CHECKING([for RDF.py (redland-bindings)])
59 if python -c 'import RDF' >/dev/null 2>&1; then
60 AC_MSG_RESULT([OK])
61 else
62 AC_MSG_WARN([Couldn't find RDF.py in PYTHONPATH])
63 fi
64 if test -n "$PYTHONPATH"; then
65 # bake the python path into the command
66 PYTHON="PYTHONPATH=$PYTHONPATH $PYTHON"
67 fi
68
69 dnl Handle --with-xsltproc[=path] and --with-saxon[=jarfile] options
70 process_xslt_with=xsltproc
71 AC_ARG_WITH([xsltproc],
72 [AS_HELP_STRING([--with-xsltproc],
73 [choose a non-default xsltproc executable])],
74 [dnl --with-xsltproc option given (as 'yes' if no option value)
75 if test "$with_xsltproc" = yes; then
76 AC_PATH_PROG(XSLTPROC, xsltproc)
77 else
78 AC_CHECK_FILE($with_xsltproc,
79 [AC_SUBST(XSLTPROC, $with_xsltproc)],
80 [AC_MSG_ERROR([Can't find file $with_xsltproc])])
81 fi],
82 [dnl no --with-xsltproc option given -- default
83 AC_PATH_PROG(XSLTPROC, xsltproc)])
84 AC_ARG_WITH([saxon],
85 [AS_HELP_STRING([--with-saxon],
86 [process XSLT using the named Saxon8 jar file])],
87 [if test "$with_saxon" = "yes"; then
88 AC_CHECK_FILE(saxon8.jar,
89 [],
90 [AC_MSG_WARN([The jar file saxon8.jar does not exist])])
91 AC_SUBST(SAXONJAR, [saxon8.jar])
92 else
93 AC_CHECK_FILE($with_saxon,
94 [],
95 [AC_MSG_WARN([The jar file $with_saxon does not exist])])
96 AC_SUBST(SAXONJAR, $with_saxon)
97 fi
98 process_xslt_with=saxon])
99
100 dnl Now add the conditionals
101 if test $process_xslt_with = saxon; then
102 AC_MSG_NOTICE([XSL transforms using Saxon])
103 AC_SUBST(USE_SAXON, [])
104 AC_SUBST(USE_XSLTPROC, [#])
105 else
106 AC_MSG_NOTICE([XSL transforms using xsltproc])
107 AC_SUBST(USE_SAXON, [#])
108 AC_SUBST(USE_XSLTPROC, [])
109 fi
110
111
112 # CWM will almost certainly have to be overridden on the command-line
113 # This appears to need the CVS version of cwm, available from
114 # <http://www.w3.org/2000/10/swap/doc/cwm.html> (the 1.0.0 `release'
115 # version seems to barf on @base directives in N3/Turtle files. That
116 # page points to other tools which can do similar work, but it's
117 # possible that the rules in src/code/checkHierarchy.n3 are specific to cwm.
118 #
119 # The default will work only if cwm is installed in a standard Python
120 # way (unknown to Norman), and the 'cwm' command is on the path (more details?).
121 test -n "$CWM" || CWM=cwm
122 AC_ARG_VAR(CWM, [invocation of the cwm script, eg 'python /path/to/cwm.py'])
123
124 AC_CONFIG_FILES([Makefile doc/Makefile
125 src/Makefile
126 src/README
127 src/AAkeys/Makefile
128 src/AVM/Makefile
129 src/UCD/Makefile
130 src/IVOAT/Makefile
131 src/IAUT93/Makefile
132 src/AAkeys2AVM/Makefile])
133
134 AC_OUTPUT

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26