forked from jmckaskill/c-capnproto
-
Notifications
You must be signed in to change notification settings - Fork 40
/
configure.ac
executable file
·53 lines (41 loc) · 1.01 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
AC_PREREQ(2.60)
AC_INIT(c-capnproto, 0.3, [])
AC_CONFIG_SRCDIR(lib/capnp_c.h)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([ac])
AC_CANONICAL_BUILD()
AC_CANONICAL_HOST()
AC_CANONICAL_TARGET()
AM_INIT_AUTOMAKE(1.11)
AM_SILENT_RULES([yes])
AC_CONFIG_HEADERS([config.h])
AC_USE_SYSTEM_EXTENSIONS
LT_INIT
AC_LANG([C])
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_ARG_ENABLE(werror,
AS_HELP_STRING([--enable-werror], [enable -Werror (for developers only)]))
if test x"${enable_werror}" = x"yes" ; then
WERROR="-Werror"
fi
AC_SUBST(WERROR)
AC_ARG_WITH(capnpdir,
AS_HELP_STRING([--with-capnpdir=DIR], [directory to install c.capnp file in (default: $includedir/capnp)]))
if test x"${with_capnpdir}" != x ; then
capnpdir="${with_capnpdir}"
else
capnpdir="${includedir}/capnp"
fi
AC_SUBST(capnpdir)
#PKG_CHECK_MODULES(CAPNP, [capnp >= 0.5.2], [], [
# AC_MSG_ERROR([capnproto base package (0.5.2 or newer) not found])
#])
AC_CONFIG_SUBDIRS([gtest/googletest])
AC_CONFIG_FILES([
Makefile
c-capnproto.pc
])
AC_OUTPUT