source: projects/vine-manual-base/trunk/configure.ac @ 5938

Revision 5938, 2.1 KB checked in by daisuke, 11 years ago (diff)

fix MENUWIDTH

Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
5AC_INIT([vine-manual-base], [0.3.0], [http://vinelinux.org/bts.html])
6AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2 tar-ustar])
7
8# Checks for programs.
9AC_PATH_PROG(MKTEMP, mktemp)
10AS_IF(test -z $MKTEMP, AC_MSG_ERROR([Cannot find mktemp.]))
11
12# Checks for libraries.
13
14# Checks for header files.
15
16# Checks for typedefs, structures, and compiler characteristics.
17
18# Checks for library functions.
19
20# Define variables
21AC_ARG_ENABLE(web,
22[  --enable-web            Install for web site],
23[case "${enableval}" in
24  yes)  web=true ;;
25  no)   web=false ;;
26  *) AC_MSG_ERROR(bad value ${enableval} for --enable-web) ;;
27esac],[web=false])
28
29if test "x${prefix}" = "xNONE"; then
30        prefix=${ac_default_prefix}
31fi
32DATADIR=`eval echo ${datadir}`
33
34CVSDATA=`eval echo ${DATADIR}/vine-manual-base`/doc-list.csv
35AC_SUBST(CVSDATA)
36
37TEMPLATE=`eval echo ${DATADIR}/vine-manual-base`/index.html
38AC_SUBST(TEMPLATE)
39
40AM_CONDITIONAL(WEBMODE, test ${web} = true)
41if test ${web} = true; then
42        VMDIR=/var/www/vinelinux.org/docs/vine6
43        MENUWIDTH=980px
44        MODE=web
45else
46        VMDIR=`eval echo ${DATADIR}/doc/Vine`
47        MENUWIDTH=600px
48        MODE=local
49fi
50AC_SUBST(VMDIR)
51AC_SUBST(MODE)
52AC_SUBST(MENUWIDTH)
53
54INDEX=`eval echo ${VMDIR}/index.html`
55AC_SUBST(INDEX)
56
57CSSDIR=`eval echo ${VMDIR}/css`
58AC_SUBST(CSSDIR)
59
60CSS=`eval echo ${CSSDIR}/vine.css`
61AC_SUBST(CSS)
62
63IMAGEDIR=`eval echo ${VMDIR}/images`
64AC_SUBST(IMAGEDIR)
65
66if test ${web} = true; then
67        CSSURI=/docs/vine6/css/vine.css
68        IMAGEURI=/docs/vine6/images
69        VMURI=/docs/vine6
70else
71        CSSURI=`eval echo ${CSS}`
72        IMAGEURI=`eval echo ${IMAGEDIR}`
73        VMURI=`eval echo ${VMDIR}`
74fi
75AC_SUBST(CSSURI)
76AC_SUBST(IMAGEURI)
77AC_SUBST(VMURI)
78
79AC_CONFIG_FILES([Makefile
80                 vine-manual-base.spec
81                 bin/Makefile
82                 bin/vine-manual-index-update
83                 bin/vine-manual-regist
84                 css/Makefile
85                 css/gnome.css
86                 css/vine.css
87                 data/Makefile
88                 data/index.html
89                 data/vine-manual-base.pc
90                 doc/Makefile
91                 doc/index.html
92                 images/Makefile])
93
94AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.