annotate configure.ac @ 668:916dc9723086

Fix issue of return value of code generated
author Thinker K.F. Li <thinker@branda.to>
date Wed, 04 Aug 2010 22:07:13 +0800
parents 21f944e79b19
children 7e64e0f70cb6
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
466
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
84 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
85 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
86
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
87 [if [ x"${skia}" = xtrue ]; then ]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
88 AC_DEFINE([SKIA_GRAPH_ENGINE])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
89 cairo=false
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
90 [else]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
91 AC_DEFINE([CAIRO_GRAPH_ENGINE])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
92 cairo=true
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
93 [fi]
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
94
543
7630dac0a104 Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents: 477
diff changeset
95 AC_ARG_ENABLE([nodejs],
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
96 [AS_HELP_STRING([--enable-nodejs],[Turn on nodejs support])],
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
97 [case "${enableval}" in
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
98 (yes) nodejs=true ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
99 (no) nodejs=false ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
100 (*) AC_MSG_ERROR([bad value ${enableval} for --enable-nodejs]) ;;
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
101 esac],[nodejs=false])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
102
543
7630dac0a104 Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents: 477
diff changeset
103 [if [ x"${nodejs}" = xtrue ]; then ]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
104 AC_PATH_PROG([NODE_WAF], [node-waf])
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
105 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
106 [fi]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
107
543
7630dac0a104 Create Makefile for nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents: 477
diff changeset
108 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
109
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
110 # Define AM and AC variable for sh_text
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
111
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
112 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
113
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
114 [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
115 AC_DEFINE([SH_TEXT])
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
116 [fi]
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
117
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
118 # 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
119
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
120 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
121
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
122 [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
123 AC_DEFINE([X_BACKEND])
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
124 [fi]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
125
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
126 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
127
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 633
diff changeset
128 [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
129 AC_DEFINE([DFB_BACKEND])
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
130 [fi]
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
131
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
132 # Checks for libraries.
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
133
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
134 [if [ x"${cairo}" = xtrue ]; then]
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
135 PKG_CHECK_MODULES([cairo], [cairo >= 1.6], , AC_MSG_ERROR([cairo >= 1.6 not found]))
633
6f71f1b8e4e7 Let compilation on SMP8655 succeeded.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 623
diff changeset
136 [if [ x"${sh_text}" = xtrue ]; then]
6f71f1b8e4e7 Let compilation on SMP8655 succeeded.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 623
diff changeset
137 PKG_CHECK_MODULES([pangocairo], [pangocairo >= 1.0], , AC_MSG_ERROR([pangocairo >= 1.0 not found]))
6f71f1b8e4e7 Let compilation on SMP8655 succeeded.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 623
diff changeset
138 [fi]
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
139 [fi]
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 440
diff changeset
140
623
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
141 AC_CONFIG_FILES([
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
142 Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
143 libmbfly.pc
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
144 libmbfly-uninstalled.pc
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
145 examples/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
146 examples/calculator/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
147 examples/svg2code_ex/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
148 examples/tank/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
149 examples/drag/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
150 examples/dynamic/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
151 examples/menu/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
152 src/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
153 include/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
154 inkscape/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
155 nodejs/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
156 tools/Makefile
ae787bcb475a Polish autoconf script.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 544
diff changeset
157 ])
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
158
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
159 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
160 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
161 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
162 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
163 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
164 AH_TEMPLATE([DFB_BACKEND], [Enable DirectFB backend])
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 408
diff changeset
165
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
166 AC_OUTPUT