diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-20 04:59:39 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-01-20 04:59:39 +0000 |
| commit | a2af08da0c33d2dcde870b491f62a8bd0c1c6b81 (patch) | |
| tree | feb35473da45947378fbc02defe39bcd79ef600e /ext/socket/extconf.rb | |
| parent | c5f4657aaa8a92db27dc722dee741f1b8e0da809 (diff) | |
| download | ruby-a2af08da0c33d2dcde870b491f62a8bd0c1c6b81.tar.gz ruby-a2af08da0c33d2dcde870b491f62a8bd0c1c6b81.tar.xz ruby-a2af08da0c33d2dcde870b491f62a8bd0c1c6b81.zip | |
This commit was generated by cvs2svn to compensate for changes in r372,
which included commits to RCS files with non-trunk default branches.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
| -rw-r--r-- | ext/socket/extconf.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index f71972386..449d5a278 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -1,18 +1,22 @@ -$LDFLAGS = "-L/usr/local/lib" +require 'mkmf' +$LDFLAGS = "-L/usr/local/lib" if File.directory?("/usr/local/lib") case PLATFORM when /mswin32/ test_func = "WSACleanup" have_library("wsock32", "WSACleanup") when /cygwin32/ - test_func = "cygwin32_socket" + test_func = "socket" +when /beos/ + test_func = "socket" + have_library("net", "socket") else test_func = "socket" + have_library("nsl", "t_open") have_library("socket", "socket") - have_library("inet", "gethostbyname") - have_library("nsl", "gethostbyname") end have_header("sys/un.h") if have_func(test_func) + have_func("inet_aton") have_func("hsterror") unless have_func("gethostname") have_func("uname") |
