summaryrefslogtreecommitdiffstats
path: root/server/conf_macros.m4
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-03-12 22:19:10 -0400
committerSimo Sorce <ssorce@redhat.com>2009-03-13 13:47:33 -0400
commit063ef0f15dfc32d15d2e9bdcba819906aa99b948 (patch)
treece846ec9fb4124954f76f8cb277d703037cffa7f /server/conf_macros.m4
parent97bc7d0cb0c5fa245b2736d51295d1da0d8311e0 (diff)
downloadsssd-063ef0f15dfc32d15d2e9bdcba819906aa99b948.tar.gz
sssd-063ef0f15dfc32d15d2e9bdcba819906aa99b948.tar.xz
sssd-063ef0f15dfc32d15d2e9bdcba819906aa99b948.zip
Fix makefiles
Make so that definitions in the code and install paths actually match
Diffstat (limited to 'server/conf_macros.m4')
-rw-r--r--server/conf_macros.m427
1 files changed, 17 insertions, 10 deletions
diff --git a/server/conf_macros.m4 b/server/conf_macros.m4
index 3d8f41a7f..f6821e070 100644
--- a/server/conf_macros.m4
+++ b/server/conf_macros.m4
@@ -5,12 +5,14 @@ AC_DEFUN(WITH_DB_PATH,
)
]
)
- dbpath="/var/lib/sss/db"
+ config_dbpath="\"VARDIR\"/lib/sss/db"
+ dbpath="${localstatedir}/lib/sss/db"
if test x"$with_db_path" != x; then
+ config_dbpath=$with_db_path
dbpath=$with_db_path
fi
AC_SUBST(dbpath)
- AC_DEFINE_UNQUOTED(DB_PATH, "$dbpath", [Path to the SSSD databases])
+ AC_DEFINE_UNQUOTED(DB_PATH, "$config_dbpath", [Path to the SSSD databases])
])
AC_DEFUN(WITH_PLUGIN_PATH,
@@ -20,12 +22,14 @@ AC_DEFUN(WITH_PLUGIN_PATH,
)
]
)
- pluginpath="/usr/lib/sssd"
+ pluginpath="${libdir}/sssd"
+ config_pluginpath="\"LIBDIR\"/sssd"
if test x"$with_plugin_path" != x; then
pluginpath=$with_plugin_path
+ config_pluginpath=$with_plugin_path
fi
AC_SUBST(pluginpath)
- AC_DEFINE_UNQUOTED(DATA_PROVIDER_PLUGINS_PATH, "$pluginpath", [Path to the SSSD data provider plugins])
+ AC_DEFINE_UNQUOTED(DATA_PROVIDER_PLUGINS_PATH, "$config_pluginpath", [Path to the SSSD data provider plugins])
])
AC_DEFUN(WITH_PID_PATH,
@@ -35,12 +39,14 @@ AC_DEFUN(WITH_PID_PATH,
)
]
)
- pidpath="/var/run"
+ config_pidpath="\"VARDIR\"/run"
+ pidpath="${localstatedir}/run"
if test x"$with_pid_path" != x; then
+ config_pidpath=$with_pid_path
pidpath=$with_pid_path
fi
AC_SUBST(pidpath)
- AC_DEFINE_UNQUOTED(PID_PATH, "$pidpath", [Where to store pid files for the SSSD])
+ AC_DEFINE_UNQUOTED(PID_PATH, "$config_pidpath", [Where to store pid files for the SSSD])
])
AC_DEFUN(WITH_PIPE_PATH,
@@ -50,12 +56,14 @@ AC_DEFUN(WITH_PIPE_PATH,
)
]
)
- pipepath="/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, "$pipepath", [Where to store pipe files for the SSSD interconnects])
+ AC_DEFINE_UNQUOTED(PIPE_PATH, "$config_pipepath", [Where to store pipe files for the SSSD interconnects])
])
AC_DEFUN(WITH_POLICYKIT,
@@ -114,12 +122,11 @@ AC_DEFUN(WITH_INIT_DIR,
)
]
)
- initdir="/etc/rc.d/init.d"
+ initdir="${sysconfdir}/rc.d/init.d"
if test x"$with_init_dir" != x; then
initdir=$with_init_dir
fi
AC_SUBST(initdir)
- AC_DEFINE_UNQUOTED(INIT_DIR, "$initdir", [Where to store init script for sssd])
])