Mark version 1.4.1
[trust_router.git] / configure.ac
1 AC_PREREQ(2.63)
2 AC_INIT([trust_router],[1.4.1],
3 [bugs@project-moonshot.org])
4 AC_CONFIG_MACRO_DIR(m4)
5 AC_CONFIG_AUX_DIR(build-aux)
6 AC_USE_SYSTEM_EXTENSIONS
7 AM_INIT_AUTOMAKE([1.11 foreign subdir-objects])
8 AM_SILENT_RULES
9 AM_MAINTAINER_MODE
10 LT_INIT()
11
12 AC_PROG_CC
13            PKG_PROG_PKG_CONFIG
14            AC_ARG_WITH([systemdsystemunitdir],
15                    AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
16                    [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
17            if test "x$with_systemdsystemunitdir" != xno; then
18                    AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
19            fi
20            AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
21
22 AC_CHECK_LIB([gssapi_krb5], [gss_init_sec_context])
23 AC_CHECK_LIB([com_err], [error_message])
24 AC_CHECK_LIB(talloc, talloc_init,,
25 [AC_MSG_ERROR([Please install talloc development])])
26 AC_CHECK_LIB([sqlite3], [sqlite3_open],,
27     [AC_MSG_ERROR([Please install sqlite3 development])])
28 AC_CHECK_LIB([jansson], [json_object])
29 AC_CHECK_LIB([crypto], [DH_new])
30 AC_CHECK_HEADERS(gssapi.h gssapi_ext.h jansson.h talloc.h openssl/dh.h openssl/bn.h)
31 AC_CONFIG_FILES([Makefile gsscon/Makefile])
32 AC_OUTPUT