Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[project @ 2005-01-25 17:06:39 by ross]

add Cabal package descriptions
  • Loading branch information...
commit ff21afc395dbd9821b2656bc28bb8008565a0178 1 parent e9a1fcc
ross authored
Showing with 38 additions and 0 deletions.
  1. +20 −0 configure.ac
  2. +3 −0  network.buildinfo.in
  3. +15 −0 network.cabal
View
20 configure.ac
@@ -47,4 +47,24 @@ AC_EGREP_HEADER(sendfile, sys/socket.h,
AC_CHECK_FUNCS(gethostent)
+case "$target" in
+*-mingw32)
+ EXTRA_SRCS="cbits/initWinSock.c, cbits/winSockErr.c, cbits/asyncAccept.c"
+ EXTRA_LIBS=wsock32
+ CALLCONV=stdcall ;;
+*-solaris2)
+ EXTRA_SRCS="cbits/ancilData.c"
+ EXTRA_LIBS="nsl, socket"
+ CALLCONV=ccall ;;
+*)
+ EXTRA_SRCS="cbits/ancilData.c"
+ EXTRA_LIBS=
+ CALLCONV=ccall ;;
+esac
+AC_SUBST([CALLCONV])
+AC_SUBST([EXTRA_LIBS])
+AC_SUBST([EXTRA_SRCS])
+
+AC_CONFIG_FILES([network.buildinfo])
+
AC_OUTPUT
View
3  network.buildinfo.in
@@ -0,0 +1,3 @@
+cc-options: -DCALLCONV=@CALLCONV@
+c-sources: @EXTRA_SRCS@
+extra-libs: @EXTRA_LIBS@
View
15 network.cabal
@@ -0,0 +1,15 @@
+name: network
+version: 1.0
+license: BSD3
+maintainer: libraries@haskell.org
+description: Networking-related facilities.
+build-depends: base, parsec
+exposed-modules:
+ Network.BSD,
+ Network.CGI,
+ Network.Socket,
+ Network.URI,
+ Network
+include-dirs: include, ../../ghc/includes
+includes: "HsNet.h"
+c-sources: cbits/HsNet.c
Please sign in to comment.
Something went wrong with that request. Please try again.