summaryrefslogtreecommitdiff
path: root/m4/virt-win32.m4
blob: 090565e842f67b7865cd446a0ce170c1ad4af7e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AC_DEFUN([LIBVIRT_BUILDER_WIN32],[
    dnl Extra link-time flags for Cygwin.
    dnl Copied from libxml2 configure.in, but I removed mingw changes
    dnl for now since I'm not supporting mingw at present.  - RWMJ
    CYGWIN_EXTRA_LDFLAGS=
    CYGWIN_EXTRA_LIBADD=
    MINGW_EXTRA_LDFLAGS=
    case "$host" in
      *-*-cygwin*)
        CYGWIN_EXTRA_LDFLAGS="-no-undefined"
        CYGWIN_EXTRA_LIBADD="${INTLLIBS}"
        ;;
      *-*-mingw*)
        MINGW_EXTRA_LDFLAGS="-no-undefined"
        ;;
    esac
    AC_SUBST([CYGWIN_EXTRA_LDFLAGS])
    AC_SUBST([CYGWIN_EXTRA_LIBADD])
    AC_SUBST([MINGW_EXTRA_LDFLAGS])
])