author | Michael Krelin <hacker@klever.net> | 2005-01-29 21:21:05 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-01-29 21:21:05 (UTC) |
commit | ce1f37aae46ea95020d7b865f7a80e8abdfad0d8 (patch) (unidiff) | |
tree | 4964383ab8cd7e6d8ea821f1a615d1bbcf98dad8 /configure.ac | |
parent | 3c75c860fc1ad5b3f5185e23ec6f438dd2528958 (diff) | |
download | sitecing-ce1f37aae46ea95020d7b865f7a80e8abdfad0d8.zip sitecing-ce1f37aae46ea95020d7b865f7a80e8abdfad0d8.tar.gz sitecing-ce1f37aae46ea95020d7b865f7a80e8abdfad0d8.tar.bz2 |
initial commit into repository0.0
-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 | ||