diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-05-21 22:12:28 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-21 22:12:28 +0200 |
commit | 78b10682561c8b657be8348a7bedcd2ed7858d84 (patch) | |
tree | 635cc8ade98449142225edc782e65602b731ccea /configure.ac | |
parent | bb411f47ec30cb02edb4c13f15f14d76a3c1103c (diff) | |
download | connman-78b10682561c8b657be8348a7bedcd2ed7858d84.tar.gz connman-78b10682561c8b657be8348a7bedcd2ed7858d84.tar.bz2 connman-78b10682561c8b657be8348a7bedcd2ed7858d84.zip |
build: Add option for disabling WISPr support
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 1f2b81ea..27104e6e 100644 --- a/configure.ac +++ b/configure.ac @@ -310,11 +310,6 @@ if (test -n "${path_systemdunit}"); then fi AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}") -PKG_CHECK_MODULES(GNUTLS, gnutls, dummy=yes, - AC_MSG_ERROR(GnuTLS library is required)) -AC_SUBST(GNUTLS_CFLAGS) -AC_SUBST(GNUTLS_LIBS) - PKG_CHECK_MODULES(XTABLES, xtables, dummy=yes, AC_MSG_ERROR(Xtables library is required)) AC_SUBST(XTABLES_CFLAGS) @@ -372,16 +367,31 @@ AC_ARG_ENABLE(pacrunner, AC_HELP_STRING([--disable-pacrunner], [enable_pacrunner=${enableval}]) AM_CONDITIONAL(PACRUNNER, test "${enable_pacrunner}" != "no") -AC_ARG_ENABLE(client, AC_HELP_STRING([--disable-client], - [disable command line client]), - [disable_client=${enableval}]) -AM_CONDITIONAL(CLIENT, test "${enable_client}" != "no") +AC_ARG_ENABLE(wispr, AC_HELP_STRING([--disable-wispr], + [disable WISPr support]), + [enable_wispr=${enableval}]) +AM_CONDITIONAL(WISPR, test "${enable_wispr}" != "no") AC_ARG_ENABLE(tools, AC_HELP_STRING([--disable-tools], [disable testing tools]), [enable_tools=${enableval}]) AM_CONDITIONAL(TOOLS, test "${enable_tools}" != "no") +AC_ARG_ENABLE(client, AC_HELP_STRING([--disable-client], + [disable command line client]), + [disable_client=${enableval}]) +AM_CONDITIONAL(CLIENT, test "${enable_client}" != "no") + +if (test "${enable_wispr}" != "no"); then + PKG_CHECK_MODULES(GNUTLS, gnutls, dummy=yes, + AC_MSG_ERROR(GnuTLS library is required)) +else + GNUTLS_CFLAGS="" + GNUTLS_LIBS="" +fi +AC_SUBST(GNUTLS_CFLAGS) +AC_SUBST(GNUTLS_LIBS) + if (test "${enable_loopback}" != "no"); then AC_CHECK_HEADERS(sys/inotify.h, dummy=yes, AC_MSG_ERROR(inotify header files are required)) |