on Win32 platforms.
Define extra compiler flags necessary to build clean dlls.
PACKAGE=guile-readline
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
+AC_PROG_INSTALL
AC_PROG_CC
AM_PROG_CC_STDC
+AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
+dnl
+dnl Check for Winsock and other functionality on Win32 (*not* CygWin)
+dnl
+AC_CYGWIN
+AC_MINGW32
+EXTRA_DEFS=""
+if test "$MINGW32" = "yes" ; then
+ if test $enable_shared = yes ; then
+ EXTRA_DEFS="-D__SCM_IMPORT__ -D__READLINE_IMPORT__"
+ fi
+fi
+AC_SUBST(EXTRA_DEFS)
+
for termlib in ncurses curses termcap terminfo termlib ; do
AC_CHECK_LIB(${termlib}, tgoto,
[LIBS="-l${termlib} $LIBS"; break])