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

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

fix MENUWIDTH

RevLine 
[2695]1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
[4212]5AC_INIT([vine-manual-base], [0.3.0], [http://vinelinux.org/bts.html])
[2703]6AM_INIT_AUTOMAKE([no-dist-gzip dist-bzip2 tar-ustar])
[2695]7
8# Checks for programs.
[2703]9AC_PATH_PROG(MKTEMP, mktemp)
10AS_IF(test -z $MKTEMP, AC_MSG_ERROR([Cannot find mktemp.]))
[2695]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
[4069]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
[2695]29if test "x${prefix}" = "xNONE"; then
30        prefix=${ac_default_prefix}
31fi
32DATADIR=`eval echo ${datadir}`
[2703]33
[2695]34CVSDATA=`eval echo ${DATADIR}/vine-manual-base`/doc-list.csv
35AC_SUBST(CVSDATA)
36
[2703]37TEMPLATE=`eval echo ${DATADIR}/vine-manual-base`/index.html
38AC_SUBST(TEMPLATE)
[2695]39
[4211]40AM_CONDITIONAL(WEBMODE, test ${web} = true)
[4069]41if test ${web} = true; then
[4191]42        VMDIR=/var/www/vinelinux.org/docs/vine6
[5938]43        MENUWIDTH=980px
[4069]44        MODE=web
45else
46        VMDIR=`eval echo ${DATADIR}/doc/Vine`
[4189]47        MENUWIDTH=600px
[4069]48        MODE=local
49fi
[2733]50AC_SUBST(VMDIR)
[4069]51AC_SUBST(MODE)
[4189]52AC_SUBST(MENUWIDTH)
[2733]53
54INDEX=`eval echo ${VMDIR}/index.html`
[2703]55AC_SUBST(INDEX)
56
[2733]57CSSDIR=`eval echo ${VMDIR}/css`
58AC_SUBST(CSSDIR)
59
60CSS=`eval echo ${CSSDIR}/vine.css`
61AC_SUBST(CSS)
62
[4069]63IMAGEDIR=`eval echo ${VMDIR}/images`
[2799]64AC_SUBST(IMAGEDIR)
65
[4183]66if test ${web} = true; then
[4191]67        CSSURI=/docs/vine6/css/vine.css
68        IMAGEURI=/docs/vine6/images
69        VMURI=/docs/vine6
[4183]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
[2695]79AC_CONFIG_FILES([Makefile
[2703]80                 vine-manual-base.spec
[2695]81                 bin/Makefile
82                 bin/vine-manual-index-update
83                 bin/vine-manual-regist
84                 css/Makefile
[2820]85                 css/gnome.css
[2833]86                 css/vine.css
[2695]87                 data/Makefile
[2703]88                 data/index.html
[2733]89                 data/vine-manual-base.pc
[2695]90                 doc/Makefile
91                 doc/index.html
92                 images/Makefile])
93
94AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.