Source

quechua / configure.ac

AC_INIT([quechua], [0.1], [quechua@octogan.net], [quechua], [http://code.google.com/p/quechua])
AC_PREREQ([2.64])
AM_INIT_AUTOMAKE([-Wall])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CXX
AC_PROG_LIBTOOL
LT_INIT
ACX_PTHREAD
AC_PREFIX_DEFAULT("/opt/quechua")
AM_PATH_PYTHON([2.6],,)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_FILES([Makefile src/Makefile include/Makefile  scripts/Makefile conf/Makefile
                 modules/Makefile
                 modules/channel/Makefile
                 modules/channel/stdch/Makefile
                 modules/processor/Makefile
                 modules/processor/reverter/Makefile
                 modules/algorithm/Makefile
                 modules/algorithm/stub/Makefile
                 modules/algorithm/apriori/Makefile
                 modules/channel/dionaeaHarvester/Makefile
                 modules/channel/DionaeaHarvester-ng/Makefile
                 modules/processor/IpProcessor/Makefile
                 modules/logger/Makefile
                 modules/logger/dionaealogger/Makefile])
PKG_CHECK_MODULES([GLIBMM],[glibmm-2.4 >= 2.24.2])
PKG_CHECK_MODULES([LIBCONFIGXX],[libconfig++ >= 1.3.2])
# Check for extra libraries

AC_CHECK_LIB([ev], [ev_run], , AC_MSG_ERROR(ev libary required))
#AC_CHECK_LUB([], [], ,AC_MSG_ERROR(libconfig++ library required))
#AC_CHECK_LIB([glibmm-2.4], [], , AC_MSG_ERROR(glibmm libary required))

## Extra config files
CXXFLAGS=-rdynamic 
#CXXFLAGS+= -std=gnu++11
AC_OUTPUT


# Shamelessy copied from dionaea's configure.ac file
#AC_DEFUN([AC_DEFINE_DIR], [
#  prefix_NONE=
#  exec_prefix_NONE=
#  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
#  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
# #dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn
# #dnl refers to ${prefix}.  Thus we have to use `eval' twice.
#  eval ac_define_dir="\"[$]$2\""
#  eval ac_define_dir="\"$ac_define_dir\""
#  AC_SUBST($1, "$ac_define_dir")
#  AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3])
#  test "$prefix_NONE" && prefix=NONE
#  test "$exec_prefix_NONE" && exec_prefix=NONE
#])
#AC_DEFINE_DIR(PREFIX, prefix, [default working directory])
#AC_DEFINE_DIR(LOCALESTATEDIR, localstatedir, [where to put logs etc])
#AC_DEFINE_DIR(LIBDIR, libdir, [where to look for plugins])
#AC_DEFINE_DIR(SYSCONFDIR, [sysconfdir], [System configuration dir])
#AC_DEFINE_DIR(DATADIR, [datadir], [The directory for installing idiosyncratic read-only architecture-independent data.])
#AC_DEFINE_DIR(DATAROOTDIR, [datarootdir], [The root of the directory tree for read-only architecture-independent data files.])