aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/m4/evas_converter.m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/evas/m4/evas_converter.m483
1 files changed, 83 insertions, 0 deletions
diff --git a/libraries/evas/m4/evas_converter.m4 b/libraries/evas/m4/evas_converter.m4
new file mode 100644
index 0000000..4a5a390
--- /dev/null
+++ b/libraries/evas/m4/evas_converter.m4
@@ -0,0 +1,83 @@
1dnl use: EVAS_CONVERT_COLOR(bpp, colorspace, components[, default-enabled])
2AC_DEFUN([EVAS_CONVERT_COLOR],
3[
4pushdef([UP], translit([$1_$2_$3], [a-z], [A-Z]))dnl
5pushdef([DOWN_D], translit([$1-$2-$3], [A-Z], [a-z]))dnl
6pushdef([DOWN_U], translit([$1_$2_$3], [A-Z], [a-z]))dnl
7
8conv_[]DOWN_U="no"
9
10ifelse("x$4", "xno",
11[
12 AC_ARG_ENABLE(convert-[]DOWN_D,
13 AC_HELP_STRING(
14 [--enable-convert-[]DOWN_D],
15 [enable the $1bpp $2 $3 converter code]
16 ),
17 [ conv_[]DOWN_U=$enableval ],
18 [ conv_[]DOWN_U=no ]
19 )
20], [
21 AC_ARG_ENABLE(convert-[]DOWN_D,
22 AC_HELP_STRING(
23 [--disable-convert-[]DOWN_D],
24 [disable the $1bpp $2 $3 converter code]
25 ),
26 [ conv_[]DOWN_U=$enableval ],
27 [ conv_[]DOWN_U=yes ]
28 )
29])
30
31AC_MSG_CHECKING(whether to build $1bpp $2 $3 converter code)
32AC_MSG_RESULT($conv_[]DOWN_U)
33
34if test "x$conv_[]DOWN_U" = "xyes" ; then
35 AC_DEFINE(BUILD_CONVERT_[]UP, 1, [$1bpp $2 $3 Converter Support])
36fi
37
38popdef([UP])
39popdef([DOWN_D])
40popdef([DOWN_U])
41])
42
43dnl use: EVAS_CONVERT_ROT(bpp, colorspace, rot[, default-enabled])
44AC_DEFUN([EVAS_CONVERT_ROT],
45[
46pushdef([UP], translit([$1_$2_ROT$3], [a-z], [A-Z]))dnl
47pushdef([DOWN_D], translit([$1-$2-rot-$3], [A-Z], [a-z]))dnl
48pushdef([DOWN_U], translit([$1_$2_rot_$3], [A-Z], [a-z]))dnl
49
50conv_[]DOWN_U="no"
51
52ifelse("x$4", "xno",
53[
54 AC_ARG_ENABLE(convert-[]DOWN_D,
55 AC_HELP_STRING(
56 [--enable-convert-[]DOWN_D],
57 [enable the $1bpp $2 rotation $3 converter code]
58 ),
59 [ conv_[]DOWN_U=$enableval ],
60 [ conv_[]DOWN_U=no ]
61 )
62], [
63 AC_ARG_ENABLE(convert-[]DOWN_D,
64 AC_HELP_STRING(
65 [--disable-convert-[]DOWN_D],
66 [disable the $1bpp $2 rotation $3 converter code]
67 ),
68 [ conv_[]DOWN_U=$enableval ],
69 [ conv_[]DOWN_U=yes ]
70 )
71])
72
73AC_MSG_CHECKING(whether to build $1bpp $2 rotation $3 converter code)
74AC_MSG_RESULT($conv_[]DOWN_U)
75
76if test "x$conv_[]DOWN_U" = "xyes" ; then
77 AC_DEFINE(BUILD_CONVERT_[]UP, 1, [$1bpp $2 Rotation $3 Converter Support])
78fi
79
80popdef([UP])
81popdef([DOWN_D])
82popdef([DOWN_U])
83])