mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-23 22:38:44 +01:00
Developer Environement setup
This commit is contained in:
parent
f89b98e1c3
commit
b7371802bf
@ -24,6 +24,10 @@ endif
|
||||
CFLAGS += -Wno-unused-parameter -Wno-unused-variable
|
||||
CFLAGS += -Ilibssh/include/ -Imsgpack/src
|
||||
|
||||
if IS_DEVENV
|
||||
CFLAGS += -DDEVENV
|
||||
endif
|
||||
|
||||
# Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
|
||||
# different flags.
|
||||
if IS_GCC
|
||||
|
@ -40,6 +40,13 @@ AC_CHECK_HEADERS(
|
||||
]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
devenv,
|
||||
AC_HELP_STRING(--enable-devenv, "dev env (localhost, port 2200, no auth checks)"),
|
||||
found_devenv=$enable_devenv
|
||||
)
|
||||
AM_CONDITIONAL(IS_DEVENV, test "x$found_devenv" = xyes)
|
||||
|
||||
# Is this a debug build?
|
||||
#found_debug=yes
|
||||
AC_ARG_ENABLE(
|
||||
|
5
tmate.h
5
tmate.h
@ -57,8 +57,13 @@ extern void tmate_decoder_commit(struct tmate_decoder *decoder, size_t len);
|
||||
|
||||
/* tmate-ssh-client.c */
|
||||
|
||||
#ifdef DEVENV
|
||||
#define TMATE_HOST "localhost"
|
||||
#define TMATE_PORT 2200
|
||||
#else
|
||||
#define TMATE_HOST "tmate.io"
|
||||
#define TMATE_PORT 22
|
||||
#endif
|
||||
|
||||
typedef struct ssh_session_struct* ssh_session;
|
||||
typedef struct ssh_channel_struct* ssh_channel;
|
||||
|
Loading…
Reference in New Issue
Block a user