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

Revision 4069, 1.8 KB checked in by yasumichi, 13 years ago (diff)

公式サイトへのインストール用に configure オプション --enable-web を追加した。

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.2.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
40if test ${web} = true; then
41        VMDIR=/var/www/vinelinux.org/doc/vine6
42        MODE=web
43else
44        VMDIR=`eval echo ${DATADIR}/doc/Vine`
45        MODE=local
46fi
47AC_SUBST(VMDIR)
48AC_SUBST(MODE)
49
50INDEX=`eval echo ${VMDIR}/index.html`
51AC_SUBST(INDEX)
52
53CSSDIR=`eval echo ${VMDIR}/css`
54AC_SUBST(CSSDIR)
55
56CSS=`eval echo ${CSSDIR}/vine.css`
57AC_SUBST(CSS)
58
59IMAGEDIR=`eval echo ${VMDIR}/images`
60AC_SUBST(IMAGEDIR)
61
62AC_CONFIG_FILES([Makefile
63                 vine-manual-base.spec
64                 bin/Makefile
65                 bin/vine-manual-index-update
66                 bin/vine-manual-regist
67                 css/Makefile
68                 css/gnome.css
69                 css/vine.css
70                 data/Makefile
71                 data/index.html
72                 data/vine-manual-base.pc
73                 doc/Makefile
74                 doc/index.html
75                 images/Makefile])
76
77AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.