Giel van Schijndel
c2f0855e00
NTW is a multiplay mod, not a global mod. So move it to data/mods/multiplay.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5989 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-11 09:12:38 +00:00
Per Inge Mathisen
85b9e9b164
Remove irrelevant -Wextra from profiling debug build modes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5948 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-07 10:08:52 +00:00
Giel van Schijndel
1d57b4792f
Add the cross compilation options to configure's --help output
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5935 4a71c877-e1ca-e34f-864e-861f7616d084
2008-09-06 13:24:29 +00:00
Dennis Schridde
aa30a0fe6d
Amend r5726: Forgot to update configure
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5746 4a71c877-e1ca-e34f-864e-861f7616d084
2008-08-02 19:47:58 +00:00
Giel van Schijndel
0da42eeaff
Link ''with'' all symbols exported to the dynamic symbol table
...
* This option is needed to allow retrieving of decent back traces using backtrace_symbols_fd (GNU raw back trace extension) has some symbols to work with
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5675 4a71c877-e1ca-e34f-864e-861f7616d084
2008-07-26 18:50:29 +00:00
Giel van Schijndel
3fd663fd85
Add --disable-sound to the configure script, to disable sound at compile time
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5290 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-21 18:34:51 +00:00
Dennis Schridde
c29df7dae5
Variable to store default for distributor should not be the applicationdir variable...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5210 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-04 15:20:03 +00:00
Giel van Schijndel
6254f73329
Remove now useless testcase directory "tests" as its only testcase (t1000: tested level_parser.y) has no code left to test (due to r5163)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5165 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-24 12:48:26 +00:00
Giel van Schijndel
13c84db269
Disable optimisations (-O0) for --enable-debug=relaxed as well
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5129 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-17 10:48:26 +00:00
Giel van Schijndel
45c2a0676c
Don't check for strlcpy and strlcat in the configure script as simply #defining _XOPEN_SOURCE (what config.h does) is enough to prevent declarations of these functions from being included (thus the #inclusion of "frame.h" in strlfuncs.h should be enough (this should fix bug #11609 )
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4915 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-04 13:56:27 +00:00
Giel van Schijndel
35d84d2fbf
Add the beginnings of an external unit test framework (i.e. it doesn't run in Warzone itself, it just links to pieces of Warzone's code to test it):
...
* Add a new directory with unit tests (/tests/)
* Run `make test` in this directory to execute all these unit tests and get reports from them if they fail
* Add a single unit test to the directory which tests level_parser.y and the input it should & shouldn't accept
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4883 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-02 18:44:01 +00:00
Giel van Schijndel
b9857f9bf9
Detect whether the OS already supplies strlcpy and strlcat and don't define our own if it does:
...
* Add m4 macros AC_STRLCPY_CHECK and AC_STRLCAT_CHECK for use in the autoconf script
* Don't define our implementation when HAVE_STRLCPY or HAVE_STRLCAT is defined
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4876 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-02 12:04:20 +00:00
Dennis Schridde
ab8b41239d
Remove stack-protector, as it breaks my MinGW build.
...
Please add it manually on the commandline whenever you need it.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4716 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:51 +00:00
Dennis Schridde
faff55ad5e
Move -lstdc++ from Makefile to configure.ac
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4715 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:45 +00:00
Dennis Schridde
afc1ed6605
Cleanup configure.ac
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4714 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 23:56:40 +00:00
Giel van Schijndel
44b3b5c1e0
Compile with -Wwrite-strings to warn about passing string constants into char* variables as opposed to const char*
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4698 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 16:17:39 +00:00
Giel van Schijndel
40cc8f09ac
Give the configure and crossbuild scripts the possibility to specify the compression method on the command line (--with-nsis-compression)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4663 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-17 14:32:48 +00:00
Giel van Schijndel
42f7e913b3
Also check for Libiberty and BFD when crosscompiling for Windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4595 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 01:09:51 +00:00
Giel van Schijndel
b7c92bd0a1
GLC depends on FontConfig and FreeType, so link against that as well when crosscompiling for Windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4592 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 00:09:32 +00:00
Giel van Schijndel
0de6dfd9b3
* When checking for libraries Popt and PhysicsFS make sure to link against ${WIN32_LIBS} as well
...
* Expand ${WIN32_LIBS} to include -lz which PhysicsFS depends on and -lintl and -liconv which Popt depends on
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4591 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-14 00:02:36 +00:00
Giel van Schijndel
7ed537a019
Pass the ${PREFIX} variable from the crossbuild script to pkg-config
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4590 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-13 23:53:30 +00:00
Giel van Schijndel
2e758ba89d
add an --enable-static parameter to the configure script which tells pkg-config to pass libraries required for static linking
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4589 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-13 23:42:04 +00:00
Giel van Schijndel
6f0a6c4988
Also use a CPPFLAGS_FOR_BUILD (alongside CC and CXX) and pass it to the configure script as well
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4588 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-13 23:00:40 +00:00
Per Inge Mathisen
3c749e2ee3
Fix bug #11467 : Assert when loading a savegame in campaign. Reported by Dale Gill.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4554 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-09 19:54:14 +00:00
Per Inge Mathisen
274ae7c9a4
Enforce strict function prototypes for autoconf builds, and fix function prototype problems.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4487 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 15:34:55 +00:00
Giel van Schijndel
665e57dc12
Move the exceptionhandler to a directory of its own
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4484 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-05 15:11:43 +00:00
Per Inge Mathisen
be566a7d6d
Add -Wcast-align and -Wmissing-declarations to autoconf debug builds, and fix warnings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4403 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-28 23:28:44 +00:00
Per Inge Mathisen
38cfafe7b8
Rename --disable-debug to correct --enable-debug in configure --help
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4333 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-25 19:42:21 +00:00
Dennis Schridde
02fb26efff
Adapt autotools build to r4062
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4065 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-15 17:03:58 +00:00
Dennis Schridde
d58ef8fa12
Workaround stupid autoconf CFLAGS default
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4008 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 11:25:20 +00:00
Dennis Schridde
50ecf5e339
YY_NO_INPUT is now set just where needed. Apparently I forgot to commit this before.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3990 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 11:09:41 +00:00
Dennis Schridde
d8409c9819
- Don't define CFLAGS anymore, export WZ_CFLAGS instead, which can be overridden by make commandlines
...
- Set -DYY_NO_INPUT only in those places where needed
- Add some previously forgotten CFLAGS where needed
- Remove extranous -lintl from WIN32_LIBS
- Remove apparently unnecessary directory from Mac include (png_util doesn't need it either)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3986 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 02:01:46 +00:00
Dennis Schridde
9f44219b1c
Move addition of CFLAGS from configure.ac to the places they are actually needed.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3983 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 20:08:42 +00:00
Per Inge Mathisen
51ca960ed5
Add -Wmissing-field-initializers, fix missing field initializers, and make source
...
compile even if GCC is not C99 compatible.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3944 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 18:27:43 +00:00
Giel van Schijndel
8425a89dbc
* Add SQLite 3.5.4 to the source tree (3.5.6 gives some warnings @ compile time which I don't trust)
...
* Patch it up so that the compiler doesn't generate 'cast to pointer from integer of different size' warnings (as these are harmless, but annoying if -Werror triggers compiler failure)
* Add this patch as lib/sqlite3/sqlite3.diff (to be able to keep track of it)
* Add it to the autotools, raw makefiles and Code::Blocks build systems, XCode and MSVC (and any others I'm forgetting here) still need updating
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3897 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 22:37:25 +00:00
Dennis Schridde
bdc4c57fa7
Port r3843 from branches/2.1: Autogenerate playerX.slo files
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3844 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-20 11:54:29 +00:00
Dennis Schridde
da7212b287
Merge r3827 + r3828 from branches/2.1. This fixes bug #11087 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3830 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-18 15:39:42 +00:00
Giel van Schijndel
f558eb0d61
Revert unintentional part of r3612
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3613 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-30 23:39:31 +00:00
Giel van Schijndel
4f93b03142
Make function-pointer array pLoadFunction a local (but still static) array instead of global
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3612 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-30 23:38:05 +00:00
Giel van Schijndel
1502e29c80
Include pkgconfig CFLAGS into our CPPFLAGS instead as they're really preprocessor options (as opposed to C compilation options)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3571 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 17:12:48 +00:00
Giel van Schijndel
0180eea2aa
Remove a strange left-over like variable invocation from configure.ac
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3570 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 17:05:01 +00:00
Giel van Schijndel
f7c58e57bb
Replace some CFLAGS which where really intended for the preprocessor with CPPFLAGS instead
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3568 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 16:56:05 +00:00
Per Inge Mathisen
ecc82d493e
Add two new --enable-debug modes, profile and debugprofile, to generate CPU usage profiles.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3501 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 21:16:11 +00:00
Dennis Schridde
46ee786db6
We never use Ogg nor Vorbis directly, so we should only implicitly depend on it via vorbisfile.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3363 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-05 20:42:23 +00:00
Dennis Schridde
e5babd8ba5
Most of the current WIN32_LIBS and WIN32_PRE_LIBS are only required because we choose to compile statically.
...
So they should be pulled in where static compilation is choosen: Via settings LIBS for configure in the __BUILD_SCRIPT, eg.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3362 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-05 20:41:39 +00:00
Dennis Schridde
3f6b52bef1
src/game.c: Minor beautification.
...
configure.ac: YY_NO_INPUT prevents Flex from defining input(), which we do not need, since we use our own YY_INPUT instead. Maybe we should use Flex's function instead?
lib/script/script_parser.y: scriptStoreVarTypes() was defined but never used.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3300 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 15:18:25 +00:00
Dennis Schridde
8d39dc6ce9
Revert pkg-config OpenGL check, since it doesn't work always, probably where Mesa is not installed.
...
Clean out stray OpenAL header check, forgotten when switching to pkg-config.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3279 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 15:42:59 +00:00
Dennis Schridde
1a6393cfdf
We dont have anymore int-to-pointer-cast warnings, yay!
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3278 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 15:36:46 +00:00
Dennis Schridde
cdda4cda8a
Use pkg-config checks for OpenAL and OpenGL. (OpenGL is actually tested against the Mesa version, and we still check for SDL_opengl.h.)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3277 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-31 15:33:03 +00:00
Dennis Schridde
09a8e33f61
Rename PACKAGE_MAINTAINER to PACKAGE_DISTRIBUTOR to clarify.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3144 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-23 21:14:02 +00:00