-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
75 lines (59 loc) · 1.76 KB
/
configure.ac
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
AC_INIT([gtkaml],[0.4.3])
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_VALAC([0.10])
AC_PROG_LN_S
EXTRA_CFLAGS=
EXTRA_LDFLAGS=
case $host in
*-*-mingw32* | *-*-windows)
EXTRA_CFLAGS="-mno-cygwin -mwindows -mms-bitfields -fno-strict-aliasing "
EXTRA_LDFLAGS="-export-all-symbols -mwindows -no-undefined -mms-bitfields" ;;
*-*-cygwin*)
EXTRA_CFLAGS="-fno-strict-aliasing"
EXTRA_LDFLAGS="-export-all-symbols -mms-bitfields";;
esac
AC_SUBST(EXTRA_CFLAGS)
AC_SUBST(EXTRA_LDFLAGS)
AC_HEADER_STDC
PKG_CHECK_MODULES([GLIB], glib-2.0)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
PKG_CHECK_MODULES([GIO], gio-2.0)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
PKG_CHECK_MODULES([GTK], gtk+-2.0)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
PKG_CHECK_MODULES([LIBXML2], libxml-2.0)
AC_SUBST(LIBXML2_CFLAGS)
AC_SUBST(LIBXML2_LIBS)
PKG_CHECK_MODULES(VALA, libvala-0.28, [VALA_PKG="libvala-0.28"],
[PKG_CHECK_MODULES(VALA, libvala-0.26, [VALA_PKG="libvala-0.26"],
[PKG_CHECK_MODULES(VALA, libvala-0.16, [VALA_PKG="libvala-0.16"],
[PKG_CHECK_MODULES(VALA, libvala-0.14, [VALA_PKG="libvala-0.14"],
[PKG_CHECK_MODULES(VALA, libvala-0.12, [VALA_PKG="libvala-0.12"],
[PKG_CHECK_MODULES(VALA, vala-0.10, [VALA_PKG="vala-0.10"])
])
])
])
])
])
AM_CONDITIONAL([VALA_10], [test $VALA_PKG = libvala-0.10])
AC_SUBST(VALA_PKG)
AC_SUBST(VALA_CFLAGS)
AC_SUBST(VALA_LIBS)
AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests], [Enable building of tests]), enable_tests=$enableval, enable_tests=no)
AM_CONDITIONAL([ENABLE_TESTS], [test x$enable_tests = xyes])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_FILES([
Makefile
src/Makefile
data/Makefile
vapi/Makefile
tests/Makefile
])
AC_OUTPUT