summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-12 15:32:08 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-12 15:32:08 +0000
commit4f7742c31bcf64550dae6a14d6b6da54d6d57e59 (patch)
tree3eaf2f4c2f1272e817a4d23d1b642a16ae0bce05 /configure.ac
parentf6bdc4c133a26084e3a4457ad8dcc27c56344bb5 (diff)
-fix for #688590: allow user to specify how to install nsslibs
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac36
1 files changed, 36 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c1d463a26..0bedbaca9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -812,6 +812,42 @@ AC_ARG_WITH(sudo,
AC_SUBST(SUDO_BINARY)
AM_CONDITIONAL([HAVE_SUDO], [test "x$SUDO_BINARY" != "x" -o -w /])
+
+# test for nssdir
+AC_MSG_CHECKING(with nssdir)
+AC_ARG_WITH(nssdir,
+ [ --with-nssdir=PATH where to install NSS plugins],
+ [AC_MSG_RESULT("$with_nssdir")
+ case $with_nssdir in
+ no)
+ NSS_DIR=
+ install_nss=0
+ ;;
+ yes)
+ NSS_DIR="/lib"
+ install_nss=1
+ ;;
+ *)
+ NSS_DIR=$with_nssdir
+ install_nss=1
+ ;;
+ esac
+ ],
+ [
+ if test "x$SUDO_BINARY" != "x" -o -w /
+ then
+ NSS_DIR="/lib"
+ install_nss=1
+ AC_MSG_RESULT([yes, to /lib])
+ else
+ NSS_DIR=
+ install_nss=0
+ AC_MSG_RESULT([no])
+ fi
+ ])
+AC_SUBST(NSS_DIR)
+AM_CONDITIONAL([INSTALL_NSS], [test "x$install_nss" != "x0"])
+
# test for gnunetdns group name
GNUNETDNS_GROUP=gnunetdns
AC_MSG_CHECKING(for gnunetdns group name)