Commit Graph

115 Commits

Author SHA1 Message Date
Alexey Sokolov 561a18054c Yet another attempt to use CMake 2016-01-15 10:50:33 +00:00
Alexey Sokolov 4fe4a45dd6 Disable legacy encoding mode when modpython is loaded.
Python is not happy when using non-unicode text as str.

Fix #1229
2016-01-09 14:18:24 +00:00
Alexey Sokolov 582cd635f5 Fix --disable-tdns (thanks kerio) 2015-12-06 12:36:16 +00:00
Patrick Griffis be60ebb4b7 Fix bindir in service file 2015-11-15 18:26:15 -05:00
Alexey Sokolov 6ec64ebfba Merge branch '1.6.x'
Conflicts:
	ChangeLog.md
	configure.ac
	third_party/Csocket
2015-11-15 18:21:11 +00:00
Alexey Sokolov e2d313d3ba Revert version changes after releasing 1.6.2 to 1.6.x 2015-11-15 17:59:43 +00:00
Alexey Sokolov 55b5c24255 Increase the version number to 1.6.2 2015-11-15 17:36:31 +00:00
Alexey Sokolov 92ce58d25f ZNC 1.6.2-rc1 2015-11-02 21:10:51 +00:00
Alexey Sokolov 90ae78533f Rewrite integration test.
Pexpect was failing too often, even when starting a new process.
Now the test is using Qt and C++.

Fix #772
2015-10-17 15:27:18 +01:00
Alexey Sokolov f3762e8b05 Use termios instead of deprecated getpass().
Also this fixes flaky integration test. Sometimes it hanged because
getpass() sometimes didn't want to believe that it already got the
password from input.
2015-10-16 23:33:11 +01:00
J-P Nurmi f29363752b Travis CI: reduce the amount of builds to 5
So all (max 5) builds can run in parallel. This should speedup the CI
rounds a lot.

Candidates:
- Linux/Clang/normal
  We already have address and thread sanitizer -enabled Clang builds on
  Linux, and a normal Clang build on OSX.
- OSX/USE_SYSTEM_OPENSSL
  The system OpenSSL headers have been deprecated since OSX 10.7, and
  are being removed in OSX 10.11.
