--- liblscp/trunk/configure.ac 2010/05/25 14:47:40 2098 +++ liblscp/trunk/configure.ac 2013/01/30 11:50:20 2406 @@ -2,7 +2,7 @@ AC_INIT(src/client.c) AM_CONFIG_HEADER(src/config.h) -AM_INIT_AUTOMAKE(liblscp, 0.5.6.2) +AM_INIT_AUTOMAKE(liblscp, 0.5.6.3) #------------------------------------------------------------------------------------ # Rules for library version information: @@ -26,6 +26,7 @@ # Checks for programs. AC_PROG_CC +AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL AM_PROG_LIBTOOL @@ -40,6 +41,12 @@ # Checks for library functions. AC_CHECK_FUNCS(strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname) +case $host in + *mingw*|*cygwin*) windows=yes ;; + *) windows=no ;; +esac +AM_CONDITIONAL(WINDOWS, test "$windows" = "yes") + # Checks for pthread library. AC_CHECK_LIB(pthread, pthread_create)