From 34c78b745eb349eef2b0f13ef2b722632aebe619 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Fri, 3 Feb 2012 22:18:42 +0100 Subject: BUILD: Introduce a --with-ssh config option --- configure.ac | 1 + src/conf_macros.m4 | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/configure.ac b/configure.ac index c465c56c1..ec8454ec1 100644 --- a/configure.ac +++ b/configure.ac @@ -96,6 +96,7 @@ WITH_NOLOGIN_SHELL WITH_APP_LIBS WITH_SUDO WITH_AUTOFS +WITH_SSH m4_include([src/external/pkg.m4]) m4_include([src/external/libpopt.m4]) diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 05500b27f..c79692ef5 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -445,3 +445,25 @@ AC_DEFUN([WITH_AUTOFS], fi AM_CONDITIONAL([BUILD_AUTOFS], [test x"$with_autofs" = xyes]) ]) + +AC_DEFUN([WITH_SSH], + [ AC_ARG_WITH([ssh], + [AC_HELP_STRING([--with-ssh], + [Whether to build with SSH support [no]] + ) + ], + [with_ssh=$withval], + ) + + dnl Remove when SSH goes out of experimental + if test x"$enable_all_experimental_features" = xyes; then + if test x"$with_ssh" != xno; then + with_ssh=yes + fi + fi + + if test x"$with_ssh" = xyes; then + AC_DEFINE(BUILD_SSH, 1, [whether to build with SSH support]) + fi + AM_CONDITIONAL([BUILD_SSH], [test x"$with_ssh" = xyes]) + ]) -- cgit