summaryrefslogtreecommitdiffstats
path: root/win/configure.ac
blob: 256d69ae38ed3cd6eb945ce59c158d0e9e903715 (plain)
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
28
29
30
31
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.61])
AC_INIT([tightvnc], [1.5.0a1], [http://www.tightvnc.com/bugs.html])
AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])

AC_SUBST([COMMON_DIR], ['$(top_srcdir)/../common'])

AC_CONFIG_SUBDIRS([../common])

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_LANG([C++])

if test "$GCC" = yes; then
  CFLAGS="$CFLAGS -Wall"
fi
if test "$GXX" = yes; then
  CXXFLAGS="$CXXFLAGS -Wall"
fi

CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500"
CXXFLAGS="$CXXFLAGS -mthreads"

AC_PATH_XTRA

AC_OUTPUT(Makefile
         vncviewer/Makefile
	 rfb_win32/Makefile
)