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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (show annotations)
Wed Mar 19 10:09:38 2008 UTC (12 years, 8 months ago) by norman.x.gray
File size: 3359 byte(s)
Adjustments to distribution, in consultation with Bruno Rino
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, 1.0, norman@astro.gla.ac.uk)
7 AC_SUBST(RELEASEDATE, '2008 March 20') dnl ...as words
8 dnl Date is yyyy-mm-dd: ISO-8601/W3CDTF (appears in, eg, dc:created range)
9 AC_SUBST(RELEASEDATEN, 2008-03-20) dnl ...as yyyy-mm-dd
10
11 dnl Distribution URI -- no trailing slash
12 AC_SUBST(DISTURI, 'http://www.ivoa.net/Document/WD/Semantics')
13 dnl Base URI for distribution -- no trailing slash
14 AC_SUBST(BASEURI, $DISTURI/vocabularies-`echo $RELEASEDATEN|sed s/-//g`)
15
16 dnl Issues list is currently not at the DISTURI
17 dnl AC_SUBST(ISSUESLIST, $DISTURI/issues)
18 AC_SUBST(ISSUESLIST, 'http://www.astro.gla.ac.uk/users/norman/ivoa/vocabularies/issues')
19
20 dnl The root file name of the distribution
21 AC_SUBST(DISTNAME, [vocabularies-$PACKAGE_VERSION])
22
23 # rapper can translate between RDF serialisations
24 # (part of Raptor: http://librdf.org/raptor/)
25 AC_PATH_PROGS(RAPPER, rapper)
26 AC_PATH_PROGS(PYTHON, python)
27 AC_PATH_PROGS(TAR, tar)
28 AC_PATH_PROGS(BIBTEX, bibtex)
29
30 dnl Handle --with-xsltproc[=path] and --with-saxon[=jarfile] options
31 process_xslt_with=xsltproc
32 AC_ARG_WITH([xsltproc],
33 [AS_HELP_STRING([--with-xsltproc],
34 [choose a non-default xsltproc executable])],
35 [dnl --with-xsltproc option given (as 'yes' if no option value)
36 if test "$with_xsltproc" = yes; then
37 AC_PATH_PROG(XSLTPROC, xsltproc)
38 else
39 AC_CHECK_FILE($with_xsltproc,
40 [AC_SUBST(XSLTPROC, $with_xsltproc)],
41 [AC_MSG_ERROR([Can't find file $with_xsltproc])])
42 fi],
43 [dnl no --with-xsltproc option given -- default
44 AC_PATH_PROG(XSLTPROC, xsltproc)])
45 AC_ARG_WITH([saxon],
46 [AS_HELP_STRING([--with-saxon],
47 [process XSLT using the named Saxon8 jar file])],
48 [if test "$with_saxon" = "yes"; then
49 AC_SUBST(SAXONJAR, [saxon8.jar])
50 else
51 AC_CHECK_FILE($with_saxon,
52 [],
53 [AC_MSG_WARN([The jar file $with_saxon does not exist])])
54 AC_SUBST(SAXONJAR, $with_saxon)
55 fi
56 process_xslt_with=saxon])
57
58 dnl Now add the conditionals
59 if test $process_xslt_with = saxon; then
60 AC_MSG_NOTICE([XSL transforms using Saxon])
61 AC_SUBST(USE_SAXON, [])
62 AC_SUBST(USE_XSLTPROC, [#])
63 else
64 AC_MSG_NOTICE([XSL transforms using xsltproc])
65 AC_SUBST(USE_SAXON, [#])
66 AC_SUBST(USE_XSLTPROC, [])
67 fi
68
69
70 # CWM will almost certainly have to be overridden on the command-line
71 # This appears to need the CVS version of cwm, available from
72 # <http://www.w3.org/2000/10/swap/doc/cwm.html> (the 1.0.0 `release'
73 # version seems to barf on @base directives in N3/Turtle files. That
74 # page points to other tools which can do similar work, but it's
75 # possible that the rules in src/code/checkHierarchy.n3 are specific to cwm.
76 #
77 # The default will work only if cwm is installed in a standard Python
78 # way (unknown to Norman), and the 'cwm' command is on the path (more details?).
79 test -n "$CWM" || CWM=cwm
80 AC_ARG_VAR(CWM, [invocation of the cwm script, eg 'python /path/to/cwm.py'])
81
82 AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile src/README
83 src/AAkeys/Makefile
84 src/AOIM/Makefile
85 src/UCD/Makefile
86 src/IVOAT/Makefile
87 src/IAUT93/Makefile])
88
89 AC_OUTPUT

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