X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=configure.ac;h=a4698079e1d31e19d8c8afb0bf5f1710c58329e4;hp=1494ca401e8e0bbd61b607de4353a8d875165633;hb=HEAD;hpb=677c6a23bedc845d9176064531c493c1bf8fe985 diff --git a/configure.ac b/configure.ac index 1494ca4..a469807 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ(2.63) -AC_INIT([trust_router],[1.3], +AC_INIT([trust_router],[3.4.0], [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([gssapi_krb5], [gss_init_sec_context],,[AC_MSG_ERROR([Please install libkrb5 development])]) 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([jansson], [json_object],,[AC_MSG_ERROR([Please install libjansson development])]) 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_MSG_ERROR([Please install libevent development])]) +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