1
# $Id: split_configuration.m4,v 1.00 2009/12/22 12:25:59 sbajic Exp $
2
# m4/split_configuration.m4
3
# Hugo Monteiro <hugo.monteiro@fct.unl.pt>
7
# Activate split configuration file support
9
AC_DEFUN([DS_SPLIT_CONFIG],
12
AC_ARG_ENABLE(split-configuration,
13
[AS_HELP_STRING(--enable-split-configuration,
14
Enable split configuration file support
16
AC_MSG_CHECKING([whether to enable split configuration file support])
17
case x"$enable_split_configuration" in
18
xyes) # split configuration file enabled explicity
20
xno) # split configuration file disabled explicity
22
x) # split configuration file disabled by default
23
enable_split_configuration=no
25
*) AC_MSG_ERROR([unexpected value $enable_split_configuration for --{enable,disable}-split-configuration configure option])
28
if test x"$enable_split_configuration" != xyes
30
enable_split_configuration=no
32
enable_split_configuration=yes # overkill, but convenient
33
AC_DEFINE(SPLIT_CONFIG, 1, [Defined if split configuration is enabled])
35
AC_MSG_RESULT([$enable_split_configuration])