mirror of https://gerrit.osmocom.org/libosmocore
add configure option '--disable-vty' to prevent building libosmovty
This commit is contained in:
parent
237f6241f2
commit
544037700c
|
@ -44,6 +44,12 @@ AC_ARG_ENABLE(tests,
|
||||||
[enable_tests=0], [enable_tests=1])
|
[enable_tests=0], [enable_tests=1])
|
||||||
AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "x1")
|
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(
|
AC_OUTPUT(
|
||||||
libosmocore.pc
|
libosmocore.pc
|
||||||
libosmovty.pc
|
libosmovty.pc
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
if ENABLE_VTY
|
||||||
SUBDIRS = vty
|
SUBDIRS = vty
|
||||||
|
endif
|
||||||
|
|
|
@ -5,7 +5,9 @@ LIBVERSION=0:0:0
|
||||||
INCLUDES = $(all_includes) -I$(top_srcdir)/include
|
INCLUDES = $(all_includes) -I$(top_srcdir)/include
|
||||||
AM_CFLAGS = -fPIC -Wall
|
AM_CFLAGS = -fPIC -Wall
|
||||||
|
|
||||||
|
if ENABLE_VTY
|
||||||
lib_LTLIBRARIES = libosmovty.la
|
lib_LTLIBRARIES = libosmovty.la
|
||||||
|
|
||||||
libosmovty_la_SOURCES = buffer.c command.c vty.c vector.c utils.c \
|
libosmovty_la_SOURCES = buffer.c command.c vty.c vector.c utils.c \
|
||||||
telnet_interface.c logging_vty.c
|
telnet_interface.c logging_vty.c
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue