220 Commits

Author SHA1 Message Date
Baruch Siach 7196dfdb26 configure.ac: link test for -fstack-protector-all
There are (broken) compilers out there that accept -fstack-protector-*
parameters, but do not provide the needed ssp library. As a result,
build does not fail, but link does. Use the local check_link_flag
autoconf function to correctly test for SSP availability.

Required for the Imagination Technologies Codescape IMG MIPS
toolchain, version 2015.10 (and who knows what else).

Fixes #744.
2016-04-07 20:05:06 -04:00
John Hood 08f64a750a Prefer the system cc/c++, not GCC 2016-03-30 23:52:19 -04:00
john hood a47917b976 configure.ac: Do s/-pthreads -lpthreads/-pthreads/ for protobuf
protobuf uses an obsolete automake pthreads detection macro,
which results in "pkgconfig --libs protobuf" returning
"-lprotobuf -pthread -lpthread" on Linux.  Remove
the unnecessary and dangerous -lpthread in that case.

Fixes #727, mosh-server crash in libutempter on Debian Sid.
2016-03-18 20:31:01 -04:00
John Hood caab7a7d88 configure.ac: always enable distcheck warning errors 2015-12-06 17:47:11 -05:00
John Hood b41bad918d Make Terminal::Framebuffer::Rows shared and copy-on-write.
* Support both std:: and std::tr1:: shared_ptr. FreeBSD 10 now uses C++11 by default.
* Remove Framebuffer pointers in STMClient
2015-12-06 17:42:34 -05:00
John Hood 0eb614809a Add configurable support for Apple Common Crypto and Nettle libraries. 2015-10-16 19:00:42 -04:00
John Hood 29112b410a configure: add --enable-warnings=distcheck
This disables -Werror everywhere but "Linux".
The heuristic is rather crude.
2015-10-03 03:46:17 -04:00
John Hood 3c3b356cb5 Bump version to 1.2.5.
Signed-off-by: John Hood <cgull@glup.org>
2015-07-12 12:48:22 -04:00
John Hood 7f7a1beb0f Fix bad bash-completion directory in non pkg-config case.
Signed-off-by: John Hood <cgull@glup.org>
2015-06-28 16:13:35 -04:00
John Hood d988cad455 configure.ac: respect --prefix for bash completion
Signed-off-by: John Hood <cgull@glup.org>
2015-06-28 14:43:25 -04:00
John Hood 8905127ef6 Bump version to 1.2.4.95rc2 (1.2.5 release candidate.)
Signed-off-by: John Hood <cgull@glup.org>
2015-06-26 18:28:46 -04:00
John Hood dee1a2eecc Improve Debian bash-completion support
* Autoconf queries pkgconf for bash-completion dir-- resolves
  lintian's `package-install-into-obsolete-dir` diagnostic
* Use improved completion snippet from
  <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782169>
* Remove old /etc/bash_completion.d/mosh "conffile" with
  dh-maintscript + dpkg-maintscript-helper

Closes #628.

Signed-off-by: John Hood <cgull@glup.org>
2015-06-25 01:02:17 -04:00
John Hood c532429784 1.2.4.95rc1 pre-release.
Includes Debian and Fedora packaging.  Mac OS X package build is still
broken.

Signed-off-by: John Hood <cgull@glup.org>

Closes #625
2015-06-09 23:09:07 -07:00
Anders Kaseorg fb97e54b2f configure: Add -Wmissing-declarations to maximum compiler warnings set
This helps to catch inconsistent declarations in headers that weren’t
included, and local functions that are not marked static.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-06-04 23:52:03 -04:00
Anders Kaseorg af720b41e1 configure.ac: Intentionally underquote m4_normalize calls
This works around a bug in Autoconf 2.64 and earlier, which generated
ridiculous symbols like
  /* #undef HAVE_M4_NORMALIZE___FCNTL_H__LANGINFO_H__LIMITS_H__… */
instead of the ones we need.  It was fixed by v2.65~21:
  http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=81c80d1bf6c8ddf732d0b89f6fc5e306dac9705e

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-05-25 02:24:12 -04:00
Anders Kaseorg 553918d3f2 Connection: Support IPv6 addresses
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2013-08-17 09:02:44 -04:00
Jérémie Courrèges-Anglas 9314ea18fa use betoh64 if be64toh not found
Instead of looking for htobe64 which is be available both when
be64toh or betoh64 are, check for the latter functions.  If we
find betoh64 but not be64toh, use compat #defines.  If both
can't be found, search for OSX' OSSwapHostToBigInt64.
Also include sys/types.h in byteorder.h (which is necessary for
byteorder functions on OpenBSD), and incidentally fixes build
of networkfragment.cc.

Fixes build on OpenBSD

Signed-off-by: Jérémie Courrèges-Anglas <jca@wxcvbn.org>
2013-04-16 11:11:45 +02:00
Jérémie Courrèges-Anglas 24b078a5a1 workaround for systems not providing pselect
using a mix of good old select and sigprocmask

Signed-off-by: Jérémie Courrèges-Anglas <jca@wxcvbn.org>
2013-04-16 11:09:42 +02:00
Anders Kaseorg 8ff636d54e Work around automake bug that dropped portability warnings
There’s a bug in automake ≥ 1.10, < 1.12 where ‘-Wall foreign’
incorrectly turns off warnings about portability issues.  To get
consistent results across automake versions, use ‘foreign -Wall’
instead.

