summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2005-04-03 16:43:48 (UTC)
committer Michael Krelin <hacker@klever.net>2005-04-03 16:43:48 (UTC)
commitdc836540970e798a91ae9460690e4462365e770a (patch) (unidiff)
tree9e74cfa09ebe825f3ff111a33eba9c3db4eed807
parent483022c5ae5b92c1d501ad4b2683666ca6e563e4 (diff)
downloadsitecing-dc836540970e798a91ae9460690e4462365e770a.zip
sitecing-dc836540970e798a91ae9460690e4462365e770a.tar.gz
sitecing-dc836540970e798a91ae9460690e4462365e770a.tar.bz2
the last change before release - bump sitecing version requirementshowcase/0.0.1
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ef66b30..e60f519 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,105 +1,105 @@
1AC_INIT([sitecing-showcase], [0.0.1], [sitecing-bugs@klever.net]) 1AC_INIT([sitecing-showcase], [0.0.1], [sitecing-bugs@klever.net])
2AC_CONFIG_SRCDIR([htdocs/index.chtml]) 2AC_CONFIG_SRCDIR([htdocs/index.chtml])
3AC_CONFIG_AUX_DIR([aux]) 3AC_CONFIG_AUX_DIR([aux])
4AC_CONFIG_HEADER([include/acconfig.h]) 4AC_CONFIG_HEADER([include/acconfig.h])
5AM_INIT_AUTOMAKE([dist-bzip2]) 5AM_INIT_AUTOMAKE([dist-bzip2])
6 6
7AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) 7AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
8 8
9PKG_CHECK_MODULES([SITECING],[sitecing],,[ 9PKG_CHECK_MODULES([SITECING],[sitecing >= 0.0.1],,[
10 AC_MSG_ERROR([site-C-ing not found. get it at http://kin.klever.net/sitecing/]) 10 AC_MSG_ERROR([site-C-ing not found. get it at http://kin.klever.net/sitecing/])
11]) 11])
12sitecing_prefix="$(${PKG_CONFIG} --variable=prefix sitecing)" 12sitecing_prefix="$(${PKG_CONFIG} --variable=prefix sitecing)"
13sitecing_bindir="$(${PKG_CONFIG} --variable=bindir sitecing)" 13sitecing_bindir="$(${PKG_CONFIG} --variable=bindir sitecing)"
14AC_MSG_CHECKING([for sitecing-fastcgi binary]) 14AC_MSG_CHECKING([for sitecing-fastcgi binary])
15sitecing_fastcgi="${sitecing_bindir}/sitecing-fastcgi" 15sitecing_fastcgi="${sitecing_bindir}/sitecing-fastcgi"
16if test -x "${sitecing_fastcgi}" ; then 16if test -x "${sitecing_fastcgi}" ; then
17 AC_MSG_RESULT([found ${sitecing_fastcgi}]) 17 AC_MSG_RESULT([found ${sitecing_fastcgi}])
18else 18else
19 AC_MSG_RESULT([not found]) 19 AC_MSG_RESULT([not found])
20 AC_MSG_ERROR([broken site-C-ing install detected]) 20 AC_MSG_ERROR([broken site-C-ing install detected])
21fi 21fi
22AC_MSG_CHECKING([for sitecing-build binary]) 22AC_MSG_CHECKING([for sitecing-build binary])
23sitecing_build="${sitecing_bindir}/sitecing-build" 23sitecing_build="${sitecing_bindir}/sitecing-build"
24if test -x "${sitecing_build}" ; then 24if test -x "${sitecing_build}" ; then
25 AC_MSG_RESULT([found ${sitecing_build}]) 25 AC_MSG_RESULT([found ${sitecing_build}])
26else 26else
27 AC_MSG_RESULT([not found]) 27 AC_MSG_RESULT([not found])
28 AC_MSG_ERROR([broken site-C-ing install detected]) 28 AC_MSG_ERROR([broken site-C-ing install detected])
29fi 29fi
30AC_SUBST([sitecing_prefix]) 30AC_SUBST([sitecing_prefix])
31AC_SUBST([sitecing_bindir]) 31AC_SUBST([sitecing_bindir])
32AC_SUBST([sitecing_fastcgi]) 32AC_SUBST([sitecing_fastcgi])
33AC_SUBST([sitecing_build]) 33AC_SUBST([sitecing_build])
34 34
35config_sitecing="config.sitecing" 35config_sitecing="config.sitecing"
36rm -f "${config_sitecing}" 36rm -f "${config_sitecing}"
37SC_BUILD_CONF([${config_sitecing}],[CPPFLAGS],[${SITECING_CFLAGS}]) 37SC_BUILD_CONF([${config_sitecing}],[CPPFLAGS],[${SITECING_CFLAGS}])
38SC_BUILD_CONF([${config_sitecing}],[LDFLAGS],[${SITECING_LIBS}]) 38SC_BUILD_CONF([${config_sitecing}],[LDFLAGS],[${SITECING_LIBS}])
39AC_SUBST_FILE([config_sitecing]) 39AC_SUBST_FILE([config_sitecing])
40 40
41SC_WEB_ROOT([web_src_root],[web_run_root]) 41SC_WEB_ROOT([web_src_root],[web_run_root])
42SC_USER([sitecing_user]) 42SC_USER([sitecing_user])
43 43
44AC_DEFINE_UNQUOTED([WEB_ROOT],["${web_src_root}"],[the site root]) 44AC_DEFINE_UNQUOTED([WEB_ROOT],["${web_src_root}"],[the site root])
45AC_DEFINE_UNQUOTED([WEB_SRC_ROOT],["${web_src_root}"],[the site root]) 45AC_DEFINE_UNQUOTED([WEB_SRC_ROOT],["${web_src_root}"],[the site root])
46AC_DEFINE_UNQUOTED([WEB_RUN_ROOT],["${web_run_root}"],[the site root]) 46AC_DEFINE_UNQUOTED([WEB_RUN_ROOT],["${web_run_root}"],[the site root])
47 47
48v_hostname="$(hostname)" 48v_hostname="$(hostname)"
49AC_MSG_CHECKING([for virtual host name]) 49AC_MSG_CHECKING([for virtual host name])
50AC_ARG_WITH([vhostname], 50AC_ARG_WITH([vhostname],
51 AC_HELP_STRING([--with-vhostname=virtual-host-name],[set the apache ServerName of VirtualHost]), 51 AC_HELP_STRING([--with-vhostname=virtual-host-name],[set the apache ServerName of VirtualHost]),
52 [ 52 [
53 v_hostname="${withval}" 53 v_hostname="${withval}"
54 ] 54 ]
55) 55)
56AC_MSG_RESULT([${v_hostname}]) 56AC_MSG_RESULT([${v_hostname}])
57AC_SUBST([v_hostname]) 57AC_SUBST([v_hostname])
58 58
59HAVE_DUDKI="false" 59HAVE_DUDKI="false"
60WANT_DUDKI="true" 60WANT_DUDKI="true"
61AC_ARG_ENABLE([dudki], 61AC_ARG_ENABLE([dudki],
62 AC_HELP_STRING([--disable-dudki],[disable the use of dudki! to restart daemon]), 62 AC_HELP_STRING([--disable-dudki],[disable the use of dudki! to restart daemon]),
63 [ 63 [
64 test "${enableval}" = "no" && WANT_DUDKI="false" 64 test "${enableval}" = "no" && WANT_DUDKI="false"
65 ] 65 ]
66) 66)
67if ${WANT_DUDKI} ; then 67if ${WANT_DUDKI} ; then
68 AC_PATH_PROG([DUDKI],[dudki],[false],[${PATH}:/usr/local/sbin:/usr/sbin]) 68 AC_PATH_PROG([DUDKI],[dudki],[false],[${PATH}:/usr/local/sbin:/usr/sbin])
69 test "${DUDKI}" = "false" || HAVE_DUDKI="true" 69 test "${DUDKI}" = "false" || HAVE_DUDKI="true"
70fi 70fi
71AM_CONDITIONAL([HAVE_DUDKI],[${HAVE_DUDKI}]) 71AM_CONDITIONAL([HAVE_DUDKI],[${HAVE_DUDKI}])
72 72
73dudki_id=sitecing-showcase 73dudki_id=sitecing-showcase
74AC_ARG_WITH([dudki-id], 74AC_ARG_WITH([dudki-id],
75 AC_HELP_STRING([--with-dudki-id],[specify dudki process id]), 75 AC_HELP_STRING([--with-dudki-id],[specify dudki process id]),
76 [ 76 [
77 dudki_id="${withval}" 77 dudki_id="${withval}"
78 ] 78 ]
79) 79)
80AC_SUBST([dudki_id]) 80AC_SUBST([dudki_id])
81 81
82APACHE_RESTART_CMD="false" 82APACHE_RESTART_CMD="false"
83AC_ARG_WITH([apache-restart-cmd], 83AC_ARG_WITH([apache-restart-cmd],
84 AC_HELP_STRING([--with-apache-restart-cmd=command],[use the specified command to restart apache]), 84 AC_HELP_STRING([--with-apache-restart-cmd=command],[use the specified command to restart apache]),
85 [ 85 [
86 test "${withval}" = "no" || APACHE_RESTART_CMD="${withval}" 86 test "${withval}" = "no" || APACHE_RESTART_CMD="${withval}"
87 ] 87 ]
88) 88)
89if test "${APACHE_RESTART_CMD}" = "false" ; then 89if test "${APACHE_RESTART_CMD}" = "false" ; then
90 AC_PATH_PROG([APACHECTL],[apachectl],[false],[${PATH}:/usr/sbin:/usr/local/sbin]) 90 AC_PATH_PROG([APACHECTL],[apachectl],[false],[${PATH}:/usr/sbin:/usr/local/sbin])
91 if test "${APACHECTL}" != "false" ; then 91 if test "${APACHECTL}" != "false" ; then
92 APACHE_RESTART_CMD="sudo ${APACHECTL} graceful" 92 APACHE_RESTART_CMD="sudo ${APACHECTL} graceful"
93 else 93 else
94 AC_PATH_PROG([APACHE2CTL],[apache2ctl],[false],[${PATH}:/usr/sbin:/usr/local/sbin]) 94 AC_PATH_PROG([APACHE2CTL],[apache2ctl],[false],[${PATH}:/usr/sbin:/usr/local/sbin])
95 if test "${APACHE2CTL}" != "false" ; then 95 if test "${APACHE2CTL}" != "false" ; then
96 APACHE_RESTART_CMD="sudo ${APACHE2CTL} graceful" 96 APACHE_RESTART_CMD="sudo ${APACHE2CTL} graceful"
97 else 97 else
98 for i_s in /etc/init.d/apache /etc/init.d/apache2 ; do 98 for i_s in /etc/init.d/apache /etc/init.d/apache2 ; do
99 AC_MSG_CHECKING([for ${i_s}]) 99 AC_MSG_CHECKING([for ${i_s}])
100 if test -x ${i_s} ; then 100 if test -x ${i_s} ; then
101 AC_MSG_RESULT([found]) 101 AC_MSG_RESULT([found])
102 APACHE_RESTART_CMD="sudo ${i_s} restart" 102 APACHE_RESTART_CMD="sudo ${i_s} restart"
103 break 103 break
104 fi 104 fi
105 AC_MSG_RESULT([not found]) 105 AC_MSG_RESULT([not found])