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-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-03-28 13:24:49 +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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LT_INIT
|
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-01 09:48:52 +02:00
|
|
|
configfilecomponent/Makefile
|
|
|
|
configrpccomponent/Makefile
|
|
|
|
icinga/Makefile
|
2012-04-13 11:45:09 +02:00
|
|
|
icinga-app/Makefile
|
2012-03-28 13:24:49 +02:00
|
|
|
jsonrpc/Makefile
|
|
|
|
|
|
|
|
])
|