[project @ 2005-07-23 13:28:24 by ross]
[ghc-base.git] / configure.ac
index 9a8107d..34ee36f 100644 (file)
@@ -82,11 +82,10 @@ FP_CHECK_CONST([O_BINARY], [#include <fcntl.h>], [0])
 # Check for idiosyncracies in some mingw impls of directory handling.
 FP_READDIR_EOF_ERRNO
 
-case "$target" in
-*-mingw32)
-       EXTRA_LIBS="wsock32, msvcrt, kernel32, user32, shell32" ;;
-*)
-       EXTRA_LIBS= ;;
+case "$host" in
+*-mingw32) EXTRA_LIBS="wsock32" ;;
+*-solaris2) EXTRA_LIBS="nsl socket" ;;
+*)     EXTRA_LIBS= ;;
 esac
 AC_SUBST([EXTRA_LIBS])