annotate configure.ac @ 918:92a97858c7e3

Fix the error message when pangocairo is not present.
author pingooo
date Tue, 26 Oct 2010 21:26:40 +0800
parents 7e64e0f70cb6
children f02f3f20ce95
rev   line source
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
1 # -*- Autoconf -*-
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
2 # Process this file with autoconf to produce a configure script.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
3
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
4 AC_PREREQ(2.61)
182
7d1497608c2f Polish scripts of GNU Build System.
"Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>"
parents: 178
diff changeset
5 AC_INIT([MadButterfly],[0.0],[http://www.assembla.com/spaces/MadButterfly])
7d1497608c2f Polish scripts of GNU Build System.
"Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>"
parents: 178
diff changeset
6 AC_CONFIG_SRCDIR([README.h])
467
6e18550c8fa8 Header file to config graphic engine
Thinker K.F. Li <thinker@branda.to>
parents: 466
diff changeset
7 AC_CONFIG_HEADER([config.h include/mb_config.h])
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
8 AM_INIT_AUTOMAKE([foreign])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
9
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
10 # Checks for programs.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
11 AC_PROG_CC
468
ae784a86ba82 C++ instead of C to bridge to Skia
Thinker K.F. Li <thinker@branda.to>
parents: 467
diff changeset
12 AC_PROG_CXX
182
7d1497608c2f Polish scripts of GNU Build System.
"Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>"
parents: 178
diff changeset
13 LT_INIT
184
13c1d49c198b Add AC_PROG_LIBTOOL to make older libtool compatible.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 182
diff changeset
14 AC_PROG_LIBTOOL
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
15
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
16 # Checks for header files.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
17 AC_PATH_X
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
18 AC_HEADER_STDC
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
19 AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
20
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
21 # Checks for typedefs, structures, and compiler characteristics.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
22 AC_C_CONST
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
23 AC_TYPE_SIZE_T
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
24 AC_HEADER_TIME
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
25 AC_STRUCT_TM
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
26 AC_TYPE_UINT32_T
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
27 AC_TYPE_UINT64_T
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
28
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
29 # Checks for library functions.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
30 AC_FUNC_MALLOC
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
31 AC_FUNC_REALLOC
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
32 AC_FUNC_SELECT_ARGTYPES
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
33 AC_CHECK_FUNCS([gettimeofday memset select sqrt strdup])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
34
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
35 AC_ARG_ENABLE([testcase],
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
36 [AS_HELP_STRING([--enable-testcase],[Enable testcase])],
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
37 [case "${enableval}" in
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
38 (yes) testcase=true ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
39 (no) testcase=false ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
40 (*) AC_MSG_ERROR([bad value ${enableval} for --enable-testcase]) ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
41 esac],[testcase=false])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
42
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
43 AM_CONDITIONAL([TESTCASE], [test x$testcase = xtrue])
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
44
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
45 AC_ARG_ENABLE([sh_text],
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
46 [AS_HELP_STRING([--disable-sh_text],[Turn off sh_text])],
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
47 [case "${enableval}" in
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
48 (yes) sh_text=true ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
49 (no) sh_text=false ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
50 (*) AC_MSG_ERROR([bad value ${enableval} for --disable-sh_text]) ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
51 esac],[sh_text=true])
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
52
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
53 AC_ARG_ENABLE([sh_stext],
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
54 [AS_HELP_STRING([--disable-sh_stext],[Turn off sh_stext])],
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
55 [case "${enableval}" in
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
56 (yes) sh_stext=true ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
57 (no) sh_stext=false ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
58 (*) AC_MSG_ERROR([bad value ${enableval} for --disable-sh_stext]) ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
59 esac],[sh_stext=true])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
60
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
61 AM_CONDITIONAL([SH_STEXT], [test x$sh_stext = xtrue])
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
62
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
63 [if [ x"${sh_stext}" = xtrue ]; then]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
64 AC_DEFINE([SH_STEXT])
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
65 [fi]
408
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 402
diff changeset
66
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
67 AC_ARG_WITH([backend],
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
68 [AS_HELP_STRING([--with-backend=FOO],[Use FOO as display backend (default is 'X')])],
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
69 [case "${withval}" in
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
70 ('X') backend='X' ;;
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
71 ('dfb') backend='dfb' ;;
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
72 ('no') backend='none' ;;
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
73 (*) AC_MSG_ERROR([bad value ${withval} for --with-backend]) ;;
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
74 esac],[backend='X'])
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
75
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
76 AC_ARG_ENABLE([skia],
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
77 [AS_HELP_STRING([--enable-skia],[Turn on Skia instead of Cairo])],
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
78 [case "${enableval}" in
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
79 (yes) skia=true ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
80 (no) skia=false ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
81 (*) AC_MSG_ERROR([bad value ${enableval} for --enable-skia]) ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
82 esac],[skia=false])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
83
694
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
84 AC_ARG_ENABLE([xshm],
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
85 [AS_HELP_STRING([--disable-xshm],[Turn off XSHM supporting])],
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
86 [case "${enableval}" in
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
87 (yes) xshm=true ;;
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
88 (no) xshm=false ;;
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
89 (*) AC_MSG_ERROR([bad value ${enableval} for --disable-xshm]) ;;
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
90 esac], [xshm=true])
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
91
466
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
92 AM_CONDITIONAL([SKIA_GRAPH_ENGINE], [test x$skia = xtrue])
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
93 AM_CONDITIONAL([CAIRO_GRAPH_ENGINE], [test x$skia != xtrue])
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
94
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
95 [if [ x"${skia}" = xtrue ]; then ]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
96 AC_DEFINE([SKIA_GRAPH_ENGINE])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
97 cairo=false
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
98 [else]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
99 AC_DEFINE([CAIRO_GRAPH_ENGINE])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
100 cairo=true
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
101 [fi]
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
102
543
7630dac0a104 Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents: 477
diff changeset
103 AC_ARG_ENABLE([nodejs],
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
104 [AS_HELP_STRING([--enable-nodejs],[Turn on nodejs support])],
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
105 [case "${enableval}" in
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
106 (yes) nodejs=true ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
107 (no) nodejs=false ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
108 (*) AC_MSG_ERROR([bad value ${enableval} for --enable-nodejs]) ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
109 esac],[nodejs=false])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
110
543
7630dac0a104 Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents: 477
diff changeset
111 [if [ x"${nodejs}" = xtrue ]; then ]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
112 AC_PATH_PROG([NODE_WAF], [node-waf])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
113 AC_CHECK_PROG([has_node], [node], [true], [false])
543
7630dac0a104 Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents: 477
diff changeset
114 [fi]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
115
543
7630dac0a104 Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents: 477
diff changeset
116 AM_CONDITIONAL([NODEJS], [test x"${nodejs}-${has_node}" = xtrue-true])
7630dac0a104 Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents: 477
diff changeset
117
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
118 # Define AM and AC variable for sh_text
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
119
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
120 AM_CONDITIONAL([SH_TEXT], [test x$sh_text = xtrue -a x$cairo = xtrue])
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
121
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
122 [if [ x"${sh_text}" = xtrue -a x$cairo = xtrue ]; then]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
123 AC_DEFINE([SH_TEXT])
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
124 [fi]
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
125
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
126 # Define AM and AC variable for display backend
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
127
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
128 AM_CONDITIONAL([X_BACKEND], [test x$backend = x'X' -a x$cairo = xtrue])
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
129
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
130 [if [ x"${backend}" = x'X' -a x"${cairo}" = xtrue ]; then]
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
131 AC_DEFINE([X_BACKEND])
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
132 [fi]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
133
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
134 AM_CONDITIONAL([DFB_BACKEND], [test x$backend = x'dfb' -a x$cairo = xtrue])
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
135
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
136 [if [ x"${backend}" = x'dfb' -a x"${cairo}" = xtrue ]; then]
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
137 AC_DEFINE([DFB_BACKEND])
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
138 [fi]
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
139
694
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
140 AM_CONDITIONAL([XSHM], [test x"${xshm}" = xtrue -a x"${cairo}" = xtrue -a x$backend = x'X'])
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
141
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
142 [if [ x"${xshm}" = xtrue -a x"${cairo}" = xtrue -a x$backend = x'X' ]; then]
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
143 AC_DEFINE([XSHM])
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
144 [fi]
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
145
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
146 # Checks for libraries.
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
147
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
148 [if [ x"${cairo}" = xtrue ]; then]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
149 PKG_CHECK_MODULES([cairo], [cairo >= 1.6], , AC_MSG_ERROR([cairo >= 1.6 not found]))
918
92a97858c7e3 Fix the error message when pangocairo is not present.
pingooo
parents: 694
diff changeset
150 #PKG_CHECK_MODULES([cairo2], [cairo2 >= 2.0], , AC_MSG_ERROR([cairo2 >= 2.0 not found]))
633
6f71f1b8e4e7 Let compilation on SMP8655 succeeded.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 623
diff changeset
151 [if [ x"${sh_text}" = xtrue ]; then]
918
92a97858c7e3 Fix the error message when pangocairo is not present.
pingooo
parents: 694
diff changeset
152 PKG_CHECK_MODULES([pangocairo], [pangocairo >= 1.0], , AC_MSG_ERROR([pangocairo >= 1.0 not found, use --disable_sh_text to configure without pangocairo.]))
633
6f71f1b8e4e7 Let compilation on SMP8655 succeeded.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 623
diff changeset
153 [fi]
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
154 [fi]
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
155
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
156 AC_CONFIG_FILES([
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
157 Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
158 libmbfly.pc
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
159 libmbfly-uninstalled.pc
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
160 examples/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
161 examples/calculator/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
162 examples/svg2code_ex/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
163 examples/tank/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
164 examples/drag/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
165 examples/dynamic/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
166 examples/menu/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
167 src/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
168 include/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
169 inkscape/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
170 nodejs/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
171 tools/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
172 ])
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
173
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
174 AH_TEMPLATE([SH_TEXT],[Enable sh_text object])
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
175 AH_TEMPLATE([SH_STEXT],[Enable sh_stext object])
466
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
176 AH_TEMPLATE([SKIA_GRAPH_ENGINE], [Enable Skia Graphic Engine])
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
177 AH_TEMPLATE([CAIRO_GRAPH_ENGINE], [Enable Cairo Graphic Engine])
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
178 AH_TEMPLATE([X_BACKEND], [Enable X backend])
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
179 AH_TEMPLATE([DFB_BACKEND], [Enable DirectFB backend])
694
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 654
diff changeset
180 AH_TEMPLATE([XSHM], [Enable XSHM])
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
181
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
182 AC_OUTPUT