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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 672 - (show annotations)
Thu Jul 3 15:35:07 2008 UTC (12 years, 5 months ago) by norman.x.gray
File size: 4346 byte(s)
Final wording changes in document
Release WD-1.11

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

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