1
AC_DEFUN([WITH_DB_PATH],
2
[ AC_ARG_WITH([db-path],
3
[AC_HELP_STRING([--with-db-path=PATH],
4
[Path to the SSSD databases [/var/lib/sss/db]]
8
config_dbpath="\"VARDIR\"/lib/sss/db"
9
dbpath="${localstatedir}/lib/sss/db"
10
if test x"$with_db_path" != x; then
11
config_dbpath=$with_db_path
15
AC_DEFINE_UNQUOTED(DB_PATH, "$config_dbpath", [Path to the SSSD databases])
18
AC_DEFUN([WITH_PLUGIN_PATH],
19
[ AC_ARG_WITH([plugin-path],
20
[AC_HELP_STRING([--with-plugin-path=PATH],
21
[Path to the SSSD data provider plugins [/usr/lib/sssd]]
25
pluginpath="${libdir}/sssd"
26
config_pluginpath="\"LIBDIR\"/sssd"
27
if test x"$with_plugin_path" != x; then
28
pluginpath=$with_plugin_path
29
config_pluginpath=$with_plugin_path
32
AC_DEFINE_UNQUOTED(DATA_PROVIDER_PLUGINS_PATH, "$config_pluginpath", [Path to the SSSD data provider plugins])
35
AC_DEFUN([WITH_PID_PATH],
36
[ AC_ARG_WITH([pid-path],
37
[AC_HELP_STRING([--with-pid-path=PATH],
38
[Where to store pid files for the SSSD [/var/run]]
42
config_pidpath="\"VARDIR\"/run"
43
pidpath="${localstatedir}/run"
44
if test x"$with_pid_path" != x; then
45
config_pidpath=$with_pid_path
46
pidpath=$with_pid_path
49
AC_DEFINE_UNQUOTED(PID_PATH, "$config_pidpath", [Where to store pid files for the SSSD])
52
AC_DEFUN([WITH_LOG_PATH],
53
[ AC_ARG_WITH([log-path],
54
[AC_HELP_STRING([--with-log-path=PATH],
55
[Where to store log files for the SSSD [/var/log/sssd]]
59
config_logpath="\"VARDIR\"/log/sssd"
60
logpath="${localstatedir}/log/sssd"
61
if test x"$with_log_path" != x; then
62
config_logpath=$with_log_path
63
logpath=$with_log_path
66
AC_DEFINE_UNQUOTED(LOG_PATH, "$config_logpath", [Where to store log files for the SSSD])
69
AC_DEFUN([WITH_PUBCONF_PATH],
70
[ AC_ARG_WITH([pubconf-path],
71
[AC_HELP_STRING([--with-pubconf-path=PATH],
72
[Where to store pubconf files for the SSSD [/var/lib/sss/pubconf]]
76
config_pubconfpath="\"VARDIR\"/lib/sss/pubconf"
77
pubconfpath="${localstatedir}/lib/sss/pubconf"
78
if test x"$with_pubconf_path" != x; then
79
config_pubconfpath=$with_pubconf_path
80
pubconfpath=$with_pubconf_path
83
AC_DEFINE_UNQUOTED(PUBCONF_PATH, "$config_pubconfpath", [Where to store pubconf files for the SSSD])
86
AC_DEFUN([WITH_PIPE_PATH],
87
[ AC_ARG_WITH([pipe-path],
88
[AC_HELP_STRING([--with-pipe-path=PATH],
89
[Where to store pipe files for the SSSD interconnects [/var/lib/sss/pipes]]
93
config_pipepath="\"VARDIR\"/lib/sss/pipes"
94
pipepath="${localstatedir}/lib/sss/pipes"
95
if test x"$with_pipe_path" != x; then
96
config_pipepath=$with_pipe_path
97
pipepath=$with_pipe_path
100
AC_DEFINE_UNQUOTED(PIPE_PATH, "$config_pipepath", [Where to store pipe files for the SSSD interconnects])
103
AC_DEFUN([WITH_INIT_DIR],
104
[ AC_ARG_WITH([init-dir],
105
[AC_HELP_STRING([--with-init-dir=DIR],
106
[Where to store init script for sssd [/etc/rc.d/init.d]]
110
initdir="${sysconfdir}/rc.d/init.d"
111
if test x"$with_init_dir" != x; then
112
initdir=$with_init_dir
117
AC_DEFUN([WITH_SHADOW_UTILS_PATH],
118
[ AC_ARG_WITH([shadow-utils-path],
119
[AC_HELP_STRING([--with-shadow-utils-path=PATH],
120
[Where to look for shadow-utils binaries [/usr/sbin]]
124
shadow_utils_path="${sbindir}"
125
if test x"$with_shadow_utils_path" != x; then
126
shadow_utils_path=$with_shadow_utils_path
128
AC_SUBST(shadow_utils_path)
131
AC_DEFUN([WITH_MANPAGES],
132
[ AC_ARG_WITH([manpages],
133
[AC_HELP_STRING([--with-manpages],
134
[Whether to regenerate man pages from DocBook sources [yes]]
140
if test x"$with_manpages" == xyes; then
142
AC_SUBST(HAVE_MANPAGES)
145
AM_CONDITIONAL([BUILD_MANPAGES], [test x$with_manpages = xyes])
147
AC_DEFUN([WITH_XML_CATALOG],
148
[ AC_ARG_WITH([xml-catalog-path],
149
[AC_HELP_STRING([--with-xml-catalog-path=PATH],
150
[Where to look for XML catalog [/etc/xml/catalog]]
154
SGML_CATALOG_FILES="/etc/xml/catalog"
155
if test x"$with_xml_catalog_path" != x; then
156
SGML_CATALOG_FILES="$with_xml_catalog_path"
158
AC_SUBST([SGML_CATALOG_FILES])
161
AC_DEFUN([WITH_KRB5_PLUGIN_PATH],
162
[ AC_ARG_WITH([krb5-plugin-path],
163
[AC_HELP_STRING([--with-krb5-plugin-path=PATH],
164
[Path to kerberos plugin store [/usr/lib/krb5/plugins/libkrb5]]
168
krb5pluginpath="${libdir}/krb5/plugins/libkrb5"
169
if test x"$with_krb5_plugin_path" != x; then
170
krb5pluginpath=$with_krb5_plugin_path
172
AC_SUBST(krb5pluginpath)
175
AC_DEFUN([WITH_PYTHON_BINDINGS],
176
[ AC_ARG_WITH([python-bindings],
177
[AC_HELP_STRING([--with-python-bindings],
178
[Whether to build python bindings [yes]]
182
with_python_bindings=yes
184
if test x"$with_python_bindings" == xyes; then
185
HAVE_PYTHON_BINDINGS=1
186
AC_SUBST(HAVE_PYTHON_BINDINGS)
188
AM_CONDITIONAL([BUILD_PYTHON_BINDINGS], [test x"$with_python_bindings" = xyes])
191
AC_DEFUN([WITH_SELINUX],
192
[ AC_ARG_WITH([selinux],
193
[AC_HELP_STRING([--with-selinux],
194
[Whether to build with SELinux support [yes]]
200
if test x"$with_selinux" == xyes; then
202
AC_SUBST(HAVE_SELINUX)
203
AC_DEFINE_UNQUOTED(HAVE_SELINUX, 1, [Build with SELinux support])
205
AM_CONDITIONAL([BUILD_SELINUX], [test x"$with_selinux" = xyes])