summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-02-06 19:24:17 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-02-07 00:48:52 +0100
commite124844907ed6973915e4d56f5442ecd07535a12 (patch)
tree3ea48f3ae8a747d490acd0dc0a273e5948dda9df /src
parent9a3e40dc49c1e38bf58e45be5adff37615f3910b (diff)
downloadsssd-e124844907ed6973915e4d56f5442ecd07535a12.tar.gz
sssd-e124844907ed6973915e4d56f5442ecd07535a12.tar.bz2
sssd-e124844907ed6973915e4d56f5442ecd07535a12.zip
Make sudo installation path configurable, install into libdir by default
Diffstat (limited to 'src')
-rw-r--r--src/conf_macros.m414
-rw-r--r--src/sss_client/sudo/libsss_sudo.pc.in2
2 files changed, 15 insertions, 1 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index c79692ef..a54dd7f0 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -424,6 +424,20 @@ AC_DEFUN([WITH_SUDO],
AM_CONDITIONAL([BUILD_SUDO], [test x"$with_sudo" = xyes])
])
+AC_DEFUN([WITH_SUDO_LIB_PATH],
+ [ AC_ARG_WITH([sudo-lib-path],
+ [AC_HELP_STRING([--with-sudo-lib-path=<path>],
+ [Path to the sudo library [/usr/lib/]]
+ )
+ ]
+ )
+ sudolibpath="${libdir}"
+ if test x"$with_sudo_lib_path" != x; then
+ sudolibpath=$with_sudo_lib_path
+ fi
+ AC_SUBST(sudolibpath)
+ ])
+
AC_DEFUN([WITH_AUTOFS],
[ AC_ARG_WITH([autofs],
[AC_HELP_STRING([--with-autofs],
diff --git a/src/sss_client/sudo/libsss_sudo.pc.in b/src/sss_client/sudo/libsss_sudo.pc.in
index ba67fa98..a739dc42 100644
--- a/src/sss_client/sudo/libsss_sudo.pc.in
+++ b/src/sss_client/sudo/libsss_sudo.pc.in
@@ -6,7 +6,7 @@ includedir=@includedir@
Name: sss_sudo
Description: A library to allow communication between SUDO and SSSD
Version: @VERSION@
-Libs: -L@appmodpath@ -lsss_sudo
+Libs: -L@sudolibpath@ -lsss_sudo
Cflags:
URL: http://fedorahosted.org/sssd/