http://debbugs.gnu.org/cgi-bin/bugreport.cgi?bug=7669

Signed-off-by: Anders Kaseorg <andersk@mit.edu>

Closes #413
2013-04-15 13:37:52 -04:00
Keith Winstein 1b9915fcaf Bump version to 1.2.4a 2013-03-27 18:36:03 -04:00
Keith Winstein 688bf21b07 Bump version to 1.2.4 2013-03-27 00:28:47 -04:00
Keith Winstein 4668dc595f Bump version to 1.2.3.95rc1 (1.2.4 release candidate) 2013-03-10 17:52:56 -04:00
Keith Winstein 1bd38e6dab Include sys/uio.h to fix OpenBSD build problem (closes #391) 2013-03-10 16:58:16 -04:00
Anders Kaseorg 7b9e548aa0 Run tests with ‘make check’
The configure --enable-tests flag is no longer needed because
check_PROGRAMS are not built until you run ‘make check’.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2013-03-10 15:47:33 -04:00
Keith Winstein 1ee95974bc Since terminfo is guarded by include guard, need to define HAVE_CURSES_H 2013-01-18 12:11:55 -05:00
Anton Lundin dd5a69bc70 Conditional curses detection
Make the whole extra curses/ncurses/ncursesw only check if we didn't
find tinfo the "old" way.
2013-01-17 16:44:06 +01:00
Anton Lundin eeb8ae99d7 Reintroduce pkg-config based searching for ncurses
Fixes issue rased in #358
2013-01-17 16:44:06 +01:00
Anton Lundin 4b1da58ae0 Convert all tabs to 4 whitespaces
Tabs where erronusly introduced in 993abf57
2013-01-17 16:44:06 +01:00
Keith Winstein 1034f7092a Wrap termio.h include in guard 2012-12-12 18:03:15 -05:00
Anton Lundin 993abf57f1 Rework curses detection
Detect diffrent variants of curses and use them.
2012-12-01 12:53:28 +01:00
Luke Mewburn 3e3510d382 Display results at end of configure.
Display configuration results at end of configure run,
including the version, c++ compiler, and various
compiler flag variables.

Signed-off-by: Luke Mewburn <luke@mewburn.net>
2012-10-29 15:03:13 -04:00
Keith Winstein c53a174d0c Revert "Check for netinet/ip.h (now that we are using it), and don't also use in.h"
This reverts commit 0909ea55d6.
2012-10-22 10:50:07 -04:00
Keith Winstein 0909ea55d6 Check for netinet/ip.h (now that we are using it), and don't also use in.h 2012-10-22 10:34:16 -04:00
Keith Winstein 73a2675e8c Bump version to 1.2.3 2012-10-19 15:33:48 -04:00
Keith Winstein 9c34f5b279 Bump version to 1.2.2.95rc1 (1.2.3 release candidate) 2012-10-05 19:50:52 -04:00
Keith Winstein 0311365810 Read utmpx directly instead of using "who", and prettify detached warning 2012-09-28 20:06:04 -04:00
Keith Winstein 9ac3b65090 Respond to explicit congestion notification (slow down sender) 2012-09-28 19:07:31 -04:00
Timo Sirainen 0c5307f345 Added forkpty() and cfmakeraw() fallback implementations if they don't exist.
Signed-off-by: Timo Sirainen <tss@iki.fi>
2012-08-11 17:14:44 -04:00
Timo Sirainen cc0542dfe1 Test if -lsocket and -lnsl are needed (for Solaris)
Signed-off-by: Timo Sirainen <tss@iki.fi>
2012-08-11 17:14:44 -04:00
Keith Winstein c073ad364a get_SSH_IP gracefully handles missing, IPv6-formatted environment var
Closes #292 github issue.
2012-07-26 22:54:45 -04:00
Keith Winstein 57c4904ed8 Switch to OpenSSL base64 routines 2012-07-20 16:00:21 -04:00
Keith Winstein cd285ba28f Bump version to 1.2.2. 2012-06-12 14:56:05 -04:00
Keith Winstein 778b5afc50 Bump version to 1.2.1. 2012-05-25 18:07:19 -04:00
Keith Winstein 0b5a643964 Bump version to 1.2.0.97 (1.2.1 release candidate) 2012-05-23 12:19:09 -04:00
Keith Winstein 9b75ab0da7 Have Debian package install ufw and bash_completion.
Closes #248.
2012-05-23 07:23:44 -04:00
Keith Winstein 6594ae35e9 Make bash_completion installation default to off. 2012-05-23 06:38:30 -04:00
Keith Winstein a7818c612c Install bash_completion rule and (optionally) UFW firewall profile 2012-05-23 06:08:45 -04:00
Keith Winstein fa5b48c1a9 Bump version to 1.2.0.95 (1.2.1 release candidate) 2012-05-23 03:37:25 -04:00
Keith Winstein 5e86700a0a Fix OS X 10.5 problem where FD_ISSET() argument isn't const 2012-05-23 03:19:36 -04:00
Keith Winstein 7700984bbb Revert "Use protobuf's Gzip streams"
This reverts commit b0e05776f1.
2012-05-23 01:55:57 -04:00