From b3b55f167063417c285524ba35bd9298965b834a Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 5 Aug 2009 14:45:14 -0400 Subject: Make socket paths a compile-time option Previously, we had hardcoded the paths for the NSS, PAM and private PAM sockets to /var/lib/sss/pipes. With this patch, we will specify the sockets with --with-pipe-path. --- sss_client/configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'sss_client/configure.ac') diff --git a/sss_client/configure.ac b/sss_client/configure.ac index 97fc83de..7d443ed2 100644 --- a/sss_client/configure.ac +++ b/sss_client/configure.ac @@ -37,6 +37,25 @@ AC_DEFUN([BUILD_WITH_AUX_INFO], [Build with -aux-info output])]) ]) AM_CONDITIONAL([WANT_AUX_INFO], [test x$with_aux_info = xyes]) +BUILD_WITH_AUX_INFO + +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]] + ) + ] + ) + config_pipepath="\"VARDIR\"/lib/sss/pipes" + pipepath="${localstatedir}/lib/sss/pipes" + if test x"$with_pipe_path" != x; then + config_pipepath=$with_pipe_path + pipepath=$with_pipe_path + fi + AC_SUBST(pipepath) + AC_DEFINE_UNQUOTED(PIPE_PATH, "$config_pipepath", [Where to store pipe files for the SSSD interconnects]) + ]) +WITH_PIPE_PATH AC_CONFIG_FILES([Makefile po/Makefile.in]) AC_OUTPUT -- cgit