1 | # -*- Autoconf -*- |
---|
2 | # Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ([2.65]) |
---|
5 | AC_INIT(vine-manual-build, 0.9.1, http://bts.vinelinux.org/) |
---|
6 | AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar]) |
---|
7 | AM_MAINTAINER_MODE |
---|
8 | |
---|
9 | # Checks for programs. |
---|
10 | AC_PATH_PROG(XSLTPROC,xsltproc) |
---|
11 | AS_IF(test -z $XSLTPROC, AC_MSG_ERROR([xsltproc was not found.])) |
---|
12 | PKG_CHECK_EXISTS([vine-manual-base], , AC_MSG_ERROR([Cannot find vine-manual-base.])) |
---|
13 | PKG_CHECK_EXISTS([gnome-doc-utils], , AC_MSG_ERROR([Cannot find gnome-doc-utils.])) |
---|
14 | |
---|
15 | # Checks for libraries. |
---|
16 | |
---|
17 | # Checks for header files. |
---|
18 | |
---|
19 | # Checks for typedefs, structures, and compiler characteristics. |
---|
20 | |
---|
21 | # Checks for library functions. |
---|
22 | |
---|
23 | if test "x${prefix}" = "xNONE"; then |
---|
24 | prefix=${ac_default_prefix} |
---|
25 | fi |
---|
26 | DATADIR=`eval echo ${datadir}` |
---|
27 | XSLDIR=`eval echo ${DATADIR}`/sgml/docbook/vine-style-xsl |
---|
28 | AC_SUBST(XSLDIR) |
---|
29 | |
---|
30 | if test `pkg-config --variable=mode vine-manual-base` = "web"; then |
---|
31 | STYLE=`eval echo ${XSLDIR}`/web.xsl |
---|
32 | else |
---|
33 | STYLE=`eval echo ${XSLDIR}`/local.xsl |
---|
34 | fi |
---|
35 | AC_SUBST(STYLE) |
---|
36 | |
---|
37 | CSSFILE=`pkg-config --variable=cssfile vine-manual-base` |
---|
38 | AC_SUBST(CSSFILE) |
---|
39 | |
---|
40 | CSSURI=`pkg-config --variable=cssuri vine-manual-base` |
---|
41 | AC_SUBST(CSSFILE) |
---|
42 | |
---|
43 | IMAGEDIR=`pkg-config --variable=imagedir vine-manual-base` |
---|
44 | AC_SUBST(IMAGEDIR) |
---|
45 | |
---|
46 | IMAGEURI=`pkg-config --variable=imageuri vine-manual-base` |
---|
47 | AC_SUBST(IMAGEURI) |
---|
48 | |
---|
49 | VMDIR=`pkg-config --variable=manualdir vine-manual-base` |
---|
50 | AC_SUBST(VMDIR) |
---|
51 | |
---|
52 | AC_CONFIG_FILES([ |
---|
53 | Makefile |
---|
54 | local.xsl |
---|
55 | vine-manual-build |
---|
56 | vine-manual-build.pc |
---|
57 | vine-manual-build-vl.spec |
---|
58 | web.xsl |
---|
59 | ]) |
---|
60 | |
---|
61 | AC_OUTPUT |
---|