2012-05-26 14:40:15 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
|
|
|
* Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License *
|
|
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
|
|
* of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
******************************************************************************/
|
2012-03-28 13:24:49 +02:00
|
|
|
|
2012-05-27 19:45:40 +02:00
|
|
|
AC_INIT
|
|
|
|
AX_SPEC_FILE([icinga2.spec])
|
|
|
|
AX_SPEC_DEFAULTS
|
|
|
|
AX_SET_VERSION_INFO
|
2012-09-07 10:27:31 +02:00
|
|
|
AC_CONFIG_AUX_DIR([m4])
|
2012-03-28 13:24:49 +02:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2012-05-27 19:45:40 +02:00
|
|
|
AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
|
2012-08-30 09:57:48 +02:00
|
|
|
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
|
2012-06-06 14:38:28 +02:00
|
|
|
AM_SILENT_RULES([yes])
|
2012-05-29 11:38:51 +02:00
|
|
|
|
2012-05-27 16:21:50 +02:00
|
|
|
AC_PROG_CXX
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_LANG_C
|
|
|
|
|
2012-05-29 16:24:55 +02:00
|
|
|
LT_INIT([dlopen disable-static win32-dll])
|
2012-05-29 11:38:51 +02:00
|
|
|
LT_CONFIG_LTDL_DIR([third-party/ltdl])
|
2012-05-25 14:40:10 +02:00
|
|
|
LTDL_INIT
|
|
|
|
|
2012-05-18 11:31:55 +02:00
|
|
|
DX_HTML_FEATURE(ON)
|
|
|
|
DX_CHM_FEATURE(OFF)
|
|
|
|
DX_CHI_FEATURE(OFF)
|
|
|
|
DX_MAN_FEATURE(OFF)
|
|
|
|
DX_RTF_FEATURE(OFF)
|
|
|
|
DX_XML_FEATURE(OFF)
|
|
|
|
DX_PDF_FEATURE(OFF)
|
|
|
|
DX_PS_FEATURE(OFF)
|
2012-09-07 10:27:31 +02:00
|
|
|
DX_INIT_DOXYGEN([icinga], [docs/Doxyfile], [docs/dev])
|
2012-05-18 11:31:55 +02:00
|
|
|
|
2012-05-25 13:51:05 +02:00
|
|
|
AC_PROG_INSTALL
|
2012-09-26 09:54:11 +02:00
|
|
|
AC_PROG_LEX
|
2012-05-31 08:45:02 +02:00
|
|
|
AC_PROG_YACC
|
2012-05-25 13:51:05 +02:00
|
|
|
AC_PROG_LIBTOOL
|
2012-04-03 13:38:30 +02:00
|
|
|
AX_CXX_GCC_ABI_DEMANGLE
|
2012-09-18 12:38:08 +02:00
|
|
|
AX_BOOST_BASE([1.41], [], [AC_MSG_ERROR([You need the Boost headers and libraries in order to build this application])])
|
2012-06-14 15:16:41 +02:00
|
|
|
AX_BOOST_SIGNALS
|
2012-06-17 20:35:56 +02:00
|
|
|
AX_BOOST_THREAD
|
2012-08-14 10:53:04 +02:00
|
|
|
AX_BOOST_SYSTEM
|
2012-05-29 11:38:51 +02:00
|
|
|
AX_BOOST_UNIT_TEST_FRAMEWORK
|
2012-05-29 16:24:55 +02:00
|
|
|
AX_CHECK_OPENSSL([], [AC_MSG_ERROR([You need the OpenSSL headers and libraries in order to build this application])])
|
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)
|
2012-05-26 13:53:24 +02:00
|
|
|
AC_CHECK_LIB(socket, getsockname)
|
2012-05-28 10:41:21 +02:00
|
|
|
AC_CHECK_LIB(ws2_32, getsockname)
|
|
|
|
AC_CHECK_LIB(shlwapi, PathRemoveFileSpecA)
|
2012-09-27 09:38:28 +02:00
|
|
|
AC_CHECK_FUNCS([backtrace_symbols])
|
2012-04-24 14:04:51 +02:00
|
|
|
|
2012-09-28 13:16:08 +02:00
|
|
|
AS_AC_EXPAND([ICINGA_PREFIX], $prefix)
|
|
|
|
AC_DEFINE_UNQUOTED([ICINGA_PREFIX], "$ICINGA_PREFIX", [The installation prefix.])
|
|
|
|
|
|
|
|
AS_AC_EXPAND([ICINGA_LOCALSTATEDIR], $localstatedir)
|
|
|
|
AC_DEFINE_UNQUOTED([ICINGA_LOCALSTATEDIR], "$ICINGA_LOCALSTATEDIR", [The local state dir.])
|
|
|
|
|
2012-05-29 16:14:49 +02:00
|
|
|
AC_CONFIG_FILES([
|
2012-03-28 13:24:49 +02:00
|
|
|
Makefile
|
2012-04-13 13:16:54 +02:00
|
|
|
components/Makefile
|
2012-06-14 11:18:20 +02:00
|
|
|
components/checker/Makefile
|
2012-06-27 18:43:34 +02:00
|
|
|
components/compat/Makefile
|
2012-09-15 12:51:40 +02:00
|
|
|
components/compatido/Makefile
|
2012-06-14 13:21:40 +02:00
|
|
|
components/delegation/Makefile
|
2012-04-23 13:45:41 +02:00
|
|
|
components/demo/Makefile
|
2012-09-14 10:52:57 +02:00
|
|
|
components/replication/Makefile
|
2012-09-07 10:27:31 +02:00
|
|
|
docs/Doxyfile
|
2012-04-13 11:45:09 +02:00
|
|
|
icinga-app/Makefile
|
2012-09-22 15:07:30 +02:00
|
|
|
icinga-app/config/Makefile
|
2012-09-07 10:27:31 +02:00
|
|
|
lib/Makefile
|
|
|
|
lib/base/Makefile
|
|
|
|
lib/config/Makefile
|
|
|
|
lib/icinga/Makefile
|
2012-09-10 14:07:32 +02:00
|
|
|
lib/remoting/Makefile
|
2012-05-28 11:53:51 +02:00
|
|
|
test/Makefile
|
2012-05-29 11:38:51 +02:00
|
|
|
third-party/Makefile
|
|
|
|
third-party/cJSON/Makefile
|
|
|
|
third-party/mmatch/Makefile
|
2012-06-19 19:05:24 +02:00
|
|
|
third-party/popen-noshell/Makefile
|
2012-03-28 13:24:49 +02:00
|
|
|
])
|
2012-05-29 16:14:49 +02:00
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
if ! test -z "$LTDLDEPS"; then
|
|
|
|
ltdl_msg="bundled"
|
|
|
|
else
|
|
|
|
ltdl_msg="system-provided"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "
|
|
|
|
Libraries:
|
|
|
|
ltdl: $ltdl_msg
|
|
|
|
"
|