blob: 256d69ae38ed3cd6eb945ce59c158d0e9e903715 [file] [log] [blame]
Peter Åstrandeaff3bc2008-12-09 10:27:33 +00001dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ([2.61])
3AC_INIT([tightvnc], [1.5.0a1], [http://www.tightvnc.com/bugs.html])
4AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])
5
6AC_SUBST([COMMON_DIR], ['$(top_srcdir)/../common'])
7
8AC_CONFIG_SUBDIRS([../common])
9
10dnl Checks for programs.
11AC_PROG_CC
12AC_PROG_CXX
13AC_PROG_LIBTOOL
14AC_LANG([C++])
15
16if test "$GCC" = yes; then
17 CFLAGS="$CFLAGS -Wall"
18fi
19if test "$GXX" = yes; then
20 CXXFLAGS="$CXXFLAGS -Wall"
21fi
22
23CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500"
Peter Åstrand3a209d52008-12-10 13:41:12 +000024CXXFLAGS="$CXXFLAGS -mthreads"
Peter Åstrandeaff3bc2008-12-09 10:27:33 +000025
26AC_PATH_XTRA
27
28AC_OUTPUT(Makefile
29 vncviewer/Makefile
30 rfb_win32/Makefile
31)