summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2016-04-19Added --enable-Werror option to the configure scriptHaru1-1/+71
It's not always possible (if at all) to pass -Werror in the CFLAGS, since autoconf often generates test-code that produces warnings. Example/reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734104 Signed-off-by: Haru <haru@dotalux.com>
2016-04-19Corrected some variable name errors in the configure scriptHaru1-4/+4
The errors affected the script output when passing an invalid value to various --enble-xxx=yyy options. Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Enabled the -Wcast-qual diagnostic flag in the configure scriptHaru1-1/+50
Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Fixed compile warnings in clangHaru1-50/+2
- Fixed a -Wshorten-64-to-32 warning in case there's no thread-local-storage available - Disabled -Wcast-align for the time being Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Added explicit c99 mode to CFLAGS in the configure scriptHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2016-02-19Add to configure some flags what for now not create any warnings.Andrei Karas1-8/+496
2016-02-19Remove some unused macroses. Left macroses in socket.cAndrei Karas1-4/+9
2016-02-19Add noreturn attributes.Andrei Karas1-2/+58
Also add compiler flag for check for missing noreturn attributes.
2016-02-19Fix missing include dirs. Add compiler flag -Wmissing-include-dirs.Andrei Karas1-2/+52
2016-02-19Fix all known warnings from compiler flags -Wformat*Andrei Karas1-2/+154
Add all missing -Wformat flags into configure.
2016-02-19Fix some cast discards 'const' qualifier from pointer target type warnings.Andrei Karas1-1/+3
Add -Wcast-qual into configure comment.
2016-02-06Removed special handling of zlib in the configure scriptHaru1-32/+3
Now it's handled like all other libraries, and no longer adds an useless -I/usr/include option Signed-off-by: Haru <haru@dotalux.com>
2016-02-06Changed PCRE to properly use the system-provided pcre.hHaru1-19/+38
Signed-off-by: Haru <haru@dotalux.com>
2016-02-06Added /usr/local path to the header and library search pathsHaru1-1/+13
- This fixes PCRE search failures on FreeBSD and on OS X with Homebrew - Thanks to ultramage Signed-off-by: Haru <haru@dotalux.com>
2016-02-05Remove from configure flag -fvisibility=hidden.Andrei Karas1-2/+2
It prevent for show funcstion names in stack in asserts.
2016-01-21Remove unused PCRE_SUPPORT define.Andrei Karas1-2/+1
2016-01-21Enable pcre by default in configure and show error if pcre missing.Andrei Karas1-119/+12
2016-01-10Enable debug information in configure by default.Andrei Karas1-4/+16
2015-12-02Fixed an issue with the HPMDataCheck when PCRE is enabledHaru1-2/+3
- Follow-up to 300668d, thanks to AnnieRuru Signed-off-by: Haru <haru@dotalux.com>
2015-08-27Added an availability check for the -rdynamic linker optionHaru1-3/+34
- Fixes an issue preventing to compile on non-ELF systems (i.e. OS X) using recent gcc versions (such as 5.2) that are unable to filter out this option where it's not needed. - Thanks to Smokexyz for reporting the issue. Signed-off-by: Haru <haru@dotalux.com>
2015-08-17Fix wrong index access and probably wrong hp/sp calculation. Closes #653Andrei Karas1-1/+1
2015-08-15HPM compatibility improvementsHaru1-2/+2
Improved compatibility, portability and standards conformance. - Since it is not possible to portably and reliably re-use the core's symbols in plugins, symbols are no longer exported unless explicitly required, in the UNIX builds. This mimics the Windows behavior and adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas for making this possible. - For convenience, it is no longer necessary to call GET_SYMBOL, since the plugin will automatically import all the available symbols when it's loaded, depending on the included headers. - Plugins are now supposed to include the "common/hercules.h" header before including anything else. Incluing common/HPMi.h, common/cbasetypes.h or conf/core.h is no longer necessary, as those are guaranteed to be automatically included by hercules.h. - HPM API version bumped to 1.1. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15Improved plugin compile flag detection by the configuration scriptHaru1-81/+6
- This fixes plugin compilation on FreeBSD and Debian failing due to a missing -fPIC, in combination with some upcoming changes. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15Disable LTO by default. Because look like support for it broken in gcc 4.9 ↵Andrei Karas1-2/+2
and higher. For enable LTO need run: ./configure --enable-lto
2015-08-13Added check for execinfo.h/backtrace() to the configure scriptHaru1-1/+73
- This fixes compilation on systems such as FreeBSD, where -lexecinfo is necessary, or Cygwin, where execinfo.h is not available. Signed-off-by: Haru <haru@dotalux.com>
2015-05-30Dump stack in nullpo*/Assert* function.Andrei Karas1-1/+2
Also enable in configure linker flag -rdynamic.
2015-05-03Add sanity into LDFLAGS also.Andrei Karas1-2/+53
Fix small typo.
2015-05-03Split -fsanitize checks into multiple stepsHaru1-33/+750
This will allow fine-grained detection of the sanitizer options supported by the current compiler. Signed-off-by: Haru <haru@dotalux.com>
2015-05-02Fix out of bound access if skill level is 0.Andrei Karas1-8/+20
2015-02-23Add battle config option check_occupied_cells.Andrei Karas1-1/+1
If set check_occupied_cells to 0 it will allow walk to occupied cells And it heavy reduce CPU usage on walking.
2015-01-12Enable warning format-security.Andrei Karas1-87/+48
It was blocked in configure.
2015-01-12Remove from configure warning block maybe-uninitialized.Andrei Karas1-89/+1
This flag hide some usefull warnings.
2014-10-24Added support for other libmysqlclient variantsHaru1-40/+5
- This allows Hercules to correctly detect MariaDB and other drop-in replacements in distributions that rename their libmysqlclient (i.e. Debian / Ubuntu renaming it to libmariadbclient). - Closes issue #368 - Due to a bug in Ubuntu 14.04 LTS (incorrect output by the mariadb-provided version of `mysql_config --libs` and missing dependencies of libmariadbclient-dev), users of said distribution will have to manually specify ./configure LIBS="-lssl -lcrypto" as well as manually install the libssl-dev package, if they wish to use libmariadbclient-dev, as it will be unable to link otherwise (note: this issue isn't Hercules-specific) - Special thanks to Andrei Karas Signed-off-by: Haru <haru@dotalux.com>
2014-10-24Fixed an issue with $LIBS in the configure scriptHaru1-53/+53
- It is now possible to pass custom LIBS values to ./configure by specifying them on the command line Signed-off-by: Haru <haru@dotalux.com>
2014-10-23In configure add option --enable-staticAndrei Karas1-1/+127
This option enable static build for server binaries and map cache. For plugins this option enable static linking with gcc.
2014-09-08In configure add option --enable-sanitizeAndrei Karas1-1/+72
This option add run time checks for buffer overflows and some other memory related things. Not recommended for production.
2014-08-07Corrected several format-string errors through the codeHaru1-1/+177
- Functions that expect a printf-style format string are now marked as such, so that gcc/clang will emit a warning warn you if you mismatch format string and arguments. Signed-off-by: Haru <haru@dotalux.com>
2014-05-25Improved CFLAGS/CPPFLAGS handlingHaru1-168/+255
- Language extensions, such as _GNU_SOURCE are now enabled through CPPFLAGS by the configure script, rather than within the source code. - Moved some configure-time CFLAGS to CPPFLAGS, where appropriate. - Fixes bugreport:8211, thanks to Neoth http://hercules.ws/board/tracker/issue-8211-compiling-warning-in-linux Signed-off-by: Haru <haru@dotalux.com>
2014-03-07Updated configure script to support non-x86 platformsHaru1-1/+37
Signed-off-by: Haru <haru@dotalux.com>
2014-01-21Fixed --disable-packetver-re / --enable-packetver-re in ./configureHaru1-6/+6
- Follow-up to c50e094dff1898badd4136d9cdeb7318c803cb61 Signed-off-by: Haru <haru@dotalux.com>
2013-12-17Fixed some additional linux warningsHaru1-140/+679
- Fixed some warnings we had missed. - Improved -W cflag detection routines. - Only use -Wshadow if it's actually useful. Signed-off-by: Haru <haru@dotalux.com>
2013-12-17Increased warnings level in the unix build scriptsHaru1-12/+255
- They are now on par with the Xcode project (and similar to the MSVC ones) - this will make it easier to notice issues before committing in future. - If this causes, on your system, warnings that we didn't detect, please let us know! Signed-off-by: Haru <haru@dotalux.com>
2013-12-17Changed plugin extension from .so to .dylib on OS XHaru1-1/+4
- No functional changes. That's just the correct OS X file extension for dynamic libs. Signed-off-by: Haru <haru@dotalux.com>
2013-11-03Added some packetver-related flags to the UNIX build scriptHaru1-4/+106
- The --disable-packetver-re (or --enable-packetver-re=no) flag prevents the definition of PACKETVER_RE (without editing mmo.h) - The --with-key1=, --with-key2=, --with-key3= flags override the encryption key defined by the current packetver. All three flags are required if at least one is used, or they'll be ignored. - These options are mostly useful for buildbots, developers who often use git bisect, or users who want to minimize their diffs and still want to override those settings. - (unrelated minor tweak) Silenced an unnecessarily verbose STDERR message caused by the $CC shipped with clang-5 during the MinGW check.
2013-10-26Changed 'tick' variables to 64 bitHaru1-4/+10
- This fixes an issue with timers that stop working after about 24-49 days when the tick overflows (note that this may happen much earlier than that, and at hard to predict times, on some systems) - Updated the RDTSC help message in the configure script to also warn users about issues with SpeedStep enabled systems. - On Windows, tick() still has a resolution of 10~15ms (or even as low as 100ms on some systems). A TODO comment (thanks, Ai4rei) was added for a follow-up patch, as I want this one to be as small as possible) - Note: on Windows versions earlier than 6.x (Vista, Server 2008), the tick overflow issue is NOT fixed, since they don't support the function used to retrieve a 64 bit tick. This isn't a big issue, since those platforms are already - or going soon to be - out of their extended support period, and it's already advisable to upgrade, for other reasons. If you're the unfortunate user of such a system, it is recommended that you reboot your machine at least once every 49 days for Hercules to work reliably. - Note: To clear some doubts, since I've already been asked, this has absolutely NOTHING to do with 32/64 bit CPUs or OSes. It's all about a variable's size, not the size of registers of your CPU, and your 32bit CPU will be able to handle this just fine. Signed-off-by: Haru <haru@dotalux.com>
2013-10-09Added HPMHookGen tool, to re-generate hooks include filesHaru1-2/+87
- Slightly reformatted the include files (as produced by the new tool) - You normally won't need to use the generation tool, but in case you do, the software requirements are: * A Unix-compatible system (cygwin may work, or may not), capable to use the Hercules configure/make build system * perl (the perl executable must be in your $PATH) * doxygen (the command-line doxygen executable must be in your $PATH) - The generation tool was developed in collaboration with Ind (originally in php, the file here included is a tweaked version ported to perl) Signed-off-by: Haru <haru@dotalux.com>
2013-10-07Ensured explicit check for undefined references on shared objectsHaru1-39/+99
- On certain platforms, shared objects will be built without linker errors even if they have undefined references (but they'll fail to load if those references can't be found at runtime). - This resolves issues with plugins that on linux seem to compile, but won't load (or will lead completely unpredictable results) because they use symbols that may not exist. Special thanks to oss10110 for bringing it up. Signed-off-by: Haru <haru@dotalux.com>
2013-08-08Enabled Pre-Renewal builds in the CI buildbotHaru1-1/+35
Both Renewal and Pre-Renewal branches will now be built and tested. Signed-off-by: Haru <haru@dotalux.com>
2013-07-14Updated package name to Hercules in the autoconf scriptHaru1-364/+294
- Replaced old SVN version string with a git-compatible one - Fixed configure.in warnings on autoconf 2.68 or newer (wrapped code snippets in AC_LANG_SOURCE calls, as recommended by autoconf) - Re-generated configure script with autoconf 2.69 Signed-off-by: Haru <haru@dotalux.com>
2013-05-02Introducing Hercules Plugin Manangershennetsind1-0/+241
http://hercules.ws/board/topic/549-introducing-hercules-plugin-manager/ Signed-off-by: shennetsind <ind@henn.et>