mirror of https://github.com/wolfSSL/wolfssh.git
Add configure option to disable building the example tools.
parent
c4874154c0
commit
ea515ca1b2
10
configure.ac
10
configure.ac
|
@ -78,9 +78,14 @@ AX_PTHREAD([
|
|||
|
||||
# Inline Build
|
||||
AC_ARG_ENABLE([inline],
|
||||
[AS_HELP_STRING([--disable-inline],[Enable inline functions (default: enabled)])],
|
||||
[AS_HELP_STRING([--disable-inline],[Disable inline functions (default: enabled)])],
|
||||
[ENABLED_INLINE=$enableval],[ENABLED_INLINE=yes])
|
||||
|
||||
# Examples Build
|
||||
AC_ARG_ENABLE([examples],
|
||||
[AS_HELP_STRING([--disable-examples],[Disable examples (default: enabled)])],
|
||||
[ENABLED_EXAMPLES=$enableval],[ENABLED_EXAMPLES=yes])
|
||||
|
||||
# Key Generation
|
||||
AC_ARG_ENABLE([keygen],
|
||||
[AS_HELP_STRING([--enable-keygen],[Enable key generation (default: disabled)])],
|
||||
|
@ -126,6 +131,8 @@ AS_IF([test "x$ENABLED_SFTP" = "xyes"],
|
|||
AS_IF([test "x$ENABLED_FWD" = "xyes"],
|
||||
[AM_CPPFLAGS="$AM_CPPFLAGS -DWOLFSSH_FWD"])
|
||||
|
||||
AM_CONDITIONAL([BUILD_EXAMPLE_SERVERS],[test "x$ENABLED_EXAMPLES" = "xyes"])
|
||||
AM_CONDITIONAL([BUILD_EXAMPLE_CLIENTS],[test "x$ENABLED_EXAMPLES" = "xyes"])
|
||||
AM_CONDITIONAL([BUILD_INLINE],[test "x$ENABLED_INLINE" = "xyes"])
|
||||
AM_CONDITIONAL([BUILD_KEYGEN],[test "x$ENABLED_KEYGEN" = "xyes"])
|
||||
AM_CONDITIONAL([BUILD_SCP],[test "x$ENABLED_SCP" = "xyes"])
|
||||
|
@ -180,3 +187,4 @@ echo " * scp: $ENABLED_SCP"
|
|||
echo " * sftp: $ENABLED_SFTP"
|
||||
echo " * TCP/IP Forwarding: $ENABLED_FWD"
|
||||
echo " * Inline Code: $ENABLED_INLINE"
|
||||
echo " * Examples: $ENABLED_EXAMPLES"
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
# vim:ft=automake
|
||||
# All paths should be given relative to the root
|
||||
|
||||
if BUILD_EXAMPLE_CLIENTS
|
||||
noinst_PROGRAMS += examples/client/client
|
||||
noinst_HEADERS += examples/client/client.h
|
||||
examples_client_client_SOURCES = examples/client/client.c
|
||||
examples_client_client_LDADD = src/libwolfssh.la
|
||||
examples_client_client_DEPENDENCIES = src/libwolfssh.la
|
||||
endif
|
||||
|
||||
dist_example_DATA+= examples/client/client.c
|
||||
DISTCLEANFILES+= examples/client/.libs/client
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
# vim:ft=automake
|
||||
# All paths should be given relative to the root
|
||||
|
||||
if BUILD_EXAMPLE_SERVERS
|
||||
noinst_PROGRAMS += examples/echoserver/echoserver
|
||||
noinst_HEADERS += examples/echoserver/echoserver.h
|
||||
examples_echoserver_echoserver_SOURCES = examples/echoserver/echoserver.c
|
||||
examples_echoserver_echoserver_LDADD = src/libwolfssh.la
|
||||
examples_echoserver_echoserver_DEPENDENCIES = src/libwolfssh.la
|
||||
endif
|
||||
|
||||
dist_example_DATA+= examples/echoserver/echoserver.c
|
||||
DISTCLEANFILES+= examples/echoserver/.libs/echoserver
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
# vim:ft=automake
|
||||
# All paths should be given relative to the root
|
||||
|
||||
if BUILD_EXAMPLE_SERVERS
|
||||
noinst_PROGRAMS += examples/server/server
|
||||
noinst_HEADERS += examples/server/server.h
|
||||
examples_server_server_SOURCES = examples/server/server.c
|
||||
examples_server_server_LDADD = src/libwolfssh.la
|
||||
examples_server_server_DEPENDENCIES = src/libwolfssh.la
|
||||
endif
|
||||
|
||||
dist_example_DATA+= examples/server/server.c
|
||||
DISTCLEANFILES+= examples/server/.libs/server
|
||||
|
|
Loading…
Reference in New Issue