Added C++ wrapper script. #96

Open
wants to merge 8 commits into
from
View
@@ -253,6 +253,27 @@ AC_CHECK_DECL([mach_absolute_time],
[Define if mach_absolute_time is available.])],
, [[#include <mach/mach_time.h>]])
+AC_CHECK_DECL([pipe2],
+ [AC_DEFINE([HAVE_PIPE2], [1],
+ [Define if pipe2 is available.])],
+ , [[#define _GNU_SOURCE
+ #include <unistd.h>]])
+
+AC_CHECK_DECL([signalfd],
+ [AC_DEFINE([HAVE_SIGNALFD], [1],
+ [Define if signalfd is available.])],
+ , [[#include <sys/signalfd.h>]])
+
+AC_CHECK_DECL([forkpty],
+ [AC_DEFINE([FORKPTY_IN_LIBUTIL], [1],
+ [Define if libutil.h necessary for forkpty().])],
+ , [[#include <libutil.h>]])
+
+AC_CHECK_DECL([openpty],
+ [AC_DEFINE([OPENPTY_IN_LIBUTIL], [1],
+ [Define if libutil.h necessary for openpty().])],
+ , [[#include <libutil.h>]])
+
AC_CHECK_DECL([htobe64],
[AC_DEFINE([HAVE_HTOBE64], [1],
[Define if htobe64 and friends exist.])],
@@ -267,6 +288,11 @@ AC_CHECK_DECL([htobe64],
#include <sys/endian.h>
#endif]])
+AC_CHECK_DECL([getline],
+ [AC_DEFINE([HAVE_GETLINE], [1],
+ [Define if getline exists.])],
+ , [[#include <stdio.h>]])
+
AC_CHECK_DECL([IP_MTU_DISCOVER],
[AC_DEFINE([HAVE_IP_MTU_DISCOVER], [1],
[Define if IP_MTU_DISCOVER is a valid sockopt.])],
View
@@ -1,2 +1,3 @@
/mosh-client
/mosh-server
+/mosh
View
@@ -4,11 +4,12 @@ AM_LDFLAGS = $(HARDEN_LDFLAGS)
LDADD = ../crypto/libmoshcrypto.a ../network/libmoshnetwork.a ../statesync/libmoshstatesync.a ../terminal/libmoshterminal.a ../util/libmoshutil.a ../protobufs/libmoshprotos.a -lm $(TINFO_LIBS) $(protobuf_LIBS) $(OPENSSL_LIBS)
mosh_server_LDADD = $(LDADD) -lutil
+mosh_LDADD = $(LDADD) -lutil
bin_PROGRAMS =
if BUILD_CLIENT
- bin_PROGRAMS += mosh-client
+ bin_PROGRAMS += mosh-client mosh
endif
if BUILD_SERVER
@@ -17,3 +18,4 @@ endif
mosh_client_SOURCES = mosh-client.cc stmclient.cc stmclient.h terminaloverlay.cc terminaloverlay.h
mosh_server_SOURCES = mosh-server.cc
+mosh_SOURCES = mosh.cc
Oops, something went wrong.