-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
137 lines (111 loc) · 3.42 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
## Quilt: A Linked Open Data server
##
## Author: Mo McRoberts <[email protected]>
##
## Copyright (c) 2014-2015 BBC
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
AC_INIT([quilt],m4_esyscmd([/bin/sh m4/get-version.sh]),[[email protected]],,[https://github.com/bbcarchdev/quilt])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_MAINTAINER_MODE
AC_CONFIG_HEADER([config.h])
BT_PROG_XCODE
AC_PROG_CC([clang c99 gcc cc])
BT_PROG_CC_DEBUG
BT_PROG_CC_WARN
AC_PROG_CC_C99
LT_INIT
AC_DEFINE_UNQUOTED([PACKAGE_TITLE], ["Quilt"], [The human-friendly package name])
AC_DEFINE_UNQUOTED([PACKAGE_SIGNATURE], ["Quilt/" PACKAGE_VERSION], [The server signature, included in the Server: response header])
BT_ENABLE_POSIX_FULL
AC_SYS_LARGEFILE
AC_CHECK_LIB([cunit], [CU_initialize_registry])
AC_CHECK_FUNCS([strlcpy strlcat])
BT_REQUIRE_LIBDL
BT_REQUIRE_LIBCURL
BT_REQUIRE_LIBRDF
BT_REQUIRE_LIBXML2
BT_REQUIRE_LIBJANSSON
BT_REQUIRE_PTHREAD
AC_CHECK_HEADERS([strings.h])
AC_ARG_WITH([fcgi],[AS_HELP_STRING(--with-fcgi=PREFIX)],[fcgi_prefix="$withval"],[fcgi_prefix="yes"])
if test x"$fcgi_prefix" = x"yes" ; then
fcgi_prefix=""
fi
if test x"$fcgi_prefix" = x"no" ; then
AC_MSG_ERROR([Quilt cannot be built without fcgi])
fi
if ! test x"$fcgi_prefix" = x"" ; then
fcgi_CFLAGS="-I$fcgi_prefix/include"
fcgi_LDFLAGS="-L$fcgi_prefix/lib"
fi
fcgi_LIBS="-lfcgi"
WITH_FASTCGI=1
AC_DEFINE_UNQUOTED([WITH_FASTCGI],[1],[Define if FastCGI is available])
AC_SUBST([fcgi_LIBS])
AC_SUBST([fcgi_CFLAGS])
AC_SUBST([fcgi_LDFLAGS])
AC_SUBST([fcgi_SUBDIRS])
AM_CONDITIONAL([WITH_FASTCGI],[test x"$WITH_FASTCGI" = x"1"])
BT_REQUIRE_LIBURI_INCLUDED
BT_REQUIRE_LIBSPARQLCLIENT_INCLUDED
BT_CHECK_LIBCLUSTER
if test x"$have_libcluster" = x"yes" ; then
cluster="yes"
EXTRA_LOCAL_DEPLIBS="$EXTRA_LOCAL_DEPLIBS $LIBCLUSTER_LOCAL_LIBS"
EXTRA_DEPLIBS="$EXTRA_DEPLIBS $LIBCLUSTER_LIBS"
else
cluster="no"
fi
AC_SUBST([EXTRA_DEPLIBS])
AC_SUBST([EXTRA_LOCAL_DEPLIBS])
use_docbook_html5=yes
BT_BUILD_DOCS
XML2HTMLFLAGS="--param \"html.linksfile\" \"'file://\$(abs_top_srcdir)/docbook-html5/res-links.xml'\" \
--param \"html.navfile\" \"'file://\$(abs_top_srcdir)/docbook-html5/res-nav.xml'\" \
--param \"html.ie78css\" \"'//bbcarchdev.github.io/painting-by-numbers/ie78.css'\""
AC_SUBST([XML2HTMLFLAGS])
LINKS='${top_srcdir}/docbook-html5/res-links.xml'
AC_SUBST([LINKS])
NAV='${top_srcdir}/docbook-html5/res-nav.xml'
AC_SUBST([NAV])
quilthtdocdir='${docdir}'
AC_SUBST([quilthtdocdir])
BT_DEFINE_PREFIX
AC_CONFIG_FILES([
Makefile
libquilt-uninstalled.pc
libquilt.pc
libsupport/Makefile
m4/Makefile
libnegotiate/Makefile
libliquify/Makefile
libkvset/Makefile
templates/Makefile
public/Makefile
libquilt/Makefile
engines/Makefile
serialisers/Makefile
serialisers/t/Makefile
sample-data/Makefile
apache2-example.conf
docbook-html5/Makefile
docs/Makefile
t/Makefile
])
AC_OUTPUT
AC_MSG_RESULT([
additional features:
cluster ... $cluster
])