[840] | 1 | # -*- Autoconf -*- |
---|
| 2 | # Process this file with autoconf to produce a configure script. |
---|
| 3 | |
---|
| 4 | AC_PREREQ([2.65]) |
---|
[2937] | 5 | AC_INIT(vine-manual-build, 0.9.1, http://bts.vinelinux.org/) |
---|
[842] | 6 | AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar]) |
---|
[840] | 7 | AM_MAINTAINER_MODE |
---|
| 8 | |
---|
| 9 | # Checks for programs. |
---|
[1141] | 10 | AC_PATH_PROG(XSLTPROC,xsltproc) |
---|
| 11 | AS_IF(test -z $XSLTPROC, AC_MSG_ERROR([xsltproc was not found.])) |
---|
[2801] | 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.])) |
---|
[840] | 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 | |
---|
[4184] | 30 | if test `pkg-config --variable=mode vine-manual-base` = "web"; then |
---|
| 31 | STYLE=`eval echo ${XSLDIR}`/web.xls |
---|
| 32 | else |
---|
| 33 | STYLE=`eval echo ${XSLDIR}`/local.xls |
---|
| 34 | fi |
---|
| 35 | AC_SUBST(STYLE) |
---|
| 36 | |
---|
[2801] | 37 | CSSFILE=`pkg-config --variable=cssfile vine-manual-base` |
---|
| 38 | AC_SUBST(CSSFILE) |
---|
| 39 | |
---|
[4184] | 40 | CSSURI=`pkg-config --variable=cssuri vine-manual-base` |
---|
| 41 | AC_SUBST(CSSFILE) |
---|
| 42 | |
---|
[2801] | 43 | IMAGEDIR=`pkg-config --variable=imagedir vine-manual-base` |
---|
| 44 | AC_SUBST(IMAGEDIR) |
---|
| 45 | |
---|
[4184] | 46 | IMAGEURI=`pkg-config --variable=imageuri vine-manual-base` |
---|
| 47 | AC_SUBST(IMAGEURI) |
---|
| 48 | |
---|
[2817] | 49 | VMDIR=`pkg-config --variable=manualdir vine-manual-base` |
---|
| 50 | AC_SUBST(VMDIR) |
---|
| 51 | |
---|
[840] | 52 | AC_CONFIG_FILES([ |
---|
| 53 | Makefile |
---|
[2801] | 54 | local.xsl |
---|
[840] | 55 | vine-manual-build |
---|
[2801] | 56 | vine-manual-build.pc |
---|
[1165] | 57 | vine-manual-build-vl.spec |
---|
[4068] | 58 | web.xsl |
---|
[840] | 59 | ]) |
---|
| 60 | |
---|
| 61 | AC_OUTPUT |
---|