summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-18 19:55:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-18 19:55:37 +0000
commit004335d118c65662e406ded71ab2842af330029e (patch)
tree7d3f7defd9df2004d14a7747358447b9b9f76587 /configure
parent9a0956f8aad221a220b45d0dcc166a63e514302f (diff)
updated for solaris -lsocket / -lnsl
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1429 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 34e18cc5c..ee2f00a8b 100755
--- a/configure
+++ b/configure
@@ -383,6 +383,10 @@ sub getosflags {
$config{FLAGS} = "-fPIC -frtti $OPTIMISATI -Woverloaded-virtual $config{OPTIMISATI}";
$config{MAKEPROG} = "make";
}
+ if ($config{OSNAME} eq "SunOS") {
+ # solaris/sunos needs these
+ $config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl";
+ }
}
sub is_dir {
@@ -433,6 +437,9 @@ sub writefiles {
#define MAXBUF 514
EOF
+ if ($config{OSNAME} eq "SunOS")
+ print FILENAME "#define IS_SOLARIS";
+ }
if ($config{GCCVER} > 3) {
print FILEHANDLE "#define GCC3\n";
print FILEHANDLE "#define GCC34\n";