summaryrefslogtreecommitdiff
path: root/win/configure.cpp
AgeCommit message (Collapse)Author
2012-10-12Windows: In-depth cleanup (see details)ChrisTX
-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714
2012-10-05Windows: Fix broken buildChrisTX
Resolves a mistake made in c2f7fc047c2e5bbb899c820590ce07fee593b28f
2012-10-04Replace hardcoded paths with configurable onesChrisTX
This patchset aims to ease the packaging of InspIRCd for a system-wide installation scenario. Changes in detail: configure: Add the options --log-path and --data-path m_ssl_gnutls, openssl: Change the hardcoded "conf/" to the existent CONFIG_PATH macro m_xline_db: Make the location of xline.db configurable. It will use --data-path as default value, but this can be changed using the configuration files.
2012-08-14Fix Windows build that was broken by 9b66dd6.Peter Powell
2012-07-27Don't hard code the branch version.Peter Powell
2012-06-12fgets(): refer to the buffer size (no literals)Sir Poggles
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2012-04-09Remove outdated references to SVN.Peter Powell
2011-06-18Fix extras compilation under WindowsAdam
2011-06-08Final fixups for a working Windows buildAdam
2010-02-23Replace #define IPV6 with <config defaultbind="ipv6">, and autodetect if not ↵danieldg
specified git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12550 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-24Remove IOCP socket enginedanieldg
IOCP has been experimental since its introduction, and has not worked correctly for some time. Since we have no windows developer, remove the dead code. Most of the advantages of IOCP are not used by an ircd process regardless: we do not use threads for our client processing, and we add an extra copy operation that eliminates any gain from OS-level buffer reuse. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11970 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-12change vc70.pdb to vc90.pdb.. just cosmetic..peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11862 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-12Clean up the compile flags a little. BTW windows now builds again.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11860 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11Re-enable removal of a tmp file that was left out for debug.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11844 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-11Remove the -Dssize_t declaration now its typedeffed.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11836 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-10uhm, remove my debug output :)peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11819 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-10Add building of inspircd_version.h to windows port and remove the ↵peavey
overlapping values from inspircd_config.h. Use a similar uname-ish build of SYSTEM info string as well as using the same exact info for VERSION and REVISION as the *nixes. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11818 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Strip SUPPORT_IP6LINKS #definedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-15Update all wiki links to point to the new wiki. This was done automatically ↵psychon
with the following command, only .Makefile.inc got some indent fixups by hand. for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02Update copyrights for 2009.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-17Merge vc90 update patch from IronLegend, thanksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10555 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-09fixed a /MT to be /MDbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10484 e03df62e-2008-0410-955e-edbf42e46eb7
2008-09-06Auto update modules from src/modules/extra by recopying them in configure if ↵brain
they exist also in src/modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10420 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-24Properly give the service specific exit code on failure to start. Now we ↵brain
just need to find out how to retrieve this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10240 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-15Base stuff for named pipe IPCbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9910 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-13Win32 compilation fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9904 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-25Remove the limits from here toobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9803 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-29Backport fix for stripcolour not stripping colour codes, reported by ↵brain
jackmcbarn - thanks. Also make rebasing neater, output to current console/output window of visual studio, not a new console git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9592 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-21Merge in large patchset from GreenReaper, useful fixes for freeing a ton of ↵brain
different things on shutdown for tidyness, and a few stack corruption fixes in the mode handler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9565 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-18Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, ↵brain
lots of thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-16Revert back to /MT, this shit isnt working and its too late to think straightbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9523 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-16/MT -> /MDbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9522 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-16Rebase modules a meg higher than command objects so they dont collidebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9520 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-16Automatic rebasing of load addresses for .so files on windows, thanks to ↵brain
GreenReaper for the hints and tips git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9519 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13Correct indentationbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9486 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13Eliminate now-pointless labelbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9483 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13Whack code duplicationbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9481 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13Whack gotos here toobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9480 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-13Fix 4-space indents :<brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9479 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-02Remove MAXCLIENTS, this is supported at runtime by the softlimit anyway.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9265 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-15Support IPV6 links in configurebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9100 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-22Now compiles with win32thread and testsuitebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8993 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-22Add extra stuff to compile threadengine_win32.cppbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8989 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-18Change defaults to ones that match our stable buildbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8967 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-01remove m_ssl_openssl from modules directory when rerunning configurefez
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8775 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-01Added OpenSSL scriptage.fez
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8774 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-28Remove duplicate calls (thanks fez)w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8763 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10Header update: 2007 -> 2008w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23Windows socket engine tweaksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8334 e03df62e-2008-0410-955e-edbf42e46eb7