X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=f688071cbe417b06a9c432937d1dc7ae4860276e;hb=6e11d4796b7b7b8a4ce27b12ce43080e4bc9e687;hp=f49e2f5f16a32f49faa45559d9a2c6a15a78f64b;hpb=32792249a45039b0a0e332091a499956498b55ca;p=trust_router.git diff --git a/configure.ac b/configure.ac index f49e2f5..f688071 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ(2.63) -AC_INIT([trust_router],[1.2], +AC_INIT([trust_router],[3.4.0~3], [bugs@project-moonshot.org]) AC_CONFIG_MACRO_DIR(m4) AC_CONFIG_AUX_DIR(build-aux) @@ -10,16 +10,25 @@ AM_MAINTAINER_MODE LT_INIT() AC_PROG_CC + PKG_PROG_PKG_CONFIG + AC_ARG_WITH([systemdsystemunitdir], + AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), + [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) + if test "x$with_systemdsystemunitdir" != xno; then + AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) + fi + AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) +PKG_CHECK_MODULES([GLIB], [glib-2.0]) AC_CHECK_LIB([gssapi_krb5], [gss_init_sec_context]) AC_CHECK_LIB([com_err], [error_message]) -AC_CHECK_LIB(talloc, talloc_asprintf,, +AC_CHECK_LIB(talloc, talloc_init,, [AC_MSG_ERROR([Please install talloc development])]) AC_CHECK_LIB([sqlite3], [sqlite3_open],, [AC_MSG_ERROR([Please install sqlite3 development])]) - AC_CHECK_LIB([jansson], [json_object]) AC_CHECK_LIB([crypto], [DH_new]) -AC_CHECK_HEADERS(gssapi.h gssapi_ext.h jansson.h openssl/dh.h openssl/bn.h) +AC_CHECK_LIB([event], [event_base_new]) +AC_CHECK_HEADERS(gssapi.h gssapi_ext.h jansson.h talloc.h openssl/dh.h openssl/bn.h syslog.h event2/event.h) AC_CONFIG_FILES([Makefile gsscon/Makefile]) AC_OUTPUT