Peter Powell
806e57433a
Rewrite the build system directive parser.
2016-09-16 04:23:56 +01:00
Peter Powell
6c98c29874
Fix print_format breaking when formatting empty strings.
2016-09-14 23:47:01 +01:00
Peter Powell
4133ccb043
Allow print_error and print_warning to take multiple lines.
2016-09-14 23:47:01 +01:00
Peter Powell
b8d85c6251
Update stuff for the new versioning system.
2016-09-02 22:13:22 +02:00
Peter Powell
2a419c7525
Fix linker flags being in the wrong place on static builds.
2016-08-19 16:10:00 +01:00
Attila Molnar
b9e11915a9
Merge insp20
2016-08-17 12:49:48 +02:00
Attila Molnar
4d36019385
Include <array> or <tr1/array> globally
2016-08-08 15:07:32 +02:00
Peter Powell
9401f1fbc3
GCC should never assume that this can not be null.
2016-06-27 15:41:27 +01:00
Peter Powell
0d7d6a9d09
Pass INSPIRCD_VERBOSE through the environment to unit-cc.
2016-06-27 00:35:16 +01:00
Peter Powell
ff53aa7282
Fix cleaning files generated by configure.
...
This is an oversight from f79a55616b5ff05d4f2e6b031a17be5668d1d3ea.
2016-06-27 00:35:15 +01:00
Peter Powell
955b0d74dc
Fix extraneous quotes in makefile template.
2016-04-10 04:33:25 +01:00
Peter Powell
c0ec56e9c7
Fix "use of uninitialized value $key in hash element" error.
2016-04-04 13:51:32 +01:00
Peter Powell
4ad12dd44e
Rename M to INSPIRCD_MODULE.
2016-04-04 13:20:21 +01:00
Peter Powell
4c089bd681
Rename T to INSPIRCD_TARGET.
2016-04-04 13:20:21 +01:00
Peter Powell
eaa3de48d2
Rename D to INSPIRCD_DEBUG.
2016-04-04 13:20:21 +01:00
Peter Powell
be74a8c8d2
Rename V to INSPIRCD_VERBOSE.
2016-04-04 13:20:21 +01:00
Peter Powell
30bd7bb39f
Rename PURE_STATIC to INSPIRCD_STATIC.
2016-04-04 13:20:21 +01:00
Peter Powell
eced506220
Delete modules cautiously when doing a deinstall.
2016-03-25 12:33:30 +00:00
Peter Powell
ba0649304a
Partially revert "Quote paths in the makefile".
...
There is no need to quote BASE and {BIN,CON,DAT,MOD,LOG}PATH
because they are alreaady quoted. {BUILD,SOURCE}PATH however
are unquoted so their usages still need to be quoted.
This reverts commit dbcbf9647d0abb421f8a84b41e674f403c91ce8f.
2016-03-25 12:29:52 +00:00
Peter Powell
79f207e729
Simplify the configure cache file format.
...
This prevents the need to implement escaping of values which was
a bug in the previous format.
2016-03-22 23:39:14 +00:00
Peter Powell
37d939829b
Move the configure cache to the .configure directory too.
2016-03-22 23:39:03 +00:00
Peter Powell
f79a55616b
Write generated templates to the .configure directory.
2016-03-22 23:38:44 +00:00
Peter Powell
fb58d69bf5
Fix a typo in parse_templates.
2016-03-22 23:38:43 +00:00
Peter Powell
7c31c005fc
Extract directory creation code to its own subroutine.
2016-03-22 23:38:37 +00:00
Peter Powell
8aced44661
Fix 'cron' and 'restart' in the helper not forwarding arguments.
2016-03-21 17:15:50 +00:00
Peter Powell
dbcbf9647d
Quote paths in the makefile.
...
This prevents problems caused by paths with spaces in them.
2016-02-26 14:10:57 +00:00
Attila Molnar
0b63ccd0b5
Merge insp20
2016-02-22 12:52:18 +01:00
Peter Powell
c361469898
Fix not having a CPU count when the lookup command is missing.
2016-02-20 14:26:02 +00:00
Attila Molnar
bbc6a0bbbe
Refuse to link modules to the core binary in dynamic builds
...
Fixes issue #912
2015-11-16 10:26:27 +01:00
Peter Powell
6bf55c1b05
Remove the PKG_CONFIG_PATH extension code from the build system.
2015-11-12 00:21:31 +00:00
Peter Powell
7d0b4a4a07
Generate a 2048-bit dhparams unless explicitly specified.
2015-10-24 22:47:30 +01:00
Peter Powell
cd67a0a6f9
Fix detection of the Apple variant of Clang.
...
This splitting of compiler names mirrors the change implemented by
other build systems like cmake.
2015-09-23 21:52:27 +01:00
Peter Powell
7da9057946
Fix "make -jX debug install" causing linker errors.
2015-07-29 23:46:33 +01:00
Attila Molnar
ec5529639d
Merge pull request #1076 from SaberUK/insp20+kqueue
...
[2.0] Fix checking whether kqueue/stdint/strlcpy are available.
2015-07-23 01:07:53 +02:00
Richard Bradfield
79d1a436bb
Replace deprecated tmpnam() call
...
From Perl 5.22 onwards, POSIX::tmpnam() has been deprecated (without the
usual 2 year deprecation cycle), using the File::Temp module instead
preserves compatibility while allowing compilation on 5.22 and later.
2015-07-22 01:18:03 +01:00
Peter Powell
0b4285abd1
Add missing copyright headers to test files.
2015-07-21 23:34:22 +01:00
Peter Powell
4c751dbbe8
Switch <stdint.h> test to use a test file too.
2015-07-21 23:30:54 +01:00
Peter Powell
e5cfa9c0c2
Switch strlcpy test to use a test file too.
2015-07-21 23:22:17 +01:00
Peter Powell
3fbba606c3
Fix checking whether kqueue is available.
...
It seems like the newer OS X versions don't put headers into the
system include directories. Switch to using a test file instead.
2015-07-21 23:22:09 +01:00
Attila Molnar
539abb9e93
Merge pull request #1063 from SaberUK/insp20+cert-warning
...
[2.0] Show a better warning when certtool/openssl are missing.
2015-06-26 00:00:25 +02:00
Peter Powell
0207736989
Log STDOUT and STDERR in the launchd script.
2015-06-24 23:06:11 +01:00
Peter Powell
4e3d7a6e30
Show a better warning when certtool/openssl are missing.
2015-06-15 21:30:27 +01:00
Peter Powell
2ad8a6791b
Fix system-wide installation of the data and log directories.
...
The existing method works fine when building with the default
paths but breaks when you are doing a system-wide installation.
2015-06-14 19:39:15 +01:00
Peter Powell
cf94052d8f
Fix modules with 2+ files not having their LinkerFlags parsed.
2015-06-03 14:59:08 +01:00
Attila Molnar
8ceae7ec0f
Increase entries in valgrind stack traces to 30 (--num-callers)
2015-05-19 23:31:02 +02:00
Peter Powell
01dee272ca
Remove run-cc.pl and all associated code.
...
As far as I can tell this only worked with older versions of GCC
and there is no value in fixing it as diagnostics have improved
since then and it makes errors hard to search for anyway.
This also shaves off an average of five seconds on each build on
my hardware. Neat!
2015-05-13 15:22:44 +01:00
Peter Powell
4b3e466c80
unit-cc: Remove workaround which existed for 2.0.x only.
2015-05-13 15:22:44 +01:00
Peter Powell
953ca72cfe
unit-cc: Use the same preamble as other Perl tools.
2015-05-13 15:22:44 +01:00
Peter Powell
70faab99c8
calcdep: Unify coremod and module building code.
2015-05-13 15:22:43 +01:00
Peter Powell
f02e766924
calcdep: Clean up some unused/duplicate variables.
2015-05-13 15:22:43 +01:00