mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[master] Merge branch 'trac5027' (premium support)
This commit is contained in:
34
configure.ac
34
configure.ac
@@ -72,6 +72,14 @@ AC_ARG_ENABLE([debug],
|
||||
AM_CONDITIONAL([DEBUG_ENABLED], [test x$debug_enabled = xyes])
|
||||
AM_COND_IF([DEBUG_ENABLED], [AC_DEFINE([ENABLE_DEBUG], [1], [Enable low-performing debugging facilities?])])
|
||||
|
||||
PREMIUM_DIR=
|
||||
if test -d "${srcdir}/premium"; then
|
||||
PREMIUM_DIR=premium
|
||||
AC_CONFIG_SUBDIRS([premium])
|
||||
fi
|
||||
|
||||
AC_SUBST(PREMIUM_DIR)
|
||||
|
||||
# Libtool configuration
|
||||
#
|
||||
|
||||
@@ -1635,6 +1643,21 @@ AC_CONFIG_FILES([compatcheck/Makefile
|
||||
chmod +x tools/path_replacer.sh
|
||||
])
|
||||
|
||||
AM_CONDITIONAL(PREMIUM, test -d "$srcdir/premium/src")
|
||||
|
||||
AC_MSG_CHECKING([if premium package is available])
|
||||
if test -d "$srcdir/premium/src"; then
|
||||
|
||||
# Define it in the config.h, so C++ code could use it.
|
||||
AC_DEFINE([PREMIUM], [1], [Kea-premium package found])
|
||||
|
||||
# Export it here, so code in configure could use it.
|
||||
PREMIUM=1
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
AC_OUTPUT
|
||||
|
||||
dnl Print the results
|
||||
@@ -1656,6 +1679,17 @@ Package:
|
||||
Extended version:${EXTENDED_VERSION}
|
||||
OS Family: ${OS_TYPE}
|
||||
Using GNU sed: ${GNU_SED}
|
||||
END
|
||||
if test "$PREMIUM" != ""; then
|
||||
cat >> config.report << END
|
||||
Premium package: yes
|
||||
END
|
||||
else
|
||||
cat >> config.report << END
|
||||
Premium package: no
|
||||
END
|
||||
fi
|
||||
cat >> config.report << END
|
||||
|
||||
C++ Compiler:
|
||||
CXX: ${CXX}
|
||||
|
Reference in New Issue
Block a user