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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 711 - (show annotations)
Tue Jul 22 20:51:08 2008 UTC (12 years, 4 months ago) by norman.x.gray
File size: 4635 byte(s)
Version-numbering tweaks, mandated by Bruno

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

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