-rw-r--r-- | configure.ac | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..acd34b9 --- a/dev/null +++ b/configure.ac | |||
@@ -0,0 +1,69 @@ | |||
1 | AC_INIT([sitecing], [0.0], [sitecing-bugs@klever.net]) | ||
2 | AC_CONFIG_SRCDIR([include/sitecing/sitecing_parser.h]) | ||
3 | AC_CONFIG_HEADER([config.h]) | ||
4 | AM_INIT_AUTOMAKE([dist-bzip2]) | ||
5 | |||
6 | AC_PROG_INSTALL | ||
7 | AC_PROG_AWK | ||
8 | AC_PROG_CXX | ||
9 | AC_PROG_CC | ||
10 | AM_PROG_LEX | ||
11 | AC_PROG_LIBTOOL | ||
12 | |||
13 | AC_HEADER_STDC | ||
14 | AC_CHECK_HEADERS([stdlib.h unistd.h]) | ||
15 | |||
16 | AC_C_CONST | ||
17 | |||
18 | AC_FUNC_MALLOC | ||
19 | AC_FUNC_REALLOC | ||
20 | |||
21 | AC_WITH_PKGCONFIG | ||
22 | |||
23 | PKG_CHECK_MODULES([KINGATE],[kingate-fcgi],,[ | ||
24 | AC_MSG_ERROR([no kingate library found, get it at http://kin.klever.net/kingate/]) | ||
25 | ]) | ||
26 | PKG_CHECK_MODULES([DOTCONF],[dotconf],,[ | ||
27 | AC_MSG_ERROR([no dotconf library found]) | ||
28 | ]) | ||
29 | |||
30 | AC_WITH_PCRE([ | ||
31 | AC_WITH_PCREPP(,[ | ||
32 | AC_MSG_ERROR([no pcre++ library found]) | ||
33 | ]) | ||
34 | ],[ | ||
35 | AC_MSG_ERROR([no pcre library found]) | ||
36 | ]) | ||
37 | |||
38 | AC_CHECK_LIB([dl],[dlopen],,[ | ||
39 | AC_MSG_ERROR([no dlopen library found]) | ||
40 | ]) | ||
41 | |||
42 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | ||
43 | |||
44 | WANT_DOXYGEN="yes" | ||
45 | AC_ARG_ENABLE([doxygen], | ||
46 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), | ||
47 | [ | ||
48 | test "${enableval}" = "no" && WANT_DOXYGEN="no" | ||
49 | ] | ||
50 | ) | ||
51 | if test "${WANT_DOXYGEN}" = "yes" ; then | ||
52 | AC_WITH_DOXYGEN | ||
53 | AC_WITH_DOT | ||
54 | else | ||
55 | AM_CONDITIONAL([HAVE_DOXYGEN],[false]) | ||
56 | AM_CONDITIONAL([HAVE_DOT],[false]) | ||
57 | fi | ||
58 | |||
59 | AC_CONFIG_FILES([ | ||
60 | Makefile | ||
61 | Doxyfile | ||
62 | sitecing.pc | ||
63 | include/Makefile | ||
64 | lib/Makefile | ||
65 | share/Makefile | ||
66 | src/Makefile | ||
67 | components/Makefile | ||
68 | ]) | ||
69 | AC_OUTPUT | ||