Version 0.4
[grits] / configure.ac
1 # Init and options
2 AC_INIT([libgis], [0.4], [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 if test "$WIN32" = yes; then
28         ac_default_prefix="/"
29 fi
30 AM_CONDITIONAL([WIN32],    test "$WIN32" = "yes")
31 AM_CONDITIONAL([NOTWIN32], test "$WIN32" = "no")
32
33 # Output 
34 AC_CONFIG_FILES([
35         Makefile
36         src/Makefile
37         src/data/Makefile
38         src/objects/Makefile
39         src/plugins/Makefile
40         src/libgis.pc
41         docs/Makefile
42         docs/api/Makefile
43 ])
44 AC_OUTPUT