summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
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";