diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-04-29 12:59:18 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-04-29 12:59:18 +0200 |
commit | 155017abdf24416f6d1d2ea58aa13423aa46bf19 (patch) | |
tree | 2ec8620bb8bdf2a0ad57703b2b554f859c1b56e8 | |
parent | d30c13d3b2415bbbf70462c1aedf272599b1cb75 (diff) | |
download | connman-155017abdf24416f6d1d2ea58aa13423aa46bf19.tar.gz connman-155017abdf24416f6d1d2ea58aa13423aa46bf19.tar.bz2 connman-155017abdf24416f6d1d2ea58aa13423aa46bf19.zip |
build: Remove dependency on libcap-ng
-rw-r--r-- | Makefile.am | 5 | ||||
-rwxr-xr-x | bootstrap-configure | 3 | ||||
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | src/main.c | 8 |
4 files changed, 3 insertions, 23 deletions
diff --git a/Makefile.am b/Makefile.am index d7b547e0..8cf3dc69 100644 --- a/Makefile.am +++ b/Makefile.am @@ -83,8 +83,7 @@ src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources) \ src/ippool.c src/bridge.c src/nat.c src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \ - @CAPNG_LIBS@ @XTABLES_LIBS@ \ - @GNUTLS_LIBS@ -lresolv -ldl + @XTABLES_LIBS@ @GNUTLS_LIBS@ -lresolv -ldl src_connmand_LDFLAGS = -Wl,--export-dynamic \ -Wl,--version-script=$(srcdir)/src/connman.ver @@ -111,7 +110,7 @@ build_plugindir = $(plugindir) build_scriptdir = $(scriptdir) endif -AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @CAPNG_CFLAGS@ @XTABLES_CFLAGS@ \ +AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @XTABLES_CFLAGS@ \ @GNUTLS_CFLAGS@ $(builtin_cflags) \ -DCONNMAN_PLUGIN_BUILTIN \ -DSTATEDIR=\""$(statedir)"\" \ diff --git a/bootstrap-configure b/bootstrap-configure index deb73bf1..3202c00f 100755 --- a/bootstrap-configure +++ b/bootstrap-configure @@ -19,5 +19,4 @@ fi --enable-openconnect=builtin \ --enable-openvpn=builtin \ --enable-nmcompat \ - --enable-polkit \ - --enable-capng $* + --enable-polkit $* diff --git a/configure.ac b/configure.ac index f76f3d65..9e117213 100644 --- a/configure.ac +++ b/configure.ac @@ -324,16 +324,6 @@ AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test], [enable test/example scripts]), [enable_test=${enableval}]) AM_CONDITIONAL(TEST, test "${enable_test}" = "yes") -AC_ARG_ENABLE(capng, AC_HELP_STRING([--enable-capng], - [enable capabilities support]), [enable_capng=${enableval}]) -if (test "${enable_capng}" = "yes"); then - PKG_CHECK_MODULES(CAPNG, libcap-ng, dummy=yes, - AC_MSG_ERROR(Capabilities library is required)) - AC_SUBST(CAPNG_CFLAGS) - AC_SUBST(CAPNG_LIBS) - AC_DEFINE(HAVE_CAPNG, 1, [Define to 1 if you have capabilities library.]) -fi - AC_ARG_ENABLE(nmcompat, AC_HELP_STRING([--enable-nmcompat], [enable Network Manager support]), [enable_nmcompat=${enableval}], [enable_nmcompat="no"]) @@ -37,10 +37,6 @@ #include <gdbus.h> -#ifdef HAVE_CAPNG -#include <cap-ng.h> -#endif - #include "connman.h" static struct { @@ -387,10 +383,6 @@ int main(int argc, char *argv[]) GKeyFile *config; guint signal; -#ifdef HAVE_CAPNG - /* Drop capabilities */ -#endif - #ifdef NEED_THREADS if (g_thread_supported() == FALSE) g_thread_init(NULL); |