summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile.am5
-rw-r--r--acinclude.m445
-rw-r--r--configure.ac3
3 files changed, 2 insertions, 51 deletions
diff --git a/Makefile.am b/Makefile.am
index fb04e49..01b6df7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,22 +1,19 @@
1SUBDIRS=include lib share src components 1SUBDIRS=include lib share src components
2EXTRA_DIST= NEWS NEWS.xml NEWS.xsl 2EXTRA_DIST= NEWS NEWS.xml NEWS.xsl
3 3
4DISTCHECK_CONFIGURE_FLAGS=--with-pkgconfigdir=$${dc_install_base}/lib/pkgconfig 4pkgconfigdir=${libdir}/pkgconfig
5if HAVE_PKGCONFIG
6pkgconfigdir=@PKGCONFIG_DIR@
7pkgconfig_DATA=sitecing.pc 5pkgconfig_DATA=sitecing.pc
8endif
9 6
10all-local: NEWS 7all-local: NEWS
11if HAVE_DOXYGEN 8if HAVE_DOXYGEN
12clean-local: 9clean-local:
13 rm -rf doxydox 10 rm -rf doxydox
14endif 11endif
15 12
16NEWS: NEWS.xsl NEWS.xml 13NEWS: NEWS.xsl NEWS.xml
17 ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml 14 ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml
18 15
19if HAVE_DOXYGEN 16if HAVE_DOXYGEN
20dox: 17dox:
21 ${DOXYGEN} 18 ${DOXYGEN}
22endif 19endif
diff --git a/acinclude.m4 b/acinclude.m4
index 14b6de7..e732535 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,61 +1,16 @@
1dnl AC_WITH_PKGCONFIG([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
2dnl Outputs:
3dnl AC_SUBST: PKGCONFIG_PKGCONFIG PKGCONFIG_DIR
4dnl AM_CONDTIONAL: HAVE_PKGCONFIG
5AC_DEFUN([AC_WITH_PKGCONFIG],[
6 PKGCONFIG_PKGCONFIG=""
7 PKGCONFIG_DIR=""
8 HAVE_PKGCONFIG="no"
9 EXPLICIT_PKGCONFIGDIR="no"
10 test -z "${WANT_PKGCONFIG}" && WANT_PKGCONFIG=""
11 AC_PATH_PROG([PKGCONFIG_PKGCONFIG],[pkg-config],[false])
12 if test "${PKGCONFIG_PKGCONFIG}" != "false" ; then
13 AC_ARG_WITH([pkgconfigdir],
14 AC_HELP_STRING([--with-pkgconfigdir=dir],[Specify pkgconfig directory]),
15 [
16 if test "${withval}" = "no" ; then
17 WANT_PKGCONFIG="no"
18 else
19 PKGCONFIG_DIR="${withval}"
20 EXPLICIT_PKGCONFIGDIR="yes"
21 fi
22 ],[
23 AC_MSG_CHECKING([for pkgconfig directory])
24 PKGCONFIG_DIR="`${PKGCONFIG_PKGCONFIG} --debug 2>&1 | grep '^Scanning'| head -n 1 | cut -d\' -f2-|cut -d\' -f1`"
25 AC_MSG_RESULT([${PKGCONFIG_DIR}])
26 ]
27 )
28 if test -d "${PKGCONFIG_DIR}" ; then
29 HAVE_PKGCONFIG=yes
30 AC_SUBST([PKGCONFIG_PKGCONFIG])
31 AC_SUBST([PKGCONFIG_DIR])
32 else
33 AC_MSG_NOTICE([unexistent pkgconfig directory: ${PKGCONFIG_DIR}])
34 if test "${EXPLICIT_PKGCONFIGDIR}" = "yes" ; then
35 HAVE_PKGCONFIG=yes
36 AC_SUBST([PKGCONFIG_PKGCONFIG])
37 AC_SUBST([PKGCONFIG_DIR])
38 else
39 ifelse([$2], , :, [$2])
40 fi
41 fi
42 fi
43 AM_CONDITIONAL([HAVE_PKGCONFIG],[test "${HAVE_PKGCONFIG}" = "yes"])
44])
45
46dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) 1dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]])
47dnl Outputs: 2dnl Outputs:
48dnl AC_SUBST: DOXYGEN HAVE_DOXYGEN 3dnl AC_SUBST: DOXYGEN HAVE_DOXYGEN
49dnl AM_CONDTIONAL: HAVE_DOXYGEN 4dnl AM_CONDTIONAL: HAVE_DOXYGEN
50AC_DEFUN([AC_WITH_DOXYGEN],[ 5AC_DEFUN([AC_WITH_DOXYGEN],[
51 HAVE_DOXYGEN="no" 6 HAVE_DOXYGEN="no"
52 AC_PATH_PROG([DOXYGEN],[doxygen],[false]) 7 AC_PATH_PROG([DOXYGEN],[doxygen],[false])
53 if test "${DOXYGEN}" = "false" ; then 8 if test "${DOXYGEN}" = "false" ; then
54 ifelse([$2], , :, [$2]) 9 ifelse([$2], , :, [$2])
55 else 10 else
56 HAVE_DOXYGEN="yes" 11 HAVE_DOXYGEN="yes"
57 AC_SUBST([DOXYGEN]) 12 AC_SUBST([DOXYGEN])
58 $1 13 $1
59 fi 14 fi
60 AC_SUBST([HAVE_DOXYGEN]) 15 AC_SUBST([HAVE_DOXYGEN])
61 AM_CONDITIONAL([HAVE_DOXYGEN],[test "${HAVE_DOXYGEN}" = "yes"]) 16 AM_CONDITIONAL([HAVE_DOXYGEN],[test "${HAVE_DOXYGEN}" = "yes"])
diff --git a/configure.ac b/configure.ac
index bb1557a..a7741c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,38 +1,37 @@
1AC_INIT([sitecing], [0.0.2], [sitecing-bugs@klever.net]) 1AC_INIT([sitecing], [0.0.2], [sitecing-bugs@klever.net])
2AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.h]) 2AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.h])
3AC_CONFIG_HEADER([config.h]) 3AC_CONFIG_HEADER([config.h])
4AM_INIT_AUTOMAKE([dist-bzip2]) 4AM_INIT_AUTOMAKE([dist-bzip2])
5 5
6AC_PROG_INSTALL 6AC_PROG_INSTALL
7AC_PROG_AWK 7AC_PROG_AWK
8AC_PROG_CXX 8AC_PROG_CXX
9AC_PROG_CC 9AC_PROG_CC
10AM_PROG_LEX 10AM_PROG_LEX
11AC_PROG_LIBTOOL 11AC_PROG_LIBTOOL
12PKG_PROG_PKG_CONFIG
12 13
13AC_HEADER_STDC 14AC_HEADER_STDC
14AC_CHECK_HEADERS([stdlib.h unistd.h]) 15AC_CHECK_HEADERS([stdlib.h unistd.h])
15 16
16AC_C_CONST 17AC_C_CONST
17 18
18AC_FUNC_MALLOC 19AC_FUNC_MALLOC
19AC_FUNC_REALLOC 20AC_FUNC_REALLOC
20 21
21AC_WITH_PKGCONFIG
22
23PKG_CHECK_MODULES([KONFORKA],[konforka >= 0.0.1],,[ 22PKG_CHECK_MODULES([KONFORKA],[konforka >= 0.0.1],,[
24 AC_MSG_ERROR([no proper version of konforka library found, get it at http://kin.klever.net/konforka/]) 23 AC_MSG_ERROR([no proper version of konforka library found, get it at http://kin.klever.net/konforka/])
25]) 24])
26 25
27PKG_CHECK_MODULES([KINGATE],[kingate >= 0.0.1],,[ 26PKG_CHECK_MODULES([KINGATE],[kingate >= 0.0.1],,[
28 AC_MSG_ERROR([no kingate library found, get it at http://kin.klever.net/kingate/]) 27 AC_MSG_ERROR([no kingate library found, get it at http://kin.klever.net/kingate/])
29]) 28])
30HAVE_FCGI=false 29HAVE_FCGI=false
31HAVE_PLAINCGI=false 30HAVE_PLAINCGI=false
32PKG_CHECK_MODULES([KINGATE_FCGI],[kingate-fcgi >= 0.0.1],[ 31PKG_CHECK_MODULES([KINGATE_FCGI],[kingate-fcgi >= 0.0.1],[
33 HAVE_FCGI=true 32 HAVE_FCGI=true
34],[ 33],[
35 AC_MSG_NOTICE([no fastcgi support in kingate library]) 34 AC_MSG_NOTICE([no fastcgi support in kingate library])
36]) 35])
37PKG_CHECK_MODULES([KINGATE_PLAINCGI],[kingate-plaincgi >= 0.0.1],[ 36PKG_CHECK_MODULES([KINGATE_PLAINCGI],[kingate-plaincgi >= 0.0.1],[
38 HAVE_PLAINCGI=true 37 HAVE_PLAINCGI=true