2012-03-28 13:24:49 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl Created by Anjuta application wizard.
|
|
|
|
|
2012-04-01 19:32:18 +02:00
|
|
|
AC_INIT(icinga, 2.0)
|
2012-03-28 13:24:49 +02:00
|
|
|
|
2012-04-03 13:38:30 +02:00
|
|
|
AC_CONFIG_AUX_DIR([m4])
|
2012-03-28 13:24:49 +02:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([1.11])
|
|
|
|
|
2012-04-03 13:38:30 +02:00
|
|
|
m4_include([m4/ax_cxx_gcc_abi_demangle.m4])
|
2012-04-03 15:47:32 +02:00
|
|
|
m4_include([m4/ax_check_compile_flag.m4])
|
2012-05-09 12:10:07 +02:00
|
|
|
m4_include([m4/ax_pthread.m4])
|
2012-04-03 13:38:30 +02:00
|
|
|
|
2012-03-28 13:24:49 +02:00
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
|
|
|
|
AC_PROG_CXX
|
2012-04-03 13:38:30 +02:00
|
|
|
AX_CXX_GCC_ABI_DEMANGLE
|
2012-05-09 12:10:07 +02:00
|
|
|
AX_PTHREAD
|
2012-03-28 13:24:49 +02:00
|
|
|
|
2012-04-24 14:04:51 +02:00
|
|
|
AC_CHECK_LIB(ssl, SSL_new)
|
|
|
|
AC_CHECK_LIB(crypto, X509_NAME_oneline)
|
|
|
|
AC_CHECK_LIB(eay32, X509_NAME_oneline)
|
2012-05-09 12:10:07 +02:00
|
|
|
AC_CHECK_LIB(m, floor)
|
|
|
|
AC_CHECK_LIB(pthread, pthread_create)
|
2012-04-24 14:04:51 +02:00
|
|
|
|
2012-04-03 15:47:32 +02:00
|
|
|
AX_CHECK_COMPILE_FLAG([-std=c++0x], [have_cxx11_support=yes])
|
|
|
|
|
|
|
|
if test "$have_cxx11_support" = "yes"; then
|
|
|
|
CXXFLAGS="$CXXFLAGS -std=c++0x"
|
|
|
|
AC_DEFINE(HAVE_CXX11, 1,
|
|
|
|
[define if the compiler supports C++11])
|
|
|
|
fi
|
|
|
|
|
2012-03-28 13:24:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-09 12:14:47 +02:00
|
|
|
LT_INIT([disable-static])
|
2012-04-01 09:48:52 +02:00
|
|
|
LT_CONFIG_LTDL_DIR([ltdl])
|
|
|
|
LTDL_INIT
|
2012-03-28 13:24:49 +02:00
|
|
|
|
2012-04-02 10:29:08 +02:00
|
|
|
if test "x$with_included_ltdl" != "xyes"; then
|
|
|
|
AC_CHECK_LIB([ltdl], [lt_dladvise_init],
|
|
|
|
[],
|
|
|
|
[AC_MSG_ERROR([installed libltdl is too old])])
|
|
|
|
fi
|
2012-03-28 13:24:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
base/Makefile
|
2012-04-06 08:56:52 +02:00
|
|
|
cJSON/Makefile
|
2012-04-13 13:16:54 +02:00
|
|
|
components/Makefile
|
|
|
|
components/configfile/Makefile
|
|
|
|
components/configrpc/Makefile
|
2012-04-23 13:45:41 +02:00
|
|
|
components/demo/Makefile
|
2012-04-30 15:30:45 +02:00
|
|
|
components/discovery/Makefile
|
2012-04-01 09:48:52 +02:00
|
|
|
icinga/Makefile
|
2012-04-13 11:45:09 +02:00
|
|
|
icinga-app/Makefile
|
2012-03-28 13:24:49 +02:00
|
|
|
jsonrpc/Makefile
|
2012-05-09 10:15:51 +02:00
|
|
|
mmatch/Makefile
|
2012-03-28 13:24:49 +02:00
|
|
|
])
|