c-capnproto/configure.ac
2016-07-20 08:56:46 +02:00

53 lines
1 KiB
Text
Executable file

AC_PREREQ(2.60)
AC_INIT(c-capnproto, 0.2, [])
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