File: virt-win32.m4

package info (click to toggle)
libvirt-sandbox 0.5.1%2Bgit20160404-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,104 kB
  • ctags: 1,964
  • sloc: ansic: 12,696; python: 2,110; makefile: 447; sh: 302; xml: 151; perl: 110
file content (25 lines) | stat: -rw-r--r-- 862 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
AC_DEFUN([LIBVIRT_SANDBOX_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=
    CYGWIN_EXTRA_PYTHON_LIBADD=
    MINGW_EXTRA_LDFLAGS=
    case "$host" in
      *-*-cygwin*)
        CYGWIN_EXTRA_LDFLAGS="-no-undefined"
        CYGWIN_EXTRA_LIBADD="${INTLLIBS}"
        if test "x$PYTHON_VERSION" != "x"; then
          CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
        fi
        ;;
      *-*-mingw*)
        MINGW_EXTRA_LDFLAGS="-no-undefined"
        ;;
    esac
    AC_SUBST([CYGWIN_EXTRA_LDFLAGS])
    AC_SUBST([CYGWIN_EXTRA_LIBADD])
    AC_SUBST([CYGWIN_EXTRA_PYTHON_LIBADD])
    AC_SUBST([MINGW_EXTRA_LDFLAGS])
])