File: win32.m4

package info (click to toggle)
g3dviewer 0.2.99.5~svn130-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,232 kB
  • sloc: sh: 10,341; ansic: 2,446; makefile: 117; xml: 75
file content (27 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (6)
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
26
27

AC_DEFUN([AC_IS_WIN32], [
	AC_MSG_CHECKING([for Win32])
	case "$host" in
		*-mingw*)
			os_win32=yes
			;;
		*)
			os_win32=no
			;;
	esac
	AC_MSG_RESULT([$os_win32])
	if test "$os_win32" = "yes"; then
		if test x$enable_static = xyes -o x$enable_static = x; then
			AC_MSG_WARN(
				[Disabling static library build, must build as DLL on Windows.])
		fi
		if test x$enable_shared = xno; then
			AC_MSG_WARN(
				[Enabling shared library build, must build as DLL on Windows.])
		fi
		enable_static=no
		enable_shared=yes
	fi
	AM_CONDITIONAL(OS_WIN32, test "$os_win32" = yes)
])