From c835102e640db1481bcc78cdebc7f875d996d9c9 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:06:04 +0000 Subject: Run a dependency check on modules so missing dependencies are detected during configure git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11566 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 76f1543c6..f4d910050 100755 --- a/configure +++ b/configure @@ -817,6 +817,7 @@ if (($config{USE_GNUTLS} eq "n") && ($config{USE_OPENSSL} eq "n")) { print "Skipping SSL Certificate generation, SSL support is not available.\n\n"; } +depcheck(); writefiles(1); makecache(); @@ -1155,6 +1156,15 @@ EOF chmod 0744, 'inspircd'; } +sub depcheck +{ + getmodules(); + for my $mod (@modlist) { + getcompilerflags("src/modules/m_$mod.cpp"); + getlinkerflags("src/modules/m_$mod.cpp"); + } +} + sub prepare_dynamic_makefile { my $i = 0; -- cgit v1.2.3