diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2008-11-24 11:23:10 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-11-24 17:44:37 -0500 |
commit | 8c77f1f01f16c05cd8867584b5acf181ef8ce9e0 (patch) | |
tree | daea5886d40b14cf6becb33da266bdc334331665 /server/conf_macros.m4 | |
parent | 98bf10fa12c08463a1f625403c4621f1bbeb0bcc (diff) | |
download | sssd-8c77f1f01f16c05cd8867584b5acf181ef8ce9e0.tar.gz sssd-8c77f1f01f16c05cd8867584b5acf181ef8ce9e0.tar.xz sssd-8c77f1f01f16c05cd8867584b5acf181ef8ce9e0.zip |
Replacing hard-coded paths with configure script substitutions.
Changing the default SBUS locations to be configure script parameters
Diffstat (limited to 'server/conf_macros.m4')
-rw-r--r-- | server/conf_macros.m4 | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/server/conf_macros.m4 b/server/conf_macros.m4 new file mode 100644 index 0000000..9aac02c --- /dev/null +++ b/server/conf_macros.m4 @@ -0,0 +1,59 @@ +AC_DEFUN(WITH_DB_PATH, + [ AC_ARG_WITH([db-path], + [AC_HELP_STRING([--with-db-path=PATH], + [Path to the SSSD databases [/var/lib/sss/db]] + ) + ] + ) + dbpath="/var/lib/sss/db" + if test x"$with_db_path" != x; then + dbpath=$with_db_path + fi + AC_SUBST(dbpath) + AC_DEFINE_UNQUOTED(DB_PATH, "$dbpath", [Path to the SSSD databases]) + ]) + +AC_DEFUN(WITH_PLUGIN_PATH, + [ AC_ARG_WITH([plugin-path], + [AC_HELP_STRING([--with-plugin-path=PATH], + [Path to the SSSD data provider plugins [/usr/lib/sssd]] + ) + ] + ) + pluginpath="/usr/lib/sssd" + if test x"$with_plugin_path" != x; then + pluginpath=$with_plugin_path + fi + AC_SUBST(pluginpath) + AC_DEFINE_UNQUOTED(DATA_PROVIDER_PLUGINS_PATH, "$pluginpath", [Path to the SSSD data provider plugins]) + ]) + +AC_DEFUN(WITH_PID_PATH, + [ AC_ARG_WITH([pid-path], + [AC_HELP_STRING([--with-pid-path=PATH], + [Where to store pid files for the SSSD [/var/run]] + ) + ] + ) + pidpath="/var/run" + if test x"$with_pid_path" != x; then + pidpath=$with_pid_path + fi + AC_SUBST(pidpath) + AC_DEFINE_UNQUOTED(PID_PATH, "$pidpath", [Where to store pid files for the SSSD]) + ]) + +AC_DEFUN(WITH_PIPE_PATH, + [ AC_ARG_WITH([pipe-path], + [AC_HELP_STRING([--with-pipe-path=PATH], + [Where to store pipe files for the SSSD interconnects [/var/lib/sss/pipes]] + ) + ] + ) + pipepath="/var/lib/sss/pipes" + if test x"$with_pipe_path" != x; then + pipepath=$with_pipe_path + fi + AC_SUBST(pipepath) + AC_DEFINE_UNQUOTED(PIPE_PATH, "$pipepath", [Where to store pipe files for the SSSD interconnects]) + ]) |