summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-18 20:01:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-18 20:01:34 +0000
commit4e865f22598b6bfa9131fb487af29a1c8a8a1561 (patch)
tree85846aadd672fec0ebe406fc4023b7b7ecbe2ec1
parentfb39fcf822c5d0a06aab2e7c476360664d235f01 (diff)
Fixes for solaris
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1431 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 5152dc94d..2832f5554 100755
--- a/configure
+++ b/configure
@@ -32,7 +32,7 @@ $config{USE_EPOLL} = "y"; # epoll enabled
chomp($config{MAX_CLIENT_T} = `sh -c \"ulimit -n\"`); # FD Limit
chomp($config{GCCVER} = `gcc -dumpversion | cut -c 1`); # Major GCC Version
chomp($config{GCC34} = `gcc -dumpversion | cut -c 3`); # Minor GCC Version
-chomp($config{OSNAME} = `uname -s`); # Operating System Name
+chomp($config{OSNAME} = `/bin/uname -s`); # Operating System Name
if (!$config{OSNAME}) {
$config{OSNAME} = "Unknown"; # For use when uname fails.
@@ -383,7 +383,7 @@ sub getosflags {
$config{FLAGS} = "-fPIC -frtti $OPTIMISATI -Woverloaded-virtual $config{OPTIMISATI}";
$config{MAKEPROG} = "make";
}
- if ($config{OSNAME} eq "SunOS") {
+ if ($config{OSNAME} =~ /SunOS/) {
# solaris/sunos needs these
$config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl";
}
@@ -437,7 +437,7 @@ sub writefiles {
#define MAXBUF 514
EOF
- if ($config{OSNAME} eq "SunOS") {
+ if ($config{OSNAME} =~ /SunOS/) {
print FILENAME "#define IS_SOLARIS";
}
if ($config{GCCVER} > 3) {