Win32 port
[grits] / configure.ac
1 # Init and options
2 AC_INIT([libgis], [0.3], [andy753421@gmail.com])
3 AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign])
4 AC_CONFIG_HEADERS([config.h])
5 AC_CONFIG_MACRO_DIR([m4])
6 #AM_SILENT_RULES([yes])
7
8 # Check for required programs
9 AC_PROG_CC
10 AC_PROG_LIBTOOL
11 DOLT
12 PKG_PROG_PKG_CONFIG
13 GTK_DOC_CHECK(1.9)
14
15 # Check for required packages
16 PKG_CHECK_MODULES(GLIB,  glib-2.0 >= 2.14 gobject-2.0 gthread-2.0)
17 PKG_CHECK_MODULES(CAIRO, cairo)
18 PKG_CHECK_MODULES(GTK,   gtk+-2.0 >= 2.16 gtkglext-1.0)
19 PKG_CHECK_MODULES(SOUP,  libsoup-2.4 >= 2.26)
20
21 # Test for Windows vs. Unix
22 case "${host}" in
23         *mingw32*) WIN32="yes" ;;
24         *cygwin*)  WIN32="yes" ;;
25         *)         WIN32="no"  ;;
26 esac
27 AM_CONDITIONAL([WIN32],    test "$WIN32" = "yes")
28 AM_CONDITIONAL([NOTWIN32], test "$WIN32" = "no")
29
30 # Output 
31 AC_CONFIG_FILES([
32         Makefile
33         src/Makefile
34         src/data/Makefile
35         src/objects/Makefile
36         src/plugins/Makefile
37         src/libgis.pc
38         docs/Makefile
39         docs/api/Makefile
40 ])
41 AC_OUTPUT