From 4a272b256ea0cae74cad442eca75363e9d8edb47 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Sun, 8 Sep 2013 22:51:43 +0100 Subject: build: Add cmake build infrastructure This permits building using cmake rather than the existing autoconf/automake/libtool infrastructure. The autotools- based build may be removed in future commits, but either may be used until that point. --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0d40a2d5..83ffeeda 100644 --- a/configure.ac +++ b/configure.ac @@ -364,6 +364,19 @@ AC_CHECK_FUNC([unshare], [UNSHARE_FUNC="no"]) # Determine which features to enable. +AC_MSG_CHECKING([whether to build NLS support]) +BUILD_NLS="yes" +if test "$USE_NLS" = "no"; then + BUILD_NLS="no" +fi +AC_MSG_RESULT([$BUILD_NLS]) + +AM_CONDITIONAL([BUILD_NLS], [test "$BUILD_NLS" = "yes"]) +AH_TEMPLATE(SBUILD_FEATURE_NLS, [Set if NLS support is present]) +if test "$BUILD_NLS" = "yes"; then + AC_DEFINE(SBUILD_FEATURE_NLS, 1) +fi + AC_MSG_CHECKING([whether to build unshare support]) BUILD_UNSHARE="yes" if test "$UNSHARE_HEADER" = "no"; then -- cgit v1.2.3