summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-18 17:46:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-18 17:46:32 +0000
commitf791758ec88f30bbc789eda58e97e7c4b83a73f4 (patch)
tree3ce8c9fd8446d2a1ecae5873d591d2b5758fbe38
parenta1ecef8e7ceeb547389f2554ca6d537079f6894b (diff)
Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6370 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 5a3015fb3..fc7ec4979 100755
--- a/configure
+++ b/configure
@@ -1007,6 +1007,17 @@ EOF
}
chomp($modules); # Remove Redundant whitespace..
+ opendir(DIRHANDLE, "src/modules");
+ foreach $name (sort readdir(DIRHANDLE)) {
+ if ($name =~ /^m_(.+?)$/) {
+ if (opendir(MDIRHANDLE, "src/modules/$name") != 0) {
+ closedir(MDIRHANDLE);
+ $modules .= "$name.so ";
+ }
+ }
+ }
+ closedir(DIRHANDLE);
+
# Write all .in files.
my $tmp = "";
@@ -1263,6 +1274,7 @@ EOCHEESE
print FILEHANDLE " ranlib $name.a$crap3\n";
print FILEHANDLE " \$(CC) -pipe $liflags -shared -o $name.so $name.a\n";
closedir(MDIRHANDLE);
+ $crud = $crud . " install -m \$(INSTMODE) $name.so \$(MODPATH)\n";
}
}
}