aboutsummaryrefslogtreecommitdiffstats
path: root/make/utilities.pm
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite the build system directive parser.Gravatar Peter Powell2016-09-161-412/+0
|
* Merge insp20Gravatar Attila Molnar2016-02-221-1/+2
|\
| * Replace deprecated tmpnam() callGravatar Richard Bradfield2015-07-221-1/+2
| | | | | | | | | | | | 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.
| * Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.Gravatar Peter Powell2014-10-251-0/+9
| | | | | | | | This is a modified version of 690c372. Fixes #905.
| * Add a work around for trampling over PKG_CONFIG_PATH.Gravatar Peter Powell2014-08-191-0/+1
| | | | | | | | | | | | The extend_pkg_path method will be removed in 2.2 as it causes problems with non-standard pkg-config paths. This commit adds a workaround until that happens.
* | Remove the PKG_CONFIG_PATH extension code from the build system.Gravatar Peter Powell2015-11-121-18/+0
| |
* | Move common code to make::common from make::utilities.Gravatar Peter Powell2014-12-071-55/+1
| | | | | | | | | | | | | | The other code in that file will be removed very soon so it has been left alone to avoid merge conflicts. This will help prevent insp20 merge conflicts in the future.
* | Add Perl module for console related code.Gravatar Peter Powell2014-12-071-36/+1
| | | | | | | | | | | | - Move prompt_* methods to this module. - Add methods for printing errors and warnings easily. - Add colour code helpers and switch all code to use them.
* | Merge insp20Gravatar Attila Molnar2014-07-251-3/+5
|\|
| * Fix various small problems with configure.Gravatar Peter Powell2014-06-261-3/+5
| | | | | | | | | | | | | | | | | | | | | | - Fix temporary files not being deleted after use. - Fix the option for disabling rpath. - Fix the help message: * Fix indentation of some help options. * Fix default paths not containing 'run'. * Remove documentation for --disable-ipv6 (exists but does nothing). * Remove documentation for --library-dir (does not exist). - Fix some minor errors in messages.
* | Replace the configure templating system with something better.Gravatar Peter Powell2014-05-231-9/+34
| | | | | | | | | | | | A large amount of this code can be removed when buildtool is done as we will not need to worry about the differences between BSD and GNU Make.
* | Merge insp20Gravatar Attila Molnar2014-04-071-4/+5
|\|
| * Merge pull request #784 from ShutterQuick/patch-1Gravatar Attila Molnar2014-02-281-2/+1
| |\ | | | | | | Fix build problem on Solaris
| | * Fix build problem on SolarisGravatar ShutterQuick2014-02-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -rpath only takes one dash Fixes the Solaris build \o/ ''' <fraggeln> SaberUK: http://m.theo.nu/jenkins/job/InspIRCd-2.0/435/label=solaris/console <-- <fraggeln> do you have any clue on why? <@Shutter> Hmm. Where did that extra - come from. <fraggeln> Shutter: no idea :) [...] <fraggeln> Shutter: sub make_rpath($;$) <-- in make/utilities.pm <fraggeln> thats where that extra - is'''
| * | Fix Solaris not being able to find modules without pkg-config.Gravatar Peter Powell2014-02-271-2/+4
| |/
* | Add a tool for running test builds.Gravatar Peter Powell2013-12-161-1/+16
| |
* | Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.Gravatar Peter Powell2013-11-181-0/+1
| | | | | | | | Also, fix a bug where eval() caused compile errors.
* | Clean up and move various subroutines.Gravatar Peter Powell2013-08-181-5/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix indentation of get_compiler_info and clean up slightly. - Move module_installed to make::utilities. - Remove promptnumeric (unused). - Rename clean to cmd_clean and rewrite. - Rename dir_check to prompt_bool and rewrite. - Rename dumphash to dump_hash. - Rename getcache to read_configure_cache and rewrite. - Rename getrevision to get_revision. - Rename makecache to write_configure_cache and rewrite. - Rename promptstring_s to prompt_string and rewrite. - Rename showhelp to cmd_help and rewrite. - Rename update to cmd_update and rewrite. - Rename yesno to prompt_bool and rewrite. - Replace getmodules with a <src/modules/m_*.cpp> glob.
* | Clean up the build system properties and related code.Gravatar Peter Powell2013-08-161-18/+0
| | | | | | | | | | | | | | | | | | | | - Deduplicate getcompilerflags, getdependancies, getlinkerflags. - Remove $NoPedantic (add -Wno-pedantic to $CompileFlags instead). - Remove --enable-freebsd-ports-openssl and all related code (this will be replaced with --no-pkg-config=[name] in the future). - Remove some unused build system properties. - Remove support for caching third party include and library paths (can cause unexpected problems when they change).
* | Remove detection of deprecated backticks which was added in 1.1b9.Gravatar Peter Powell2013-07-041-10/+0
|/
* Headers: update remaining scripts tooGravatar Robby-2012-04-201-8/+18
|
* Don't implement --atleast-version ourselves, incorrectlyGravatar danieldg2010-03-111-25/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12622 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Run a dependency check on modules so missing dependencies are detected ↵Gravatar danieldg2009-09-011-0/+1
| | | | | | during configure git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11566 e03df62e-2008-0410-955e-edbf42e46eb7
* Make pkg-config failure error clearerGravatar danieldg2009-06-261-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11417 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | 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
* Fix error when configuring with a custom directory: ↵Gravatar brain2009-02-111-1/+8
| | | | | | http://www.inspircd.org/forum/showthread.php?t=5419 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11085 e03df62e-2008-0410-955e-edbf42e46eb7
* fix typoGravatar peavey2009-01-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10995 e03df62e-2008-0410-955e-edbf42e46eb7
* Friendlify error message here tooGravatar brain2009-01-041-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10948 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra support for freebsd openssl, allow user to pick between ports and base ↵Gravatar brain2008-04-271-4/+7
| | | | | | version if they have both, default to ports version in interactive, require a flag in ./configure git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9591 e03df62e-2008-0410-955e-edbf42e46eb7
* More stuff so that freebsd users can still use the ports version of openssl ↵Gravatar brain2008-04-271-0/+18
| | | | | | if they want git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9590 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix this up a bit nicerGravatar brain2008-04-271-4/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9588 e03df62e-2008-0410-955e-edbf42e46eb7
* and make it work right...Gravatar brain2008-04-271-34/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9587 e03df62e-2008-0410-955e-edbf42e46eb7
* Add some stuff from the freebsd port based on ideas by Matthew Seaman which ↵Gravatar brain2008-04-271-0/+55
| | | | | | allow inspircd to use the base version of openssl on freebsd git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9586 e03df62e-2008-0410-955e-edbf42e46eb7
* Patch provided by danieldg for fixing 3-figure versions in configureGravatar brain2008-02-131-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8926 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert tmpfile cleanup from r8761, also make configure's perl version check ↵Gravatar aquanight2008-01-271-1/+0
| | | | | | happen during compilation phase so that people don't get millions of useless errors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8762 e03df62e-2008-0410-955e-edbf42e46eb7
* Some configure cleanups: like using perl functions/modules instead of ↵Gravatar aquanight2008-01-271-23/+24
| | | | | | system() (symlink, clear, mv, mkdir -p), clean up tmpfile for eval(), use \e instead of \033, and use a heredoc for the big banner on starting configure git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8761 e03df62e-2008-0410-955e-edbf42e46eb7
* Make sure that if an exec() macro fails its picked up before build timeGravatar brain2008-01-271-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8757 e03df62e-2008-0410-955e-edbf42e46eb7
* Aquanight's configure strict/fatal warnings patchGravatar brain2008-01-171-22/+28
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8731 e03df62e-2008-0410-955e-edbf42e46eb7
* Add --disable-rpath. Probably wont backport this for the time beingGravatar brain2007-11-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8475 e03df62e-2008-0410-955e-edbf42e46eb7
* Add 'require 5.8.0' to the very top of every module to make the failure ↵Gravatar brain2007-08-251-1/+3
| | | | | | message when you run an ancient perl a bit more descriptive. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7820 e03df62e-2008-0410-955e-edbf42e46eb7
* more headers.Gravatar peavey2007-07-171-5/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7468 e03df62e-2008-0410-955e-edbf42e46eb7
* Added the execruntime() function for Compile/Linker flags - executes shell ↵Gravatar special2007-07-171-0/+4
| | | | | | commands at compile time rather than during configure git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7458 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+383
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵Gravatar peavey2007-07-161-383/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* Add licensing headers to files which are missing them and make sure they are ↵Gravatar brain2007-04-071-0/+9
| | | | | | up to date in others (e.g. point at the developer page on the wiki not list names) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6759 e03df62e-2008-0410-955e-edbf42e46eb7
* New patch from BuildSmart for OS X support, not broken like the last oneGravatar w00t2007-02-011-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6473 e03df62e-2008-0410-955e-edbf42e46eb7
* Add check for openssl >= 0.9.7, and fix for if the library cant be found at allGravatar brain2007-01-211-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6424 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix broken function vcheck() that checks one dot-delimited version string ↵Gravatar brain2007-01-211-3/+3
| | | | | | against another git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6422 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra macro pkgconfversion("packagename", "version");Gravatar brain2007-01-211-1/+63
| | | | | | | | | dies if the version you specify isnt installed. Also added to m_sqlite3: pkgconfversion("sqlite3", "3.3") Note: this will die at configuration time, not compilation time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6421 e03df62e-2008-0410-955e-edbf42e46eb7