dnl On AIX 4.x and alpha, shared libs don't work for us at present, so
dnl disable them (we should probably use libtool there). Likewise on
-dnl CygWin Windows and Mac OS X systems, where we don't know how to
-dnl create shared libs at all (at least at present)
+dnl Mac OS X systems, where we don't know how to create shared libs
+dnl at all (at least at present)
+
+dnl For Cygwin Windows systems, the shared library suffix becomes ".dll".
+
shared_lib_suffix=".so"
static_lib_suffix=".a"
case "$target" in
- *-aix4* | alpha*-linux* | alpha*-osf[45]* | *cygwin | powerpc-apple-darwin* | hppa64-unknown-linux-gnu )
+ *-aix4* | alpha*-linux* | alpha*-osf[45]* | powerpc-apple-darwin* | hppa64-unknown-linux-gnu )
AC_MSG_WARN(Shared libraries not supported on $target. Using static libs instead)
enableshared=no
;;
esac
+case "$target" in
+ *cygwin )
+ shared_lib_suffix=".dll"
+ ;;
+esac
+
AC_SUBST(enableshared)
AC_SUBST(static_lib_suffix)
AC_SUBST(shared_lib_suffix)