2015-09-20 23:19:12 +02:00
Alexey Sokolov 6f40e5ddca Import latest gtest to third_party to be able to use gmock 2015-09-06 21:42:37 +01:00
Paulo Flabiano Smorigo c223c851e1 Use prefix from autoconf for systemd unit
Close #974
2015-08-23 18:37:51 +01:00
Alexey Sokolov 6e15ee2eea In last commit I forgot to remove LIBZNC_VERSION from exports of configure.ac 2015-08-22 13:12:28 +01:00
J-P Nurmi a06bf1c985 Introduce a Message type (#506) 2015-08-15 12:26:16 +02:00
Alexey Sokolov 2dbd837851 Fix znc-buildmod on cygwin after rename of library 2015-07-21 00:03:26 +01:00
Alexey Sokolov c336ef5ec2 Cygwin: Rename libznc.dll to cygznc-1.7.dll
https://cygwin.com/ml/cygwin-apps/2015-07/msg00108.html
2015-07-19 13:49:18 +01:00
J-P Nurmi 0734c6ac4d Fix #887: define _FORTIFY_SOURCE only for optimized release builds
Otherwise building ZNC in debug mode gives a flood of warnings:

_FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
2015-07-13 13:31:54 +02:00
Alexey Sokolov a08d0497f9 User's PKG_CONFIG_PATH should be preferred over what was found using homebrew 2015-05-09 22:21:09 +01:00
Alexey Sokolov 1cce7f698f configure: change output style of homebrew detection 2015-05-04 14:23:29 +01:00
Alexey Sokolov 8f9aad4580 Merge branch '1.6.x'
Conflicts:
	src/User.cpp
2015-04-28 21:44:07 +01:00
Alexey Sokolov d335c3cdf6 configure.ac: specify required compiler versions
Close #956
2015-04-28 21:36:25 +01:00
Alexey Sokolov a08d737cbb Don't tell users to run "/gmake" after configure 2015-04-05 18:29:54 +01:00
Alexey Sokolov 398e9dec06 Support discovery of tcl 8.6 during ./configure 2015-03-30 22:45:45 +01:00
J-P Nurmi 197411e602 Display development version as "1.7.x" - ref #748 2015-03-01 23:04:37 +01:00
J-P Nurmi bd044cf6fc Display development version as "1.6.x" - ref #748 2015-02-28 09:36:32 +01:00
Thomas Kriechbaumer 53e5e99d42 add homebrew locations for openssl, icu4c, python3 2015-02-27 16:17:08 +00:00
Alexey Sokolov f54c3b9e2d Remove --with-openssl from ./configure
1. The same functionality is achievable via
./configure LDFLAGS=-L/foo/lib CXXFLAGS=-I/foo/include PKG_CONFIG_PATH=/foo/lib/pkgconfig
2. Only openssl had this special flag, but not python, not zlib, etc.
3. It's confusing, lots of people try --with-openssl=/usr/bin/openssl
2015-02-17 00:23:29 +01:00
J-P Nurmi 1f7fe5f576 Increase the version number to 1.6.1 2015-02-17 00:11:49 +01:00
J-P Nurmi 2397f8842a Bump the version to 1.7 2015-02-16 23:49:26 +01:00
Alexey Sokolov f47e8465ef Increase the version number to 1.6.0 2015-02-12 21:05:44 +00:00
J-P Nurmi 1c07c38477 configure: pass ICU build flags to modules 2014-11-06 23:08:51 +01:00
J-P Nurmi ba64324a39 Introduce patch level version number for bug fix releases
The patch level version number is ignored in module and config
version compatibility checks. Radically simplified, bug fix
releases shall not touch the headers nor change the config file.
2014-10-20 07:45:58 +02:00
ylfchild c4daa57344 fixed typo in configure.ac 2014-09-20 12:06:48 +00:00
BtbN 7b7d10fd84 Remove _GLIBCXX_CONCEPT_CHECKS debug define
This debug feature does not support any C++11 features.
It breaks for example the compilation of vector<unique_ptr>.

The upstream issue is:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57011
2014-09-05 23:56:41 +02:00
Alexey Sokolov 700c899698 Fix build on cygwin after switch to -std=c++11 2014-08-14 00:17:13 +01:00
Alexey Sokolov 1f89b67a88 Enable C++11.
It bumps requirements for SWIG to 3.0.0, and for compiler.
2014-08-11 21:13:53 +01:00
Alexey Sokolov 370659895b Increase the version number to 1.5 2014-04-14 22:48:50 +01:00
Alexey Sokolov 0696a6ed23 Cleanup old tests (pre-gtest) 2014-03-03 21:38:18 +00:00
Uli Schlachter 0a0be7710f configure: Fix --disable-charset
Somehow I ended up only testing the automatic detection and the error message
from --enable-charset. I totally forgot that --disable-charset should skip the
whole check.

Thanks to Robby for reporting this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-01 16:57:09 +01:00
Uli Schlachter a074c23e39 configure: Add --enable/disable-charset
This override the auto detection. If --enable-charset is given, but icu can't be
found, configure will error out.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-02-25 17:13:01 +01:00
Uli Schlachter 4676fa0a7f configure: Give a reason for disabled features
This adds a short reason to the summary at the end of configure (for options
where it makes sense, e.g. not debug or ipv6).

Example:

  charset:      no (icu-uc not found via pkg-config)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-02-24 18:27:07 +01:00
Alexey Sokolov a83c8239cf Fix znc-buildmod
It failed to build some modules...

Thanks to kay45 for reporting this
2014-02-17 00:48:42 +00:00
Alexey Sokolov 591b95ed54 MacOS X: require SWIG 2.0.12
To fix build of modpython
2014-02-09 23:46:14 +00:00
Alexey Sokolov cfc1227171 Drop old charset module
It didn't work well with webadmin
2014-01-25 13:50:07 +00:00
Alexey Sokolov c0a5ecb40b Add support for character encodings
Previous commit added support of it to Csocket.
When encoding is specified, core will convert incoming messages to UTF-8,
and outgoing messages from UTF-8.
When no encoding is specified, it will do nothing to bytes, like before.
This is to be changed somewhere in future, to have UTF-8 on wire by
default too.
When encoding's name starts with *, incoming messages will be treated as
UTF-8, if it is already correct UTF-8. Otherwise, it's converted.

Fix #151
Fix #366
2014-01-25 13:50:07 +00:00
Alexey Sokolov 72f171dd0d Don't redefine _FORTIFY_SOURCE if compiler already defines it 2014-01-19 10:13:30 +00:00
Alexey Sokolov 1790778417 Add ./configure --with-gtest=/path/to/gtest
The specified dir is expected to contain files DIR/src/gtest-all.cc and
DIR/src/gtest_main.cc

This is to make Debian happy, because make test doesn't require internet
access anymore.
2013-11-17 20:03:24 +04:00
Alexey Sokolov e8e95d770e Increase the version number to 1.3 2013-11-04 16:25:07 +04:00
Alexey Sokolov 49cf40b19c Increase the version number to 1.2 2013-11-04 16:07:13 +04:00