1 # Macro added for some Cygwin-specific support -*- sh -*-
2 # @author@: Kayvan Sylvan
4 AC_DEFUN([CHECK_WITH_CYGWIN],
7 cygwin* | mingw* | pw32* )
8 # Export all symbols to Win32 DLL using MinGW 2.0 ld.
9 WIN32_LD_EXPORT_ALL_SYMBOLS=''
10 AC_MSG_CHECKING([whether ld accepts --export-all-symbols])
11 if $LD --help 2>&1 | egrep 'export-all-symbols' > /dev/null; then
12 WIN32_LD_EXPORT_ALL_SYMBOLS='-Wl,--export-all-symbols'
17 if test x"$WIN32_LD_EXPORT_ALL_SYMBOLS" != x; then
18 LDFLAGS="$LDFLAGS $WIN32_LD_EXPORT_ALL_SYMBOLS"