aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-31 18:04:28 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-31 18:04:28 +0000
commitf3fa149e507bf5cca1f499d48c780a4853e7b2c5 (patch)
treefc446fdc671ff5cba0874bb000ab7f2c378a36be /src
parentdc994999f6702effb64e5bfc3eb727ee0f3723ef (diff)
downloadgnunet-f3fa149e507bf5cca1f499d48c780a4853e7b2c5.tar.gz
gnunet-f3fa149e507bf5cca1f499d48c780a4853e7b2c5.zip
-allow installation even as non-root non-sudo user to succeed with new nss code
Diffstat (limited to 'src')
-rw-r--r--src/gns/nss/Makefile.am7
-rw-r--r--src/integration-tests/Makefile.am4
2 files changed, 8 insertions, 3 deletions
diff --git a/src/gns/nss/Makefile.am b/src/gns/nss/Makefile.am
index c5e415dbf..582aa0696 100644
--- a/src/gns/nss/Makefile.am
+++ b/src/gns/nss/Makefile.am
@@ -21,15 +21,22 @@ EXTRA_DIST = map-file
21 21
22AM_LDFLAGS=-avoid-version -module -export-dynamic 22AM_LDFLAGS=-avoid-version -module -export-dynamic
23 23
24if HAVE_SUDO
24nssdir = /lib/ 25nssdir = /lib/
26else
27nssdir = $(libdir)
28endif
29
25LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool 30LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool
26 31
27if !MINGW 32if !MINGW
33if HAVE_SUDO
28nss_LTLIBRARIES = \ 34nss_LTLIBRARIES = \
29 libnss_gns.la \ 35 libnss_gns.la \
30 libnss_gns4.la \ 36 libnss_gns4.la \
31 libnss_gns6.la 37 libnss_gns6.la
32endif 38endif
39endif
33 40
34sources = util.c util.h query.h query.c 41sources = util.c util.h query.h query.c
35 42
diff --git a/src/integration-tests/Makefile.am b/src/integration-tests/Makefile.am
index 7c1991b91..f9998642d 100644
--- a/src/integration-tests/Makefile.am
+++ b/src/integration-tests/Makefile.am
@@ -12,8 +12,6 @@ endif
12#bin_PROGRAMS = \ 12#bin_PROGRAMS = \
13# connection_watchdog 13# connection_watchdog
14 14
15check_PROGRAMS =
16
17noinst_PROGRAMS = connection_watchdog 15noinst_PROGRAMS = connection_watchdog
18 16
19noinst_SCRIPTS = \ 17noinst_SCRIPTS = \
@@ -98,7 +96,7 @@ test_integration_clique.py: test_integration_clique.py.in Makefile
98test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile 96test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
99 $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py 97 $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
100 chmod +x test_integration_clique_nat.py 98 chmod +x test_integration_clique_nat.py
101 99
102test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile 100test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile
103 $(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py 101 $(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py
104 chmod +x test_integration_connect_on_restart.py 102 chmod +x test_integration_connect_on_restart.py