--- liblscp/trunk/configure.ac 2006/06/01 08:32:16 869 +++ liblscp/trunk/configure.ac 2010/09/28 18:00:38 2132 @@ -2,7 +2,7 @@ AC_INIT(src/client.c) AM_CONFIG_HEADER(src/config.h) -AM_INIT_AUTOMAKE(liblscp, 0.3.3) +AM_INIT_AUTOMAKE(liblscp, 0.5.6.2) #------------------------------------------------------------------------------------ # Rules for library version information: @@ -20,12 +20,13 @@ # 6. If any interfaces have been removed since the last public release, then set age # to 0. -SHARED_VERSION_INFO="0:11:0" +SHARED_VERSION_INFO="6:0:0" AC_SUBST(SHARED_VERSION_INFO) # 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) @@ -50,5 +57,5 @@ AC_CHECK_PROG(ac_doxygen, doxygen, [doc], []) AC_SUBST(ac_doxygen) -AC_OUTPUT(Makefile src/Makefile lscp/Makefile examples/Makefile debian/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h) +AC_OUTPUT(Makefile src/Makefile lscp/Makefile examples/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h)