diff options
| author | Harald Welte <laforge@gnumonks.org> | 2010-05-29 11:49:51 +0200 | 
|---|---|---|
| committer | Harald Welte <laforge@gnumonks.org> | 2010-05-29 11:49:51 +0200 | 
| commit | 544037700c01bf557f4db88dd1cbe8ab7a4f7f8c (patch) | |
| tree | 21eed848114037a363deefdf500164ac7e141a17 | |
| parent | 237f6241f2b91a81b928ce4e3fc1364f61f11eaa (diff) | |
add configure option '--disable-vty' to prevent building libosmovty
| -rw-r--r-- | configure.in | 6 | ||||
| -rw-r--r-- | include/osmocom/Makefile.am | 2 | ||||
| -rw-r--r-- | src/vty/Makefile.am | 2 | 
3 files changed, 10 insertions, 0 deletions
| diff --git a/configure.in b/configure.in index 6e427733..cc8fdf61 100644 --- a/configure.in +++ b/configure.in @@ -44,6 +44,12 @@ AC_ARG_ENABLE(tests,  	[enable_tests=0], [enable_tests=1])  AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "x1") +AC_ARG_ENABLE(vtyc, +	[  --disable-vty Disable building VTY telnet interface ], +	[enable_vty=0], [enable_vty=1]) +AM_CONDITIONAL(ENABLE_VTY, test "x$enable_vty" = "x1") + +  AC_OUTPUT(  	libosmocore.pc  	libosmovty.pc diff --git a/include/osmocom/Makefile.am b/include/osmocom/Makefile.am index c9023e65..71293d15 100644 --- a/include/osmocom/Makefile.am +++ b/include/osmocom/Makefile.am @@ -1 +1,3 @@ +if ENABLE_VTY  SUBDIRS = vty +endif diff --git a/src/vty/Makefile.am b/src/vty/Makefile.am index bc10a0f8..f2859cff 100644 --- a/src/vty/Makefile.am +++ b/src/vty/Makefile.am @@ -5,7 +5,9 @@ LIBVERSION=0:0:0  INCLUDES = $(all_includes) -I$(top_srcdir)/include  AM_CFLAGS = -fPIC -Wall +if ENABLE_VTY  lib_LTLIBRARIES = libosmovty.la  libosmovty_la_SOURCES = buffer.c command.c vty.c vector.c utils.c \  			telnet_interface.c logging_vty.c +endif | 
