]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Run a dependency check on modules so missing dependencies are detected during configure
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 1 Sep 2009 15:06:04 +0000 (15:06 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 1 Sep 2009 15:06:04 +0000 (15:06 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11566 e03df62e-2008-0410-955e-edbf42e46eb7

configure
make/utilities.pm

index 76f1543c67001eac96f7dfa4ae95241431914619..f4d91005013b80b8b56e409d93d77f2288c29fc5 100755 (executable)
--- 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;
index 22425714a27fc9efb6c7edaa75589a6c93293d83..ad7a32f8fbeaec29dcc0b1028a267f587e60896b 100644 (file)
@@ -454,6 +454,7 @@ sub translate_functions($$)
                my $err = $@;
                #$err =~ s/at .+? line \d+.*//g;
                print "\n\nConfiguration failed. The following error occured:\n\n$err\n";
+               print "\nMake sure you have pkg-config installed\n";
                print "\nIn the case of gnutls configuration errors on debian,\n";
                print "Ubuntu, etc, you should ensure that you have installed\n";
                print "gnutls-bin as well as gnutls-dev and gnutls.\n";