Peter Åstrand | eaff3bc | 2008-12-09 10:27:33 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script. |
| 2 | AC_PREREQ([2.61]) |
Adam Tkac | 482aa5c | 2009-03-18 09:38:52 +0000 | [diff] [blame^] | 3 | AC_INIT([tigervnc], [0.0.90], [http://www.tigervnc.org]) |
Peter Åstrand | eaff3bc | 2008-12-09 10:27:33 +0000 | [diff] [blame] | 4 | AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2]) |
| 5 | |
| 6 | AC_SUBST([COMMON_DIR], ['$(top_srcdir)/../common']) |
| 7 | |
| 8 | AC_CONFIG_SUBDIRS([../common]) |
| 9 | |
| 10 | dnl Checks for programs. |
| 11 | AC_PROG_CC |
| 12 | AC_PROG_CXX |
| 13 | AC_PROG_LIBTOOL |
| 14 | AC_LANG([C++]) |
| 15 | |
| 16 | if test "$GCC" = yes; then |
| 17 | CFLAGS="$CFLAGS -Wall" |
| 18 | fi |
| 19 | if test "$GXX" = yes; then |
| 20 | CXXFLAGS="$CXXFLAGS -Wall" |
| 21 | fi |
| 22 | |
| 23 | CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500" |
Peter Åstrand | 3a209d5 | 2008-12-10 13:41:12 +0000 | [diff] [blame] | 24 | CXXFLAGS="$CXXFLAGS -mthreads" |
Peter Åstrand | eaff3bc | 2008-12-09 10:27:33 +0000 | [diff] [blame] | 25 | |
| 26 | AC_PATH_XTRA |
| 27 | |
| 28 | AC_OUTPUT(Makefile |
| 29 | vncviewer/Makefile |
| 30 | rfb_win32/Makefile |
| 31 | ) |